Check for presence of a2x (from asciidoc) in configure and use path in Makefile

This commit is contained in:
Dennis Schridde 2012-10-02 02:16:00 +02:00
parent ddbf2c2a19
commit 88bc95fd67
2 changed files with 7 additions and 1 deletions

View File

@ -35,7 +35,7 @@ EXTRA_DIST = doc/lsyncd.1.txt inotify.c fsevents.c bin2carray.lua \
default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
doc/lsyncd.1: doc/lsyncd.1.txt
a2x --format=manpage $<
$(A2X) --format=manpage $<
CLEANFILES = runner.out defaults.out runner.c defaults.c

View File

@ -5,11 +5,17 @@ AC_INIT(lsyncd, 2.0.7, axkibe@gmail.com)
AC_CONFIG_SRCDIR([lsyncd.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PATH_PROG([A2X], [a2x], [no])
if test x${A2X} = xno ; then
AC_MSG_ERROR([Program 'a2x' (package asciidoc) is required])
fi
###
# Checks for lua
PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1.3],,[