[PATCH 01/13] aclocal.m4: remove unused macro

Ruben Kerkhof ruben at rubenkerkhof.com
Sat Mar 18 17:25:31 CET 2017


---
 aclocal.m4 | 36 ------------------------------------
 1 file changed, 36 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index f2775422..a13b71f3 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -34,42 +34,6 @@ for size in 1 2 4 8; 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([
-#include <stdio.h>
-
-unsigned int x = 0x12345678;
-unsigned char *z = (unsigned char *) &x;
-
-int main(void)
-{
-  FILE *f = fopen("conftestresult", "w");
-  if (!f) return 10;
-  fprintf(f, "%02x %02x %02x %02x", *z, *(z+1), *(z+2), *(z+3));
-  fclose(f);
-  exit(0);
-}
-],[
-	endian=`cat conftestresult`
-	if test "$endian" = "12 34 56 78" ; then
-		bird_cv_c_endian=big-endian
-	elif test "$endian" = "78 56 34 12" ; then
-		bird_cv_c_endian=little-endian
-	fi
-],[endian="test program failed"],[endian="not available, we're cross compiling"])
-if test -z "$bird_cv_c_endian" ; then
-	AC_MSG_RESULT($endian)
-	AC_MSG_ERROR([Cannot determine CPU endianity.])
-	fi
-])
-case $bird_cv_c_endian in
-	big-endian)	AC_DEFINE(CPU_BIG_ENDIAN) ;;
-	little-endian)	AC_DEFINE(CPU_LITTLE_ENDIAN) ;;
-	esac
-])
-
 AC_DEFUN([BIRD_CHECK_STRUCT_ALIGN],
 [AC_CACHE_CHECK([usual alignment of structures],bird_cv_c_struct_align,[
 AC_TRY_RUN([
-- 
2.12.0



More information about the Bird-users mailing list