+2005-08-24  Simon Josefsson  <jas@extundo.com>
+
+       * getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
+       __fsetlocking.
+
 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
 
        * regex.m4: Add AC_PREREQ(2.50).
 
 
 # Prerequisites of lib/getpass.c.
 AC_DEFUN([gl_PREREQ_GETPASS], [
-  AC_CHECK_HEADERS_ONCE(stdio_ext.h)
+  AC_CHECK_HEADERS_ONCE(stdio_ext.h termios.h)
+  AC_CHECK_FUNCS_ONCE(__fsetlocking tcgetattr tcsetattr)
   AC_CHECK_DECLS_ONCE([fflush_unlocked flockfile fputs_unlocked funlockfile putc_unlocked])
-  :
 ])