Subject: | presence of cygpath needs to be check on module load |
On Cygwin builds, a backquote call is made to cygpath for DLL path
conversion. If cygwin perl is started without cygwin being in the PATH,
cygpath will not be found and the DLL path turns to empty string leading
and fails, possibly with a bad $^E (I got "network connection lost" but
that might be part of my Perl debugger). Add a test call to cygpath
during the modules require phase. Die during module load if cygpath
backquote test call (I'm thinking a `cygpath -V` and an index string
search) didn't work. Also check to make sure " if ($^O eq
'cygwin' and $dll ne File::Basename::basename($dll)) {" is const folded
away on VC Perl. This is a reminder for myself.