diff --git a/ChangeLog b/ChangeLog index 0eb46cb..113008f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-11-04 Ben Elliston + + * config.guess (*:AIX:*:[4567]): Use /usr/biun/lslpp and not + oslevel to determine the OS version number. This gives more a + precise version number. From Michael Felt. + 2014-09-26 Olivier Hainque * config.sub (leon, leon[3-9]): New CPUs. diff --git a/config.guess b/config.guess index 4c185ba..6c32c86 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2014 Free Software Foundation, Inc. -timestamp='2014-03-23' +timestamp='2014-11-04' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -579,8 +579,9 @@ EOF else IBM_ARCH=powerpc fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` + if [ -x /usr/bin/lslpp ] ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi