bug-ncurses
[Top][All Lists]
Advanced

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

Re: Wrong 'break' statement when testing if etip.h needs math.h


From: Pierre Labastie
Subject: Re: Wrong 'break' statement when testing if etip.h needs math.h
Date: Sun, 12 Feb 2012 17:08:50 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

Le 12/02/2012 15:38, Pierre Labastie a écrit :

When "checking for special defines needed for etip.h", configure uses
[...]
The correction is to use break 2. See attached patch.
Answering myself because actually the picture seems more
complicated. What I said in the preceding post is true. However,
there is another issue. The compile test uses:
----------------
#include <etip.h.in>
----------------------
and <etip.h.in> does
--------------------
#includes <ncurses_dll.h>
--------------------
and at the time configure is run, ncurses_dll.h
does not exist in the ncurses tree. (only ncurses_dll.h.in)

So there are two cases:
-the host has ncurses_dll.h, or configure has already been
run once in the same tree. Then the compile tests pass
and because of what I said in the preceding message,
it ends up with ETIP_NEEDS_MATH_H defined to 1.
-the host does not yet have ncurses_dll.h. Then all 4 tests
fail and the result is none (nothing needed).

Applying the patch of my preceding message does not
solve this second case. The solution would be that etip.h.in
include ncurses_dll.h.in, but then that it changes to
including ncurses_dll.h when generating etip.h. I do not know
enough of the ncurses package to find what is to be modified.

Regards
Pierre Labastie



reply via email to

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