1
# https://github.com/BrianAker/ddm4
2
# ===========================================================================
10
# Generate to defines describing endian.
14
# Copyright (c) 2012 Brian Aker <brian@tangent.org>
16
# Copying and distribution of this file, with or without modification, are
17
# permitted in any medium without royalty provided the copyright notice
18
# and this notice are preserved. This file is offered as-is, without any
23
AC_DEFUN([AX_ENDIAN],[
25
AC_DEFINE([WORDS_BIGENDIAN],[1],[machine is big-endian])
26
AC_DEFINE([ENDIAN_BIG],[1],[machine is big-endian])
27
AC_DEFINE([ENDIAN_LITTLE],[0],[machine is little-endian])],[
29
AC_DEFINE([WORDS_BIGENDIAN],[0],[machine is big-endian])
30
AC_DEFINE([ENDIAN_BIG],[0],[machine is big-endian])
31
AC_DEFINE([ENDIAN_LITTLE],[1],[machine is little-endian])
33
AC_MSG_ERROR([unable to determine endian])