]> git.donarmstrong.com Git - lilypond.git/blobdiff - configure.in
(LY_DEFINE): store name before destroying face.
[lilypond.git] / configure.in
index 46b6feeb9079016d94eec25d8f8af971c2b275ab..a4910f113011e8454a631feb56679b75cb2239e0 100644 (file)
@@ -33,6 +33,14 @@ AC_ARG_ENABLE(gui,
     [  --enable-gui            compile with experimental GNOME output module.  Default: off],
     [gui_b=$enableval])
 
+
+NCSB_DIR=unknown
+AC_ARG_WITH(ncsb-dir,
+[  --with-ncsb-dir=DIR     location of Century Schoolbook fonts
+                            Default: detect with locate(1)],
+    [NCSB_DIR=$withval])
+
+
 reloc_b=no
 AC_ARG_ENABLE(relocation,
     [  --enable-relocation     compile with dynamic relocation.  Default: off],
@@ -41,7 +49,7 @@ AC_ARG_ENABLE(relocation,
 FRAMEWORKDIR=".."
 AC_ARG_WITH(framework-dir,
     [  --with-framework-dir=DIR
-       relative the optional framework directory],[
+                          relative location of framework],[
        if test "$withval" = "yes" -o "$withval" = "no"; then
            AC_MSG_WARN(Usage: --with-framework-dir=../lib/FRAMEWORK/DIR)
        else
@@ -109,6 +117,28 @@ if test "$reloc_b" = "yes"; then
     AC_DEFINE(ARGV0_RELOCATION)
 fi
 
+AC_MSG_CHECKING([New Century Schoolbook PFB files])
+if test "$NCSB_DIR" = "unknown"; then
+  # use `type' command rather than external program `which'
+  type locate >& /dev/null
+  if test "$?" = "0"; 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
+  else
+     AC_MSG_WARN(Could not find locate(1). Use --enable-ncsb-path to set path to c059033l.pfb)
+  fi
+fi
+
+AC_MSG_RESULT($NCSB_DIR)
+AC_SUBST(NCSB_DIR)
+
 STEPMAKE_PANGO_FT2(pangoft2, REQUIRED, 1.6.0)
 #STEPMAKE_PANGO(pango, REQUIRED, 1.6.0)
 STEPMAKE_FONTCONFIG(fontconfig, REQUIRED, 2.2.0)