* Ben Pfaff wrote on Mon, Feb 26, 2007 at 05:41:15AM CET: > > The issue is foo_CFLAGS and foo_LDFLAGS need to refer back to the > directory in which foo is installed. Thus, if foo is in > bin_PROGRAMS then the following is correct: > > foo_CFLAGS = -DINSTALLDIR=\"$(bindir)\" > if RELOCATABLE_VIA_LD > foo_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)` > endif > > but if foo is in libexecdir_PROGRAMS then the following is needed > instead: [...]
Ah, ok, thanks for the explanation. Yes, this may be best solved from within Automake. Not sure if I have a chance to look at it soon though. Cheers, Ralf