diff --git a/tracy/acinclude.m4 b/tracy/acinclude.m4 new file mode 100644 index 0000000000000000000000000000000000000000..f253bbc12ff70f8087df01ee49e58c5fc54beb08 --- /dev/null +++ b/tracy/acinclude.m4 @@ -0,0 +1,28 @@ +# autoconf 2.59 ships without AC_HEADER_RESOLV, so we include it here +# +# AC_HEADER_RESOLV +# ---------------- +# According to http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?resolver+3 +# (or http://www.chemie.fu-berlin.de/cgi-bin/man/sgi_irix?resolver+3), +# sys/types.h, netinet/in.h and arpa/nameser.h are required on IRIX. +# netinet/in.h is needed on Cygwin, too. +# With Solaris 9, netdb.h is required, to get symbols like HOST_NOT_FOUND. +# +AN_HEADER(resolv.h, [AC_HEADER_RESOLV]) + AC_DEFUN([AC_HEADER_RESOLV], + [AC_CHECK_HEADERS(sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h, + [], [], + [[#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_NETINET_IN_H +# include <netinet/in.h> /* inet_ functions / structs */ +#endif +#ifdef HAVE_ARPA_NAMESER_H +# include <arpa/nameser.h> /* DNS HEADER struct */ +#endif +#ifdef HAVE_NETDB_H +# include <netdb.h> +#endif]]) + ])# AC_HEADER_RESOLV +