Index: trunk/psconfig/ckperlmods
===================================================================
--- trunk/psconfig/ckperlmods	(revision 11937)
+++ trunk/psconfig/ckperlmods	(revision 11938)
@@ -1,5 +1,5 @@
 #!/usr/bin/env perl
 
-$file = "perl.modules.sh";
+$file = "tagsets/ipp-extperl.dst";
 
 open (FILE, $file) || die "ERROR: can't open perl module list: $file\n";
@@ -16,27 +16,37 @@
 
 $prefix = `csh psconfig.sh --prefix $version`;
+$perl5lib = `csh psconfig.sh --perl5lib $version`;
 $homedir = `pwd`;
 
-foreach $module (@list) {
-    chomp $module;
+foreach $line (@list) {
+    chop $line;
+    if ($line =~ m|^\s*$|) { next; }
+    if ($line =~ m|^\s*\#|) { next; }
+
+    ($N, $module, $tarball) = split (" ", $line);
     
-    if (eval "use $module; 1") {
-	print "$module: found\n";
-    } else {
-	print "$module: missing\n";
-	# try to build the module from ../../extperl/Module.*.tar.gz
-	chdir "../../extperl";
+    if (eval "use $module; 1") { 
+	# print "$module: found\n";
+	next; 
+    }
 
-	print "looking for $module\n";
-	system ("ls");
+    # print "$module: missing\n";
+    # try to build the module from ../../extperl/Module.*.tar.gz
+    chdir "../../extperl";
 
-	# does the module tarball or directory exist?
-	@targets = <$module*.tar.gz>;
-	
-	foreach $file (@targets) {
-	    print "file: $file\n";
-	}
+    print "extract $module from $tarball\n";
+    system ("tar xvzf $tarball");
+    
+    ($tardir) = $tarball =~ m|(\S*).tar.gz|;
+    print "tardir: $tardir\n";
 
-	chdir $homedir;
-    }
+    chdir $tardir;
+    # system ("perl Makefile.PL LIB=$perl5lib");
+    system ("perl Makefile.PL PREFIX=$prefix");
+    system ("make");
+    system ("make install");
+
+    # system ("ls $tarball");
+
+    chdir $homedir;
 }
