From 5c5efc7d176a08a3486811f3a3a9c37e21e7a67d Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 23 Mar 2017 22:45:59 +0100 Subject: Make the build system handle Asciidoc documentation Asciidoc was selected because of its text-based lightweight markup nature, its extensibility and configurability, and the range of available output formats. Most importantly, it's an acceptable way to write Unix man pages and guides. Despite the surprising lack of pre-existing autotools support, it was quite easy to implement correctly. --- tools/m4/ax_check_a2x.m4 | 5 +++++ tools/m4/ax_check_asciidoc.m4 | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 tools/m4/ax_check_a2x.m4 create mode 100644 tools/m4/ax_check_asciidoc.m4 (limited to 'tools') diff --git a/tools/m4/ax_check_a2x.m4 b/tools/m4/ax_check_a2x.m4 new file mode 100644 index 00000000..438e2478 --- /dev/null +++ b/tools/m4/ax_check_a2x.m4 @@ -0,0 +1,5 @@ +AC_DEFUN([AX_CHECK_A2X], + [AC_ARG_VAR([A2X], [path to a2x command]) + AC_CHECK_PROG([A2X], [a2x], [a2x]) + AS_IF([test x"$A2X" = x], [$1]) + AM_CONDITIONAL([HAVE_A2X], [test x"$A2X" != x])]) diff --git a/tools/m4/ax_check_asciidoc.m4 b/tools/m4/ax_check_asciidoc.m4 new file mode 100644 index 00000000..5f6132ac --- /dev/null +++ b/tools/m4/ax_check_asciidoc.m4 @@ -0,0 +1,5 @@ +AC_DEFUN([AX_CHECK_ASCIIDOC], + [AC_ARG_VAR([ASCIIDOC], [path to asciidoc command]) + AC_CHECK_PROG([ASCIIDOC], [asciidoc], [asciidoc]) + AS_IF([test x"$ASCIIDOC" = x], [$1]) + AM_CONDITIONAL([HAVE_ASCIIDOC], [test x"$ASCIIDOC" != x])]) -- cgit v1.2.3