This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Removed NeXT support
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Mon, 16 Jun 2014 11:56:37 +0000 (13:56 +0200)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Mon, 16 Jun 2014 11:56:37 +0000 (13:56 +0200)
backport of beab9ebe349dffa8fc22a2912b83f62d2365e594

U/a_dvisory/multiarch.U
U/compline/d_closedir.U
U/modified/Oldconfig.U
U/modified/nis.U
U/perl/d_dirfd.U
U/perl/dlsrc.U
U/perl/libperl.U

index 148d7e3..811af88 100644 (file)
@@ -27,7 +27,7 @@
 ?H:.
 : Check if is a multiplatform env
 case "$osname" in
-next|darwin) multiarch="$define" ;;
+darwin) multiarch="$define" ;;
 esac
 case "$multiarch" in
 ''|[nN]*) multiarch="$undef" ;;
index 6313089..2dff975 100644 (file)
@@ -70,9 +70,6 @@ case "$d_closedir" in
 #endif
 #if defined(I_DIRENT)
 #include <dirent.h>
-#if defined(NeXT) && defined(I_SYS_DIR) /* NeXT needs dirent + sys/dir.h */
-#include <sys/dir.h>
-#endif
 #else
 #ifdef I_SYS_NDIR
 #include <sys/ndir.h>
index 20aa72e..22a96e7 100644 (file)
@@ -199,8 +199,6 @@ EOM
        $test -f /unicosmk && osname=unicosmk && osvers=`$uname -r`
        $test -f /unicosmk.ar && osname=unicosmk && osvers=`$uname -r`
        $test -f /bin/mips && /bin/mips && osname=mips
-       $test -d /NextApps && set X `hostinfo | grep 'NeXT Mach.*:' | \
-               $sed -e 's/://' -e 's/\./_/'` && osname=next && osvers=$4
        $test -d /usr/apollo/bin && osname=apollo
        $test -f /etc/saf/_sactab && osname=svr4
        $test -d /usr/include/minix && osname=minix
@@ -244,7 +242,6 @@ EOM
                        *) osname=mips ;;
                        esac;;
                [23]100) osname=mips ;;
-               next*) osname=next ;;
 ?X: Interactive Unix.
                i386*)
                        tmp=`/bin/uname -X 2>/dev/null|awk '/3\.2v[45]/{ print $(NF) }'`
@@ -370,7 +367,6 @@ EOM
                        *) osname=newsos ;;
                        esac
                        ;;
-               next*) osname=next ;;
                nonstop-ux) osname=nonstopux ;;
                openbsd) osname=openbsd
                        osvers="$3"
index 9f74ace..ec952f6 100644 (file)
 ?X: and NetInfo. But since it has both, it's ok to put the test inside the if.
 ?X: Contributed by Thomas Neumann <tom@smart.bo.open.de>.
 if $test -d /usr/etc/yp || $test -d /etc/yp || $test -d /usr/lib/yp; then
-       if $test -f /usr/etc/nibindd; then
-               echo " "
-               echo "I'm fairly confident you're on a NeXT."
-@if passcat || groupcat
-               echo " "
-               rp='Do you get the passwd file via NetInfo?'
-               dflt=y
-               case "$passcat" in
-               nidump*) ;;
-               '') ;;
-               *) dflt=n;;
-               esac
-               . ./myread
-               case "$ans" in
-               y*) passcat='nidump passwd .'
-@if groupcat
-                       echo "(Assuming /etc/group is also distributed.)"
-                       groupcat='nidump group .'
-@end
-                       ;;
-               *)      echo "You told me, so don't blame me."
-                       case "$passcat" in
-                       nidump*) passcat=''
-@if groupcat
-                                groupcat='';;
-@end
-                       esac
-@if groupcat
-                       echo "(Assuming /etc/group is handled the same way.)"
-@end
-                       ;;
-               esac
-@end
-@if hostcat
-               echo " "
-               rp='Do you get the hosts file via NetInfo?'
-               dflt=y
-               case "$hostcat" in
-               nidump*) ;;
-               '') ;;
-               *) dflt=n;;
-               esac
-               . ./myread
-               case "$ans" in
-               y*) hostcat='nidump hosts .';;
-               *)      case "$hostcat" in
-                       nidump*) hostcat='';;
-                       esac
-                       ;;
-               esac
-@end
-       fi
 @if passcat || groupcat
        case "$passcat" in
        nidump*) ;;
index 96ee1d1..2ad9ca8 100644 (file)
@@ -41,9 +41,6 @@ $cat >dirfd.c <<EOM
 #endif
 #if defined(I_DIRENT)
 #include <dirent.h>
-#if defined(NeXT) && defined(I_SYS_DIR) /* NeXT needs dirent + sys/dir.h */
-#include <sys/dir.h>
-#endif
 #else
 #ifdef I_SYS_NDIR
 #include <sys/ndir.h>
index 01cbc78..692d532 100644 (file)
@@ -134,7 +134,6 @@ EOM
            '') case "$gccversion" in
                '') case "$osname" in
                        hpux)   dflt='+z' ;;
-                       next)   dflt='none' ;;
                        irix*)  dflt='-KPIC' ;;
                        svr4*|esix*|solaris|nonstopux) dflt='-KPIC' ;;
                        sunos)  dflt='-pic' ;;
@@ -252,7 +251,6 @@ EOM
                          esac
                          ;;
                    *linux*|irix*|gnu*)  dflt="-shared $optimize" ;;
-                   next)  dflt='none' ;;
                    solaris) # See [perl #66604].
                            # On Solaris 11, gcc -m64 on amd64
                            # appears not to understand -G.  gcc versions at
@@ -332,8 +330,8 @@ EOM
        case "$ccdlflags" in
            '') case "$osname" in
                    *linux*|hpux|gnu*) dflt='-Wl,-E' ;;
-                   next|sunos)      dflt='none'   ;;
-                   *)               dflt='none'   ;;
+                   sunos)             dflt='none'   ;;
+                   *)                 dflt='none'   ;;
                esac ;;
            ' ') dflt='none' ;;
            *)   dflt="$ccdlflags" ;;
index 860d31a..91a2b3b 100644 (file)
@@ -66,15 +66,6 @@ $undef)
                        dflt=y
                        also='Building a shared libperl is required for dynamic loading to work on your system.'
                        ;;
-               next*)
-                       case "$osvers" in
-                       4*)     dflt=y
-                               also='Building a shared libperl is needed for MAB support.'
-                               ;;
-                       *)      dflt=n
-                               ;;
-                       esac
-                       ;;
                *)      dflt=n
                        ;;
                esac
@@ -132,10 +123,6 @@ true)
                # I'd prefer to keep the os-specific stuff here to a minimum, and
                # rely on figuring it out from the naming of libc.
                case "${osname}${osvers}" in
-               next4*)
-                       dflt=libperl.5.$so
-                       # XXX How handle the --version stuff for MAB?
-                       ;;
                *linux*|gnu*)  # ld won't link with a bare -lperl otherwise.
                        dflt=libperl.$so
                        ;;
@@ -230,9 +217,6 @@ if "$useshrplib"; then
        bsdos|linux|irix*|dec_osf|gnu*)
                xxx="-Wl,-rpath,$shrpdir"
                ;;
-       next)
-               # next doesn't like the default...
-               ;;
        haiku)
                # Haiku doesn't like the default, either.
                ;;