summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-03-26 22:01:17 +0200
committerRichard Braun <rbraun@sceen.net>2017-03-26 22:01:56 +0200
commit9548c77c0f3b5455cd78eabfe329d312d52922a6 (patch)
treea33fb7f21c079be82efc3fdb0cbb4fe1506ca728 /tools
parentc776716dafd6f988f10dc4614feef1a53da57e4b (diff)
doc: use highlight for source code highlighting
Diffstat (limited to 'tools')
-rw-r--r--tools/m4/ax_check_highlight.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/m4/ax_check_highlight.m4 b/tools/m4/ax_check_highlight.m4
new file mode 100644
index 0000000..c72f128
--- /dev/null
+++ b/tools/m4/ax_check_highlight.m4
@@ -0,0 +1,5 @@
+AC_DEFUN([AX_CHECK_HIGHLIGHT],
+ [AC_ARG_VAR([HIGHLIGHT], [path to highlight command])
+ AC_CHECK_PROG([HIGHLIGHT], [highlight], [highlight])
+ AS_IF([test x"$HIGHLIGHT" = x], [$1])
+ AM_CONDITIONAL([HAVE_HIGHLIGHT], [test x"$HIGHLIGHT" != x])])