Since the AES code builds, and doesn't do any configure-time byte order checks
authorKen Raeburn <raeburn@mit.edu>
Thu, 6 May 2004 01:33:56 +0000 (01:33 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 6 May 2004 01:33:56 +0000 (01:33 +0000)
commit03feec0e60a84cbe1c1f77137eb23b2945fd2c44
tree3dd22dccb7b4c43189f41ab1d5b8df064c8d611a
parent2523b96a81748d0f7c2ad01cf524bbccb00252c3
Since the AES code builds, and doesn't do any configure-time byte order checks
that I noticed, something similar ought to work for the DB code.  This is the
first cut; nightly testing builds should tell us if it's sufficient on most of
the platforms we work on.

* include/db-int.h: Include stdlib.h, and endian.h if available.
(LITTLE_ENDIAN, BIG_ENDIAN, BYTE_ORDER): If not defined, and if versions with
one or two leading underscores are defined, define the no-underscore form in
terms of the with-underscore one.
(DB_BYTE_ORDER): Define by checking LITTLE_ENDIAN, BIG_ENDIAN, and BYTE_ORDER;
report an error if that doesn't work.  Don't check WORDS_BIGENDIAN.

* Makefile.in (all-prerecurse): Make sure headers generated by config.status
are up to date.
(include/config.h, $(srcdir)/include/config.h.in, include/db-config.h): New
rules.
* configure.in: Don't check byte order here.  Check for endian.h.

ticket: 2551
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16317 dc483132-0cff-0310-8789-dd5450dbe970
src/util/db2/ChangeLog
src/util/db2/Makefile.in
src/util/db2/configure.in
src/util/db2/include/ChangeLog
src/util/db2/include/db-int.h