]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_C_BIGENDIAN): Prefer && to test's -a option, as per "Limitations
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Jun 2002 07:50:42 +0000 (07:50 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Jun 2002 07:50:42 +0000 (07:50 +0000)
of Builtins".

tests/semantics.at

index d1a856c4fbf2bb8008d9540a8ac95b47230cdece..1d8616664ac554a11e13108f17a2a02ae0687987 100644 (file)
@@ -353,11 +353,11 @@ _AT_CHECK_AC_MACRO(
   [cross_compiling=yes
    AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
    ac_prevendian=`cat at-endian`
-   # Chech we have found the same result as in the previous run
+   # Check that we have found the same result as in the previous run
    # or unknown (because the cross-compiling check is allowed to fail;
    # although it might be interesting to suppress this comparison, just
    # to know on which system it fails if it ever does).
-   if test $ac_endian != $ac_prevendian -a $ac_endian != unknown; then
+   if test $ac_endian != $ac_prevendian && test $ac_endian != unknown; then
      AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian'])
    fi
 ])