Use compile-time tests using system headers to determine byte order on AIX.
authorKen Raeburn <raeburn@mit.edu>
Sun, 23 May 2004 17:20:09 +0000 (17:20 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 23 May 2004 17:20:09 +0000 (17:20 +0000)
(cf ticket 2551, already pulled up and marked resolved)

* configure.in: Check for sys/param.h too.
* include/db-int.h: Include sys/param.h if available.

ticket: new

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

src/util/db2/ChangeLog
src/util/db2/configure.in
src/util/db2/include/ChangeLog
src/util/db2/include/db-int.h

index 55c393fc14d5125067d1b53b35b77286b4691de3..c0269703cee8a590a229b48c384c27dba5d0dee4 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-23  Ken Raeburn  <raeburn@mit.edu>
+
+       * configure.in: Check for sys/param.h too.
+
 2004-05-07  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Check for machine/endian.h too.
index dc1fb1a14ddc02c5b935cc005c1a943a9eaec07d..c5930b585e7241fecb893e7cefaa48c3d11af924 100644 (file)
@@ -65,7 +65,8 @@ dnl checks for structures
 dnl checks for compiler characteristics
 dnl AC_C_BIGENDIAN - No, check at compile time; Darwin can build for multiple
 dnl                  targets in one tree.
-AC_CHECK_HEADERS(endian.h machine/endian.h)
+AC_CHECK_HEADERS(endian.h machine/endian.h sys/param.h)
+dnl sys/param.h for AIX 4.3.3 (actually sys/machine.h)
 dnl There's also sys/endian.h on IRIX, but we already check _MIPSE{L,B}.
 AC_C_CONST
 AC_CHECK_SIZEOF(int)
index 1ad22005c78990850c64daf6e104c7dd86f0af3f..676bbd44a7c41685e5d52689e5df629e28766b4f 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-23  Ken Raeburn  <raeburn@mit.edu>
+
+       * db-int.h: Include sys/param.h if available.
+
 2004-05-07  Ken Raeburn  <raeburn@mit.edu>
 
        * db-int.h: Include machine/endian.h if available.  Check for
index f50f6d0488852f524ca13d935fcfe78583af03d7..bbb22925aabd182ce8a4809636c9618bd11f0e01 100644 (file)
@@ -51,6 +51,9 @@
 #ifdef HAVE_MACHINE_ENDIAN_H
 # include <machine/endian.h>
 #endif
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
 /* Handle both BIG and LITTLE defined and BYTE_ORDER matches one, or
    just one defined; both with and without leading underscores.