trawick     01/11/28 16:17:32

  Modified:    build    apr_hints.m4 config.guess
  Log:
  get errorcodes.c compiling on AIX 5L again
  
  we didn't recognize 5L, so we didn't define _USE_IRS, so we didn't
  get the prototype for hstrerror(), and I recently told xlc to be
  pickier, so the compiler bailed on a so-called misuse of hstrerror()
  
  Revision  Changes    Path
  1.28      +3 -0      apr/build/apr_hints.m4
  
  Index: apr_hints.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_hints.m4,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- apr_hints.m4      2001/11/27 03:50:49     1.27
  +++ apr_hints.m4      2001/11/29 00:17:32     1.28
  @@ -69,6 +69,9 @@
           *-ibm-aix4.3)
            APR_ADDTO(CPPFLAGS, [-D_USE_IRS -U__STR__])
            ;;
  +        *-ibm-aix5*)
  +         APR_ADDTO(CPPFLAGS, [-D_USE_IRS -U__STR__])
  +         ;;
           *-ibm-aix4.3.*)
               APR_ADDTO(CPPFLAGS, [-D_USE_IRS -U__STR__])
               ;;
  
  
  
  1.6       +3 -2      apr/build/config.guess
  
  Index: config.guess
  ===================================================================
  RCS file: /home/cvs/apr/build/config.guess,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- config.guess      2001/11/21 10:47:23     1.5
  +++ config.guess      2001/11/29 00:17:32     1.6
  @@ -437,7 +437,8 @@
                echo rs6000-ibm-aix3.2
        fi
        exit 0 ;;
  -    *:AIX:*:4)
  +    # next stanza updated from autoconf 2.52 to get support for 5L
  +    *:AIX:*:[45])
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | 
awk '{ print $1 }'`
        if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; 
then
                IBM_ARCH=rs6000
  @@ -447,7 +448,7 @@
        if [ -x /usr/bin/oslevel ] ; then
                IBM_REV=`/usr/bin/oslevel`
        else
  -             IBM_REV=4.${UNAME_RELEASE}
  +             IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
        fi
        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
        exit 0 ;;
  
  
  

Reply via email to