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

Re: Bug#630206: libnss-myhostname: FTBFS: fatal error: asm/types.h: No such file or directory



On Tue, 14.06.11 17:49, Robert Millan (rmh@debian.org) wrote:

> 2011/6/13 Lennart Poettering <lennart@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.


Reply to: