summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2023-02-18 11:55:02 -0600
committerG. Branden Robinson <g.branden.robinson@gmail.com>2023-02-18 12:40:04 -0600
commit8316578166a73de1db05c555e640e9153ddc8d5d (patch)
treeccd5920c6daaed75be0fee03ad89b7474bfe4336 /contrib
parentec001d2a23a3b1740e8d004006c0fc0d7fb6e288 (diff)
downloadgroff-git-8316578166a73de1db05c555e640e9153ddc8d5d.tar.gz
[build]: Detangle pdfroff, gropdf config (2/2).
* m4/groff.m4: Give pdfroff its own Autoconf macros to handle dependency checking, build objectives, and user notice. (GROFF_PDFROFF_DEPENDENCIES_CHECK): New macro requires `GROFF_AWK_PATH` and `GROFF_GHOSTSCRIPT_PATH`, determines whether pdfroff can be used at build time, and (if not) constructs part of message to be shown to user explaining why. (GROFF_PDFROFF_PROGRAM_NOTICE): New macro requires `GROFF_PDFROFF_DEPENDENCIES_CHECK` and emits message if needed. (GROFF_GHOSTSCRIPT_AVAILABILITY_NOTICE): Drop mention of impact on pdfroff since its dedicated notice covers this now. * configure.ac: Call the new macros at appropriate times. Produce a new Automake macro, `USE_PDFROFF`, to replace inapposite use of `USE_GROPDF` in pdfmark.am. * contrib/pdfmark/pdfmark.am: Use `USE_PDFROFF` instead of `USE_GROPDF`.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pdfmark/pdfmark.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pdfmark/pdfmark.am b/contrib/pdfmark/pdfmark.am
index 82bd4ff4c..9589a8bc3 100644
--- a/contrib/pdfmark/pdfmark.am
+++ b/contrib/pdfmark/pdfmark.am
@@ -35,7 +35,7 @@ dist_pdfmarktmac_DATA = $(TMACFILES)
# Files installed in $(pdfdocdir)
PDFDOCFILES = \
contrib/pdfmark/pdfmark.pdf
-if USE_GROPDF
+if USE_PDFROFF
pdfmarkpdfdocdir = $(pdfdocdir)
nodist_pdfmarkpdfdoc_DATA = $(PDFDOCFILES)
MOSTLYCLEANFILES += $(PDFDOCFILES)
@@ -87,7 +87,7 @@ mostlyclean_pdfmark:
uninstall_groffdirs: uninstall-pdfmark-hook
uninstall-pdfmark-hook:
-if USE_GROPDF
+if USE_PDFROFF
if test -d $(DESTDIR)$(pdfmarkpdfdocdir); then \
rmdir $(DESTDIR)$(pdfmarkpdfdocdir); \
fi