aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2015-05-11 05:41:27 -0400
committerLee Salzman <[email protected]>2015-05-11 05:41:27 -0400
commit5f476546edabdf37509cd3448d1a616f5eca535d (patch)
tree69d97ac51725628c893d4fb246b568f26b9c5c03 /configure.ac
parentf7c46f03fd8d883ac2811948aa71c7623069d070 (diff)
downloadenet-5f476546edabdf37509cd3448d1a616f5eca535d.tar.gz
enet-5f476546edabdf37509cd3448d1a616f5eca535d.zip
use getaddrinfo and getnameinfo where available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index da21b7c..a4206db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,8 @@ AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_LIBTOOL
+AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAS_GETADDRINFO)])
+AC_CHECK_FUNC(getnameinfo, [AC_DEFINE(HAS_GETNAMEINFO)])
AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)])
AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)])