[PULL 14/19] configure: Remove the obsolete check for ifaddrs.h

Laurent Vivier posted 19 patches 4 years, 11 months ago
Maintainers: Markus Armbruster <armbru@redhat.com>, Anthony Perard <anthony.perard@citrix.com>, Viktor Prutyanov <viktor.prutyanov@phystech.edu>, Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Paul Durrant <paul@xen.org>, Stefano Stabellini <sstabellini@kernel.org>
There is a newer version of this series
[PULL 14/19] configure: Remove the obsolete check for ifaddrs.h
Posted by Laurent Vivier 4 years, 11 months ago
From: Thomas Huth <thuth@redhat.com>

The code that used HAVE_IFADDRS_H has been removed in commit
0a27af918b ("io: use bind() to check for IPv4/6 availability"),
so we don't need this check in the configure script anymore.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201118171052.308191-2-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/configure b/configure
index c20ed86ff35b..1df5c848110e 100755
--- a/configure
+++ b/configure
@@ -3107,14 +3107,6 @@ EOF
     fi
 fi
 
-##########################################
-# getifaddrs (for tests/test-io-channel-socket )
-
-have_ifaddrs_h=yes
-if ! check_include "ifaddrs.h" ; then
-  have_ifaddrs_h=no
-fi
-
 #########################################
 # libdrm check
 have_drm_h=no
@@ -6219,9 +6211,6 @@ fi
 if test "$auth_pam" = "yes" ; then
     echo "CONFIG_AUTH_PAM=y" >> $config_host_mak
 fi
-if test "$have_ifaddrs_h" = "yes" ; then
-    echo "HAVE_IFADDRS_H=y" >> $config_host_mak
-fi
 if test "$have_drm_h" = "yes" ; then
   echo "HAVE_DRM_H=y" >> $config_host_mak
 fi
-- 
2.29.2