summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-05-11 20:24:29 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-05-11 20:24:29 (GMT)
commit674c493dd29c2d8464645ecf5f36bb390c9ca15f (patch)
treeb73f7730787d54357878e7992566961bef7671a6
parent45ccabcbfb0086dbb7ac2759d7e6f7d180bd68c0 (diff)
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(-)
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
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"
#---------------------------------------------------------------------