autoconf-patches
[Top][All Lists]
Advanced

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

FYI: net/if.h


From: Akim Demaille
Subject: FYI: net/if.h
Date: Tue, 08 Apr 2003 09:09:37 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
        net/if.h, stdlib.h.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.727
diff -u -u -r1.727 autoconf.texi
--- doc/autoconf.texi 1 Apr 2003 07:28:08 -0000 1.727
+++ doc/autoconf.texi 8 Apr 2003 07:08:59 -0000
@@ -4286,6 +4286,34 @@
 know of any implementation that has @file{stdint.h} but not
 @file{inttypes.h}.  Nor do I know of any free software that includes
 @file{stdint.h}; @file{stdint.h} seems to be a creation of the committee.
+
address@hidden @file{net/if.h}
+On Darwin, this file requires that @file{sys/socket.h} be included
+beforehand.  One should run:
+
address@hidden
+AC_CHECK_HEADERS([sys/socket.h])
+AC_CHECK_HEADERS([net/if.h], [], [],
+[#include <stdio.h>
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# if HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+])
address@hidden example
+
address@hidden @file{stdlib.h}
+On many systems (e.g., Darwin), @file{stdio.h} is a prerequisite.
+
address@hidden @file{sys/socket.h}
+On Darwin, @file{stdlib.h} is a prerequisite.
 @end table
 
 
@@ -14853,6 +14881,9 @@
 checking for number.h... yes
 checking for pi.h... yes
 @end example
+
+See @ref{Particular Headers}, for a list of headers with their
+prerequisite.
 
 @c ===================================================== History of Autoconf.
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]