From 674c493dd29c2d8464645ecf5f36bb390c9ca15f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 11 May 2009 20:24:29 +0000 Subject: 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(-) diff --git a/configure b/configure index 664a2a8..bd6a806 100755 --- a/configure +++ b/configure @@ -350,7 +350,13 @@ has_or_abort prog=readlink has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \ err="'ncurses' headers files were not found" -has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \ +ncurses_libs="$( for l in ncursesw ncurses curses; do \ + for x in so a dylib; do \ + printf "lib$l.$x "; \ + done; \ + done \ + )" +has_or_abort lib="${ncurses_libs}" \ err="'ncurses' library was not found" #--------------------------------------------------------------------- -- cgit v0.10.2-6-g49f6