Index: /trunk/psconfig/pschecklibs
===================================================================
--- /trunk/psconfig/pschecklibs	(revision 20296)
+++ /trunk/psconfig/pschecklibs	(revision 20297)
@@ -131,6 +131,10 @@
     if (($auto_force ne "Y") && ($auto_force ne "N")) { die "invalid value for auto_force field\n"; }
 
+
     if ((defined $force{lc($name)} or defined $force{'all'}) and lc($tarball) ne "none") {
+        # remove it for the list so we can check for -force for a library
+        # not in the list
         &buildlib ($name, $tarball, $tardir, $configure_opts, $make_opts, $install_opts);
+        $force{lc($name)} = undef;
         next;
     }
@@ -180,5 +184,16 @@
     &buildlib ($name, $tarball, $tardir, $configure_opts, $make_opts, $install_opts);
 }
-if ($build) { exit 0; }
+
+my $bad_force;
+foreach $k (keys %force) {
+    print STDERR "\nERROR: -force used for $k which isn't in the list\n";
+    $bad_force = 1;
+}
+if ($build) {
+    if ($bad_force) {
+        exit 1;
+    }
+    exit 0;
+}
 print "\n";
 
