lsyncd/configure.ac

30 lines
1.0 KiB
Plaintext
Raw Normal View History

2010-10-14 13:52:01 +00:00
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#AC_PREREQ(2.60)
2010-11-17 19:20:07 +00:00
AC_INIT(lsyncd, 2.0beta2, axkibe@gmail.com)
2010-11-14 19:53:36 +00:00
AC_CONFIG_SRCDIR([lsyncd.c],[lsyncd.lua])
2010-10-14 13:52:01 +00:00
AC_CONFIG_HEADER([config.h])
2010-11-14 19:53:36 +00:00
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
2010-10-14 13:52:01 +00:00
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Checks for libraries.
PKG_CHECK_MODULES(LIBLUA, lua5.1)
# Checks for header files.
2010-10-26 20:29:12 +00:00
AC_CHECK_HEADERS([sys/inotify.h])
AC_ARG_WITH([runner],
2010-11-13 08:50:30 +00:00
[ --with-runner=<dir> Specify directory where lsyncds part written in Lua will be placed.
2010-10-26 20:29:12 +00:00
If missing it will be compiled into the binary)])
if test "x${with_runner}" != x; then
2010-11-13 08:50:30 +00:00
AC_DEFINE_UNQUOTED(LSYNCD_DEFAULT_RUNNER_FILE, "${with_runner}/lsyncd.lua", "descr")
AC_SUBST(RUNNER_DIR, "${with_runner}")
2010-10-26 20:29:12 +00:00
fi
AM_CONDITIONAL([RUNNER], [test x${with_runner} != x])
2010-10-14 13:52:01 +00:00
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT