|
From: Nicholas N. <n.n...@gm...> - 2009-05-29 07:06:14
|
On Wed, May 20, 2009 at 10:05 AM, Nicholas Nethercote <n.n...@gm...> wrote: > On Tue, May 19, 2009 at 6:06 PM, Julian Seward <js...@ac...> wrote: >> Anyway, this leads to the current question, which is what to do about >> the sources for check_PROGRAMS components which are only conditionally >> defined, eg >> >> if HAVE_PTHREAD_BARRIER >> check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit >> endif > > Maybe we need this: > > if HAVE_PTHREAD_BARRIER > check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit > else > EXTRA_DIST += matinv.c pth_barrier.c pth_barrier_race.c pth_barrier_reinit.c > endif I just looked into this. It seems that automake includes the source files for the programs listed in check_PROGRAMS above, even if HAVE_PTHREAD_BARRIER isn't true. Which makes sense really, otherwise everyone would face this problem. In other words, we don't have to do anything. Hooray! Nick |