On Mon, Mar 04, 2013 at 10:16:28PM +0100, Diego Biurrun wrote: > On Mon, Mar 04, 2013 at 02:36:26PM +0100, Anton Khirnov wrote: > > On Mon, 04 Mar 2013 14:16:11 +0100, Diego Biurrun <[email protected]> wrote: > > > On Mon, Mar 04, 2013 at 11:35:04AM +0100, Anton Khirnov wrote: > > > > --- a/configure > > > > +++ b/configure > > > > @@ -3440,6 +3443,10 @@ check_func strerror_r > > > > check_func strtok_r > > > > check_func sched_getaffinity > > > > +# cannot use check_func, because those are builtins > > > > +check_code ld "" "__sync_synchronize()" && enable sync_synchronize > > > > +check_code ld mbarrier.h "__machine_rw_barrier()" && enable > > > > machine_rw_barrier > > > > +check_code ld windows.h "MemoryBarrier()" && enable MemoryBarrier > > > > > > What is the problem with check_func? > > > > It declares the checked function as extern int $func(); > > This does not work for those builtins, since they are not functions. > > We have other places that check for intrinsics in a similar fashion. > I'll add a convenience function.
Please rebase on top of master and use the check_builtin() function I just added. Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
