summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-07-30 07:55:42 +0000
committerRichard M. Stallman <rms@gnu.org>1993-07-30 07:55:42 +0000
commit9b973fd79bcbb6753d1495d49c58a6a1c0eac304 (patch)
treef0b9227d248080b61ddb0fa52c5047b56c2b166c
parent776b7d5aac10fa05cb35d7102ac1b343e0a1bedd (diff)
downloademacs-9b973fd79bcbb6753d1495d49c58a6a1c0eac304.tar.gz
Add code to set HAVE_INET_SOCKETS.
-rwxr-xr-xconfigure1.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure1.in b/configure1.in
index 368317ed498..a0ebe41aa9a 100755
--- a/configure1.in
+++ b/configure1.in
@@ -961,6 +961,17 @@ AC_RETSIGTYPE
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