Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 19th, 2010 | Syntax: Make | Size: 1.70 KB | Hits: 82 | Expires: Never
Copy text to clipboard
  1. C_PREREQ([2.65])
  2. AC_INIT(src/hybris.cpp,0.7.1)
  3. AM_INIT_AUTOMAKE(hybris,0.7.1)
  4. AC_CONFIG_SRCDIR([config.h.in])
  5. AC_CONFIG_HEADERS([config.h])
  6.  
  7. # Checks for programs.
  8. AC_PROG_CXX
  9. AC_PROG_AWK
  10. AC_PROG_CC
  11. AC_PROG_CPP
  12. AC_PROG_LEX
  13. AC_PROG_INSTALL
  14. AC_PROG_LN_S
  15. AC_PROG_MAKE_SET
  16. AC_PROG_RANLIB
  17.  
  18. # Checks for libraries.
  19. # FIXME: Replace `main' with a function in `-lc':
  20. AC_CHECK_LIB([c], [main])
  21. # FIXME: Replace `main' with a function in `-lcurl':
  22. AC_CHECK_LIB([curl], [main])
  23. # FIXME: Replace `main' with a function in `-ldl':
  24. AC_CHECK_LIB([dl], [main])
  25. # FIXME: Replace `main' with a function in `-lm':
  26. AC_CHECK_LIB([m], [main])
  27. # FIXME: Replace `main' with a function in `-lpcrecpp':
  28. AC_CHECK_LIB([pcrecpp], [main])
  29. # FIXME: Replace `main' with a function in `-lpthread':
  30. AC_CHECK_LIB([pthread], [main])
  31. # FIXME: Replace `main' with a function in `-lxml2':
  32. AC_CHECK_LIB([xml2], [main])
  33. # FIXME: Replace `main' with a function in `-lz':
  34. AC_CHECK_LIB([z], [main])
  35.  
  36. # Checks for header files.
  37. AC_FUNC_ALLOCA
  38. AC_HEADER_RESOLV
  39. AC_CHECK_HEADERS([arpa/inet.h inttypes.h libintl.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
  40.  
  41. # Checks for typedefs, structures, and compiler characteristics.
  42. AC_HEADER_STDBOOL
  43. AC_C_INLINE
  44. AC_TYPE_INT16_T
  45. AC_TYPE_INT32_T
  46. AC_TYPE_INT8_T
  47. AC_TYPE_SIZE_T
  48. AC_TYPE_UINT16_T
  49. AC_TYPE_UINT32_T
  50. AC_TYPE_UINT8_T
  51.  
  52. # Checks for library functions.
  53. AC_FUNC_FORK
  54. AC_FUNC_MALLOC
  55. AC_FUNC_REALLOC
  56. AC_FUNC_STRTOD
  57. AC_CHECK_FUNCS([bzero floor getcwd gethostbyname gettimeofday memset pow socket sqrt strchr strdup strrchr strtol])
  58.  
  59. AC_CONFIG_FILES([Makefile
  60.                  src/Makefile
  61.                  src/builtins/Makefile])
  62. AC_OUTPUT