Skip to content

Commit

Permalink
[asperl] integrate mainline changes
Browse files Browse the repository at this point in the history
p4raw-id: //depot/asperl@884
  • Loading branch information
Gurusamy Sarathy committed Apr 8, 1998
2 parents 00dc2f4 + 8c9208b commit ba3eb2a
Show file tree
Hide file tree
Showing 136 changed files with 19,717 additions and 16,358 deletions.
13,860 changes: 11 additions & 13,849 deletions Changes

Large diffs are not rendered by default.

13,909 changes: 13,909 additions & 0 deletions Changes5.004

Large diffs are not rendered by default.

1,604 changes: 952 additions & 652 deletions Configure

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion EXTERN.h
Expand Up @@ -18,12 +18,16 @@
#undef EXTCONST
#undef dEXTCONST
#if defined(VMS) && !defined(__GNUC__)
/* Suppress portability warnings from DECC for VMS-specific extensions */
# ifdef __DECC
# pragma message disable (GLOBALEXT,NOSHAREEXT,READONLYEXT)
# endif
# define EXT globalref
# define dEXT globaldef {"$GLOBAL_RW_VARS"} noshare
# define EXTCONST globalref
# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
#else
# if defined(WIN32) && !defined(__GNUC__) && !defined(PERL_OBJECT)
# if defined(WIN32) && !defined(PERL_STATIC_SYMS) && !defined(__GNUC__) && !defined(PERL_OBJECT)
# ifdef PERLDLL
# define EXT extern __declspec(dllexport)
# define dEXT
Expand Down
62 changes: 44 additions & 18 deletions INSTALL
Expand Up @@ -6,7 +6,7 @@ Install - Build and Installation guide for perl5.

The basic steps to build and install perl5 on a Unix system are:

rm -f config.sh
rm -f config.sh Policy.sh
sh Configure
make
make test
Expand Down Expand Up @@ -70,24 +70,31 @@ pod/perldelta.pod for a description of what's changed.

=head1 Space Requirements

The complete perl5 source tree takes up about 7 MB of disk space. The
complete tree after completing make takes roughly 15 MB, though the
The complete perl5 source tree takes up about 10 MB of disk space. The
complete tree after completing make takes roughly 20 MB, though the
actual total is likely to be quite system-dependent. The installation
directories need something on the order of 7 MB, though again that
directories need something on the order of 10 MB, though again that
value is system-dependent.

=head1 Start with a Fresh Distribution

If you have built perl before, you should clean out the build directory
with the command

make distclean

or

make realclean

The results of a Configure run are stored in the config.sh file. If
you are upgrading from a previous version of perl, or if you change
systems or compilers or make other significant changes, or if you are
experiencing difficulties building perl, you should probably not
re-use your old config.sh. Simply remove it or rename it, e.g.
The only difference between the two is that make distclean also removes
your old config.sh and Policy.sh files.

The results of a Configure run are stored in the config.sh and Policy.sh
files. If you are upgrading from a previous version of perl, or if you
change systems or compilers or make other significant changes, or if
you are experiencing difficulties building perl, you should probably
not re-use your old config.sh. Simply remove it or rename it, e.g.

mv config.sh config.sh.old

Expand All @@ -108,6 +115,11 @@ pick up a precompiled binary, it might not use the same name.
In short, if you wish to use your old config.sh, I recommend running
Configure interactively rather than blindly accepting the defaults.

If your reason to reuse your old config.sh is to save your
particular installation choices, then you can probably achieve the
same effect by using the new Policy.sh file. See the section on
L<"Site-wide Policy settings"> below.

=head1 Run Configure

Configure will figure out various things about your system. Some
Expand Down Expand Up @@ -167,11 +179,11 @@ For my Solaris system, I usually use
=head2 GNU-style configure

If you prefer the GNU-style configure command line interface, you can
use the supplied configure command, e.g.
use the supplied configure.gnu command, e.g.

CC=gcc ./configure.gnu

The configure script emulates a few of the more common configure
The configure.gnu script emulates a few of the more common configure
options. Try

./configure.gnu --help
Expand All @@ -180,7 +192,7 @@ for a listing.

Cross compiling is not supported.

(The file is called configugre.gnu to avoid problems on systems
(The file is called configure.gnu to avoid problems on systems
that would not distinguish the files "Configure" and "configure".)

=head2 Extensions
Expand Down Expand Up @@ -236,6 +248,11 @@ Note: The DB_File module will only work with version 1.x of Berkeley
DB or newer releases of version 2. Configure will automatically detect
this for you and refuse to try to build DB_File with version 2.

If you re-use your old config.sh but change your system (e.g. by
adding libgdbm) Configure will still offer your old choices of extensions
for the default answer, but it will also point out the discrepancy to
you.

Finally, if you have dynamic loading (most modern Unix systems do)
remember that these extensions do not increase the size of your perl
executable, nor do they impact start-up time, so you probably might as
Expand Down Expand Up @@ -457,7 +474,7 @@ installed on multiple systems. Here's one way to do that:
cd /usr/local # Or wherever you specified as $prefix
tar xvf perl5-archive.tar

=head2 Site-wide "Policy" settings
=head2 Site-wide Policy settings

After Configure runs, it stores a number of common site-wide "policy"
answers (such as installation directories and the local perl contact
Expand All @@ -466,6 +483,15 @@ system using the same policy defaults, simply copy the Policy.sh file
to the new system and Configure will use it along with the appropriate
hint file for your system.

Alternatively, if you wish to change some or all of those policy
answers, you should

rm -f Policy.sh

to ensure that Configure doesn't re-use them.

Further information is in the Policy_sh.SH file itself.

=head2 Configure-time Options

There are several different ways to Configure and build perl for your
Expand Down Expand Up @@ -962,8 +988,8 @@ at Perl startup.

=item malloc duplicates

If you get duplicates upon linking for malloc et al, add -DHIDEMYMALLOC
or -DEMBEDMYMALLOC to your ccflags variable in config.sh.
If you get duplicates upon linking for malloc et al, add -DEMBEDMYMALLOC
to your ccflags variable in config.sh.

=item varargs

Expand Down Expand Up @@ -1300,7 +1326,7 @@ In general, you can usually safely upgrade from one version of Perl (e.g.
all of your add-on extensions. You can also safely leave the old version
around in case the new version causes you problems for some reason.
For example, if you want to be sure that your script continues to run
with 5.004_04, simplly replace the '#!/usr/local/bin/perl' line at the
with 5.004_04, simply replace the '#!/usr/local/bin/perl' line at the
top of the script with the particular version you want to run, e.g.
#!/usr/local/bin/perl5.00404.

Expand Down Expand Up @@ -1376,7 +1402,7 @@ to be recompiled to be used with 5.004_50 and later.

If you wish to continue using those extensions under 5.004_04, for
example, then you need to move those extensions from their current
direcotries, which are something like
directories, which are something like

/usr/local/lib/perl5/site_perl/
/usr/local/lib/perl5/site_perl/archname
Expand Down Expand Up @@ -1509,4 +1535,4 @@ above.

=head1 LAST MODIFIED

$Id: INSTALL,v 1.31 1998/03/03 18:08:52 doughera Released $
$Id: INSTALL,v 1.32 1998/03/20 19:20:08 doughera Released $
4 changes: 4 additions & 0 deletions INTERN.h
Expand Up @@ -18,6 +18,10 @@
#undef EXTCONST
#undef dEXTCONST
#if defined(VMS) && !defined(__GNUC__)
/* Suppress portability warnings from DECC for VMS-specific extensions */
# ifdef __DECC
# pragma message disable (GLOBALEXT,NOSHAREEXT,READONLYEXT)
# endif
# define EXT globaldef {"$GLOBAL_RW_VARS"} noshare
# define dEXT globaldef {"$GLOBAL_RW_VARS"} noshare
# define EXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
Expand Down
6 changes: 6 additions & 0 deletions MANIFEST
Expand Up @@ -4,6 +4,7 @@ Changes5.000 Differences between 4.x and 5.000
Changes5.001 Differences between 5.000 and 5.001
Changes5.002 Differences between 5.001 and 5.002
Changes5.003 Differences between 5.002 and 5.003
Changes5.004 Differences between 5.003 and 5.004
Configure Portability tool
Copying The GNU General Public License
EXTERN.h Included before foreign .h files
Expand Down Expand Up @@ -268,6 +269,7 @@ ext/Thread/Thread.pm Thread extension Perl module
ext/Thread/Thread.xs Thread extension external subroutines
ext/Thread/Thread/Queue.pm Thread synchronised queue objects
ext/Thread/Thread/Semaphore.pm Thread semaphore objects
ext/Thread/Thread/Signal.pm Start a thread to run signal handlers
ext/Thread/Thread/Specific.pm Thread specific data access
ext/Thread/create.t Test thread creation
ext/Thread/die.t Test thread die()
Expand Down Expand Up @@ -423,6 +425,7 @@ lib/Exporter.pm Exporter base class
lib/ExtUtils/Command.pm Utilities for Make on non-UNIX platforms
lib/ExtUtils/Embed.pm Utilities for embedding Perl in C programs
lib/ExtUtils/Install.pm Handles 'make install' on extensions
lib/ExtUtils/Installed.pm Information on installed extensions
lib/ExtUtils/Liblist.pm Locates libraries
lib/ExtUtils/MM_OS2.pm MakeMaker methods for OS/2
lib/ExtUtils/MM_Unix.pm MakeMaker base class for Unix
Expand All @@ -432,6 +435,8 @@ lib/ExtUtils/MakeMaker.pm Write Makefiles for extensions
lib/ExtUtils/Manifest.pm Utilities to write MANIFEST files
lib/ExtUtils/Mkbootstrap.pm Writes a bootstrap file (see MakeMaker)
lib/ExtUtils/Mksymlists.pm Writes a linker options file for extensions
lib/ExtUtils/Packlist.pm Manipulates .packlist files
lib/ExtUtils/inst Give information about installed extensions
lib/ExtUtils/testlib.pm Fixes up @INC to use just-built extension
lib/ExtUtils/typemap Extension interface types
lib/ExtUtils/xsubpp External subroutine preprocessor
Expand Down Expand Up @@ -832,6 +837,7 @@ t/op/glob.t See if <*> works
t/op/goto.t See if goto works
t/op/groups.t See if $( works
t/op/gv.t See if typeglobs work
t/op/hashwarn.t See if warnings for bad hash assignments work
t/op/inc.t See if inc/dec of integers near 32 bit limit work
t/op/index.t See if index works
t/op/int.t See if int works
Expand Down
16 changes: 6 additions & 10 deletions ObjXSub.h
Expand Up @@ -105,18 +105,14 @@
#define curpm pPerl->Perl_curpm
#undef curstack
#define curstack pPerl->Perl_curstack
#undef curstackinfo
#define curstackinfo pPerl->Perl_curstackinfo
#undef curstash
#define curstash pPerl->Perl_curstash
#undef curstname
#define curstname pPerl->Perl_curstname
#undef curthr
#define curthr pPerl->Perl_curthr
#undef cxstack
#define cxstack pPerl->Perl_cxstack
#undef cxstack_ix
#define cxstack_ix pPerl->Perl_cxstack_ix
#undef cxstack_max
#define cxstack_max pPerl->Perl_cxstack_max
#undef dbargs
#define dbargs pPerl->Perl_dbargs
#undef debdelim
Expand Down Expand Up @@ -551,14 +547,10 @@
#define siggv pPerl->Perl_siggv
#undef sighandlerp
#define sighandlerp pPerl->Perl_sighandlerp
#undef signalstack
#define signalstack pPerl->Perl_signalstack
#undef sortcop
#define sortcop pPerl->Perl_sortcop
#undef sortcxix
#define sortcxix pPerl->Perl_sortcxix
#undef sortstack
#define sortstack pPerl->Perl_sortstack
#undef sortstash
#define sortstash pPerl->Perl_sortstash
#undef splitstr
Expand Down Expand Up @@ -1228,6 +1220,8 @@
#define newASSIGNOP pPerl->Perl_newASSIGNOP
#undef newCONDOP
#define newCONDOP pPerl->Perl_newCONDOP
#undef newCONSTSUB
#define newCONSTSUB pPerl->Perl_newCONSTSUB
#undef newFORM
#define newFORM pPerl->Perl_newFORM
#undef newFOROP
Expand Down Expand Up @@ -1315,6 +1309,8 @@
#define newWHILEOP pPerl->Perl_newWHILEOP
#undef new_struct_thread
#define new_struct_thread pPerl->Perl_new_struct_thread
#undef new_stackinfo
#define new_stackinfo pPerl->Perl_new_stackinfo
#undef new_sv
#define new_sv pPerl->new_sv
#undef new_xnv
Expand Down

0 comments on commit ba3eb2a

Please sign in to comment.