pty: Make forkpty check work.
authorSimon Josefsson <simon@josefsson.org>
Wed, 17 Mar 2010 14:29:00 +0000 (15:29 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 17 Mar 2010 14:29:00 +0000 (15:29 +0100)
ChangeLog
m4/pty.m4

index e404640..2095b2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
+
+       * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
+       `AC_CHECK_DECL' invocation.
+
 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * lib/inttostr.c (inttostr): Make sure the invocation of verify
index 1d8616d..35ff929 100644 (file)
--- a/m4/pty.m4
+++ b/m4/pty.m4
@@ -17,6 +17,7 @@ AC_DEFUN([gl_PTY],
   if test $ac_cv_header_pty_h != yes; then
     AC_CHECK_DECL([forkpty],,, [[#include <util.h>]])
     if test $ac_cv_have_decl_forkpty = no; then
+      unset ac_cv_have_decl_forkpty
       AC_CHECK_DECL([forkpty],,, [[#include <libutil.h>]])
       if test $ac_cv_have_decl_forkpty = no; then
         AC_MSG_WARN([[Cannot find forkpty, build will likely fail]])