configure.ac 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([3xls], [1.0], [zhuyunfei@zh3x.cn])
  5. AC_CONFIG_SRCDIR([ant.cpp])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_CC
  11. # Checks for libraries.
  12. # FIXME: Replace `main' with a function in `-lboost_chrono':
  13. AC_CHECK_LIB([boost_chrono], [main])
  14. # FIXME: Replace `main' with a function in `-lboost_system':
  15. AC_CHECK_LIB([boost_system], [main])
  16. # FIXME: Replace `main' with a function in `-lboost_thread':
  17. AC_CHECK_LIB([boost_thread], [main])
  18. # FIXME: Replace `main' with a function in `-lev':
  19. AC_CHECK_LIB([ev], [main])
  20. # FIXME: Replace `main' with a function in `-lmysqlclient':
  21. AC_CHECK_LIB([mysqlclient], [main])
  22. # FIXME: Replace `main' with a function in `-lrt':
  23. AC_CHECK_LIB([rt], [main])
  24. # FIXME: Replace `main' with a function in `-lthree_rates':
  25. AC_CHECK_LIB([three_rates], [main])
  26. # FIXME: Replace `main' with a function in `-lzlog':
  27. AC_CHECK_LIB([zlog], [main])
  28. # Checks for header files.
  29. AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h limits.h memory.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
  30. # Checks for typedefs, structures, and compiler characteristics.
  31. AC_CHECK_HEADER_STDBOOL
  32. AC_C_INLINE
  33. AC_TYPE_INT16_T
  34. AC_TYPE_INT32_T
  35. AC_TYPE_INT64_T
  36. AC_TYPE_INT8_T
  37. AC_TYPE_SIZE_T
  38. AC_TYPE_UINT16_T
  39. AC_TYPE_UINT32_T
  40. AC_TYPE_UINT64_T
  41. AC_TYPE_UINT8_T
  42. # Checks for library functions.
  43. AC_FUNC_MALLOC
  44. AC_FUNC_MKTIME
  45. AC_FUNC_REALLOC
  46. AC_CHECK_FUNCS([alarm atexit clock_gettime floor gettimeofday inet_ntoa localtime_r memmove memset mkdir pow socket sqrt stime strchr strstr])
  47. AC_CONFIG_FILES([Makefile])
  48. AC_CONFIG_SUBDIRS([db
  49. websocket])
  50. AC_OUTPUT