# HG changeset patch # User Bruno Haible # Date 1306077184 -7200 # Node ID f1a244185b180f7fa4a903fbebcb5b04c8b50503 # Parent 9ed2584c6e1794da73bd997f8e8f7134a246698f uname: Move AC_LIBOBJ invocations to module description. * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from here... * modules/uname (configure.ac): ... to here. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-22 Bruno Haible + + uname: Move AC_LIBOBJ invocations to module description. + * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from + here... + * modules/uname (configure.ac): ... to here. + 2011-05-22 Bruno Haible ttyname_r: Move AC_LIBOBJ invocations to module description. diff --git a/m4/uname.m4 b/m4/uname.m4 --- a/m4/uname.m4 +++ b/m4/uname.m4 @@ -1,4 +1,4 @@ -# uname.m4 serial 10 +# uname.m4 serial 11 dnl Copyright (C) 2009-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, @@ -7,10 +7,9 @@ AC_DEFUN([gl_FUNC_UNAME], [ AC_REQUIRE([gl_SYS_UTSNAME_H_DEFAULTS]) - AC_REPLACE_FUNCS([uname]) + AC_CHECK_FUNCS([uname]) if test $ac_cv_func_uname = no; then HAVE_UNAME=0 - gl_PREREQ_UNAME fi ]) diff --git a/modules/uname b/modules/uname --- a/modules/uname +++ b/modules/uname @@ -11,6 +11,10 @@ configure.ac: gl_FUNC_UNAME +if test $HAVE_UNAME = 0; then + AC_LIBOBJ([uname]) + gl_PREREQ_UNAME +fi gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) Makefile.am: