Integrate from mainperl.
Jarkko Hietaniemi [Sat, 13 Feb 1999 15:07:26 +0000 (15:07 +0000)]
p4raw-id: //depot/cfgperl@2907

Configure
Porting/config.sh
Porting/config_H
hints/openbsd.sh
hints/ultrix_4.sh
pod/perldelta.pod
pod/perlport.pod
t/op/filetest.t [changed mode: 0755->0644]
t/op/subst_amp.t [changed mode: 0755->0644]
vms/subconfigure.com

index a421b84..92a7e12 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Mon Feb  8 01:45:46 EET 1999 [metaconfig 3.0 PL70]
+# Generated on Fri Feb 12 13:46:36 EET 1999 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
@@ -2075,7 +2075,11 @@ EOM
                [23]100) osname=mips ;;
                next*) osname=next ;;
                i386*)
-                       if $test -f /etc/kconfig; then
+                       tmp=`/bin/uname -X 2>/dev/null|awk -e '/3\.2v[45]/{ print $(NF) }'`
+                       if $test "$tmp" != "" -a "$3" = "3.2" -a test -e '/etc/systemid'; then
+                               osname='sco'
+                               osvers=$tmp
+                       elif $test -f /etc/kconfig; then
                                osname=isc
                                if test "$lns" = "ln -s"; then
                                        osvers=4
@@ -2085,6 +2089,7 @@ EOM
                                        osvers=2
                                fi
                        fi
+                       unset tmp
                        ;;
                pc*)
                        if test -n "$DJGPP"; then
@@ -2515,7 +2520,7 @@ case "$usethreads" in
                . ./usethreads.cbu
        fi
        case "$osname" in
-       aix|dec_osf|dos_djgpp|freebsd|hpux|irix|linux|os2|solaris|vmesa)
+       aix|dec_osf|dos_djgpp|freebsd|hpux|irix|linux|openbsd|os2|solaris|vmesa)
                # Known thread-capable platforms.
                ;;
        *)
@@ -11931,6 +11936,7 @@ if $test -z ccsym.raw; then
        $cat Cppsym.true
        ccsymbols=''
        cppsymbols=`$cat Cppsym.true`
+        cppsymbols=`echo $cppsymbols`
        cppccsymbols="$cppsymbols"
 else
        if $test -s ccsym.com; then
@@ -11939,6 +11945,7 @@ else
                also='also '
                symbols='ones'
                cppccsymbols=`$cat ccsym.com`
+               cppccsymbols=`echo $cppccsymbols`
                $test "$silent" || sleep 1
        fi
        if $test -s ccsym.cpp; then
@@ -11947,6 +11954,7 @@ else
                $sed -e 's/\(.*\)=.*/\1/' ccsym.cpp
                also='further '
                cppsymbols=`$cat ccsym.cpp`
+               cppsymbols=`echo $cppsymbols`
                $test "$silent" || sleep 1
        fi
        if $test -s ccsym.own; then
@@ -11955,6 +11963,7 @@ else
                $sed -e 's/\(.*\)=1/\1/' ccsym.own
                $sed -e 's/\(.*\)=.*/\1/' ccsym.own | $uniq >>Cppsym.true
                ccsymbols=`$cat ccsym.own`
+               ccsymbols=`echo $ccsymbols`
                $test "$silent" || sleep 1
        fi
 fi
index d6a19ed..ddae299 100644 (file)
@@ -8,7 +8,7 @@
 
 # Package name      : perl5
 # Source directory  : .
-# Configuration time: Mon Feb  8 01:11:15 EET 1999
+# Configuration time: Fri Feb 12 13:48:44 EET 1999
 # Configured by     : jhi
 # Target system     : osf1 alpha.hut.fi v4.0 878 alpha 
 
@@ -52,9 +52,10 @@ cc='cc'
 cccdlflags=' '
 ccdlflags=' '
 ccflags='-pthread -std -D__LANGUAGE_C__'
+ccsymbols='__LANGUAGE_C__=1 _LONGLONG=1 LANGUAGE_C=1 SYSTYPE_BSD=1'
 cf_by='jhi'
 cf_email='yourname@yourhost.yourplace.com'
-cf_time='Mon Feb  8 01:11:15 EET 1999'
+cf_time='Fri Feb 12 13:48:44 EET 1999'
 chgrp=''
 chmod=''
 chown=''
@@ -66,11 +67,13 @@ cp='cp'
 cpio=''
 cpp='cpp'
 cpp_stuff='42'
+cppccsymbols='__alpha=1 __osf__=1 __unix__=1 _SYSTYPE_BSD=1 unix=1'
 cppflags='-pthread -std -D__LANGUAGE_C__'
 cpplast=''
 cppminus=''
 cpprun='/usr/bin/cpp'
 cppstdin='cppstdin'
+cppsymbols=''
 cryptlib=''
 csh='csh'
 d_Gconvert='gcvt((x),(n),(b))'
index 89e106d..70bf0f9 100644 (file)
@@ -17,7 +17,7 @@
 /*
  * Package name      : perl5
  * Source directory  : .
- * Configuration time: Mon Feb  8 01:11:15 EET 1999
+ * Configuration time: Fri Feb 12 13:48:44 EET 1999
  * Configured by     : jhi
  * Target system     : osf1 alpha.hut.fi v4.0 878 alpha 
  */
index 4c98ec8..e9d8ea4 100644 (file)
@@ -48,4 +48,14 @@ d_suidsafe='define'
 # Allow a command-line override, such as -Doptimize=-g
 test "$optimize" || optimize='-O2'
 
+# This script UU/usethreads.cbu will get 'called-back' by Configure 
+# after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOCBU'
+case "$usethreads" in
+$define|true|[yY]*)
+       # any openbsd version dependencies with pthreads?
+       libswanted="$libswanted pthread"
+esac
+EOCBU
+
 # end
index d8d2063..ed9fe5b 100644 (file)
@@ -64,3 +64,7 @@ groupstype='int'
 # configure test should be beefed up to try using the field when
 # it can't find any of the standardly-named fields.
 d_dirnamlen='define'
+
+# Ultrix can mmap only character devices, not regular files,
+# which is rather useless state of things for Perl.
+d_mmap='undef'
index efa52de..2fa7847 100644 (file)
@@ -270,6 +270,13 @@ to skip installing perl also as /usr/bin/perl.  This is useful if you
 prefer not to modify /usr/bin for some reason or another but harmful
 because many scripts assume to find Perl in /usr/bin/perl.
 
+=head1 Configuration Changes
+
+You can use "Configure -Uinstallusrbinperl" which causes installperl
+to skip installing perl also as /usr/bin/perl.  This is useful if you
+prefer not to modify /usr/bin for some reason or another but harmful
+because many scripts assume to find Perl in /usr/bin/perl.
+
 =head1 BUGS
 
 If you find what you think is a bug, you might check the headers of
index 008795c..c1a5483 100644 (file)
@@ -148,6 +148,13 @@ And this example is actually better than the previous one even for Unix
 platforms, because now any C<\015>'s (C<\cM>'s) are stripped out
 (and there was much rejoicing).
 
+An important thing to remember is that functions that return data
+should translate newlines when appropriate.  Often one line of code
+will suffice:
+
+       $data =~ s/\015?\012/\n/g;
+       return $data;
+
 
 =head2 Numbers endianness and Width
 
@@ -197,7 +204,7 @@ S<Mac OS> uses C<:> as a path separator instead of C</>.
 The filesystem may support neither hard links (C<link()>) nor
 symbolic links (C<symlink()>, C<readlink()>, C<lstat()>).
 
-The filesystem may support neither access timestamp nor change
+The filesystem may not support neither access timestamp nor change
 timestamp (meaning that about the only portable timestamp is the
 modification timestamp), or one second granularity of any timestamps
 (e.g. the FAT filesystem limits the time granularity to two seconds).
@@ -570,7 +577,8 @@ Also see:
 =item The djgpp environment for DOS, C<http://www.delorie.com/djgpp/>
 
 =item The EMX environment for DOS, OS/2, etc. C<emx@iaehv.nl>,
-C<http://www.juge.com/bbs/Hobb.19.html>
+C<http://www.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/index.html> or
+C<ftp://hobbes.nmsu.edu/pub/os2/dev/emx>
 
 =item Build instructions for Win32, L<perlwin32>.
 
@@ -768,12 +776,12 @@ delimiting character, VOS files, directories, or links whose names
 contain a slash character cannot be processed.  Such files must be
 renamed before they can be processed by Perl.
 
-The following C functions are unimplemented on VOS, any any attempt by
+The following C functions are unimplemented on VOS, and any attempt by
 Perl to use them will result in a fatal error message and an immediate
-exit from Perl:  dup, do_aspawn, do_spawn, execlp, execl, execvp, fork,
-waitpid.  Once these functions become available in the VOS POSIX.1
-implementation, you can either recompile and rebind Perl, or you can
-download a newer port from ftp.stratus.com.
+exit from Perl:  dup, do_aspawn, do_spawn, fork, waitpid.  Once these
+functions become available in the VOS POSIX.1 implementation, you can
+either recompile and rebind Perl, or you can download a newer port from
+ftp.stratus.com.
 
 The value of C<$^O> on VOS is "VOS".  To determine the architecture that
 you are running on without resorting to loading all of C<%Config> you
@@ -1524,6 +1532,11 @@ Not useful. (S<RISC OS>)
 
 =over 4
 
+=item v1.39, 11 February, 1999
+
+Changes from Jarkko and EMX URL fixes Michael Schwern.  Additional
+note about newlines added.
+
 =item v1.38, 31 December 1998
 
 More changes from Jarkko.
@@ -1588,6 +1601,7 @@ Peter Prymmer E<lt>pvhp@forte.comE<gt>,
 Hugo van der Sanden E<lt>hv@crypt0.demon.co.ukE<gt>,
 Gurusamy Sarathy E<lt>gsar@umich.eduE<gt>,
 Paul J. Schinder E<lt>schinder@pobox.comE<gt>,
+Michael G Schwern E<lt>schwern@pobox.comE<gt>,
 Dan Sugalski E<lt>sugalskd@ous.eduE<gt>,
 Nathan Torkington E<lt>gnat@frii.comE<gt>.
 
@@ -1596,4 +1610,4 @@ E<lt>pudge@pobox.comE<gt>.
 
 =head1 VERSION
 
-Version 1.38, last modified 31 December 1998
+Version 1.39, last modified 11 February 1999
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 2f787ff..6f43c9e 100644 (file)
@@ -62,6 +62,12 @@ $ myname = myhostname
 $ if "''myname'" .eqs. "" THEN myname = f$trnlnm("SYS$NODE")
 $!
 $! ##ADD NEW CONSTANTS HERE##
+$ perl_d_madvise="undef"
+$ perl_d_msync="undef"
+$ perl_d_mprotect="undef"
+$ perl_d_munmap="undef"
+$ perl_d_mmap="undef"
+$ perl_i_sysmman="undef"
 $ perl_d_telldirproto="define"
 $ perl_i_sysmount="undef"
 $ perl_d_fstatfs="undef"
@@ -3066,6 +3072,12 @@ $ WC "i_mntent='" + perl_i_mntent + "'"
 $ WC "d_getmntent='" + perl_d_getmntent + "'"
 $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
 $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
+$ WC "d_madvise='" + perl_d_madvise + "'"
+$ WC "d_msync='" + perl_d_msync + "'"
+$ WC "d_mprotect='" + perl_d_mprotect + "'"
+$ WC "d_munmap='" + perl_d_munmap + "'"
+$ WC "d_mmap='" + perl_d_mmap + "'"
+$ WC "i_sysmman='" + perl_i_sysmman + "'"
 $!
 $! ##WRITE NEW CONSTANTS HERE##
 $!