Hi Ralf, Ralf Wildenhues <ralf.wildenh...@gmx.de> writes:
> * Ludovic Courtès wrote on Tue, Mar 16, 2010 at 10:52:11AM CET: >> checking whether forkpty is declared... no >> checking whether forkpty is declared... (cached) no > >> Looking at pty.m4, I’m wondering whether the second >> ‘AC_CHECK_DECL([forkpty]...])’ is actually performed; it seems that >> ‘configure’ just reuses the value from the previous check. Thus, if >> ‘forkpty’ is declared in <libutil.h>, it’s never found. > > Yes, you have to unset the cache variable before the second test, > ac_cv_have_decl_forkpty. Then I think this patch should fix it: 2010-03-17 Ludovic Courtès <l...@gnu.org> (tiny change) * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second `AC_CHECK_DECL' invocation.
diff --git a/m4/pty.m4 b/m4/pty.m4 index 1d8616d..35ff929 100644 --- 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]])
Thanks, Ludo’.
pgplhQbS0OBcP.pgp
Description: PGP signature