monotone

monotone Mtn Source Tree

Root/m4/inaddrnone.m4

1AC_DEFUN([AC_HAVE_INADDR_NONE],
2[AC_CACHE_CHECK([whether INADDR_NONE is defined], ac_cv_have_inaddr_none,
3 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
4#ifdef HAVE_SYS_TYPES_H
5#include <sys/types.h>
6#endif
7#ifdef HAVE_SYS_SOCKET_H
8#include <sys/socket.h>
9#endif
10#ifdef HAVE_NETINET_IN_H
11#include <netinet/in.h>
12#endif
13#ifdef HAVE_ARPA_INET_H
14#include <arpa/inet.h>
15#endif
16],[
17unsigned long foo = INADDR_NONE;
18])],
19 [ac_cv_have_inaddr_none=yes],
20 [ac_cv_have_inaddr_none=no])])
21 if test x$ac_cv_have_inaddr_none != xyes; then
22 AC_DEFINE(INADDR_NONE, 0xffffffff,
23 [Define to value of INADDR_NONE if not provided by your system header files.])
24 fi])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status