Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogs
authorTom Yu <tlyu@mit.edu>
Thu, 2 Oct 1997 20:42:05 +0000 (20:42 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 2 Oct 1997 20:42:05 +0000 (20:42 +0000)
for details

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

27 files changed:
src/ChangeLog
src/acconfig.h
src/include/ChangeLog
src/include/k5-int.h
src/include/krb5/ChangeLog
src/include/krb5/configure.in
src/include/win-mac.h
src/kadmin/ktutil/ChangeLog
src/kadmin/ktutil/ktutil.c
src/lib/krb4/ChangeLog
src/lib/krb4/configure.in
src/lib/krb4/kparse.c
src/lib/krb4/memcache.c
src/lib/krb4/mk_preauth.c
src/lib/krb4/realmofhost.c
src/lib/krb4/send_to_kdc.c
src/lib/krb4/tkt_string.c
src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/krbasn1.h
src/lib/krb5/os/ChangeLog
src/lib/krb5/os/configure.in
src/lib/krb5/os/gmt_mktime.c
src/lib/krb5/os/timeofday.c
src/mac/libraries/ChangeLog
src/mac/libraries/autoconf.h
src/util/pty/ChangeLog
src/util/pty/configure.in

index 73b9a01a94d09ee6a8caca1e7400c7ebd90cfbf5..bc25f3518c8238e81d91acb5bd89b0ebfa6430c2 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 30 18:56:37 1997  Tom Yu  <tlyu@mit.edu>
+
+       * acconfig.h: Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES.
+
 Thu Sep 25 21:06:40 1997  Tom Yu  <tlyu@mit.edu>
 
        * acconfig.h: Punt HAS_SETVBUF, HAS_UNISTD_H, KRB5_USE_INET.
index 53c237dd226c60496e6740e5b4dd8b30afc1c88f..99cd7d5221178c04042fe9a739cc844ba180fe5c 100644 (file)
@@ -7,18 +7,15 @@
    handle it on some systems.  */
 
 #undef ANSI_STDIO
-#undef HAS_STDLIB_H
 #undef HAS_VOID_TYPE
 #undef KRB5_NO_PROTOTYPES
 #undef KRB5_PROVIDE_PROTOTYPES
 #undef KRB5_NO_NESTED_PROTOTYPES
-#undef NO_STDLIB_H
 
 #undef NO_YYLINENO
 #undef POSIX_FILE_LOCKS
 #undef POSIX_SIGTYPE
 #undef POSIX_TERMIOS
-#undef POSIX_TYPES
 #undef USE_DIRENT_H
 #undef WAIT_USES_INT
 #undef krb5_sigtype
@@ -32,6 +29,9 @@
 /* Define if Kerberos V4 backwards compatibility should be supported */
 #undef KRB5_KRB4_COMPAT
 
+/* Define to `long' if <sys/types.h> doesn't define. */
+#undef time_t
+
 /*
  * The stuff following here is taken from util/db2/acconfig.h
  */
index a82c21bc4b266abd1f9fefbef50dc42a7f67bd02..7853a60d05133efcfb8a80792ecbdd4a3a640954 100644 (file)
@@ -1,3 +1,10 @@
+Tue Sep 30 18:56:05 1997  Tom Yu  <tlyu@mit.edu>
+
+       * win-mac.h: Replace HAS_STDLIB_H with something more sane.
+
+       * k5-int.h: Replace HAS_STDLIB_H, NO_STDLIB_H with something more
+       sane.
+
 Thu Sep 25 21:10:37 1997  Tom Yu  <tlyu@mit.edu>
 
        * win-mac.h: Replace KRB5_USE_INET with something more sane.
index acb0fca197d4556ed1d82ab855dcf9efefd59061..7ce0409016420fdb9b09a018a4fc3fb12b7ec222 100644 (file)
@@ -350,20 +350,16 @@ typedef struct _krb5_sam_response {
 #ifndef KRB5_EXT_PROTO__
 #define KRB5_EXT_PROTO__
 
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
 #if defined(__STDC__) || defined(_MSDOS)
-#ifdef NO_STDLIB_H
 #include <fake-stdlib.h>
 #else
-#include <stdlib.h>
-#endif /* NO_STDLIB_H */
-#else
 extern char *malloc(), *realloc(), *calloc();
 extern char *getenv();
 #endif /* ! __STDC__ */
-#endif /* HAS_STDLIB_H */
+#endif /* HAVE_STDLIB_H */
 
 #ifdef HAVE_STRING_H
 #include <string.h>
index 826e96773c0aaa754ec67768445da8aeb742df7e..af6652b8b9117d271a86a715e9083fb40e75cf3d 100644 (file)
@@ -1,3 +1,10 @@
+Tue Sep 30 17:19:16 1997  Tom Yu  <tlyu@mit.edu>
+
+       * configure.in: Remove references to dbm and ndbm.  Replace
+       HAS_STDLIB_H and NO_STDLIB_H with something more sane.  Replace
+       AC_TIME_WITH_SYS_TIME with more a recent form.  Use AC_CHECK_TYPE
+       to check for time_t instead of erroneously named POSIX_TYPES.
+
 Thu Sep 25 21:50:44 1997  Tom Yu  <tlyu@mit.edu>
 
        * configure.in: Replace KRB5_USE_INET, HAS_UNISTD_H, HAS_SETVBUF.
index f19755326708f48c05eed69ce134d11fa4ee6ca4..1f38ffc30d6133679e26e23f00c808612a2b9113 100644 (file)
@@ -13,16 +13,13 @@ AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
 
 KRB5_POSIX_LOCKS
 
-dnl time_t, only used in lib/krb5/os/timeofday.c
-AC_EGREP_HEADER(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
-
 KRB5_SIGTYPE
 
 dnl
 dnl
-AC_CHECK_HEADERS(string.h unistd.h)
-AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H),AC_DEFINE(NO_STDLIB_H))
-AC_CHECK_HEADERS(sys/types.h sys/file.h sys/param.h sys/stat.h macsock.h stddef.h xom.h dbm.h ndbm.h)
+AC_CHECK_HEADERS(stdlib.h string.h stddef.h unistd.h)
+AC_CHECK_HEADERS(sys/types.h sys/file.h sys/param.h sys/stat.h)
+AC_CHECK_HEADERS(macsock.h xom.h)
 AC_HEADER_STDARG
 
 dnl check for ANSI stdio, esp "b" option to fopen().  This (unfortunately)
@@ -82,14 +79,12 @@ AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
 
 dnl then from osconf.h, we have
-AC_TIME_WITH_SYS_TIME
+AC_HEADER_TIME
 AC_CHECK_HEADERS(sys/time.h)
+AC_CHECK_TYPE(time_t, long)
 
 AC_CHECK_HEADERS(netinet/in.h)
 
-AC_CHECK_LIB(ndbm,main)
-AC_CHECK_LIB(dbm,main)
-
 dnl
 dnl Determine where to put the replay cache.
 dnl
index cd787d0c71194f283c79bc8dbf76e9d125082c35..a764943365b7375393f36dba6de5a443f966ece4 100644 (file)
@@ -149,7 +149,7 @@ typedef unsigned char       u_char;
 #define KRB5_PROVIDE_PROTOTYPES
 #define HAVE_STDARG_H
 #define HAVE_SYS_TYPES_H
-#define HAS_STDLIB_H
+#define HAVE_STDLIB_H
 
 /* This controls which encryption routines libcrypto will provide */
 #define PROVIDE_DES_CBC_MD5
index 3540a4c9804e6880b5584ee59a5ba6d1072d2cc8..5fb5d77242c5a4937843e8d14990b23bf821fc63 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 30 18:58:09 1997  Tom Yu  <tlyu@mit.edu>
+
+       * ktutil.c: Replace HAS_STDLIB_H with something more sane.
+
 Tue Feb  4 21:11:33 1997  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in:
index e74ab117cb0017dc24740ce3a933d243a69119b6..0106ed758240c15e19e8d69867fe0ae578de1dc9 100644 (file)
@@ -29,7 +29,7 @@
 #include "adm_proto.h"
 #include <ss/ss.h>
 #include <stdio.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
 
index 2f62b2bdd0306f94e4a915b40d96ffb4f9b4163f..08d828d996ec0660e536e4a180ddf22c4746c77d 100644 (file)
@@ -1,3 +1,19 @@
+Tue Sep 30 19:00:33 1997  Tom Yu  <tlyu@mit.edu>
+
+       * tkt_string.c: Replace HAS_STDLIB_H with something more sane.
+
+       * send_to_kdc.c: Replace HAS_STDLIB_H with something more sane.
+
+       * realmofhost.c: Replace HAS_STDLIB_H with something more sane.
+
+       * mk_preauth.c: Repalce HAS_STDLIB_H with something more sane.
+
+       * memcache.c: Replace HAS_STDLIB_H with something more sane.
+
+       * kparse.c: Replace HAS_STDLIB_H with something more sane.
+
+       * configure.in: Replace HAS_STDLIB_H with something more sane.
+
 Thu Sep 25 21:11:16 1997  Tom Yu  <tlyu@mit.edu>
 
        * put_svc_key.c: Replace HAS_UNISTD_H with something more sane.
index 179174e6e931bce16c7697ec4a03e8f8084d5a7e..10acfeda616f7453dd240c6a292bbb9a1fa35562 100644 (file)
@@ -9,7 +9,7 @@ KRB5_POSIX_LOCKS
 AC_CHECK_HEADERS(sys/select.h time.h unistd.h)
 dnl Could check for full stdc environment, but will only test
 dnl for stdlib.h
-AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H))
+AC_CHECK_HEADERS(stdlib.h)
 
 AC_C_CROSS dnl pretty up output, eval this before AC_TRY_RUN
 dnl need MSBFIRST, LSBFIRST, BITS16, BITS32
index 198ae1e8984ae0a2bfe0f8d96d11ac54526164e6..811f0bf39117cb05d0e2fa921413d9b3e3f95ea8 100644 (file)
@@ -54,7 +54,7 @@ static char *strutol();
 #ifndef HAVE_STRSAVE
 static char *strsave();
 #endif
-#ifndef HAS_STDLIB_H
+#ifndef HAVE_STDLIB_H
 extern char *malloc();
 #endif
 
index 7484342aaa7366b732bfe35dea983e7b4051be7a..d2669df9b4b30fb9b41a9dcef58911d292199786 100644 (file)
@@ -35,7 +35,7 @@ typedef DWORD OSErr;
 
 #include <stdio.h>
 #include <errno.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
 extern char *malloc (), *realloc ();
index feb12b7ab9d3ac959f9f4a94d99d23ee7c0b5dab..949fd1d2538d53c0ef74fd4bd611a5fe741d300c 100644 (file)
@@ -15,7 +15,7 @@
 #include "krb.h"
 #include <string.h>
 
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
 extern char *malloc(), *calloc(), *realloc();
index b15ce94147428978e077cc81c41e75f2612d8c60..90e01bb3487608060f61d20dec81f31b3ae91be7 100644 (file)
@@ -16,7 +16,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <ctype.h>
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
 extern char *malloc();
index 7f9620d1282dbc36b50ade0baea7c8aeb7182371..c7e0fb33b8e4466ee473e21c7f695d9215e2e000 100644 (file)
@@ -21,7 +21,7 @@
 
 #define S_AD_SZ sizeof(struct sockaddr_in)
 
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
 extern char *malloc(), *calloc(), *realloc();
index f1554ab97f566a9ca374aff7fb9952ad9f64a3d5..db1230b90fc6aa433c9794a55ab8a7982662f1ab 100644 (file)
@@ -14,7 +14,7 @@
 #include <string.h>
 #include <sys/types.h>
 
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
 char *getenv();
index c3b56a751e74594b3a4221ea28a904aaf4855742..cfdbde382021b74cd195546e082854d55bb2e30f 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 30 19:03:34 1997  Tom Yu  <tlyu@mit.edu>
+
+       * krbasn1.h: Replace HAS_STDLIB_H with something more sane.
+
 Thu Jul 31 15:38:10 1997  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
         * asn1buf.h (asn1buf_remove_octet, asn1buf_size, asn1buf_free,
index eb63258fc55bdb00d81a4f91d417229a4c5124f4..c8fe0a4330f572ba7e52117d2791f7fca0786b86 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <limits.h>            /* For INT_MAX */
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
 /*
index d50f8e38f7fb9f1421771191216eb0ad665b057e..7d143d202bc868e47562f5de3c2faf0e15659bc9 100644 (file)
@@ -1,3 +1,16 @@
+Wed Oct  1 04:58:34 1997  Tom Yu  <tlyu@mit.edu>
+
+       * configure.in: Punt some things that are otherwise gotten from
+       include/krb5/configure.in.
+
+       * gmt_mktime.c: Get k5-int.h to get some autoconf symbols.
+
+Tue Sep 30 19:57:27 1997  Tom Yu  <tlyu@mit.edu>
+
+       * timeofday.c: Replaace erroneously named POSIX_TYPES and timetype
+       with plain old time_t, since we're using AC_CHECK_TYPE now to
+       handle it.
+
 Thu Sep 25 21:24:54 1997  Tom Yu  <tlyu@mit.edu>
 
        * mk_faddr.c: Replace KRB5_USE_INET with something more sane.
index e24008d964516497f054e2d51ceee25965d4cbe6..7c3f343a5c11b14dcea829a357d26f84b018b169 100644 (file)
@@ -1,9 +1,6 @@
 AC_INIT(configure.in)
 CONFIG_RULES
-dnl time checks are for timeofday.c (which gets them from osconf.h)
-dnl and gmt_mktime.c (which only gets them from here...)
-AC_TIME_WITH_SYS_TIME
-AC_HAVE_HEADERS(unistd.h sys/time.h regex.h regexp.h regexpr.h)
+AC_HAVE_HEADERS(regex.h regexp.h regexpr.h)
 
 dnl regcomp is present but non-functional on Solaris 2.4
 AC_C_CROSS
@@ -24,7 +21,6 @@ dnl no -lgen.  This is fine.
 AC_CHECK_FUNCS(compile step)
 LIBS="$save_LIBS"
 AC_HAVE_FUNCS(re_comp)
-AC_HEADER_EGREP(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
 HAS_ANSI_VOLATILE
 AC_DEFINE(AN_TO_LN_RULES)
 KRB5_BUILD_PROGRAM
index 1cb5c2668ccbeb2ab013db2b1431e73200a425e2..b231790ae3d56a20b0e9f128cd1ae1f30e9472b0 100644 (file)
@@ -1,6 +1,7 @@
 /* This code placed in the public domain by Mark W. Eichin */
 
 #include <stdio.h>
+#include "k5-int.h"
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
index 131406fbb4e7d5ebb17270796267021ac5cb8b5e..42fc42fcc614568a5b2652b6e6b5d68e04b87735 100644 (file)
 
 #include <time.h>
 
-#ifdef POSIX_TYPES
-#define timetype time_t
-#else
-#define timetype long
-#endif
-
 #ifndef HAVE_ERRNO
 extern int errno;
 #endif
@@ -45,7 +39,7 @@ krb5_timeofday(context, timeret)
     register krb5_int32 FAR *timeret;
 {
     krb5_os_context os_ctx = context->os_context;
-    timetype tval;
+    time_t tval;
 
     if (os_ctx->os_flags & KRB5_OS_TOFFSET_TIME) {
            *timeret = os_ctx->time_offset;
@@ -62,7 +56,7 @@ krb5_timeofday(context, timeret)
 #else
     tval = time(0);
 #endif
-    if (tval == (timetype) -1)
+    if (tval == (time_t) -1)
        return (krb5_error_code) errno;
     if (os_ctx->os_flags & KRB5_OS_TOFFSET_VALID)
            tval += os_ctx->time_offset;
index af9e054961ab6eb51badb68304dea4fb6cf912b0..dc17db10e76322b35bf0158d465d648cc5d92697 100644 (file)
@@ -1,3 +1,8 @@
+Tue Sep 30 19:04:20 1997  Tom Yu  <tlyu@mit.edu>
+
+       * autoconf.h: Replace HAS_STDLIB_H with something more sane.  Punt
+       POSIX_TYPES.
+
 Thu Sep 25 21:05:23 1997  Tom Yu  <tlyu@mit.edu>
 
        * autoconf.h: Change HAS_SETVBUF, KRB5_USE_INET to something more
index 2531b711d23d2e0333f1f19b333903df9eeab2f5..ba6b6f0ae7fe8008b71a0e61227d8ce45ddbb06c 100644 (file)
@@ -2,12 +2,11 @@
 
 #define HAVE_SETVBUF 1
 #define HAS_ANSI_CONST 1
-#define HAS_STDLIB_H 1
+#define HAVE_STDLIB_H 1
 #define HAS_VOID_TYPE 1
 #define KRB5_PROVIDE_PROTOTYPES 1
 #define NO_NESTED_PROTOTYPES 1
 #define NO_YYLINENO 1
-#define POSIX_TYPES 1
 #define USE_DIRENT_H 1
 #define HAVE_STRING_H 1
 #define WAIT_USES_INT 1
index 656f400b3ea1989d637fba2b3551d9a34c070183..5954edddc5b3cd5a0f5b6bb5f20767accb69f6d8 100644 (file)
@@ -1,3 +1,8 @@
+Wed Oct  1 04:53:30 1997  Tom Yu  <tlyu@mit.edu>
+
+       * configure.in: Default to a long rather than an int for a time_t
+       for paranoia reasons.
+
 Tue Jun  3 23:05:07 1997  Theodore Y. Ts'o  <tytso@mit.edu>
 
        * getpty.c (pty_getpty): Remove erroneous space from the HPUX open().
index e1b22719f9fa17198374fbd693e3b2389fd4ca04..95d77db1c625fdb5e8ba6151d38cf8a47d6e381c 100644 (file)
@@ -51,7 +51,7 @@ AC_SUBST(LOGINLIBS)
 dnl
 AC_CHECK_LIB(util,openpty, AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil")
 AC_TYPE_MODE_T
-AC_CHECK_TYPE(time_t, int)
+AC_CHECK_TYPE(time_t, long)
 AC_FUNC_CHECK(strsave,AC_DEFINE(HAS_STRSAVE))
 AC_HAVE_FUNCS(getutent setreuid gettosbyname setsid ttyname line_push ptsname grantpt openpty logwtmp getutmpx)
 AC_CHECK_HEADERS(unistd.h stdlib.h string.h utmpx.h utmp.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)