summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-09 01:16:10 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-09 01:16:10 +0000
commitc1100addb28e16107d5e99108132db9be79ecafb (patch)
treec9268c755e289f6ff70d23b65d5a858162c11d3e /config
parent31b38d3a74d02a2f64f1f953a2e504172352a0ec (diff)
downloadgcc-c1100addb28e16107d5e99108132db9be79ecafb.tar.gz
* accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with
"-c". Properly quote parameter for AC_MSG_ERROR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/accross.m44
2 files changed, 7 insertions, 2 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 85868b4246a..ac35d3ed19f 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-09 Hans-Peter Nilsson <hp@axis.com>
+
+ * accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with
+ "-c". Properly quote parameter for AC_MSG_ERROR.
+
2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* acinclude.m4: Quote names of macros to be defined by AC_DEFUN
diff --git a/config/accross.m4 b/config/accross.m4
index a4cebf692e1..535a6f5c036 100644
--- a/config/accross.m4
+++ b/config/accross.m4
@@ -64,7 +64,7 @@ void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
] if test -f conftest.c ; then
- if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
+ if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
if test `grep -l BIGenDianSyS conftest.o` ; then
echo $ac_n ' big endian probe OK, ' 1>&AC_FD_MSG
ac_cv_c_bigendian=yes
@@ -93,6 +93,6 @@ else
fi
AC_DEFINE_UNQUOTED(BYTEORDER, $BYTEORDER, [1234 = LIL_ENDIAN, 4321 = BIGENDIAN])
if test $ac_cv_c_bigendian = unknown; then
- AC_MSG_ERROR(unknown endianess - sorry, please pre-set ac_cv_c_bigendian)
+ AC_MSG_ERROR([unknown endianess - sorry, please pre-set ac_cv_c_bigendian])
fi
])