changeset 4354:5b54255ee4b3

Add code to set HAVE_INET_SOCKETS.
author Richard M. Stallman <rms@gnu.org>
date Fri, 30 Jul 1993 07:55:42 +0000
parents d4e116f25030
children 691a28818487
files configure1.in
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Fri Jul 30 07:50:15 1993 +0000
+++ b/configure1.in	Fri Jul 30 07:55:42 1993 +0000
@@ -961,6 +961,17 @@
 dnl checks for functions
 AC_ALLOCA
 AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir)
+ok_so_far=true
+AC_FUNC_CHECK(socket,, ok_so_far=)
+if test -n "$ok_so_far"; then
+  AC_HEADER_CHECK(netinet/in.h,, ok_so_far=)
+fi
+if test -n "$ok_so_far"; then
+  AC_HEADER_CHECK(arpa/inet.h,, ok_so_far=)
+fi
+if test -n "$ok_so_far"; then
+  AC_DEFINE(HAVE_INET_SOCKETS)
+fi
 
 dnl checks for structure members
 AC_STRUCT_TM