]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build-sys: make ncurses detection more robust
authorKarel Zak <kzak@redhat.com>
Tue, 30 May 2017 15:01:00 +0000 (17:01 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 30 May 2017 15:08:36 +0000 (17:08 +0200)
commit3cc8a9f42ad0e903d25cc927e920b59c4a10b5d3
tree2f2473d9732beb82d4b482742ebc446837dd6d98
parentd25d4534648720b9cc5197b5c8182559f98b1f3d
build-sys: make ncurses detection more robust

It seems Debina 8 is a little bit incompatible with us:

* ncurses-config is packaged in ncurses-bin where is *no* any
  development files! It means the script returns paths to not installed
  files (IMHO packaging bug)

  Fixed, we need to check for header files too.

* term.h is "everywhere" on Fedora:

<term.h>
<ncurses/term.h>
<ncursesw/term.h>

  Debian is more strict and uses <ncurses[w]/term.h> only.

  Fixed, we need #ifdef storm to use the correct path

 * libtinfo-dev does not contains any header files

 Fixed, we have to always require installed ncurses devel stuff to compile,
 but we can link with -ltinfo only (cal, ul, more, ...)

 * we don't use termcap for more(1)

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac