From fd30c86674b6cd42c04caefa14a6ddef33be756e Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 20 Jun 2020 10:47:00 +0200 Subject: [PATCH] Remove endianness test (WORDS_BIGENDIAN is unused) Signed-off-by: Stefan Weil --- cmake/Configure.cmake | 8 -------- configure.ac | 17 ----------------- 2 files changed, 25 deletions(-) diff --git a/cmake/Configure.cmake b/cmake/Configure.cmake index 7e456722f..c2130ed07 100644 --- a/cmake/Configure.cmake +++ b/cmake/Configure.cmake @@ -126,14 +126,6 @@ if(TESSDATA_PREFIX) ") endif() -test_big_endian(WORDS_BIGENDIAN) - -file(APPEND ${AUTOCONFIG_SRC} " -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#cmakedefine WORDS_BIGENDIAN 1 -") - ######################################## ################################################################################ diff --git a/configure.ac b/configure.ac index 3f2a54061..f745fb937 100644 --- a/configure.ac +++ b/configure.ac @@ -366,23 +366,6 @@ else AM_CPPFLAGS="$AM_CPPFLAGS -O2 -DNDEBUG" fi -# Always look into a "gnu" directory. -curwd=`pwd` -if test -d $curwd/gnu/include ; then - CPPFLAGS="$CPPFLAGS -I$curwd/gnu/include" -fi -if test -d $curwd/gnu/lib ; then - LDFLAGS="$LDFLAGS -L$curwd/gnu/lib" -fi - -# ---------------------------------------- -# Additional checking of compiler characteristics -# ---------------------------------------- - -# Check Endianness. If Big Endian, this will define WORDS_BIGENDIAN -AC_C_BIGENDIAN - - # ---------------------------------------- # Init libtool # ----------------------------------------