t00fri wrote:Since I have little time, I don't want to spend the whole evening to dig myself through this badly tested new configure.in stuff in CVS...
Well, first of all, this is CVS so yes, things may not work perfectly on all systems.
In this particular case, however, after the quite intensive testing I went through with cartrite's help, I'm confident this works even on your system. configure may not work like it did on previous versions, but that doesn't mean it is broken.
To disable lua, the correct flag is '--without-lua', not '--disable-lua'. After removing the lua.pc files from my pkgconfig directory I can confirm that configure doesn't fail on lua detection if that flag is used.
Moreover, when configure fails on lua the configure script outputs the following message:
Code: Select all
Alternatively, you may set the environment variables LUA_CFLAGS
and LUA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Which clearly indicates how to enable lua if pkgconfig is not available.
The following works for me with lua.pc removed:
Code: Select all
LUA_CFLAGS='-I/usr/include/lua50/' LUA_LIBS='-llualib50 -llua50' ./configure --with-kde --with-lua --prefix=/usr/local/kde/ --with-spice-dir=/home/chris/Documents/src/cspice --with-theora --enable-debug=full
I'm confident this can work for you too (LUA_CFLAGS=' ' LUA_LIBS='-llualib50 -llua50') and it is certainly nicer than the manual patching one had to do on the previous version.
[edit]
I just commited a fix, so that configure doesn't fail when --with-lua isn't used. So --without-lua shouldn't be required now.