Bug 696498 - clean up endian configure checks
Summary: clean up endian configure checks
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: All All
: P4 normal
Assignee: Chris Liddell (chrisl)
QA Contact: Bug traffic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 00:48 UTC by Mike Frysinger
Modified: 2016-01-08 07:35 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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