- Timestamp:
- Mar 5, 2009, 11:13:29 AM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psconfig/pschecklibs (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
-
branches/cnb_branches/cnb_branch_20090215/psconfig/pschecklibs
r22419 r23197 11 11 $version = ""; 12 12 $build = 0; 13 %force; 13 my %force; 14 my %done; # Tarballs that have been processed 14 15 @tARGV = (); 15 16 for (; @ARGV > 0; ) { … … 132 133 133 134 134 if ((defined $force{lc($name)} or defined $force{'all'}) and lc($tarball) ne "none") { 135 if ((defined $force{lc($name)} or defined $force{'all'}) and 136 not defined $done{$tarball} and lc($tarball) ne "none") { 135 137 # remove it for the list so we can check for -force for a library 136 138 # not in the list 137 139 &buildlib ($name, $tarball, $tardir, $configure_opts, $make_opts, $install_opts); 140 $done{$tarball} = 1; 138 141 delete($force{lc($name)}); 139 142 next; … … 157 160 158 161 if ($auto_force eq "Y") { 159 print "$name will be built\n";162 print "$name will be built\n"; 160 163 } 161 164 162 165 if ($found) { 163 if ($found eq "runtime-only") {164 print "runtime $name ($found)\n";165 push @faillibs, "$name";166 } else {167 print "pass $name ($found)\n";168 }166 if ($found eq "runtime-only") { 167 print "runtime $name ($found)\n"; 168 push @faillibs, "$name"; 169 } else { 170 print "pass $name ($found)\n"; 171 } 169 172 next; 170 173 } else { … … 174 177 175 178 if ($auto_force eq "Y") { 176 print "$name will be built\n";179 print "$name will be built\n"; 177 180 } 178 181 … … 187 190 my $bad_force; 188 191 foreach $k (keys %force) { 192 next if lc($k) eq 'all'; 189 193 print STDERR "\nERROR: -force $k requested but $k isn't in the list of libraries\n"; 190 194 $bad_force = 1; … … 254 258 if ($?) { &failure($name, "failure in configure"); } 255 259 260 my $make = "make"; # Command for make 261 $make .= ' ' . $ENV{'PSCONFIG_MAKEOPTS'} if defined $ENV{'PSCONFIG_MAKEOPTS'}; 262 256 263 if ($make_opts eq "NONE") { 257 vsystem ( "make");264 vsystem ($make); 258 265 } else { 259 266 $make_opts = join (' ', split (',', $make_opts)); 260 vsystem (" make $make_opts");267 vsystem ("$make $make_opts"); 261 268 } 262 269 if ($?) { &failure($name, "failure in make"); } 263 270 264 271 if ($install_opts eq "NONE") { 265 vsystem (" make install");272 vsystem ("$make install"); 266 273 } else { 267 274 $install_opts = join (' ', split (',', $install_opts)); 268 vsystem (" make install $install_opts");275 vsystem ("$make install $install_opts"); 269 276 } 270 277 if ($?) { &failure($name, "failure in make install"); } … … 315 322 # versions libraries if we find only a .so.N without a matching 316 323 # .so, we link this in the installed libdir 317 # XXX this was probably a mistake to allow some systems to build without supplied libs318 if (1) {319 foreach $topdir ( @libpath ) {320 foreach $subdir ( @subdirs ) {321 if ($subdir eq ".") {322 $path = $topdir;323 } else {324 $path = "$topdir/$subdir";325 }326 if (! -e $path) { next; }327 @libnames = <$path/$tryname.$dlltype*>;328 if (@libnames > 0) {329 $libname = @libnames[-1];330 $needdev = 1;331 # print " *** need developer version of $name\n";332 return "runtime-only";333 334 # XXX old option: link in existing library335 # symlink $libname, "$libdir/$f.$dlltype";336 # if ($?) { exit 1; }337 # return $libname;338 }339 }340 }341 }324 # XXX this was probably a mistake to allow some systems to build without supplied libs 325 if (1) { 326 foreach $topdir ( @libpath ) { 327 foreach $subdir ( @subdirs ) { 328 if ($subdir eq ".") { 329 $path = $topdir; 330 } else { 331 $path = "$topdir/$subdir"; 332 } 333 if (! -e $path) { next; } 334 @libnames = <$path/$tryname.$dlltype*>; 335 if (@libnames > 0) { 336 $libname = @libnames[-1]; 337 $needdev = 1; 338 # print " *** need developer version of $name\n"; 339 return "runtime-only"; 340 341 # XXX old option: link in existing library 342 # symlink $libname, "$libdir/$f.$dlltype"; 343 # if ($?) { exit 1; } 344 # return $libname; 345 } 346 } 347 } 348 } 342 349 } 343 350 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.
