summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--m4/groff.m43
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ff17eebd..71a6609f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2018-11-12 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * m4/groff.m4 (GROFF_PAGE): Try /etc/papersize first.
+
+ Fixes <https://savannah.gnu.org/bugs/index.php?53271>.
+
+2018-11-12 G. Branden Robinson <g.branden.robinson@gmail.com>
+
* bootstrap.conf: Bump Autoconf dependency to 2.68. We need it
to support our bug-reporting URL, which contains a "?".
Strictly, Autoconf 2.65 is fine, but 2.66 and 2.67 broke this.
diff --git a/m4/groff.m4 b/m4/groff.m4
index 13772dc1b..4f08cb98e 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -778,6 +778,9 @@ AC_DEFUN([GROFF_PAGE],
[AC_MSG_CHECKING([default paper size])
groff_prefix="$prefix"
test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
+ if test -z "$PAGE" && test -r /etc/papersize; then
+ PAGE=`cat /etc/papersize`
+ fi
if test -z "$PAGE"; then
descfile=
if test -r "$groff_prefix"/share/groff/font/devps/DESC; then