configure.ac 823 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.59)
  4. AC_INIT(libmodbus, 1.9, stephane.raimbault@gmail.com)
  5. AM_INIT_AUTOMAKE(libmodbus, 1.9.0)
  6. AM_DISABLE_STATIC
  7. # Checks for programs.
  8. AC_PROG_CC
  9. AC_PROG_MAKE_SET
  10. AC_PROG_LIBTOOL
  11. # Checks for header files.
  12. AC_HEADER_STDC
  13. AC_CHECK_HEADERS([termios.h sys/time.h unistd.h errno.h limits.h fcntl.h sys/types.h sys/socket.h sys/ioctl.h netinet/in.h netinet/ip.h netinet/tcp.h arpa/inet.h])
  14. # Checks for typedefs, structures, and compiler characteristics.
  15. AC_C_CONST
  16. AC_TYPE_SIZE_T
  17. AC_HEADER_TIME
  18. # Checks for library functions.
  19. AC_FUNC_MALLOC
  20. AC_FUNC_SELECT_ARGTYPES
  21. AC_CHECK_FUNCS([inet_ntoa memset select socket])
  22. AC_OUTPUT([
  23. Makefile
  24. modbus/Makefile
  25. tests/Makefile
  26. modbus.pc
  27. ])