mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Check that IPv6 structures are found if --enable-ipv6 is given.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1735 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
33fbc0a069
commit
93382190e5
17
configure.in
17
configure.in
@ -695,7 +695,22 @@ dnl ** IPv6 support
|
||||
dnl **
|
||||
|
||||
if test "x$want_ipv6" = "xyes"; then
|
||||
AC_DEFINE(HAVE_IPV6)
|
||||
AC_MSG_CHECKING([for IPv6])
|
||||
AC_CACHE_VAL(irssi_cv_type_in6_addr,
|
||||
[AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>],
|
||||
[struct in6_addr i;],
|
||||
irssi_cv_type_in6_addr=yes,
|
||||
irssi_cv_type_in6_addr=no,
|
||||
)])
|
||||
if test $irssi_cv_type_in6_addr = yes; then
|
||||
AC_DEFINE(HAVE_IPV6)
|
||||
fi
|
||||
AC_MSG_RESULT($irssi_cv_type_in6_addr)
|
||||
fi
|
||||
|
||||
AC_OUTPUT(
|
||||
|
Loading…
Reference in New Issue
Block a user