[xml] Rework autoconf tests for inet libraries



Cleanup -lnsl and -lsocket tests. This doesn't fix anything but it
looks prettier :)

-- 
albert chin (china thewrittenword com)

-- snip snip
--- configure.in.orig   2005-10-23 22:31:16.546676000 -0500
+++ configure.in        2005-10-28 10:19:12.722854000 -0500
@@ -433,10 +433,9 @@
                NEED_TRIO=1)
 
 dnl Checks for inet libraries:
-AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
-AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
-AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(net, setsockopt))
-AC_CHECK_FUNC(connect, , AC_CHECK_LIB(inet, connect))
+AC_SEARCH_LIBS(gethostent, [nsl])
+AC_SEARCH_LIBS(setsockopt, [socket net])
+AC_SEARCH_LIBS(connect, [inet])
 
 dnl Determine what socket length (socklen_t) data type is
 AC_MSG_CHECKING([for type of socket length (socklen_t)])
--- macos/src/config-mac.h.orig 2005-10-28 10:21:14.690904000 -0500
+++ macos/src/config-mac.h      2005-10-28 10:23:43.064352000 -0500
@@ -177,15 +177,6 @@
 /* Define if you have the <zlib.h> header file.  */
 #undef HAVE_ZLIB_H
 
-/* Define if you have the inet library (-linet).  */
-#undef HAVE_LIBINET
-
-/* Define if you have the nsl library (-lnsl).  */
-#undef HAVE_LIBNSL
-
-/* Define if you have the socket library (-lsocket).  */
-#undef HAVE_LIBSOCKET
-
 /* Name of package */
 #define PACKAGE
 
--- vms/config.vms.orig 2005-10-28 10:21:18.568454000 -0500
+++ vms/config.vms      2005-10-28 10:22:23.213608000 -0500
@@ -151,15 +151,6 @@
 /* Define if you have the <zlib.h> header file.  */
 #undef HAVE_ZLIB_H
 
-/* Define if you have the inet library (-linet).  */
-#undef HAVE_LIBINET
-
-/* Define if you have the nsl library (-lnsl).  */
-#undef HAVE_LIBNSL
-
-/* Define if you have the socket library (-lsocket).  */
-#undef HAVE_LIBSOCKET
-
 /* Name of package */
 #undef PACKAGE
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]