[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: detecting lua 5 in configure scripts
- From: Bounty Hunter <bounty_hunter@...>
- Date: Wed, 26 May 2004 15:22:48 -0400
El mar, 25-05-2004 a las 17:16, Hisham H. Muhammad escribió:
> On Tuesday 25 May 2004 09:54, Alex Sandro Queiroz e Silva wrote:
> > Hallo,
> >
> > Bounty Hunter wrote:
> > >Im not so good with autotools, can you explain me how to include it in
> > >configure.ac and use it?
> >
> > Copy lua.m4 to /usr/share/automake or include its contents in a file
> > called acinclude.m4 in your project's directory.
>
> Once you did that, you need to include a line like
> AM_PATH_LUA()
> to check for Lua 5.0 or
> AM_PATH_LUA(5.0.2)
> to check for a specific minimum version. It adds an option --with-lua-prefix
> to your configure script (by default it tries to guess the Lua prefix by
> fetching the location of the lua interpreter in the users' $PATH). I don't
> know if the version matcher works for Lua < 5, though (it assumes LUA_VERSION
> is a string in the format "Lua x.y.z" or "Lua x.y", don't know if this was
> true back then).
How can i make it abort if lua isnt installed?
Ollen Roy, linarian bounty hunter (level 10). Never use Windows for a
Unix work.