Subject: RE: either or DEPENDS?
To: None <mcmahill@mtl.mit.edu>
From: Tim Rightnour <root@garbled.net>
List: tech-pkg
Date: 12/22/1998 23:22:10
On 23-Dec-98 mcmahill@mtl.mit.edu spoke unto us all:
#  is there a clean way to handle this in a package?  I could hack a gnu
#  'configure' script to search for f77 and then f2c-f77 and then fail if
#  neither is there, but it would be nice if the package would just tell the
#  user 'hey, you need one of these things'.
#  
#  Any suggestions?

I had discussed doing this before, but I don't think anything ever happened of
it.  One of my ideas would be something like:

.if !exists(/usr/bin/f77)
DEPENDS+= f2c
.endif

You could add other goop in there that a configure script, or tuned makefile
would pick up on.

---
Tim Rightnour  -  root@garbled.net
Free Multi-Platform Operating System: http://www.netbsd.org
NetBSD Mailing lists on the web: http://mail-index.netbsd.org/mlist