Index: /trunk/Ohana/configure.tcsh
===================================================================
--- /trunk/Ohana/configure.tcsh	(revision 11744)
+++ /trunk/Ohana/configure.tcsh	(revision 11745)
@@ -118,5 +118,5 @@
 
 set needlibs = "png z jpeg readline X11 pthread m"
-set syslibpath = "/usr/lib /usr/X11R6/lib /usr/openwin/lib"
+set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/openwin/lib"
 
 set needincs = "math.h fcntl.h malloc.h errno.h time.h memory.h stdlib.h string.h X11/X.h"
@@ -145,4 +145,5 @@
    if ("$mach" == "x86_64") then
     set arch="lin64";
+    set syslibpath = "/lib64 /lib /usr/lib64 /usr/lib /usr/X11R6/lib64 /usr/X11R6/lib"
    endif
    breaksw;
@@ -178,10 +179,11 @@
 set libflags = ""
 set libdirs  = ""
+set nonomatch
 foreach f ( $needlibs )
     foreach g ( $syslibpath $lib $libpath )
-	set name = "$g/lib$f.a"
-	if (-e $name) goto got_lib;
-	set name = "$g/lib$f.so"
-	if (-e $name) goto got_lib;
+	set name = $g/lib$f.a
+	if (-e $name[1]) goto got_lib;
+	set name = $g/lib$f.so*
+	if (-e $name[1]) goto got_lib;
     end
     echo "missing lib$f"
