summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-04-09 12:40:12 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-05-05 23:48:36 -0500
commit0913df6f5f24ea589b254d6f2a78483bf3a3c5d6 (patch)
tree3811decf3dac17b30ccec12c3a7b606571f08504
parente78c909f0e8ea3ee4a38fb7d93fe350bfae7990b (diff)
linuxdoc: Use XORG_WITH_PS2PDF to check for ps2pdf
Besides reusing existing code, this allows linuxdoc PDF output to be enabled or disabled by configure. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--xorg-macros.m4.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index c291bfc..cce64c7 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -213,9 +213,9 @@ AC_SUBST(XORG_SGML_PATH)
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
AC_DEFUN([XORG_CHECK_LINUXDOC],[
AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
+AC_REQUIRE([XORG_WITH_PS2PDF])
AC_PATH_PROG(LINUXDOC, linuxdoc)
-AC_PATH_PROG(PS2PDF, ps2pdf)
AC_MSG_CHECKING([whether to build documentation])
@@ -231,7 +231,7 @@ AC_MSG_RESULT([$BUILDDOC])
AC_MSG_CHECKING([whether to build pdf documentation])
-if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
+if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then
BUILDPDFDOC=yes
else
BUILDPDFDOC=no