Index: trunk/Ohana/configure.tcsh
===================================================================
--- trunk/Ohana/configure.tcsh	(revision 16968)
+++ trunk/Ohana/configure.tcsh	(revision 17822)
@@ -350,7 +350,19 @@
 foreach f ( ncurses curses termcap )
     foreach g ( $libpath $libdir $syslibpath )
+        # echo "trying $g"
         set name = $g/lib$f.a
+        # echo "trying $name"
         if (-e $name[1]) goto got_curses;
         set name = $g/lib$f.$dlltype
+        # echo "trying $name"
+        if (-e $name[1]) goto got_curses;
+    end
+    # try versioned libraries such as .so.N
+    foreach g ( $libpath $libdir $syslibpath )
+        # echo "trying $g"
+        set name = $g/lib$f.$dlltype.*
+	# echo "$#name : $name[1]"
+        if ($#name < 2) continue
+        # echo "trying $name[1]"
         if (-e $name[1]) goto got_curses;
     end
@@ -359,5 +371,5 @@
 echo "missing a valid curses library"
 echo "missing: $faillibs"
-echo "please find one of them and install them in $lib"
+echo "please find one of them and install them in $libpath"
 exit 1
 
