Index: trunk/Ohana/configure
===================================================================
--- trunk/Ohana/configure	(revision 5935)
+++ trunk/Ohana/configure	(revision 5940)
@@ -76,5 +76,5 @@
 # sun (at least) seems to need the socket library 
 # linux does not
-set sockets = ""
+set archlib = ""
 
 # check the hardware architecture:
@@ -91,5 +91,6 @@
      set arch="sun4";
    endif
-   set sockets = "libsocket.a libnsl.a"
+   # XXX old solaris needed termcap for readline
+   set archlib = "libsocket libnsl libtermcap"
    breaksw;
  case Linux:
@@ -112,4 +113,5 @@
 
 # set up the basic directory names:
+# XXX : this should be set based on the rules for libdir below
 set root = `pwd`
 if ($prefix == "") set prefix = $root
@@ -119,9 +121,14 @@
 # check for basic libraries
 set fail = 0
-foreach f ( libpng.a libz.a libjpeg.a libreadline.a libtermcap.a $sockets )
+foreach f ( libpng libz libjpeg libreadline $archlib )
     foreach g ( /usr/lib $lib )
-	set name = "$g/$f"
+	set name = "$g/$f.a"
 	if (-e $name) then
-	    echo "found $g/$f"
+	    echo "found $name"
+	    goto next_lib;
+	endif
+	set name = "$g/$f.so"
+	if (-e $name) then
+	    echo "found $name"
 	    goto next_lib;
 	endif
