On Tue, May 22, 2012 at 12:47:31PM +0200, Nikola Pajkovsky wrote:
Vitezslav Samel <vitezslav(a)samel.cz> writes:
> On Mon, May 21, 2012 at 04:38:24PM +0200, Nikola Pajkovsky wrote:
>> now iptraf-ng is able to build against any ncurses library.
>> By default, iptraf-ng is built with ncurses5 lib. If you want to override
>> it, use of the commands:
>>
>> $ make NEEDS_NCURSESW5=YesPlease
>> $ make NEEDS_NCURSES6=YesPlease
>> $ make NEEDS_NCURSESW6=YesPlease
>
>
> With this you loose automatic detection of available ncurses lib.
> If you have only ncurses6, you need to edit Makefile or pass some
> variable to make. I don't like this.
I give you an example, why autodetection won't be working across all
distribution and needs some manual work.
Debian has always installed ncurses-bin, which contains
'ncurses5-config'. That means, if you firstly try check
ncurses5-config availability, you will succeed even though you don't
have devel package installed. Tough cookie.
But this is not solvable without debian specific games with dpkg/etc.
For me it looks like debian bug (to have ncurses5-config without
includes and libs installed).
And IMHO we should not workaround this or else we will end with autoconf
macros reworked in make.
Vita