Re: [ID 20010421.010] Perl 5.6.1 on Unixware 7
[p5sagit/p5-mst-13.2.git] / hints / aix.sh
index b14aad0..2f19f1c 100644 (file)
@@ -138,8 +138,37 @@ case "$cc" in
        optimize='none'
        ;;
      4.4.0.0|4.4.0.1|4.4.0.2)
-       echo >&4 "*** This C compiler ($ccversion) is outdated."
-       echo >&4 "*** Please upgrade to at least 4.4.0.3."
+       cat >&4 <<EOF
+***
+*** This C compiler ($ccversion) is outdated.
+***
+*** Please upgrade to at least 4.4.0.3.
+***
+EOF
+       ;;
+     5.0.0.0)
+       cat >&4 <<EOF
+***
+*** This C compiler ($ccversion) is known to have optimizer problems
+*** when compiling perl.c.
+***
+*** Disabling optimization for that file but consider upgrading
+*** your C compiler.
+***
+EOF
+perl_cflags='optimize='
+       ;;
+     5.0.1.0)
+       cat >&4 <<EOF
+***
+*** This C compiler ($ccversion) is known to have optimizer problems
+*** when compiling regcomp.c.
+***
+*** Disabling optimization for that file but consider upgrading
+*** your C compiler.
+***
+EOF
+regcomp_cflags='optimize='
        ;;
      esac
 esac
@@ -367,13 +396,13 @@ EOM
            ar="ar -X64"
            nm_opt="-X64 $nm_opt"
            # Note: Placing the 'qacflags' variable into the 'ldflags' string
-           # is NOT a typo.  ldqalags is passed to the C compiler for final
+           # is NOT a typo.  ldflags is passed to the C compiler for final
            # linking, and it wants -q64 (-b64 is for ld only!).
            case "$qacflags$qaldflags$qalibs" in
            '');;
            *) ccflags="$ccflags $qacflags"
               ldflags="$ldflags $qacflags"
-              lddqalags="$qaldflags $lddqalags"
+              lddlflags="$qaldflags $lddlflags"
               libswanted="$libswanted $qalibs"
               ;;
            esac