configure.ac 854 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.59)
  4. AC_INIT(libmodbus, 1.2, stephane.raimbault@free.fr)
  5. AM_INIT_AUTOMAKE(libmodbus, 1.2.0)
  6. # Checks for programs.
  7. AC_PROG_CC
  8. AC_PROG_MAKE_SET
  9. AC_PROG_LIBTOOL
  10. # Checks for libraries.
  11. AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR(libmodbus needs GLib 2.X))
  12. # Checks for header files.
  13. AC_HEADER_STDC
  14. AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termio.h termios.h unistd.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_CONFIG_FILES([
  24. Makefile
  25. src/Makefile
  26. ])
  27. AC_OUTPUT