bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoconf 2.6.2 AC_C_BIGENDIAN misdetects ppc/linux system as universal


From: Arkadiusz Miskiewicz
Subject: autoconf 2.6.2 AC_C_BIGENDIAN misdetects ppc/linux system as universal
Date: Tue, 10 Jun 2008 21:32:00 +0200
User-agent: PLD Linux KMail/1.9.9

I'm having problem where my linux ppc is misdetected as universal instead of 
big endian.

+    AC_COMPILE_IFELSE(
+      [AC_LANG_SOURCE(
+        [[#if ! (defined __BIG_ENDIAN__ || defined __LITLE_ENDIAN__)
+           neither is defined;
+         #endif
+        ]])],
+      [ac_cv_c_bigendian=universal])

On linux/ppc __BIG_ENDIAN__ is always defined as it's gcc builtin. If I'm 
thinking correctly then this code will always compile and ac_cv_c_bigendian 
will be always set to universal instead of doing more tests...

Correct me if I'm wrong.
-- 
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]