]> git.donarmstrong.com Git - lilypond.git/commitdiff
* configure.in (NCSB_DIR): --enable-ncsb-dir
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 2 Jan 2006 22:40:51 +0000 (22:40 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 2 Jan 2006 22:40:51 +0000 (22:40 +0000)
(LINK_GXX_STATICALLY): denko.

* configure.in (LINK_GXX_STATICALLY): --enable-ncsb-path option.
use locate to find c059033l.pfb.

configure.in

index 34d9437082a41783bf2169d28f629656b434a2ae..5cb956ec69dc45a3c7495f5371fe0c9a7a2bd1f8 100644 (file)
@@ -121,12 +121,15 @@ AC_MSG_CHECKING([New Century Schoolbook PFB files])
 if test "$NCSB_DIR" = "unknown"; then
   which locate >& /dev/null
   if test "$?" = "0"; then
-      ## sort to give precedence to /usr/  
-      NCSB_DIR=`locate c059033l.pfb | sort -r | head -1`
-      if test "$NCSB_DIR" = "";  then
+      for d in `locate c059033l.pfb `; do
+         if test -f `dirname "$d"`/c059033l.afm ; then
+             NCSB_DIR=`dirname "$d"`
+             break 
+         fi 
+      done
+      if test "$NCSB_DIR" = "unknown";  then
          AC_MSG_WARN(Could not find c059033l.pfb. Use --enable-ncsb-path to set path)
       fi
-      NCSB_DIR=`dirname "$NCSB_DIR"`
   else
      AC_MSG_WARN(Could not find locate(1). Use --enable-ncsb-path to set path to c059033l.pfb)
   fi