configure:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon May 11 20:24:29 2009 +0000 (2009-05-11)
changeset 133261e81db78cf4
parent 1331 c4646b0c7b9d
child 1333 93d889b9d9bd
configure:
- while checking for the ncurses library, remove bashisms, and make it POSIX compliant

-------- diffstat follows --------
/trunk/configure | 8 7 1 0 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
configure
     1.1 --- a/configure	Mon May 11 20:19:50 2009 +0000
     1.2 +++ b/configure	Mon May 11 20:24:29 2009 +0000
     1.3 @@ -350,7 +350,13 @@
     1.4  has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h"    \
     1.5               err="'ncurses' headers files were not found"
     1.6  
     1.7 -has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )"  \
     1.8 +ncurses_libs="$( for l in ncursesw ncurses curses; do   \
     1.9 +                     for x in so a dylib; do            \
    1.10 +                         printf "lib$l.$x ";            \
    1.11 +                     done;                              \
    1.12 +                 done                                   \
    1.13 +               )"
    1.14 +has_or_abort lib="${ncurses_libs}"                  \
    1.15               err="'ncurses' library was not found"
    1.16  
    1.17  #---------------------------------------------------------------------