diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-08-27 22:29:03 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-08-27 23:42:17 -0500 |
commit | 76c1ec0caa956a37c28c4fe395c6554f70c55172 (patch) | |
tree | 9dd207bae986b6d55f3ffbc564ed2152fc193a45 | |
parent | b470e596db5b58aed9cf9fd6b90045ab4940c054 (diff) |
language check in configure.in was causing command line overflow issue
-rwxr-xr-x | configure.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in index ded421975527..37f537d3da8a 100755 --- a/configure.in +++ b/configure.in @@ -8877,9 +8877,14 @@ for lang in $WITH_LANG ; do test "$lang" = "ALL" && continue; test "$lang" = "kid" && continue; # need to check for the exact string, so add space before and after the list of all languages - all_langs=" $ALL_LANGS " - test `echo "$all_langs" | sed "s|.* $lang .*|found|"` = "found" && continue; - AC_MSG_ERROR([invalid language: $lang; supported languages are: $ALL_LANGS]) + for vl in $ALL_LANGS ; do + if test "$vl" = "$lang" ; then + break; + fi + done + if test "$vl" != "$lang" ; then + AC_MSG_ERROR([invalid language: $lang; supported languages are: $ALL_LANGS]) + fi done # list with substituted ALL WITH_LANG_LIST=`echo $WITH_LANG | sed "s/ALL/$ALL_LANGS/"` |