Fixes for variable length socket addresses.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12215 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-01-25 20:26:37 +00:00
parent 7f0e0f9b20
commit d8dc2bc2b4
6 changed files with 363 additions and 266 deletions

View file

@ -132,6 +132,25 @@ if test $ac_cv_header_objc_objc_h = no; then
AC_MSG_ERROR(Could not find Objective-C headers)
fi
#--------------------------------------------------------------------
# Check for strange network stuff used by gdomap
#--------------------------------------------------------------------
AC_MSG_CHECKING(for gdomap network details)
AC_MSG_CHECKING(for variable length socket addresses)
AC_TRY_COMPILE([#include <net/if.h>],
[struct ifreq s; s.ifr_addr.sa_len = 0;],
sa_len=1, sa_len=0)
if test $sa_len = 1; then
AC_MSG_RESULT([found])
AC_DEFINE(HAVE_SA_LEN)
else
AC_MSG_RESULT([not found])
fi
#
#
AC_MSG_CHECKING(for objc threading flags)
#--------------------------------------------------------------------
# Check for thread flags for libobjc.
#--------------------------------------------------------------------