This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Dual-life Text::Abbrev
[perl5.git] / hints / aix_4.sh
old mode 100755 (executable)
new mode 100644 (file)
index 80f309f..08a6894
@@ -119,8 +119,12 @@ case "$cc" in
 # 1506-294 (S) Syntax error in expression on #if directive.
 #
 case "$osvers" in
-    4.2.1.0) ccflags="$ccflags -D_XOPEN_SOURCE" ;;
-    *) ;;
+    4.2.1.0)
+       ccflags="$ccflags -D_XOPEN_SOURCE"
+       # aix 4.2 does not have IPv6 support
+       d_inetpton='undef'
+       d_inetntop='undef'
+       ;;
     esac
 nm_opt='-B'
 
@@ -392,10 +396,10 @@ ldflags_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`"
        ldflags_uselargefiles="`echo $ldflags_uselargefiles`"
        if test X"$use64bitint:$quadtype" = X"$define:long" -o X"$use64bitall" = Xdefine; then
 # Keep this at the left margin.
-libswanted_uselargefiles="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
+libswanted_uselargefiles="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g'`"
        else
 # Keep this at the left margin.
-libswanted_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
+libswanted_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g'`"
            fi
 
        case "$ccflags_uselargefiles$ldflags_uselargefiles$libs_uselargefiles" in
@@ -503,7 +507,7 @@ EOM
        # string is simply not detectable by any means.  Since it doesn't
        # do any harm, I didn't pursue it. -- sh
        qaldflags="`echo $qaldflags`"
-       qalibs="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
+       qalibs="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g'`"
        # -q32 and -b32 may have been set by uselargefiles or user.
        # Remove them.
        ccflags="`echo $ccflags | sed -e 's@-q32@@'`"