changeset 6124:2e48e4301246

* getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and __fsetlocking.
author Simon Josefsson <simon@josefsson.org>
date Thu, 25 Aug 2005 21:19:07 +0000
parents eca8ee699b3a
children 4af02335816a
files m4/ChangeLog m4/getpass.m4
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+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).
--- a/m4/getpass.m4
+++ b/m4/getpass.m4
@@ -35,7 +35,7 @@
 
 # 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])
-  :
 ])