[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2
From: |
Ludovic Courtès |
Subject: |
[bug-inetutils] 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’.
pgpDox7uZAw1U.pgp
Description: PGP signature
- Re: [bug-inetutils] ‘ifconfig --help’ segfaults, (continued)
- Re: [bug-inetutils] ‘ifconfig --help’ segfaults, Ludovic Courtès, 2010/03/10
- [bug-inetutils] Re: ‘ifconfig --help’ segfaults, Ludovic Courtès, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Giuseppe Scrivano, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Ludovic Courtès, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Giuseppe Scrivano, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Ludovic Courtès, 2010/03/15
- [bug-inetutils] Re: ‘ifconfig --help’ segfaults, Simon Josefsson, 2010/03/15
- [bug-inetutils] Re: ‘ifconfig --help’ segfaults, Simon Josefsson, 2010/03/15
- [bug-inetutils] ‘pty’ module fails on FreeBSD 7.2, Ludovic Courtès, 2010/03/16
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Ralf Wildenhues, 2010/03/19
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2,
Ludovic Courtès <=
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Simon Josefsson, 2010/03/17
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Ludovic Courtès, 2010/03/17
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Eric Blake, 2010/03/19
Re: [bug-inetutils] =?utf-8?b?4oCYaWZjb25maW cgLS1oZWxw4oCZ?= segfaults, Sergey Poznyakoff, 2010/03/09