gbranden pushed a commit to branch master
in repository groff.

commit 9e2e1caf3159c556b1f300834ad13f903cc98a6c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Feb 3 05:35:32 2026 -0600

    [build]: Report gropdf service level.
    
    ...in configuration summary.
    
    * m4/groff.m4 (GROFF_GROPDF_DEPENDENCIES_CHECK): Drop unused shell
      variables `use_gropdf` and `gropdf_missing_deps`.  Add new shell
      variable `gropdf_service_level`, to be used (only) for reporting an
      intelligible meaning to a human in the configuration summary.  Default
      value to "full".  If URW fonts are unavailable, demote value to
      "intermediate".  If Ghostscript is unavailable, demote value to
      "basic".
    
    * configure.ac: Rearrange summary and disclose gropdf service level in
      it.  Report URW font directory (if applicable) after Ghostscript
      command name and before the gropdf service level, since the first two
      determine the last.
    
    Completes "action item C" from <https://lists.gnu.org/archive/html/\
    groff/2026-02/msg00004.html>.
---
 ChangeLog    | 19 +++++++++++++++++++
 configure.ac | 17 ++++++++---------
 m4/groff.m4  | 13 +++++++------
 3 files changed, 34 insertions(+), 15 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 83b2ae2b7..7545607ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2026-02-03  G. Branden Robinson <[email protected]>
+
+       [build]: Report gropdf service level in configuration summary.
+
+       * m4/groff.m4 (GROFF_GROPDF_DEPENDENCIES_CHECK): Drop unused
+       shell variables `use_gropdf` and `gropdf_missing_deps`.  Add new
+       shell variable `gropdf_service_level`, to be used (only) for
+       reporting an intelligible meaning to a human in the
+       configuration summary.  Default value to "full".  If URW fonts
+       are unavailable, demote value to "intermediate".  If Ghostscript
+       is unavailable, demote value to "basic".
+       * configure.ac: Rearrange summary and disclose gropdf service
+       level in it.  Report URW font directory (if applicable) after
+       Ghostscript command name and before the gropdf service level,
+       since the first two determine the last.
+
+       Completes "action item C" from <https://lists.gnu.org/archive/\
+       html/groff/2026-02/msg00004.html>.
+
 2026-02-03  G. Branden Robinson <[email protected]>
 
        [build]: Kill off `GROFF_GROPDF_PROGRAM_NOTICE`.
diff --git a/configure.ac b/configure.ac
index ef2e50f45..af7e14cc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -217,6 +217,13 @@ echo "\
  C compiler and options           : $CC $CFLAGS $CPPFLAGS
  Perl interpreter version         : $perl_version
  Ghostscript command              : $GHOSTSCRIPT"
+if test "$groff_have_urw_fonts" = yes
+then
+ echo "\
+ URW fonts directory              : $urwfontsdir"
+fi
+ echo "\
+ gropdf service level             : $gropdf_service_level"
 if test "$groff_no_x" = yes
 then
   echo "\
@@ -227,16 +234,8 @@ else
  X11 app defaults directory       : $appdefdir"
 fi
 echo "\
- default paper format             : $PAGE"
-echo "\
+ default paper format             : $PAGE
  'groff -l' uses print spooler    : $groff_have_spooler
- use URW fonts for PDF output     : $groff_have_urw_fonts"
-if test "$groff_have_urw_fonts" = yes
-then
- echo "\
- URW fonts directory              : $urwfontsdir"
-fi
-echo "\
  preconv can use uchardet library : $groff_have_uchardet
  can build groff.{info,html,txt}  : $groff_have_makeinfo
  can build groff.{dvi,pdf}        : $groff_use_tex
diff --git a/m4/groff.m4 b/m4/groff.m4
index 3fdfe90c2..3241fab2d 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -271,16 +271,17 @@ AC_DEFUN([GROFF_GROPDF_DEPENDENCIES_CHECK], [
   AC_REQUIRE([GROFF_GHOSTSCRIPT_PATH])
   AC_REQUIRE([GROFF_URW_FONTS_CHECK])
 
-  use_gropdf=no
-  gropdf_missing_deps=
+  gropdf_service_level=full
 
-  if test "$GHOSTSCRIPT" != missing \
-    || test "$groff_have_urw_fonts" = yes
+  if test "$groff_have_urw_fonts" != yes
   then
-    use_gropdf=yes
+    gropdf_service_level=intermediate
   fi
 
-  AC_SUBST([use_gropdf])
+  if test "$GHOSTSCRIPT" = missing
+  then
+    gropdf_service_level=basic
+  fi
 ])
 
 AC_DEFUN([GROFF_MAKEINFO_PROGRAM_NOTICE], [

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to