From: Ondrej Zajicek Date: Tue, 27 Oct 2009 21:25:36 +0000 (+0100) Subject: Replaces local endianity testing macro with the common one. X-Git-Tag: v1.2.0~37^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6ff7a08e4e7808e1175c3c3bc830d93c0454b19;p=thirdparty%2Fbird.git Replaces local endianity testing macro with the common one. That makes it easier to integrate BIRD to crosscompiling buildsystems. --- diff --git a/aclocal.m4 b/aclocal.m4 index f3b89530c..c5af7895f 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -26,6 +26,7 @@ for size in 1 2 4 ; do done ]) +dnl BIRD_CHECK_ENDIAN is unused and obsolete AC_DEFUN(BIRD_CHECK_ENDIAN, [AC_CACHE_CHECK([CPU endianity], bird_cv_c_endian,[ AC_TRY_RUN([ diff --git a/configure.in b/configure.in index 8d519fddf..429b22f86 100644 --- a/configure.in +++ b/configure.in @@ -179,8 +179,10 @@ AC_TRY_COMPILE([#include AC_DEFINE(HAVE_SIN_LEN,,sin_len)], AC_MSG_RESULT(no)) +AC_C_BIGENDIAN([AC_DEFINE(CPU_BIG_ENDIAN)], [AC_DEFINE(CPU_LITTLE_ENDIAN)], + [AC_MSG_ERROR([Cannot determine CPU endianity.])]) + BIRD_CHECK_INTEGERS -BIRD_CHECK_ENDIAN BIRD_CHECK_STRUCT_ALIGN BIRD_CHECK_TIME_T BIRD_CHECK_STRUCT_IP_MREQN