Update to handle newer endian autoconf components.
authorBrian Aker <brian@tangent.org>
Tue, 10 Jul 2012 00:59:13 +0000 (17:59 -0700)
committerBrian Aker <brian@tangent.org>
Tue, 10 Jul 2012 00:59:13 +0000 (17:59 -0700)
configure.ac
m4/bottom.m4

index 13ecc5795615456e6991721395912f26d087c448..97934a57bdee60b9c3dac7f4bd1e0392a1f62be8 100644 (file)
@@ -293,8 +293,6 @@ if test $ac_cv_c_endian = little; then
 fi
 ])
 
-AC_C_ENDIAN
-
 AX_CHECK_SOCK_CLOEXEC([AC_DEFINE([HAVE_SOCK_CLOEXEC], [1], [Check for SOCK_CLOEXEC.])],
                        [AC_DEFINE([HAVE_SOCK_CLOEXEC], [0], [Check for SOCK_CLOEXEC.])])
 
index a772e05945054718d2d1f8a1db8f2cc927e6277f..6306aee178a873508c98976a5ea32c86dfba1019 100644 (file)
@@ -30,6 +30,12 @@ typedef unsigned long int ulong;
 #define RPACKAGE "memcached" 
  
 #define RVERSION "1.4.13"
+
+#ifdef WORDS_BIGENDIAN 
+# define ENDIAN_BIG 1
+#else
+# define ENDIAN_LITTLE 1
+#endif
  
 ])