]> Savannah Git Hosting - gnulib.git/commitdiff
Split the HOST_NAME_MAX detection into a separate m4 macro
authorBen Walton <bwalton@artsci.utoronto.ca>
Sat, 3 Dec 2011 04:04:16 +0000 (23:04 -0500)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Dec 2011 12:26:18 +0000 (13:26 +0100)
The sethostname module will rely on this code too, so make it a
separate function.

* m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
macro so it can be used by the pending sethostname module.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
ChangeLog
m4/gethostname.m4

index cabef931af479e22063a821c64701bfe27c2c8de..92d518bedfe281ad403b1a44fd36645eac1c0a27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
+
+       Split the HOST_NAME_MAX detection into a separate m4 macro.
+       * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
+       macro so it can be used by the pending sethostname module.
+
 2011-12-03  Bruno Haible  <bruno@clisp.org>
 
        Fix module descriptions syntax.
index 8ea6329a2049d1fb703d88bae6bc543dbd763a22..ad93c9f2db06604b539d11adbe6f826e6d5a4e7f 100644 (file)
@@ -1,4 +1,4 @@
-# gethostname.m4 serial 12
+# gethostname.m4 serial 13
 dnl Copyright (C) 2002, 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -40,7 +40,12 @@ AC_DEFUN([gl_FUNC_GETHOSTNAME],
     HAVE_GETHOSTNAME=0
   fi
 
-  dnl Also provide HOST_NAME_MAX when <limits.h> lacks it.
+  gl_PREREQ_HOST_NAME_MAX
+])
+
+dnl Also provide HOST_NAME_MAX when <limits.h> lacks it.
+AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [
+
   dnl - On most Unix systems, use MAXHOSTNAMELEN from <sys/param.h> instead.
   dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from <netdb.h> instead.
   dnl - On mingw, use 256, because