Re: Pthread detection in glib 2.2.1



Hi Daniel,

> > -pthreads is detected and every compile command generates the above
> > warning. How about a more reliable method to detech the pthread flags?
> > I think the first thing to do is use the default compiler options and
> > then start adding to $CFLAGS or $CPPFLAGS. I've started a patch below.
> 
> Is there any possibility of an offline detection (i.e. by compiling
> instead of compiling *and* running a testprogram)? 
> 
> As far as I am concerned we have far too much online checks in configure
> which makes crosscompiling a PITA.

All this is nowadays solved with 

AC_TRY_RUN (bla, bla, bla, AC_LINK_IF_ELSE (bla, bla, bla)) 

thanks to Owen, so it shouldn't be a problem.

Bye,
Sebastian
-- 
Sebastian Wilhelmi                 |            här ovanför alla molnen
mailto:seppi seppi de              |     är himmlen så förunderligt blå
http://seppi.de




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]