lua-users home
lua-l archive

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


William Pursell wrote:
KHMan wrote:
William Pursell wrote:

Here's a quick configure.ac and src/Makefile.am that produced
reasonable results for me. [snip]
Beautiful, this should be on the Lua wiki right away. A configure file
would be even better, but I guess now is a good time as any to get
myself to re-read the autobook and try it out.

I wouldn't call it beautiful.  That configure.ac I posted
was very minimal.  For example, although it detects
that readline is available and passes the appropriate
flags to the linker, it does not define LUA_USE_READLINE,
so none of the functionality will be there.
This could be solved in several ways.  To avoid
modifying the code at all, one could add
an AC_DEFINE and not use config.h (by removing
AC_CONFIG_HEADERS), but I think the more
appropriate solution would be to #include <config.h>
in luaconf.h and change the preprocessor
guards to the autonconf style HAVE_LIBREADLINE.

But that's the first step towards "a lot of work".
[snip]

Thanks, I really appreciate that you have stepped up with a contribution, and I'm sure others are as appreciative too. Now the community has some files to play with... The prospect of being able to "./configure" without engaging the brain _is_ beautiful. :-) Being a autotools "unwashed barbarian", I'll take leave of this thread for now and hunker down to learn some of the thingies.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia