summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2021-05-16 19:18:42 +1000
committerG. Branden Robinson <g.branden.robinson@gmail.com>2021-05-16 19:18:42 +1000
commitebc2637532ff35b1261f6d7cc207f122dc4f2e26 (patch)
tree181ea76d5abee839b7e5e5c9639127e2fe2d32d6 /configure.ac
parent45bf6f574650d1f6c9b2214975c44f9aa5aaaa7b (diff)
downloadgroff-git-ebc2637532ff35b1261f6d7cc207f122dc4f2e26.tar.gz
[configure]: Warn of buggy Ghostscript versions.
* m4/groff.m4 (GROFF_GHOSTSCRIPT_VERSION_CHECK): Add new autoconf macro to check if Ghostscript version. Versions 9.00 <= x < 9.54 suffer from a rendering glitch that affects the AT&T troff (and groff) special character \(lh; see <https://bugs.ghostscript.com/show_bug.cgi?id=703187>. Store the result of the check. (GROFF_GHOSTSCRIPT_VERSION_NOTICE): Add new macro to report the problem detected by GROFF_GHOSTSCRIPT_VERSION_CHECK to the user. * configure.ac: Call the macros in appropriate places. Fixes <https://savannah.gnu.org/bugs/index.php?59531>. I did not name GROFF_GHOSTSCRIPT_VERSION_NOTICE consistently with other groff autoconf macros of similar purpose; I find the existing names, ending in "_CHECK", confusing because these don't perform checks except in a trivial sense (effectively of a single Boolean variable). Instead they are wrappers around a lengthy parameter to AC_MSG_NOTICE. By contrast, GROFF_GHOSTSCRIPT_VERSION_CHECK does the actual ugly business of calling `gs -v`, munging the resulting string, and comparison. (I tried AX_COMPARE_VERSION but couldn't get it to work, and in any case the Ghostscript versioning scheme is simple and sane.) I'm open to feedback on writing more idiomatic autoconf macros.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f3e393bc9..08b7af0fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -166,6 +166,7 @@ GROFF_MAKE_RM
GROFF_DIFF_D
GROFF_HAVE_TEST_EF_OPTION
GROFF_BASH
+GROFF_GHOSTSCRIPT_VERSION_CHECK
gl_GLIBC21
gl_LOCALCHARSET
@@ -236,3 +237,4 @@ echo "\
GROFF_APPRESDIR_CHECK
GROFF_URW_FONTS_CHECK
GROFF_UCHARDET_CHECK
+GROFF_GHOSTSCRIPT_VERSION_NOTICE