+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.
-# 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,
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