You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.3 KiB

  1. --- a/Makefile.PL
  2. +++ b/Makefile.PL
  3. @@ -12,31 +12,31 @@ no_index directory => 'template';
  4. repository 'http://github.com/szbalint/WWW--Curl';
  5. # This is a hack. If you have libcurl installed, just specify curl.h below
  6. # and comment out this line.
  7. -if ($^O ne 'MSWin32') {
  8. - if (!$ENV{CURL_CONFIG}) {
  9. - requires_external_bin 'curl-config';
  10. - }
  11. -} else {
  12. - print "Sorry, no automated install is available on Windows,\n".
  13. - "please see the README.Win32 file on instructions for a manual install.\n";
  14. - exit(0);
  15. -}
  16. -
  17. -my $curl_config = $ENV{CURL_CONFIG} || 'curl-config';
  18. -
  19. -my $vernum = `${curl_config} --vernum`; chomp $vernum;
  20. -my $version = `${curl_config} --version`; chomp $version;
  21. -
  22. -my $minimum_ver = hex("070a08");
  23. -
  24. -if ($vernum && hex($vernum) <= $minimum_ver) {
  25. - print "Your currently installed libcurl version - $version - is too old.\n".
  26. - "This module doesn't seek compatibility with versions older than 7.10.8\n".
  27. - "Proceed manually if you know what you're doing.\n";
  28. - exit(0);
  29. -}
  30. -
  31. -print "The version is $version\n";
  32. +#if ($^O ne 'MSWin32') {
  33. +# if (!$ENV{CURL_CONFIG}) {
  34. +# requires_external_bin 'curl-config';
  35. +# }
  36. +#} else {
  37. +# print "Sorry, no automated install is available on Windows,\n".
  38. +# "please see the README.Win32 file on instructions for a manual install.\n";
  39. +# exit(0);
  40. +#}
  41. +#
  42. +#my $curl_config = $ENV{CURL_CONFIG} || 'curl-config';
  43. +#
  44. +#my $vernum = `${curl_config} --vernum`; chomp $vernum;
  45. +#my $version = `${curl_config} --version`; chomp $version;
  46. +#
  47. +#my $minimum_ver = hex("070a08");
  48. +#
  49. +#if ($vernum && hex($vernum) <= $minimum_ver) {
  50. +# print "Your currently installed libcurl version - $version - is too old.\n".
  51. +# "This module doesn't seek compatibility with versions older than 7.10.8\n".
  52. +# "Proceed manually if you know what you're doing.\n";
  53. +# exit(0);
  54. +#}
  55. +#
  56. +#print "The version is $version\n";
  57. my @includes = qw();
  58. my ($cflags,$lflags, $ldflags) = ('','','');
  59. @@ -58,10 +58,10 @@ if ($^O ne 'MSWin32') {
  60. # Get curl to tell us where it is, if we can.
  61. #
  62. -if ($^O ne 'MSWin32') {
  63. - $cflags = `${curl_config} --cflags`;
  64. - $lflags = `${curl_config} --libs`;
  65. -}
  66. +#if ($^O ne 'MSWin32') {
  67. +# $cflags = `${curl_config} --cflags`;
  68. +# $lflags = `${curl_config} --libs`;
  69. +#}
  70. # can't find link flags, make some guesses
  71. if (!defined($lflags)) {