summaryrefslogtreecommitdiff
path: root/m4/getpass.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-09 23:54:10 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-09 23:54:10 +0000
commit942fa9f9bad04cc75862b72fabc8f4ff617cdafb (patch)
tree69e953e0646dfbec8015ef57a8c325db635daa03 /m4/getpass.m4
parent25ef69613afa3d3e727203c74b7c011f87813663 (diff)
downloadgnulib-942fa9f9bad04cc75862b72fabc8f4ff617cdafb.tar.gz
Add getpass.h, so it's properly declared.
Diffstat (limited to 'm4/getpass.m4')
-rw-r--r--m4/getpass.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/getpass.m4 b/m4/getpass.m4
index 4449bc5fb6..0c4d8050f2 100644
--- a/m4/getpass.m4
+++ b/m4/getpass.m4
@@ -1,4 +1,4 @@
-# getpass.m4 serial 3
+# getpass.m4 serial 4
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -10,6 +10,7 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_FUNC_GETPASS],
[
AC_REPLACE_FUNCS(getpass)
+ AC_CHECK_DECLS_ONCE(getpass)
if test $ac_cv_func_getpass = no; then
gl_PREREQ_GETPASS
fi
@@ -19,6 +20,7 @@ AC_DEFUN([gl_FUNC_GETPASS],
# arbitrary length (not just 8 bytes as on HP-UX).
AC_DEFUN([gl_FUNC_GETPASS_GNU],
[
+ AC_CHECK_DECLS_ONCE(getpass)
dnl TODO: Detect when GNU getpass() is already found in glibc.
AC_LIBOBJ(getpass)
gl_PREREQ_GETPASS