[vlc-devel] [PATCH] configure.ac - lua checks

Dominique Martinet asmadeus at via.ecp.fr
Tue Sep 1 12:16:33 CEST 2009


Rémi Denis-Courmont wrote on Sat, Aug 29, 2009 :
> Le vendredi 28 août 2009 23:56:39 Dominique Martinet, vous avez écrit :
> > I don't pretend it's useful on all systems, but I compiled lua with
> > default options, so i suspect it affects most systems; besides, libm
> > is probably used everywhere already so I don't think it matters (and
> > what would you want to do, check once without libm and if it fails,
> > once again with ? I think three checks is already bad enough)
> 
> Do we really need to check for -lm with ALL possible library names? As far as 
> I can tell, it's only needed for static linking, in which case we should have 
> the official name "lua".
> 

Indeed, I have just tried on debian (with lua installed as 'lua5.1'),
and it does not require -lm.

-lm seems to only be needed for the official name
(the stripping of two occurences of -lm should be trivial enough for
me not to repost a similar patch ;p)


-- 
Asmadeus | Dominique Martinet



More information about the vlc-devel mailing list