commit - 60fc4d6335a2696f88532322b797978ef9e9005f
commit + d5f80b2a8deda30d0dcd69bea81a3ca862cf46ca
blob - 1940834b0f0977a40776001d18c905a2f08ba5dd
blob + 567f216a7f1c21175693829ef4ec36300627fc1f
--- configure.in
+++ configure.in
fi
])
-
if test "$GCC" = "yes"; then
# We are using the GNU C compiler. Good!
CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
-
# -- Libraries --
AC_CHECK_LIB(UTIL,memmove)
bind gethostbyaddr gethostbyname gethostname inet_ntoa \
setsid setsockopt socket strcasecmp waitpid],,AC_MSG_ERROR([required function missing!]))
-AC_CHECK_FUNCS(inet_aton isdigit sigaction snprintf vsnprintf strdup strlcpy strlcat strtok_r)
+AC_CHECK_FUNCS(getaddrinfo getnameinfo inet_aton isdigit sigaction snprintf \
+ vsnprintf strdup strlcpy strlcat strtok_r)
# -- Configuration options --
if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
)
if test "$x_ipv6_on" = "yes"; then
+ # getaddrinfo() and getnameinfo() are optional when not compiling
+ # with IPv6 support, but are required for IPv6 to work!
AC_CHECK_FUNCS([ \
getaddrinfo getnameinfo \
],,AC_MSG_ERROR([required function missing for IPv6 support!]))