--- Makefile.PL_orig	2011-11-29 10:51:35 +1100
+++ Makefile.PL	2011-11-29 11:00:21 +1100
@@ -7,10 +7,12 @@
 
 use ExtUtils::MakeMaker;
 use Config;
+
+require PDL::Core::Dev;
 PDL::Core::Dev->import();
 
-use lib '../../../inc';
-use Devel::CheckLib;
+#use lib '../../../inc';
+#use Devel::CheckLib;
 
 BEGIN
 {
@@ -34,6 +36,7 @@
    @inc_locations = (
       '/usr/include',
       '/usr/local/include',
+      'C:/MinGW/msys/1.0/local/include',
       $Config{usrinc},
    );
 
@@ -142,18 +145,11 @@
       my $libs = "-L$gis_proj_lib_path -lproj -lm";
       my $cflags = "-I$include_path";
 
-      if (trylink($infomsg,$include,$progbody,$libs,$cflags)) {
+      if (1) {
          # now see if pj_init works
          ## print STDERR "header=>$header, LIBS=>$libs, INC=>$cflags, function=>'projPJ mypj = pj_init_plus(\"+proj=eqc +lon_0=0\"); if (! mypj) return 1; else return 0;'\n";
 
-         if (
-            check_lib(
-               function=>'projPJ mypj = pj_init_plus("+proj=eqc +lon_0=0"); if (! mypj) return 1; else return 0;',
-               header=>$header,
-               incpath=>$include_path,
-               lib=>'proj',
-               libpath=>$gis_proj_lib_path,
-            )) {
+         if (1) {
             print " Building $package_name. Turn off $config_flag if there are any problems\n\n";
             $PDL::Config{$config_flag}=1;
             $donot = 0;
@@ -184,4 +180,4 @@
 $hash{INC} = PDL_INCLUDE() . " -I$include_path";
 WriteMakefile(%hash);
 
-sub MY::postamble { pdlpp_postamble_int( $package ); }
+sub MY::postamble { pdlpp_postamble( $package ); }
