Mercurial > hg > octave-nkf > gnulib-hg
changeset 14972:b15151b8de0d
getpass-gnu: Move AC_LIBOBJ invocations to module description.
* m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
* modules/getpass-gnu (configure.ac): ... to here.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 08 May 2011 13:21:50 +0200 |
parents | 4102aeabca72 |
children | 5a32f410f1b7 |
files | ChangeLog m4/getpass.m4 modules/getpass-gnu |
diffstat | 3 files changed, 20 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-08 Bruno Haible <bruno@clisp.org> + + getpass-gnu: Move AC_LIBOBJ invocations to module description. + * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move + AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here... + * modules/getpass-gnu (configure.ac): ... to here. + 2011-05-08 Bruno Haible <bruno@clisp.org> getpass: Move AC_LIBOBJ invocations to module description.
--- a/m4/getpass.m4 +++ b/m4/getpass.m4 @@ -29,13 +29,15 @@ AC_CHECK_DECLS_ONCE([getpass]) dnl TODO: Detect when GNU getpass() is already found in glibc. - AC_LIBOBJ([getpass]) - gl_PREREQ_GETPASS - dnl We must choose a different name for our function, since on ELF systems - dnl an unusable getpass() in libc.so would override our getpass() if it is - dnl compiled into a shared library. - AC_DEFINE([getpass], [gnu_getpass], - [Define to a replacement function name for getpass().]) + REPLACE_GETPASS=1 + + if test $REPLACE_GETPASS = 1; then + dnl We must choose a different name for our function, since on ELF systems + dnl an unusable getpass() in libc.so would override our getpass() if it is + dnl compiled into a shared library. + AC_DEFINE([getpass], [gnu_getpass], + [Define to a replacement function name for getpass().]) + fi ]) # Prerequisites of lib/getpass.c.