timed tail for logfiles. Display loglines given a minimum date and/or a maximum date.
c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([ttail], [0.0.1], [yann.weber@member.fsf.org])
  5. AC_CONFIG_HEADERS([src/include/config.h])
  6. AC_CONFIG_SRCDIR([src/ttail.c])
  7. AC_CONFIG_MACRO_DIR([m4])
  8. # Checks for programs.
  9. AC_GNU_SOURCE
  10. AC_PROG_CC
  11. AM_PROG_CC_C_O
  12. AC_PROG_MAKE_SET
  13. AC_PROG_RANLIB
  14. # Checks for libraries.
  15. AC_SEARCH_LIBS([dlopen], [dl dld], [], [
  16. AC_MSG_ERROR([unable to find the dlopen() function])
  17. ])
  18. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
  19. # Checks for header files.
  20. AC_CHECK_HEADERS([stdlib.h string.h])
  21. # Checks for typedefs, structures, and compiler characteristics.
  22. AC_TYPE_SIZE_T
  23. #CFLAGS="$CFLAGS -I$(top_builddir)/src/include/"
  24. # Checks for library functions.
  25. AC_FUNC_MALLOC
  26. AC_FUNC_REALLOC
  27. AC_ARG_ENABLE([debug],[ --enable-debug turn on debugging],
  28. [case "${enableval}" in
  29. yes) debug=true ;;
  30. no) debug=false ;;
  31. *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
  32. esac],[debug=false])
  33. AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
  34. AS_IF([test x$debug = xtrue], [
  35. AX_CHECK_CFLAGS([-Wall])
  36. AX_CHECK_CFLAGS([-g])
  37. AX_CHECK_CFLAGS([-ggdb])
  38. AX_CHECK_CFLAGS([-O0])
  39. ],
  40. [
  41. AX_CHECK_CFLAGS([-O2])
  42. AX_CHECK_CFLAGS([-std=c99 -pedantic])
  43. AX_CHECK_CFLAGS([-ansi])
  44. AX_CHECK_CFLAGS([-Wall -Werror])
  45. AX_CHECK_CFLAGS([-fgnu89-inline])
  46. ])
  47. AX_CHECK_CFLAGS([-D_XOPEN_SOURCE -D_GNU_SOURCE])
  48. AM_INIT_AUTOMAKE
  49. AC_CONFIG_FILES([Makefile
  50. src/Makefile
  51. tests/Makefile])
  52. AC_OUTPUT