diff options
-rwxr-xr-x | configure | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -271,14 +271,14 @@ if [ "$LUA_SUFFIX_SET" != "yes" ] | |||
271 | then | 271 | then |
272 | if [ "$LUA_VERSION_SET" = "yes" -a "$LUA_VERSION" = "5.1" ] | 272 | if [ "$LUA_VERSION_SET" = "yes" -a "$LUA_VERSION" = "5.1" ] |
273 | then | 273 | then |
274 | suffixes="5.1 51" | 274 | suffixes="5.1 51 -5.1 -51" |
275 | elif [ "$LUA_VERSION_SET" = "yes" -a "$LUA_VERSION" = "5.2" ] | 275 | elif [ "$LUA_VERSION_SET" = "yes" -a "$LUA_VERSION" = "5.2" ] |
276 | then | 276 | then |
277 | suffixes="5.2 52" | 277 | suffixes="5.2 52 -5.2 -52" |
278 | else | 278 | else |
279 | suffixes="5.2 52 5.1 51" | 279 | suffixes="5.2 52 -5.2 -52 5.1 51 -5.1 -51" |
280 | fi | 280 | fi |
281 | for suffix in "" `echo $suffixes` "" | 281 | for suffix in `echo $suffixes` "" |
282 | do | 282 | do |
283 | search_interpreter "$suffix" && break | 283 | search_interpreter "$suffix" && break |
284 | done | 284 | done |
@@ -286,9 +286,9 @@ fi | |||
286 | 286 | ||
287 | if [ "$LUA_DIR_SET" != "yes" ] | 287 | if [ "$LUA_DIR_SET" != "yes" ] |
288 | then | 288 | then |
289 | echo_n "Looking for Lua... " | 289 | if [ -n "$find_lua" ] |
290 | if [ ! -n "$find_lua" ] | ||
291 | then | 290 | then |
291 | echo_n "Looking for Lua... " | ||
292 | find_lua=`find_program lua$LUA_SUFFIX` | 292 | find_lua=`find_program lua$LUA_SUFFIX` |
293 | fi | 293 | fi |
294 | 294 | ||