pullup from trunk
authorTom Yu <tlyu@mit.edu>
Thu, 7 Apr 2005 21:14:22 +0000 (21:14 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 7 Apr 2005 21:14:22 +0000 (21:14 +0000)
ticket: 2960
version_fixed: 1.4.1

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@17167 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/ChangeLog
src/lib/gssapi/configure.in
src/lib/gssapi/generic/ChangeLog
src/lib/gssapi/generic/Makefile.in
src/lib/gssapi/generic/gssapi.hin

index dbceda08c07fbac8588c730881c80bb60d4012a8..af6063232dffcce36b3f7d80a44b61174d1ccf2d 100644 (file)
@@ -2,6 +2,11 @@
 
        * Makefile.in (LIBINITFUNC, LIBFINIFUNC): Define.
 
+2005-02-02  Ken Raeburn  <raeburn@mit.edu>
+
+       * configure.in: Check for xom.h.  Set include_xom to a C include
+       directive or comment, and substitute it in the Makefiles.
+
 2005-01-17  Jeffrey Altman <jaltman@mit.edu>
 
         * gss_libinit.c: implement cleanup of mutexes, static vars, etc for Windows
index 72ab7983ad8cc17e489b6c6f00240de9cde75c42..1a4f1755e5d51c869886595a8bb408adb201f0c5 100644 (file)
@@ -9,6 +9,10 @@ AC_CHECK_SIZEOF(long)
 AC_CHECK_HEADER(stdint.h,[
        include_stdint="\\#include <stdint.h>"], )
 AC_SUBST(include_stdint)
+AC_CHECK_HEADER(xom.h,[
+       include_xom="\\#include <xom.h>"],[
+       include_xom="/* no xom.h */"])
+AC_SUBST(include_xom)
 KRB5_BUILD_LIBOBJS
 KRB5_BUILD_LIBRARY_WITH_DEPS
 V5_AC_OUTPUT_MAKEFILE(. generic krb5)
index 7643a97a1eb8d75fdd4ed500b243ccf70b8f4228..00370a77e45633c803c273fb98107517469c8ec7 100644 (file)
@@ -1,3 +1,14 @@
+2005-02-02  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (gssapi.h): Change SIZEOF symbols to start with GSS_
+       when extracting from autoconf.h.  Don't look for HAVE_ or USE_
+       symbols.  Add ${include_xom} to the prologue.
+       (include_xom): New variable.
+       * gssapi.hin: Always include stddef.h unconditionally.  Don't
+       conditionally include xom.h here.
+       (GSS_SIZEOF_INT, GSS_SIZEOF_LONG, GSS_SIZEOF_SHORT): Don't
+       define, except on Windows.
+
 2004-06-22  Ken Raeburn  <raeburn@mit.edu>
 
        * gssapi.hin: Don't test macintosh or __MWERKS__.
index 9691e1a4c40c8ea4de8d083e5e8ed687931ca649..ce4dfdcea20dbfa13697481defa3946ee278ba5a 100644 (file)
@@ -37,14 +37,15 @@ $(OUTPRE)gssapi_err_generic.$(OBJEXT): gssapi_err_generic.c
 gssapi_err_generic.h: gssapi_err_generic.et
 gssapi_err_generic.c: gssapi_err_generic.et
 
+include_xom=@include_xom@
+##DOS##include_xom=
 gssapi.h: gssapi.hin
        @echo "Creating gssapi.h" ; \
        h=gss$$$$; $(RM) $$h; \
        (echo "/* This is the gssapi.h prologue. */"; \
        echo "/* It contains some choice pieces of autoconf.h */"; \
-       grep SIZEOF $(BUILDTOP)/include/krb5/autoconf.h; \
-       grep 'HAVE_.*_H' $(BUILDTOP)/include/krb5/autoconf.h; \
-       grep 'USE_.*_H' $(BUILDTOP)/include/krb5/autoconf.h; \
+       sed -n "/SIZEOF/s//GSS_&/p" < $(BUILDTOP)/include/krb5/autoconf.h; \
+       echo "$(include_xom)"; \
        echo "/* End of gssapi.h prologue. */"; \
        cat $(srcdir)/gssapi.hin )> $$h && \
        (set -x; $(MV) $$h $@) ; e=$$?; $(RM) $$h; exit $$e
index 1c14444156654fcc3ba0c5584206317690756bd4..83fe62bb1b56cff0e85b312e586fc3fa726f9cf2 100644 (file)
@@ -44,6 +44,9 @@ extern "C" {
 
 #if defined(_MSDOS) || defined(_WIN32)
 #include <win-mac.h>
+#define GSS_SIZEOF_SHORT SIZEOF_SHORT
+#define GSS_SIZEOF_LONG  SIZEOF_LONG
+#define GSS_SIZEOF_INT   SIZEOF_INT
 #endif
 
 #ifndef KRB5_CALLCONV
@@ -51,29 +54,16 @@ extern "C" {
 #define KRB5_CALLCONV_C
 #endif
 
-#define        GSS_SIZEOF_INT          SIZEOF_INT
-#define        GSS_SIZEOF_LONG         SIZEOF_LONG
-#define        GSS_SIZEOF_SHORT        SIZEOF_SHORT
-
 /*
  * First, include stddef.h to get size_t defined.
  */
-#if    HAVE_STDDEF_H
 #include <stddef.h>
-#endif /* HAVE_STDDEF_H */
 
 /*
  * POSIX says that sys/types.h is where size_t is defined.
  */
 #include <sys/types.h>
 
-/*
- * If the platform supports the xom.h header file, it should be included here.
- */
-#if    HAVE_XOM_H
-#include <xom.h>
-#endif /* HAVE_XOM_H */
-
 /*
  * $Id$
  */