On Wed, Sep 18, 2013 at 3:49 PM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <da...@cpan.org> wrote: >> how to cause an install of >> List::BinarySearch to attempt to download and install >> List::BinarySearch::XS (a separate distribution) > Include the prerequisite conditionally at configure time. The condition > is whether xsubpp/cccmd can compile a dummy XS file.
That's too late, isn't it? If the user types, "cpan install List::BinarySearch", Makefile.PL doesn't get executed until after the target module is pulled in. Prereqs are specified in the distribution's META.* files. By the time Makefile.PL is run, the installer is done pulling in prereqs. The goal is for a cpan installer to pull in the XS distribution and attempt to install it. Failure not block the PP module from completing its install. -- David Oswald daosw...@gmail.com