autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prefix bug in ax_lua?


From: Tim Perkins
Subject: Re: Prefix bug in ax_lua?
Date: Fri, 06 Apr 2018 13:55:31 +0000

Hi Nate,

That's weird.

I've worked on this macro in the past. I can try to take a look over the weekend.

-- Tim

On Fri, Apr 6, 2018 at 9:07 AM Nate Bargmann <address@hidden> wrote:
I'm not sure if this is a bug, but I've not encountered this behavior
with other macro packages from the Autoconf Archive.

I found that when the configure script is passed '--prefix=/usr' that
the resulting share and library paths are munged so that the slash
between '/usr' and 'lib64' on my Slackware systems goes missing.  Here
is what I am seeing with '--prefix=/usr':

checking for a Lua interpreter with version >= 5.2, < 5.4... lua5.2
checking for lua5.2... /usr/bin/lua5.2
checking for lua5.2 version... 5.2
checking for lua5.2 platform... unknown
checking for lua5.2 script directory... ${prefix}share/lua/5.2
checking for lua5.2 module directory... ${exec_prefix}lib64/lua/5.2

Here is what I see when '--prefix=$HOME/local'):

checking for a Lua interpreter with version >= 5.2, < 5.4... lua5.2
checking for lua5.2... /usr/bin/lua5.2
checking for lua5.2 version... 5.2
checking for lua5.2 platform... unknown
checking for lua5.2 script directory... ${prefix}/share/lua/5.2
checking for lua5.2 module directory... ${exec_prefix}/lib/lua/5.2

And when '--prefix' is left at default ('/usr/local'):

checking for a Lua interpreter with version >= 5.2, < 5.4... lua5.2
checking for lua5.2... /usr/bin/lua5.2
checking for lua5.2 version... 5.2
checking for lua5.2 platform... unknown
checking for lua5.2 script directory... ${prefix}/share/lua/5.2
checking for lua5.2 module directory... ${exec_prefix}/lib/lua/5.2

Here are variables from config.status with '--prefix=/usr':

S["LUA_LIB"]="-llua5.2  -lm -ldl"
S["LUA_INCLUDE"]="-I/usr/include/lua5.2"
S["pkgluaexecdir"]="${luaexecdir}/hamlib"
S["luaexecdir"]="${exec_prefix}lib64/lua/5.2"
S["pkgluadir"]="${luadir}/hamlib"
S["luadir"]="${prefix}share/lua/5.2"
S["LUA_EXEC_PREFIX"]="${exec_prefix}"
S["LUA_PREFIX"]="${prefix}"
S["LUA_PLATFORM"]="unknown"
S["LUA_SHORT_VERSION"]="52"
S["LUA_VERSION"]="5.2"
S["LUA"]="/usr/bin/lua5.2"

and again with '--prefix' not set:

S["LUA_LIB"]="-llua5.2  -lm -ldl"
S["LUA_INCLUDE"]="-I/usr/include/lua5.2"
S["pkgluaexecdir"]="${luaexecdir}/hamlib"
S["luaexecdir"]="${exec_prefix}/lib/lua/5.2"
S["pkgluadir"]="${luadir}/hamlib"
S["luadir"]="${prefix}/share/lua/5.2"
S["LUA_EXEC_PREFIX"]="${exec_prefix}"
S["LUA_PREFIX"]="${prefix}"
S["LUA_PLATFORM"]="unknown"
S["LUA_SHORT_VERSION"]="52"
S["LUA_VERSION"]="5.2"
S["LUA"]="/usr/bin/lua5.2"

Thanks!

- Nate

--

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: http://www.n0nb.us  GPG key: D55A8819  GitHub: N0NB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]