gbranden pushed a commit to branch master
in repository groff.
commit ac44e6891934eb4af03e993044e22915f27f133c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jun 14 08:23:34 2026 -0500
configure.ac: Fix Savannah #67808.
* configure.ac: Make build robust against combination of maintainer
mode, use of GNU Bison, Make's ordering of targets, and out-of-tree
builds. Use `AC_CONFIG_COMMANDS` macro to ensure that the eqn, pic,
and refer directories in the build tree that will be populated by
Bison (or YACC) exist in the event no C++ files from these
subdirectories get compiled first.
Fixes <https://savannah.gnu.org/bugs/?67808>.
---
ChangeLog | 11 +++++++++++
configure.ac | 9 +++++++++
2 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index cda36572a..5b4b9ee1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-06-14 G. Branden Robinson <[email protected]>
+
+ * configure.ac: Make build robust against combination of
+ maintainer mode, use of GNU Bison, Make's ordering of targets,
+ and out-of-tree builds. Use `AC_CONFIG_COMMANDS` macro to
+ ensure that the eqn, pic, and refer directories in the build
+ tree that will be populated by Bison (or YACC) exist in the
+ event no C++ files from these subdirectories get compiled first.
+
+ Fixes <https://savannah.gnu.org/bugs/?67808>.
+
2026-06-11 G. Branden Robinson <[email protected]>
* tmac/an.tmac (RE): Trivially refactor. Rename register
diff --git a/configure.ac b/configure.ac
index db113f81c..0597946f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,6 +196,15 @@ AM_CONDITIONAL([USE_TEX], [test "$groff_use_tex" = yes ])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([test-groff], [chmod +x test-groff])
+
+# Work around major headaches caused by the conjunction of Automake,
+# Bison, and out-of-tree builds.
+AC_CONFIG_COMMANDS([mkdir-bison-paths], [
+ AS_MKDIR_P(["$ac_pwd/src/preproc/pic"])
+ AS_MKDIR_P(["$ac_pwd/src/preproc/eqn"])
+ AS_MKDIR_P(["$ac_pwd/src/preproc/refer"])
+])
+
AC_OUTPUT
echo "
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit