]> git.wh0rd.org - fontconfig.git/blobdiff - configure.in
Yet more cleanups to finish getting 'make distcheck' working This has been
[fontconfig.git] / configure.in
index 20b9dce1bd502eb90e3e433125db3305f2a26507..7ecedf996963f8b3ded69da5ea487c1eea8fa391 100644 (file)
@@ -33,7 +33,7 @@ dnl This is the package version number, not the shared library
 dnl version.  This same version number must appear in fontconfig/fontconfig.h
 dnl Yes, it is a pain to synchronize version numbers.  Unfortunately, it's
 dnl not possible to extract the version number here from fontconfig.h
-AM_INIT_AUTOMAKE(fontconfig, 2.2.90)
+AM_INIT_AUTOMAKE(fontconfig, 2.2.91)
 
 dnl libtool versioning
 
@@ -117,11 +117,12 @@ AC_SUBST(FREETYPE_CFLAGS)
 #  FT_Get_Next_Char
 #  FT_Get_BDF_Property
 #  FT_Get_PS_Font_Info
+#  FT_Has_PS_Glyph_Names
 #
 
 fontconfig_save_libs=$LIBS
 LIBS="$LIBS $FREETYPE_LIBS"
-AC_CHECK_FUNCS(FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info)
+AC_CHECK_FUNCS(FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names)
 LIBS=$fontconfig_save_libs
 
 #
@@ -329,7 +330,7 @@ AC_SUBST(CONFDIR)
 # Find out what language orthographies are included
 #
 
-ORTH_FILES=`cd fc-lang && echo *.orth`
+ORTH_FILES=`cd ${srcdir}/fc-lang && echo *.orth`
 AC_SUBST(ORTH_FILES)
 
 #
@@ -358,11 +359,21 @@ AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = xyes)
 
 if test "x$enable_docs" = xyes; then
        DOCSRC="doc"
+       tmp=funcs.$$
+       cat $srcdir/doc/*.fncs | awk '
+       /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
+       /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
+       /^@@/           { done = 0; }' > $tmp
+       DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
+       echo DOCMAN3 $DOCMAN3
+       rm -f $tmp
 else
        DOCSRC=""
+       DOCMAN3=""
 fi
 
 AC_SUBST(DOCSRC)
+AC_SUBST(DOCMAN3)
 
 #
 # Figure out where to install documentation