configure.ac 875 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.59)
  4. AC_INIT(libmodbus, 2.0.3, stephane.raimbault@gmail.com)
  5. AC_CONFIG_SRCDIR([modbus/modbus.c])
  6. AM_INIT_AUTOMAKE
  7. AM_DISABLE_STATIC
  8. # Checks for programs.
  9. AC_PROG_CC
  10. AC_PROG_MAKE_SET
  11. AC_PROG_LIBTOOL
  12. # Checks for header files.
  13. AC_HEADER_STDC
  14. 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])
  15. # Checks for typedefs, structures, and compiler characteristics.
  16. AC_C_CONST
  17. AC_TYPE_SIZE_T
  18. AC_HEADER_TIME
  19. # Checks for library functions.
  20. AC_FUNC_MALLOC
  21. AC_FUNC_SELECT_ARGTYPES
  22. AC_CHECK_FUNCS([inet_ntoa memset select socket])
  23. AC_OUTPUT([
  24. Makefile
  25. modbus/Makefile
  26. tests/Makefile
  27. modbus.pc
  28. ])