> > On Nov 4, 2007, at 7:47 PM, NightStrike wrote:
> > > AM_CONDITIONAL(WITH32, test x$WITH_32 != x)
> > >
> > > And I put this in Makefile.am:
> > >
> > > if WITH32
> > >   crtdir=$(prefix)/lib32
> > >   uuidsrc = lib32/uuid.c
> > > else
> > >   crtdir=$(prefix)/$(target)/lib
> > >   uuidsrc = lib/uuid.c
> > > endif
> > >
> > > crtlibs_LIBRARIES += libuuid.a
> > > libuuid_a_SOURCES = $(uuidsrc)
> > >
> > >
> > > When I run autoreconf, I get this:
> > >
> > > Makefile.am: object `uuid.$(OBJEXT)' created by `lib32/uuid.c' and
> > > `lib/uuid.c'
[...]

You can adapt the hint from
  info Automake 'Libtool Issues'

to your example.  You'll have to live with a rewritten object file name
in that case though.

  info Automake 'Conditional Sources'

has more useful information.

Cheers,
Ralf


Reply via email to