configure: check for ncurses libs + headers in one go
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Jun 08 19:32:20 2011 +0200 (2011-06-08)
changeset 250945a4393fa357
parent 2508 9e2761e59a75
child 2510 48f955c87081
configure: check for ncurses libs + headers in one go

./configure now has the possibility to check for libraries and headers
in one go, so we can use it! :-)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
configure
     1.1 --- a/configure	Wed Jun 08 15:47:43 2011 +0200
     1.2 +++ b/configure	Wed Jun 08 19:32:20 2011 +0200
     1.3 @@ -435,16 +435,15 @@
     1.4  has_or_abort prog=readelf var=readelf
     1.5  has_or_abort prog=patch var=patch
     1.6  
     1.7 -has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h"    \
     1.8 -             err="'ncurses' headers files were not found"
     1.9 -
    1.10 +ncurses_hdrs="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h"
    1.11  ncurses_libs="$( for l in ncursesw ncurses curses; do   \
    1.12                       for x in so a dylib; do            \
    1.13                           printf "lib$l.$x ";            \
    1.14                       done;                              \
    1.15                   done                                   \
    1.16                 )"
    1.17 -has_or_abort lib="${ncurses_libs}"                  \
    1.18 +has_or_abort lib="${ncurses_libs}"                                          \
    1.19 +             inc="${ncurses_hdrs}"                                          \
    1.20               err="The 'ncurses' library is needed fo the menuconfig frontend"
    1.21  
    1.22  stdcxx_libs="$( for x in so dylib a; do \