From: Ben Walton Date: Sat, 3 Dec 2011 04:04:16 +0000 (-0500) Subject: Split the HOST_NAME_MAX detection into a separate m4 macro X-Git-Tag: v0.1~1384 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6456298728da1591044a3237258ca16828a4e45d;p=gnulib.git Split the HOST_NAME_MAX detection into a separate m4 macro 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 --- diff --git a/ChangeLog b/ChangeLog index cabef931af..92d518bedf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-01 Ben Walton + + 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 Fix module descriptions syntax. diff --git a/m4/gethostname.m4 b/m4/gethostname.m4 index 8ea6329a20..ad93c9f2db 100644 --- a/m4/gethostname.m4 +++ b/m4/gethostname.m4 @@ -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 lacks it. + gl_PREREQ_HOST_NAME_MAX +]) + +dnl Also provide HOST_NAME_MAX when lacks it. +AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [ + dnl - On most Unix systems, use MAXHOSTNAMELEN from instead. dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from instead. dnl - On mingw, use 256, because