X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Finet_pton.m4;h=4ea89d26edc4003286ee6c14de256de3ab85260a;hb=da79138de50a46870a8c56a7aef09bf66591c402;hp=9051cc24160aeeadfb9d7942eca1a68e44e2198f;hpb=cf357e415055e3979d0f0d72b3046022f4bb7812;p=pspp diff --git a/m4/inet_pton.m4 b/m4/inet_pton.m4 index 9051cc2416..4ea89d26ed 100644 --- a/m4/inet_pton.m4 +++ b/m4/inet_pton.m4 @@ -1,18 +1,21 @@ -# inet_pton.m4 serial 1 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# inet_pton.m4 serial 4 +dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_INET_PTON], [ + AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS]) + ARPA_INET_H='arpa/inet.h' + AC_REPLACE_FUNCS(inet_pton) gl_PREREQ_INET_PTON ]) -# Prerequisites of lib/inet_pton.h and lib/inet_pton.c. +# Prerequisites of lib/inet_pton.c. AC_DEFUN([gl_PREREQ_INET_PTON], [ - AC_CHECK_HEADERS_ONCE(arpa/inet.h) AC_CHECK_DECLS([inet_pton],,,[#include ]) AC_REQUIRE([gl_SOCKET_FAMILIES]) + AC_REQUIRE([AC_C_RESTRICT]) ])