Arkadiusz Miskiewicz schrieb:
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.


I have a similar bugreport for Fedora at 
https://bugzilla.redhat.com/show_bug.cgi?id=449944

  Karsten


--
 Karsten Hopp        | Mail: [EMAIL PROTECTED]
 Red Hat Deutschland | Tel: +49-711-96437-0
 Hauptstaetterstr.58 | Fax: +49-711-613590
 D-70178 Stuttgart   | http://www.redhat.de


Reply via email to