conditional compilation (or: makefiles again)

Marcus Brinkmann <[email protected]>
Newsgroups gmane.os.hurd.devel.readers
Message-ID <[email protected]>
Hi,

for console-curses, I need ncursesw.  I have an autoconf check for that
derived from Mark's check in GNU inetutils.  But I have no way to compile
console-curses, located in util/, conditionally: If I want to check for
LIBNCURSESW in the makefile, config.make must be included, but this is only
included by Makeconf which should be included after the SRCS etc are
defined.

It works to also add a "include ../config.make" into the Makefile before
testing LIBNCURSESW.  Is that too clumsy?

Would you fundamentally object against using automake and latest autoconf?
(I know that Roland sticks with autoconf2.13, otoh, Debian has excellent
auto-detection of the version of autoconf required plus a wrapper script
that seems to do the right thing always).  I might be able to spent some
time in working out the issues with that.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    [email protected]
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
[email protected]
http://www.marcus-brinkmann.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.