shithub: libsamplerate

Download patch

ref: 1442221b7544833dd6b50beb22135a7e17d85ccf
parent: 7c49952d2096e49d81731f22344fcd752fbfe2d5
author: Erik de Castro Lopo <[email protected]>
date: Tue Sep 29 06:37:58 EDT 2009

M4/endian.m4 : Fix detection of CPU endian-ness when cross compiling.

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-16  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
+
+    * M4/endian.m4
+    Fix detection of CPU endian-ness when cross compiling.
+
 2009-08-24  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
     * tests/termination_test.c
--- a/M4/endian.m4
+++ b/M4/endian.m4
@@ -92,13 +92,11 @@
 		[
 		case "$target_cpu" in
 			alpha* | i?86* | mipsel* | ia64*)
-				ac_cv_c_big_endian=0
-				ac_cv_c_little_endian=1
+				ac_cv_c_byte_order=little
 				;;
 			
 			m68* | mips* | powerpc* | hppa* | sparc*)
-				ac_cv_c_big_endian=1
-				ac_cv_c_little_endian=0
+				ac_cv_c_byte_order=big
 				;;
 	
 			esac
@@ -116,7 +114,6 @@
 			return (u.c [sizeof (long) - 1] == 1);
 			}
 			]], , ac_cv_c_byte_order=big, 
-			ac_cv_c_byte_order=unknown
 			)
 
 		AC_TRY_RUN(
@@ -129,7 +126,6 @@
 			u.l = 1 ;
 			return (u.c [0] == 1);
 			}]], , ac_cv_c_byte_order=little, 
-			ac_cv_c_byte_order=unknown
 			)
 		fi	
 	fi