* m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
gl_PREREQ_GETHOSTNAME invocations from here...
* modules/gethostname (configure.ac): ... to here.
+2011-05-08 Bruno Haible <bruno@clisp.org>
+
+ gethostname: Move AC_LIBOBJ invocations to module description.
+ * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
+ gl_PREREQ_GETHOSTNAME invocations from here...
+ * modules/gethostname (configure.ac): ... to here.
+
2011-05-08 Bruno Haible <bruno@clisp.org>
getgroups: Move AC_LIBOBJ invocations to module description.
-# gethostname.m4 serial 11
+# gethostname.m4 serial 12
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,
AC_SUBST([GETHOSTNAME_LIB])
if test "$ac_cv_func_gethostname" = no; then
- AC_LIBOBJ([gethostname])
HAVE_GETHOSTNAME=0
- gl_PREREQ_GETHOSTNAME
fi
dnl Also provide HOST_NAME_MAX when <limits.h> lacks it.
configure.ac:
gl_FUNC_GETHOSTNAME
+if test $HAVE_GETHOSTNAME = 0; then
+ AC_LIBOBJ([gethostname])
+ gl_PREREQ_GETHOSTNAME
+fi
gl_UNISTD_MODULE_INDICATOR([gethostname])
Makefile.am: