On Tue, 14.06.11 17:49, Robert Millan (r...@debian.org) wrote: > 2011/6/13 Lennart Poettering <lenn...@poettering.net>: > >> +#ifdef __linux__ > >> +#include "netlink.c" > >> +#else > >> +#include "legacy.c" > >> +#endif > > > > Urks, no. Please do this in Makefile.am. > > Tried that, but it's a no-go. Automake doesn't support > build time substitutions in _SOURCES AFAICT (its maintainers > seem to confirm this in > http://lists.gnu.org/archive/html/automake/2008-08/msg00047.html)
Uh? No. Please use autoconf conditions and then do if LEGACY foo_SOURCES += legacy.c else foo_SOURCES += netlink.c endif In the Makefile.am file. Lennart -- Lennart Poettering - Red Hat, Inc. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org