Index: zlib-1.1.3/configure
diff -c zlib-1.1.3/configure:1.1.1.1 zlib-1.1.3/configure:1.6
*** zlib-1.1.3/configure:1.1.1.1	Mon Jun 12 16:00:21 2000
--- zlib-1.1.3/configure	Wed Mar  7 21:27:50 2001
***************
*** 69,75 ****
  
  if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
    CC="$cc"
!   SFLAGS=${CFLAGS-"-fPIC -O3"}
    CFLAGS="$cflags"
    case `(uname -s || echo unknown) 2>/dev/null` in
    Linux | linux) LDSHARED=${LDSHARED-"gcc -shared -Wl,-soname,libz.so.1"};;
--- 69,80 ----
  
  if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
    CC="$cc"
!   # All code is PIC on AIX.
!   case `(uname -s || echo unknown) 2>/dev/null` in
!   AIX*) SFLAGS=${CFLAGS-"-O3"}
!         SHAREDLIB='libz.so';;
!   *)    SFLAGS=${CFLAGS-"-fPIC -O3"};;
!   esac
    CFLAGS="$cflags"
    case `(uname -s || echo unknown) 2>/dev/null` in
    Linux | linux) LDSHARED=${LDSHARED-"gcc -shared -Wl,-soname,libz.so.1"};;
***************
*** 79,84 ****
--- 84,99 ----
    # find system name and corresponding cc options
    CC=${CC-cc}
    case `(uname -sr || echo unknown) 2>/dev/null` in
+   AIX*)      SFLAGS=${CFLAGS-"-O3"}
+              case `(uname -m) 2>/dev/null` in
+            ia64) if test "$gcc" -eq 1; then
+                     LDSHARED=${LDSHARED-"$CC -shared  -Wl,-h,libz.so.1"}
+                  else
+                     LDSHARED=${LDSHARED-"$CC -G -Wl,-h,libz.so.1"}
+                  fi;;
+ 	     *)LDSHARED=${LDSHARED-"$CC -G"};;
+ 	     esac
+ 	     ;;
    HP-UX*)    SFLAGS=${CFLAGS-"-O +z"}
  	     CFLAGS=${CFLAGS-"-O"}
  #	     LDSHARED=${LDSHARED-"ld -b +vnocompatwarnings"}
***************
*** 126,133 ****
  if test $shared -eq 1; then
    echo Checking for shared library support...
    # we must test in two steps (cc then ld), required at least on SunOS 4.x
!   if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
!      test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
      CFLAGS="$SFLAGS"
      LIBS="$SHAREDLIB.$VER"
      echo Building shared library $SHAREDLIB.$VER with $CC.
--- 137,144 ----
  if test $shared -eq 1; then
    echo Checking for shared library support...
    # we must test in two steps (cc then ld), required at least on SunOS 4.x
!   $CC -c $SFLAGS $test.c 2>&1 && $LDSHARED -o $test$shared_ext $test.o 2>&1
!   if test $?; then
      CFLAGS="$SFLAGS"
      LIBS="$SHAREDLIB.$VER"
      echo Building shared library $SHAREDLIB.$VER with $CC.
