]> git.ipfire.org Git - thirdparty/util-linux.git/commit
clean up term lib handling
authorMike Frysinger <vapier@gentoo.org>
Sun, 29 Sep 2013 04:44:43 +0000 (00:44 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Sep 2013 11:41:07 +0000 (13:41 +0200)
commit2b8f22bd90f8074c714afaa872c314287e54a9a6
tree10ed8a0302cbc37aa0c3e904dea6f92e6ae7ce1b
parentbfc4331b14ba15883951deac3f650461c6322714
clean up term lib handling

The ncurses package has been providing pkg-config files for a while now.
So let's start using them to get the proper linker & compiler flags.  It
can make a difference when ncurses is configured in a way that requires
extra link time flags but util-linux doesn't provide them, or when the
headers live in a weird place and util-linux can't find them.

Since the NCURSES_LIBS is always defined for the Makefile, there's no need
to gate on the HAVE_NCURSES conditional.  When it's disabled, the var will
simply be empty.

With a minor tweak to how tinfo is handled, we can do the same thing -- we
just always use TINFO_LIBS in the Makefile's.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
configure.ac
fdisks/Makemodule.am
misc-utils/Makemodule.am
term-utils/Makemodule.am
text-utils/Makemodule.am