AC_SUBST(GSSRPC__SYS_PARAM_H)
AC_SUBST(GSSRPC__NETDB_H)
-AC_CACHE_CHECK([for int32_t in sys/types.h],
- [krb5_cv_header_sys_types_h_int32_t],
+AC_CACHE_CHECK([for uint32_t in sys/types.h],
+ [krb5_cv_header_sys_types_h_uint32_t],
[AC_TRY_COMPILE([#include <sys/types.h>],
- [int32_t i = 0;],
- [krb5_cv_header_sys_types_h_int32_t=yes],
- [krb5_cv_header_sys_types_h_int32_t=no])])
-AC_CACHE_CHECK([for int32_t in stdint.h],
- [krb5_cv_header_stdint_h_int32_t],
+ [uint32_t i = 0;],
+ [krb5_cv_header_sys_types_h_uint32_t=yes],
+ [krb5_cv_header_sys_types_h_uint32_t=no])])
+AC_CACHE_CHECK([for uint32_t in stdint.h],
+ [krb5_cv_header_stdint_h_uint32_t],
[AC_TRY_COMPILE([#include <stdint.h>],
- [int32_t i = 0;],
- [krb5_cv_header_stdint_h_int32_t=yes],
- [krb5_cv_header_stdint_h_int32_t=no])])
-AC_CACHE_CHECK([for int32_t in inttypes.h],
- [krb5_cv_header_inttypes_h_int32_t],
+ [uint32_t i = 0;],
+ [krb5_cv_header_stdint_h_uint32_t=yes],
+ [krb5_cv_header_stdint_h_uint32_t=no])])
+AC_CACHE_CHECK([for uint32_t in inttypes.h],
+ [krb5_cv_header_inttypes_h_uint32_t],
[AC_TRY_COMPILE([#include <inttypes.h>],
- [int32_t i = 0;],
- [krb5_cv_header_inttypes_h_int32_t=yes],
- [krb5_cv_header_inttypes_h_int32_t=no])])
+ [uint32_t i = 0;],
+ [krb5_cv_header_inttypes_h_uint32_t=yes],
+ [krb5_cv_header_inttypes_h_uint32_t=no])])
GSSRPC__STDINT_H='/* #include <stdint.h> */'
GSSRPC__INTTYPES_H='/* #include <inttypes.h> */'
-GSSRPC__FAKE_INT32='/* #undef GSSRPC__FAKE_INT32 */'
-if test $krb5_cv_header_sys_types_h_int32_t = yes; then
+GSSRPC__FAKE_UINT32='/* #undef GSSRPC__FAKE_INT32 */'
+if test $krb5_cv_header_sys_types_h_uint32_t = yes; then
: # already included sys/types.h
else
- if test $krb5_cv_header_stdint_h_int32_t = yes; then
+ if test $krb5_cv_header_stdint_h_uint32_t = yes; then
GSSRPC__STDINT_H='#include <stdint.h>'
else
- if test $krb5_cv_header_inttypes_h_int_32_t = yes; then
+ if test $krb5_cv_header_inttypes_h_uint32_t = yes; then
GSSRPC__INTTYPES_H='#include <inttypes.h>'
else
AC_MSG_WARN([can't find a fixed-width 32-bit type anywhere; faking it])
- GSSRPC__FAKE_INT32='#define GSSRPC__FAKE_INT32 1'
+ GSSRPC__FAKE_UINT32='#define GSSRPC__FAKE_UINT32 1'
fi
fi
fi
AC_SUBST(GSSRPC__STDINT_H)
AC_SUBST(GSSRPC__INTTYPES_H)
-AC_SUBST(GSSRPC__FAKE_INT32)
+AC_SUBST(GSSRPC__FAKE_UINT32)
AC_CACHE_CHECK([for BSD type aliases], [krb5_cv_type_bsdaliases],
[AC_TRY_COMPILE(
*/
@GSSRPC__STDINT_H@
@GSSRPC__INTTYPES_H@
-/* Define if there is no int32_t in system headers. */
-@GSSRPC__FAKE_INT32@
+/* Define if there is no uint32_t in system headers. */
+@GSSRPC__FAKE_UINT32@
#include <limits.h>
#endif
/*
- * If no int32_t in system headers, fake it by looking for a 32-bit
+ * If no uint32_t in system headers, fake it by looking for a 32-bit
* two's-complement type. Yes, this stomps on POSIX namespace, but if
* we get here, we're on a system that's far from being
* POSIX-compliant anyway.
*/
-#if GSSRPC__FAKE_INT32
+#if GSSRPC__FAKE_UINT32
#if (UINT_MAX == 0xffffffffUL) && (INT_MAX == 0x7fffffffL) \
&& (INT_MIN == -INT_MAX-1)
typedef int int32_t;
typedef short int32_t;
typedef unsigned short uint32_t;
#else
-#error "Can't fake up int32_t."
+#error "Can't fake up uint32_t."
#endif
#endif
#endif
-#endif /* GSSRPC__FAKE_INT32 */
+#endif /* GSSRPC__FAKE_UINT32 */
#if (LONG_MIN != -LONG_MAX-1) || (INT_MIN != -INT_MAX-1) \
|| (SHRT_MIN != -SHRT_MAX-1)