X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=win32%2Fconfig_h.PL;h=f317e5a407161753543df84578e6a77ebc5aed27;hb=a1dd93259a6bf8541f88c948d6f510cc5090ff8e;hp=98b474a144e2be7094e6084c610e4282bd568b1f;hpb=c90c0ff485be15aaf3ee20121299cb014ee6b1ff;p=p5sagit%2Fp5-mst-13.2.git diff --git a/win32/config_h.PL b/win32/config_h.PL index 98b474a..f317e5a 100644 --- a/win32/config_h.PL +++ b/win32/config_h.PL @@ -27,6 +27,7 @@ eval $str; die "$str:$@" if $@; open(H,">$file.new") || die "Cannot open $file.new:$!"; +binmode H; # no CRs (which cause a spurious rebuild) while () { last if /^$term$/o; @@ -37,14 +38,23 @@ while () s#/[ *\*]*\*/#/**/#; if (/^\s*#define\s+ARCHLIB_EXP/) { - $_ = "#define ARCHLIB_EXP (win32PerlLibPath())\t/**/\n"; + $_ = "#define ARCHLIB_EXP (win32_perllib_path(ARCHNAME,NULL))\t/**/\n"; + } + if (/^\s*#define\s+PRIVLIB_EXP/) + { + $_ = "#define PRIVLIB_EXP (win32_perllib_path(NULL))\t/**/\n" + } + if (/^\s*#define\s+SITEARCH_EXP/) + { + $_ = "#define SITEARCH_EXP (win32_perllib_path(\"site\",ARCHNAME,NULL))\t/**/\n"; + } + if (/^\s*#define\s+SITELIB_EXP/) + { + $_ = "#define SITELIB_EXP (win32_perllib_path(\"site\",NULL))\t/**/\n"; } print H; } print H "#include -#ifndef DEBUGGING -#define DEBUGGING -#endif "; close(H); close(SH); @@ -60,7 +70,7 @@ if (compare("$file.new",$file)) chmod(0666,$file); unlink($file); rename("$file.new",$file); - chmod(0444,$file); + #chmod(0444,$file); exit(1); }