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