]> git.wh0rd.org - fontconfig.git/blobdiff - configure.in
Switch to docbook and split documentation into pieces
[fontconfig.git] / configure.in
index bfb8bcbd8f3a9ba29136c9beaf6b877f89cd51a5..ed03f1afb8c33bc32edaaf2170a841107feed9db 100644 (file)
@@ -289,6 +289,20 @@ AC_SUBST(CONFDIR)
 ORTH_FILES=`cd fc-lang && echo *.orth`
 AC_SUBST(ORTH_FILES)
 
+#
+# Figure out where to install documentation
+#
+
+AC_ARG_WITH(docdir,           [  --with-docdir=DIR            Use DIR to store documentation files (default ${datadir}/doc/fontconfig)], confdir="$withval")
+
+if test "x$with_docdir" = "x" ; then
+  DOCDIR='${datadir}/doc/fontconfig'
+else
+  DOCDIR=$with_docdir
+fi
+
+AC_SUBST(DOCDIR)
+
 AC_OUTPUT([
 Makefile 
 fontconfig/Makefile
@@ -296,6 +310,7 @@ fc-lang/Makefile
 src/Makefile
 fc-cache/Makefile
 fc-list/Makefile
+doc/Makefile
 fontconfig.spec
 fontconfig.pc
 fonts.conf