Re: [perl #17605] strange behaviour (difference between perl 5.6 and perl 5.8.0)...
[p5sagit/p5-mst-13.2.git] / hints / aix.sh
index 427412e..2ef55f2 100644 (file)
@@ -218,7 +218,7 @@ cc*|xlc*) # cc should've been set by line 116 or so if empty.
                *) if test ! -x /QOpenSys/usr/bin/$cc; then
                        # The /QOpenSys/usr/bin/$cc saves us if we are
                        # building natively in OS/400 PASE.
-                       cat <<EOF
+                       cat >&4 <<EOF
 
 ***
 *** You either implicitly or explicitly specified an IBM C compiler,
@@ -560,6 +560,15 @@ EOF
        shift
        libswanted="$*"
        installusrbinperl="$undef"
+
+       # V5R1 doesn't have this (V5R2 does), without knowing
+       # which one we have it's safer to be pessimistic.
+       # Cwd will work fine even without fchdir(), but if
+       # V5R1 tries to use code compiled assuming fchdir(),
+       # lots of grief will issue forth from Cwd.
+       case "$d_fchdir" in
+       '') d_fchdir="$undef" ;;
+       esac
        ;;
 esac