Bug 696498

Summary: clean up endian configure checks
Product: Ghostscript Reporter: Mike Frysinger <vapier>
Component: Build ProcessAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Mike Frysinger 2016-01-07 00:48:47 UTC
the ghostscript-gpl configure script has big-endian/little-endian options, and a AC_RUN_IFELSE function for detecting it.  all of this should be deleted and replaced with AC_C_BIGENDIAN.  autoconf handles native & cross builds fine.

you can look at the ac_cv_c_bigendian env var for the result of the test if you want to keep things like $BIGENDIAN.  but it also sets up the WORDS_BIGENDIAN define for code to use.
Comment 1 Chris Liddell (chrisl) 2016-01-08 02:40:27 UTC
The reason for the explicit tests is because the AC_C_BIGENDIAN test in autoconf 2.62 (which was in fairly wide spread use when I added that stuff) was known to be buggy and had a number of problems - especially on PowerPC hardware and Apple systems.

It does look like problems have been addressed in that area, so I can probably do it by updating the required version.
Comment 2 Chris Liddell (chrisl) 2016-01-08 07:35:51 UTC
Fixed in:

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=2e8632a