On 9/23/07, Ivan Kohler <[EMAIL PROTECTED]> wrote:
> Of course, if this were a simple prerequisite, I would have simply
> declared it PREREQ_PM in Makefile.PL.  But I don't know how (or if it is
> even possible) to declare an "or" relationship between dependencies, as
> I need to depend on Net::SSLeay 1.30 or later *OR* Crypt::SSLeay.
>
> Any suggestions from out there in CPAN tester land?

My suggestion:

in Makefile.PL, I would check for the existence of one of the other.
If either exists, I'd skip that prerequisite entirely.  If neither
exists, I'd arbitrarily add one of them as a prerequisite -- whichever
has the best record of successful installation.

That way, someone that has what you need isn't bothered, but someone
without either one at least gets one module that makes your module
work.

Regards,
David Golden

Reply via email to