Subject: Re: ifdef in Makefile.inc?

Re: ifdef in Makefile.inc?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Sep 2009 14:26:15 +0200 (CEST)

On Mon, 7 Sep 2009, Simon Josefsson wrote:

> As far as I know, 'ifdef' is not permitted in automake makefiles.
>
> I'm not able to build libssh2 without this patch to Makefile.inc:

The .inc files should also carefully be crafted to be used by differnt make
implementaitons so it should ideally not use ifdefs _at all_ methinks.

> How do we make things work?

I think we should let the .inc file assign two different variables, and then
the conditional would be in the actual makefile that would use one or the
other of the variables. So that the .inc file has no conditionals at all.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-09-07