diff options
| author | Hisham <hisham@gobolinux.org> | 2016-10-26 15:19:42 -0200 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-10-26 15:19:42 -0200 |
| commit | 86e1bef85084b5bf09688bd19077a8eaa82ae15c (patch) | |
| tree | c0c562454e8fec1224f75db70c4bf5e14fecccdb | |
| parent | 48e5329617f20e97262ca5510264fdb5d645ae6f (diff) | |
| download | luarocks-86e1bef85084b5bf09688bd19077a8eaa82ae15c.tar.gz luarocks-86e1bef85084b5bf09688bd19077a8eaa82ae15c.tar.bz2 luarocks-86e1bef85084b5bf09688bd19077a8eaa82ae15c.zip | |
Check if header matches interpreter.
| -rwxr-xr-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -361,6 +361,18 @@ else | |||
| 361 | fi | 361 | fi |
| 362 | fi | 362 | fi |
| 363 | 363 | ||
| 364 | echo_n "Checking if Lua header version matches that of the interpreter... " | ||
| 365 | header_version=$(sed -n 's/.*LUA_VERSION_NUM.*5.\(.\).*/5.\1/p' "$lua_h") | ||
| 366 | if [ "$header_version" = "$LUA_VERSION" ] | ||
| 367 | then | ||
| 368 | echo "yes" | ||
| 369 | else | ||
| 370 | echo "no" | ||
| 371 | echo "lua.h version mismatch (interpreter: $LUA_VERSION; lua.h: $header_version)." | ||
| 372 | die "You may want to use the flag --with-lua or --with-lua-include. See --help." | ||
| 373 | fi | ||
| 374 | |||
| 375 | |||
| 364 | if [ "$LUAROCKS_DOWNLOADER_SET" != "yes" ] | 376 | if [ "$LUAROCKS_DOWNLOADER_SET" != "yes" ] |
| 365 | then | 377 | then |
| 366 | find_helper "a downloader helper program" curl wget fetch | 378 | find_helper "a downloader helper program" curl wget fetch |
