Check-in Number:
|
3931 | |
Date: |
2003-Jan-22 21:41:47 (local)
2003-Jan-22 20:41:47 (UTC) |
User: | ms |
Branch: | |
Comment: |
Test for sa_len in struct sockaddr. |
Tickets: |
|
Inspections: |
|
Files: |
|
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:
|
|
ossp-pkg/as/as-gui/configure.in 1.17 -> 1.18
--- configure.in 2003/01/21 14:41:15 1.17
+++ configure.in 2003/01/22 20:41:47 1.18
@@ -67,6 +67,7 @@
AC_CHECK_DEBUGGING
AC_CHECK_SIOCGIFHWADDR
AC_CHECK_SIOCGENADDR
+AC_STRUCT_SA_LEN
dnl Check for Dmalloc library
AC_CHECK_EXTLIB([Dmalloc],
|
|