common/autoconf/build-performance.m4

changeset 1028
feeb67be5886
parent 972
f3697e0783e2
child 1133
50aaf272884f
child 2203
28b247535e18
     1.1 --- a/common/autoconf/build-performance.m4	Mon Mar 31 14:06:57 2014 -0700
     1.2 +++ b/common/autoconf/build-performance.m4	Wed Apr 02 10:01:38 2014 -0700
     1.3 @@ -41,6 +41,9 @@
     1.4      # Looks like a MacOSX system
     1.5      NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print [$]5}'`
     1.6      FOUND_CORES=yes
     1.7 +  elif test "x$OPENJDK_BUILD_OS" = xaix ; then
     1.8 +    NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print [$]4 }'`
     1.9 +    FOUND_CORES=yes
    1.10    elif test -n "$NUMBER_OF_PROCESSORS"; then
    1.11      # On windows, look in the env
    1.12      NUM_CORES=$NUMBER_OF_PROCESSORS
    1.13 @@ -68,8 +71,8 @@
    1.14      MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
    1.15      FOUND_MEM=yes
    1.16    elif test -x /usr/sbin/prtconf; then
    1.17 -    # Looks like a Solaris system
    1.18 -    MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print [$]3 }'`
    1.19 +    # Looks like a Solaris or AIX system
    1.20 +    MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [[Ss]]ize" | awk '{ print [$]3 }'`
    1.21      FOUND_MEM=yes
    1.22    elif test -x /usr/sbin/system_profiler; then
    1.23      # Looks like a MacOSX system

mercurial