8217448: Check for pandoc availability using ENABLE_PANDOC and not PANDOC
Reviewed-by: tbell
--- a/make/CompileToolsJdk.gmk Wed Jan 23 09:52:59 2019 +0100
+++ b/make/CompileToolsJdk.gmk Wed Jan 23 10:23:05 2019 +0100
@@ -90,7 +90,7 @@
# To be able to call the javascript filter when generating man pages using
# pandoc, we need to create this executable wrapper script.
-ifneq ($(PANDOC), )
+ifeq ($(ENABLE_PANDOC), true)
# PANDOC_TROFF_MANPAGE_FILTER is duplicated for export in ToolsJdk.gmk.
PANDOC_TROFF_MANPAGE_FILTER := \
$(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-troff-manpage-filter
--- a/make/UpdateBuildDocs.gmk Wed Jan 23 09:52:59 2019 +0100
+++ b/make/UpdateBuildDocs.gmk Wed Jan 23 10:23:05 2019 +0100
@@ -34,7 +34,7 @@
#
################################################################################
-ifeq ($(PANDOC), )
+ifeq ($(ENABLE_PANDOC), false)
$(info No pandoc executable was detected by configure)
$(error Cannot continue)
endif