[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 25/74: [build]: Skip an Autoconf check if not necessary.
From: |
G. Branden Robinson |
Subject: |
[groff] 25/74: [build]: Skip an Autoconf check if not necessary. |
Date: |
Fri, 28 Apr 2023 15:10:43 -0400 (EDT) |
gbranden pushed a commit to branch branden-2023-04-28
in repository groff.
commit 1648836e89b4e7e7cde1d57db3c3fef77bc0f244
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 28 12:56:33 2023 -0500
[build]: Skip an Autoconf check if not necessary.
* m4/groff.m4 (GROFF_PNMTOPS_NOSETPAGE): Skip check if no "pnmtops"
command was found.
This commit omits an indentation update so as to clarify the change.
---
ChangeLog | 7 +++++++
m4/groff.m4 | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 49a08d1f0..681ac5259 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-28 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [build]: Skip an Autoconf check if not necessary.
+
+ * m4/groff.m4 (GROFF_PNMTOPS_NOSETPAGE): Skip check if no
+ "pnmtops" command was found.
+
2023-04-06 G. Branden Robinson <g.branden.robinson@gmail.com>
[doc]: Abstract document dependencies on the mom package.
diff --git a/m4/groff.m4 b/m4/groff.m4
index 3e8b38697..55f056d8d 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -479,6 +479,10 @@ AC_DEFUN([GROFF_PNMTOOLS_CAN_BE_QUIET], [
AC_DEFUN([GROFF_PNMTOPS_NOSETPAGE], [
AC_REQUIRE([GROFF_PNMTOOLS_CAN_BE_QUIET])
+ if test "$pnmtops" = missing
+ then
+ pnmtops_nosetpage=no
+ else
pnmtops_nosetpage="pnmtops $pnmtools_quiet"
AC_MSG_CHECKING([whether pnmtops accepts the '-nosetpage' option])
if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1
@@ -488,6 +492,7 @@ AC_DEFUN([GROFF_PNMTOPS_NOSETPAGE], [
else
AC_MSG_RESULT([no])
fi
+ fi
AC_SUBST([pnmtops_nosetpage])
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 25/74: [build]: Skip an Autoconf check if not necessary.,
G. Branden Robinson <=