Commit 75dbb318 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

quick hack to make it working again on Win32 - however we should consider to...

quick hack to make it working again on Win32 - however we should consider to set some defaults depending on the compiler architecture we guess we are since it doesnt work well if we prefer building the msvc makefile with gmake instead of nmake because we found gmake first in path....
parent 32330300
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -414,18 +414,21 @@ if ($configurebuild) {
sub findinpath {
  my $c;
  my $e;
  my $x='';
  $x='.exe' if ($^O eq 'MSWin32');
  my $s=':';
  $s=';' if ($^O eq 'MSWin32');
  my $p=$ENV{'PATH'};
    my @pa = split(":", $p);
  my @pa = split($s, $p);
  for $c (@_) {
    for $e (@pa) {
            if( -x "$e/$c") {
      if( -x "$e/$c$x") {
        return $c;
      }
    }
  }
}


my $make = findinpath("gmake", "make", "nmake");
if(!$make) {
    mydie "Couldn't find make in the PATH";