[vlc-devel] [RFC PATCH 4/6] android: fix nanf detection

Thomas Guillem tom at gllm.fr
Thu Oct 9 11:21:44 CEST 2014


Is something like that better ?

AC_CHECK_FUNC(nanf, , [
  AC_CHECK_LIB(m, nanf, [
    AC_DEFINE(HAVE_NANF, 1, [Define to 1 if you have the NANF function])
    VLC_ADD_LIBS([libvlccore],[-lm])
  ])
])

On Wed, Oct 8, 2014, at 21:25, Rémi Denis-Courmont wrote:
> Le mercredi 8 octobre 2014, 21:23:37 Thomas Guillem a écrit :
> > Ahhh, I didn't know that nanf() could be in -lc.
> > Should I add nanf in AC_CHECK_FUNCS too or there is something cleaner ?
> 
> I don't know. The relevant question is whether some platforms do not have
> libm 
> at all. Otherwise the gratuitious -lm is a non-issue.
> 
> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list