Subject: Re: detecting ssh
To: Martti Kuparinen <firstname.lastname@example.org>
From: Johnny Lam <email@example.com>
Date: 09/11/2001 09:29:52
On Tue, Sep 11, 2001 at 10:56:01AM +0300, Martti Kuparinen wrote:
> I'm creating package for keychain and before I'll submit a PR I'd
> like to know how to test if there is ssh-agent or not.
> Should I just do
> .if !exists(/usr/bin/ssh-agent)
> DEPENDS+= ...
> or should I check for the operating system version and assume that
> after certain release there is ssh included in the operating system?
> Which is the "right" way to do this?
Feature tests are always more reliable than OS version comparisons. The
Makefile fragment you coded above looks fine.
-- Johnny Lam <firstname.lastname@example.org>