ossp-pkg/as/as-gui/aclocal.m4 1.8 -> 1.9
--- aclocal.m4 2003/01/16 08:37:40 1.8
+++ aclocal.m4 2003/01/22 20:41:47 1.9
@@ -70,6 +70,31 @@
dnl ##
+dnl ## Check for sa_len member of the sockaddr
+dnl ## structure found in BSD systems
+dnl ##
+dnl ## configure.in:
+dnl ## AC_STRUCT_SA_LEN
+dnl ##
+
+AC_DEFUN(AC_STRUCT_SA_LEN,
+[AC_CACHE_CHECK([for sa_len in struct sockaddr], ac_cv_struct_sa_len,
+[AC_TRY_COMPILE([
+ #include <sys/types.h>
+ #include <sys/socket.h>
+],
+[
+ struct sockaddr s;
+ s.sa_len;
+],
+ac_cv_struct_sa_len=yes, ac_cv_struct_sa_len=no)])
+if test $ac_cv_struct_sa_len = yes; then
+AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if your sockaddr has a sa_len member.])
+fi
+])
+
+
+dnl ##
dnl ## Support for Platform IDs
dnl ##
dnl ## configure.in:
|
|