OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ut_sa.ac versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ut_sa.ac 1.1 -> 1.2

--- l2_ut_sa.ac  2001/09/14 19:06:40     1.1
+++ l2_ut_sa.ac  2001/10/06 14:33:09     1.2
@@ -27,15 +27,18 @@
 ##  sa.ac: socket abstraction Autoconf checks
 ##
 
-AC_CHECK_HEADERS(sys/types.h sys/socket.h netdb.h netinet/in.h)
+AC_DEFUN(AC_CHECK_SA,[
+    #   make sure libnsl and libsocket are linked in if they exist
+    AC_CHECK_LIB(nsl, gethostname)
+    if test ".`echo $LIBS | grep nsl`" = .; then
+        AC_CHECK_LIB(nsl, gethostbyname)
+    fi  
+    AC_CHECK_LIB(socket, accept)
+    
+    #   check for system headers
+    AC_CHECK_HEADERS(string.h sys/types.h sys/socket.h netdb.h netinet/in.h)
 
-AC_CHECK_LIB(nsl, gethostname)
-if test ".`echo $LIBS | grep nsl`" = .; then
-    AC_CHECK_LIB(nsl, gethostbyname)
-fi  
-AC_CHECK_LIB(socket, accept)
-
-AC_CHECK_FUNCS(inet_aton inet_pton)
-AC_CHECK_FUNCS(inet_ntoa inet_ntop)
-AC_CHECK_FUNCS(snprintf vsnprintf)
+    #   check for system functions
+    AC_CHECK_FUNCS(inet_aton inet_pton inet_ntoa inet_ntop snprintf)
+])
 

CVSTrac 2.0.1