bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ‘pty’ module fails on FreeBSD 7.2


From: Ludovic Courtès
Subject: Re: ‘pty’ module fails on FreeBSD 7.2
Date: Wed, 17 Mar 2010 15:24:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi Ralf,

Ralf Wildenhues <address@hidden> 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 <address@hidden>  (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’.

Attachment: pgp9xLfpzd33t.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]