Change 11490 by jhi@alpha on 2001/07/30 01:32:02

        Add the support of asking for extra modules or bundles of modules
        to be fetched from the CPAN and installed as a part of the Perl
        build process.  None of this installation is yet really done;
        only the list is asked, and saved away in extras.lst for
        the build and installation process to worry about later.

Affected files ...

... //depot/perl/Configure#341 edit

Differences ...

==== //depot/perl/Configure#341 (xtext) ====
Index: perl/Configure
--- perl/Configure.~1~  Sun Jul 29 19:45:06 2001
+++ perl/Configure      Sun Jul 29 19:45:06 2001
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Sun Jul 29 20:50:18 EET DST 2001 [metaconfig 3.0 PL70]
+# Generated on Mon Jul 30 05:31:00 EET DST 2001 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by [EMAIL PROTECTED])
 
 cat >c1$$ <<EOF
@@ -178,6 +178,7 @@
 static_ext=''
 useopcode=''
 useposix=''
+extras=''
 d_bsd=''
 d_eunice=''
 d_xenix=''
@@ -6764,6 +6765,57 @@
        installbin="$binexp"
 fi
 
+echo " "
+echo "Any extra modules..." >&4
+case "$extras" in
+'') dflt='y';;
+*) dflt='n';;
+esac
+cat <<EOM
+Perl can be built with extra modules or bundles of modules which
+will be fetched from the CPAN and installed alongside Perl.
+
+Notice that you will need access to the CPAN; either via the Internet,
+or a local copy, for example a CD-ROM or a local CPAN mirror.  (You will
+be asked later to configure the CPAN.pm module which will in turn do
+the installation of the rest of the extra modules or bundles.)
+
+Notice also that if the modules require any external software such as
+libraries (the libz library for the Compress::Zlib module, for example)
+you *NEED* to have any such external software already installed, this
+configuration process will not install such things for you.
+
+If this doesn't make any sense to you, just accept the default '$dflt'.
+EOM
+rp='Install any extra modules (y or n) ?'
+. ./myread
+case "$ans" in
+y|Y)
+       cat <<EOM
+
+Please list any extra modules or bundles to be installed from CPAN,
+with spaces between the names.  The names can be in any format the
+'install' command of CPAN.pm will understand.  (Answer 'none' the
+quotes, to install no extra modules or bundles.)
+EOM
+       rp='Extras?'
+       dflt="$extras"
+       . ./myread
+       extras="$ans"
+esac
+case "$extras" in
+''|'none')
+       val=''
+       $rm -f ../extras.lst
+       ;;
+*)     echo "(Saving the list of extras for later...)"
+       echo $extras > ../extras.lst
+       ;;
+esac
+set extras
+eval $setvar
+echo " "
+
 : Find perl5.005 or later.
 echo "Looking for a previously installed perl5.005 or later... "
 case "$perl5" in
@@ -16976,6 +17028,7 @@
 exe_ext='$exe_ext'
 expr='$expr'
 extensions='$extensions'
+extras='$extras'
 fflushNULL='$fflushNULL'
 fflushall='$fflushall'
 find='$find'
End of Patch.

Reply via email to