# HG changeset patch # User Simon Josefsson # Date 1268836140 -3600 # Node ID de97ad7c83ebc7e3e272dd38df1258ab8f6567e2 # Parent 3870d1e5f8d4b6472cdccb6efc41190876a1428b pty: Make forkpty check work. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-17 Ludovic Courtès (tiny change) + + * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second + `AC_CHECK_DECL' invocation. + 2010-03-15 Sergey Poznyakoff * lib/inttostr.c (inttostr): Make sure the invocation of verify diff --git a/m4/pty.m4 b/m4/pty.m4 --- a/m4/pty.m4 +++ b/m4/pty.m4 @@ -17,6 +17,7 @@ if test $ac_cv_header_pty_h != yes; then AC_CHECK_DECL([forkpty],,, [[#include ]]) if test $ac_cv_have_decl_forkpty = no; then + unset ac_cv_have_decl_forkpty AC_CHECK_DECL([forkpty],,, [[#include ]]) if test $ac_cv_have_decl_forkpty = no; then AC_MSG_WARN([[Cannot find forkpty, build will likely fail]])