Index: trunk/psconfig/pschecklibs
===================================================================
--- trunk/psconfig/pschecklibs	(revision 17596)
+++ trunk/psconfig/pschecklibs	(revision 17597)
@@ -183,15 +183,16 @@
     my ($name, $tarball, $tardir, $use_equals, $configure_opts, $make_opts, $install_opts) = @_;
 
+    if ($tarball eq "NONE") {
+	print "No tarball available for $name.  You'll have to build it yourself.\n";
+	exit 1;
+    }
+
     if ($name eq "libz") {
-	print "zlib doesn't like psconfigure --- you have to build this yourself.";
-	return 1;
-    }
-
-    if ($tarball eq "NONE") {
-	print "ERROR: require tarball for $name\n";
-	exit 1;
-    }
-
-    $psconfigure = `csh psconfig.csh --psconfigure $version`; chomp $psconfigure;
+	# zlib doesn't like the full list of arguments to configure
+	$psconfigure = "./configure --prefix=$prefix";
+    } else {
+	$psconfigure = `csh psconfig.csh --psconfigure $version`; chomp $psconfigure;
+    }
+
     print "psconfigure: $psconfigure";
 
