I have just replied to https://github.com/cr-marcstevens/sha1collisiondetection/pull/42 I checked a gcc compiler on AIX, and I have the defines for vac. I do not have access yet to SLES or RHEL (or Ubuntu), just a "free Debian" on my Power6. * my conclusions|recommendations: a) AIX is always Big Endian, the define _AIX can be used to
determine if AIX b) POWER7 and earlier are always Big Endian c) assuming lscpu is always available on Linux systems a command (in configure?) could be used: root@x074:/usr/bin# lscpu | grep -i endian d) some linux systems (in any case latest versions of RHEL and
SLES enterprise) should have a file named lparcfg in /proc
(/proc/{powerppc|ppc64|ppc64le|ppc64el}/lparcfg - and it might be
in that file. Need to get onto a (POWER8|POWER9) system to check. details re: define of _AIX root@x068:[/data/httpd/gcc]gcc -dM -E - < /dev/null | grep AIX | head -1 #define _AIX 1 michael@x071:[/home/michael]/usr/bin/grep -p DEFLT: /etc/vac.cfg.[567][123] | grep options\ options = -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_IBMR2,-D_POWER options = -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_IBMR2,-D_POWER options = -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_AIX71,-D_IBMR2,-D_POWER options = -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_AIX71,-D_AIX72,-D_IBMR2,-D_POWER michael@x071:[/home/michael]ls /etc/vac.cfg.[567][123] /etc/vac.cfg.53 /etc/vac.cfg.61 /etc/vac.cfg.71 /etc/vac.cfg.72 On 7/30/2018 8:39 PM, Daniel Shumow
wrote:
|