[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Autoconf source repository branch, master, updated. v2.63-250-
From: |
Eric Blake |
Subject: |
[SCM] GNU Autoconf source repository branch, master, updated. v2.63-250-gc7c8c45 |
Date: |
Mon, 29 Dec 2008 23:24:40 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=c7c8c45b6ffb7dfb5baa56ba6f8995c85b90d4be
The branch, master has been updated
via c7c8c45b6ffb7dfb5baa56ba6f8995c85b90d4be (commit)
from b7b3a0029cd34fc620fbbe3eaff200439c5d2bbc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c7c8c45b6ffb7dfb5baa56ba6f8995c85b90d4be
Author: Bruno Haible <address@hidden>
Date: Mon Dec 29 16:19:31 2008 -0700
Improve multiarch detection.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
indicating a universal build more reliable.
Signed-off-by: Eric Blake <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
lib/autoconf/c.m4 | 25 ++++++++++++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f60e99a..fe0fb5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-26 Bruno Haible <address@hidden>
+
+ Improve multiarch detection.
+ * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
+ indicating a universal build more reliable.
+
2008-12-28 William Pursell <address@hidden> (tiny change)
Use AS_CASE in documented example.
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index b728d80..beaf0b1 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1312,11 +1312,26 @@ AC_DEFUN([AC_C_BIGENDIAN],
]])],
[
# Check for potential -arch flags. It is not universal unless
- # there are some -arch flags. Note that *ppc* also matches
- # ppc64. This check is also rather less than ideal.
- case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
- *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
- esac])
+ # there are at least two -arch flags with different values.
+ ac_arch=
+ ac_prev=
+ for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
+ if test -n "$ac_prev"; then
+ case $ac_word in
+ i?86 | x86_64 | ppc | ppc64)
+ if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
+ ac_arch=$ac_word
+ else
+ ac_cv_c_bigendian=universal
+ break
+ fi
+ ;;
+ esac
+ ac_prev=
+ elif test "x$ac_word" = "x-arch"; then
+ ac_prev=arch
+ fi
+ done])
if test $ac_cv_c_bigendian = unknown; then
# See if sys/param.h defines the BYTE_ORDER macro.
AC_COMPILE_IFELSE(
hooks/post-receive
--
GNU Autoconf source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Autoconf source repository branch, master, updated. v2.63-250-gc7c8c45,
Eric Blake <=