summaryrefslogtreecommitdiff
path: root/tests/semantics.at
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-03-01 00:18:28 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2007-03-01 00:18:28 +0000
commitb99a9b898d35ea8111cd625fceae856308c8b8a4 (patch)
tree7938c42d9d65b32b238dc58210d228abbb8a37d5 /tests/semantics.at
parenta49bbf7a83ae815b2694688ec74d6375badbaefb (diff)
downloadautoconf-b99a9b898d35ea8111cd625fceae856308c8b8a4.tar.gz
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
Problem reported by Paolo Bonzini in: http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have universal binaries. Problem reported by Elias Pipping.
Diffstat (limited to 'tests/semantics.at')
-rw-r--r--tests/semantics.at17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/semantics.at b/tests/semantics.at
index 304cce4c..0a7afdd9 100644
--- a/tests/semantics.at
+++ b/tests/semantics.at
@@ -2,7 +2,7 @@
AT_BANNER([Semantics.])
-# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 Free Software
+# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007 Free Software
# Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
@@ -470,7 +470,11 @@ AT_KEYWORDS([cross])
# cross-compiling or not.
_AT_CHECK_AC_MACRO(
- [[AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
+ [[AC_C_BIGENDIAN(
+ [ac_endian=big],
+ [ac_endian=little],
+ [ac_endian=unknown],
+ [ac_endian=universal])
echo $ac_endian > at-endian
]])
@@ -479,7 +483,11 @@ _AT_CHECK_AC_MACRO(
[[# Force cross compiling.
cross_compiling=yes
ac_tool_warned=yes
- AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
+ AC_C_BIGENDIAN(
+ [ac_endian=big],
+ [ac_endian=little],
+ [ac_endian=unknown],
+ [ac_endian=universal])
ac_prevendian=`cat at-endian`
# Check that we have found the same result as in the previous run
# or unknown (because the cross-compiling check is allowed to fail;
@@ -490,7 +498,8 @@ _AT_CHECK_AC_MACRO(
fi
]])
-# Make sure AC_C_BIGENDIAN with no argument will define WORDS_BIGENDIAN
+# Make sure AC_C_BIGENDIAN with no argument will create a config.h template
+# containing "WORDS_BIGENDIAN".
AT_CONFIGURE_AC([[AC_C_BIGENDIAN]])
# --force is necessary, the computer might be too fast.
AT_CHECK_AUTOHEADER([--force])