configure.ac 878 B

12345678910111213141516171819202122232425262728
  1. AC_INIT([libenet], [1.3.13])
  2. AC_CONFIG_SRCDIR([include/enet/enet.h])
  3. AM_INIT_AUTOMAKE([foreign])
  4. AC_CONFIG_MACRO_DIR([m4])
  5. AC_PROG_CC
  6. AC_PROG_LIBTOOL
  7. AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAS_GETADDRINFO)])
  8. AC_CHECK_FUNC(getnameinfo, [AC_DEFINE(HAS_GETNAMEINFO)])
  9. AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
  10. AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)])
  11. AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)])
  12. AC_CHECK_FUNC(fcntl, [AC_DEFINE(HAS_FCNTL)])
  13. AC_CHECK_FUNC(inet_pton, [AC_DEFINE(HAS_INET_PTON)])
  14. AC_CHECK_FUNC(inet_ntop, [AC_DEFINE(HAS_INET_NTOP)])
  15. AC_CHECK_MEMBER(struct msghdr.msg_flags, [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include <sys/socket.h>])
  16. AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], ,
  17. #include <sys/types.h>
  18. #include <sys/socket.h>
  19. )
  20. AC_CONFIG_FILES([Makefile
  21. libenet.pc])
  22. AC_OUTPUT