# HG changeset patch # User Bruno Haible # Date 1304853501 -7200 # Node ID 4102aeabca72d16475d633fac18bce86217d8737 # Parent 3c854f4a467092a8d7e8e25d6ab88c6bffeb9256 getpass: Move AC_LIBOBJ invocations to module description. * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here... * modules/getpass (configure.ac): ... to here. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-08 Bruno Haible + + getpass: Move AC_LIBOBJ invocations to module description. + * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and + gl_PREREQ_GETPASS invocations from here... + * modules/getpass (configure.ac): ... to here. + 2011-05-08 Bruno Haible getpagesize: Move AC_LIBOBJ invocations to module description. diff --git a/m4/getpass.m4 b/m4/getpass.m4 --- a/m4/getpass.m4 +++ b/m4/getpass.m4 @@ -1,4 +1,4 @@ -# getpass.m4 serial 12 +# getpass.m4 serial 13 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2011 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -11,10 +11,12 @@ dnl Persuade Solaris and to declare getpass(). AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) - AC_REPLACE_FUNCS([getpass]) + AC_CHECK_FUNCS([getpass]) AC_CHECK_DECLS_ONCE([getpass]) - if test $ac_cv_func_getpass = no; then - gl_PREREQ_GETPASS + if test $ac_cv_func_getpass = yes; then + HAVE_GETPASS=1 + else + HAVE_GETPASS=0 fi ]) diff --git a/modules/getpass b/modules/getpass --- a/modules/getpass +++ b/modules/getpass @@ -15,6 +15,10 @@ configure.ac: gl_FUNC_GETPASS +if test $HAVE_GETPASS = 0; then + AC_LIBOBJ([getpass]) + gl_PREREQ_GETPASS +fi Makefile.am: