LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Mark Hartner (hartner_at_[hidden])
Date: 2002-09-10 15:36:41


> Since MPE uses autoconf's AC_C_BIGENDIAN to define byte ordering, using

Ahh, didn't realize that WORDS_BIGENDIAN was being generated by
autoconf. The offending code would appear to be in the LAM source
acconfig.h, it looks like some confusion over #if's and #ifdef's, and an
incorrect workaround.

<SNIP acconfig.h>
/*
 * Grumble. AC_C_BIGENDIAN #defines WORDS_BIGENDIAN to 1 if we're on
 * a big endian machine. But it leaves it undefined if we're on a
 * little endian machine (same for HAVE_YIELD). This causes "gcc
 * -Wundef" to complain when we use "#if WORDS_BIGENDIAN". So #define
 * it here to be 0 if it isn't already defined.
 */
#ifndef WORDS_BIGENDIAN
#define WORDS_BIGENDIAN 0
#endif
#ifndef HAVE_YIELD
#define HAVE_YIELD 0
#endif
</SNIP>

_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/