inet_ntop.m4 777 B

1234567891011121314151617181920212223242526
  1. # inet_ntop.m4 serial 8
  2. dnl Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. AC_DEFUN([gl_INET_NTOP],
  7. [
  8. dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
  9. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  10. gl_REPLACE_ARPA_INET_H
  11. AC_REPLACE_FUNCS([inet_ntop])
  12. gl_PREREQ_INET_NTOP
  13. ])
  14. # Prerequisites of lib/inet_ntop.c.
  15. AC_DEFUN([gl_PREREQ_INET_NTOP], [
  16. AC_CHECK_DECLS([inet_ntop],,,[#include <arpa/inet.h>])
  17. if test $ac_cv_have_decl_inet_ntop = no; then
  18. HAVE_DECL_INET_NTOP=0
  19. fi
  20. AC_REQUIRE([gl_SOCKET_FAMILIES])
  21. AC_REQUIRE([AC_C_RESTRICT])
  22. ])