configure.ac 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([zlog], [1.0], [BUG-REPORT-ADDRESS])
  5. AM_INIT_AUTOMAKE([foreign -Wall])
  6. AC_CONFIG_SRCDIR([log_queue.cpp])
  7. AC_CONFIG_HEADERS([config.h])
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_AWK
  11. AC_PROG_CC
  12. AC_PROG_CPP
  13. AC_PROG_INSTALL
  14. AC_PROG_LN_S
  15. AC_PROG_MAKE_SET
  16. AC_PROG_RANLIB
  17. # Checks for libraries.
  18. # FIXME: Replace `main' with a function in `-ldl':
  19. AC_CHECK_LIB([dl], [main])
  20. # FIXME: Replace `main' with a function in `-lrt':
  21. AC_CHECK_LIB([rt], [main])
  22. # FIXME: Replace `main' with a function in `-lzlog':
  23. AC_CHECK_LIB([zlog], [main])
  24. # Checks for header files.
  25. AC_CHECK_HEADERS([memory.h stdint.h stdlib.h string.h sys/time.h unistd.h])
  26. # Checks for typedefs, structures, and compiler characteristics.
  27. AC_CHECK_HEADER_STDBOOL
  28. AC_C_INLINE
  29. AC_TYPE_INT32_T
  30. AC_TYPE_INT64_T
  31. AC_TYPE_PID_T
  32. AC_TYPE_SIZE_T
  33. AC_TYPE_UINT32_T
  34. AC_TYPE_UINT64_T
  35. AC_TYPE_UINT8_T
  36. LT_INIT
  37. # Checks for library functions.
  38. AC_FUNC_ALLOCA
  39. AC_FUNC_MALLOC
  40. AC_CHECK_FUNCS([clock_gettime gettimeofday localtime_r memmove realpath strchr strerror strstr])
  41. AC_CONFIG_FILES([Makefile])
  42. AC_OUTPUT