12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- # -*- Autoconf -*-
- # Process this file with autoconf to produce a configure script.
-
- AC_PREREQ([2.69])
- AC_INIT([ttail], [0.0.1], [yann.weber@member.fsf.org])
-
- #AC_CONFIG_SRCDIR([src/ttail.c])
- AC_CONFIG_MACRO_DIR([m4])
-
- # Checks for programs.
- AC_PROG_CC
- AM_PROG_CC_C_O
- AC_PROG_MAKE_SET
-
- # Checks for libraries.
- AC_SEARCH_LIBS([dlopen], [dl dld], [], [
- AC_MSG_ERROR([unable to find the dlopen() function])
- ])
- PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
-
- # Checks for header files.
- AC_CHECK_HEADERS([stdlib.h string.h])
-
- # Checks for typedefs, structures, and compiler characteristics.
- AC_TYPE_SIZE_T
-
- # Checks for library functions.
- AC_FUNC_MALLOC
- AC_FUNC_REALLOC
-
- AC_ARG_ENABLE([fmt_regex],
- AS_HELP_STRING([--disable-fmt-regex], [Disable regex format detection]))
-
- AS_IF([test "x$enable_fmt_regex" != "xno"], [
- AC_DEFINE([TTAIL_FMT_REGEX], [1],
- [define if using regex format])
- AC_SUBST([WANT_LIBFMT_REGEX],[1])
- ])
-
- AM_INIT_AUTOMAKE
-
- AM_CONDITIONAL([WANT_LIBFMT_REGEX], [test "x$enable_fmt_regex" != "xno"])
-
- AC_CONFIG_FILES([Makefile
- src/Makefile
- tests/Makefile])
- AC_CONFIG_HEADERS([src/include/config.h])
-
- AC_OUTPUT
|