[En-Nut-Discussion] patched configure.ac for failed liblua detection

Tim Lapawa lists at lapawa.net
Sat Jun 11 10:19:18 CEST 2005


Hello Harald,
today I've found out that the patched configure.ac is still not functional.
The two libs m and ld must be added to LIBS variable, too.
I patched it again with  two added calls to AC_SEARCH_LIBS for both libraries.
In the config.log My compiler (v3.5.5) warns about a conflicting type of
 function sqrt with the buildin function. 
I am not very familiar with the autotools and do not know how I can check 
on buildin compiler functions. 
Perhaps the debian guys managed that the rigth way and the 
lua shared libraries use the buildin gcc functions right away.
But I can't verify that on my other linux box running Debian, because of the
stripped shared libraries debian uses.
I've found an unresolved symbols for sqrt in the gentoos lualib:
$ nm /usr/lib/liblualib.a |grep sqrt 
000003f0 t math_sqrt
         U sqrt
But thats what the configure script finds out, too.
I think you should test the configure.ac on your Debian system before
committing it.

cheers 
	Tim

 $ cvs diff -r1.4 configure.ac
Index: configure.ac
===================================================================
RCS file: /cvsroot/ethernut/nut/configure.ac,v
retrieving revision 1.4
diff -r1.4 configure.ac
129a130,131
>       AC_SEARCH_LIBS([sqrt],[m], [nutconf_tools_ok="yes"],[nutconf_tools_ok="no"])
>       AC_SEARCH_LIBS([dlopen],[dl], [nutconf_tools_ok="yes"],[nutconf_tools_ok="no"])
131c133
<       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50], [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"],[-lm -ldl])
---
>       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50], [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"])



On Fri, Jun 10, 2005 at 03:33:29PM +0200, Harald Kipp wrote:
> Tim,
> 
> Special thanks for this. Up to now I'd been unable to find out,
> why this failed with some Lua packages. This one explains it.
> Now I'm puzzled, why the macro worked on my Debian machine.
> Anyway, I committed your change.
> 
> Harald
> 
>
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

-- 
                \\\///   
  Tim Lapawa    (o  -)   tim at lapawa.net
-------------oo0-(_)-0oo----------------------
   ,ooo0                 Where do you want
  (     )         0ooo,     to go tomorrow?
---\   (---------(     )----------------------
    \ _ )         )   / 
                 ( _ / 



More information about the En-Nut-Discussion mailing list