[Top][All Lists]
[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’.
pgp9xLfpzd33t.pgp
Description: PGP signature
- ‘pty’ module fails on FreeBSD 7.2, Ludovic Courtès, 2010/03/16
- Re: ‘pty’ module fails on FreeBSD 7.2, Ralf Wildenhues, 2010/03/16
- Re: ‘pty’ module fails on FreeBSD 7.2,
Ludovic Courtès <=
- Re: ‘pty’ module fails on FreeBSD 7.2, Eric Blake, 2010/03/17
- [PATCH 2/3] forkpty, openpty: split functions into new modules, Eric Blake, 2010/03/18
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Bruno Haible, 2010/03/18
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Eric Blake, 2010/03/18
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Simon Josefsson, 2010/03/19
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Eric Blake, 2010/03/19
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Bruno Haible, 2010/03/19
- [PATCH 1/3] pty: improve replacement header, Eric Blake, 2010/03/18