aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi/curl_download
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-27 16:03:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-27 16:03:27 +0000
commit34a3a382bf2047c9c31b57ae829752d4d7b6dfae (patch)
treea1fa9b52b4d22a72273ad5213f65d1f2d93a8f83 /grpmi/curl_download
parentc0e8b77b26dd2381e0f16d1747bb570882cf5a64 (diff)
downloadrpmdrake-34a3a382bf2047c9c31b57ae829752d4d7b6dfae.tar
rpmdrake-34a3a382bf2047c9c31b57ae829752d4d7b6dfae.tar.gz
rpmdrake-34a3a382bf2047c9c31b57ae829752d4d7b6dfae.tar.bz2
rpmdrake-34a3a382bf2047c9c31b57ae829752d4d7b6dfae.tar.xz
rpmdrake-34a3a382bf2047c9c31b57ae829752d4d7b6dfae.zip
MakeMaker cleanup
Diffstat (limited to 'grpmi/curl_download')
-rw-r--r--grpmi/curl_download/Makefile.PL16
1 files changed, 4 insertions, 12 deletions
diff --git a/grpmi/curl_download/Makefile.PL b/grpmi/curl_download/Makefile.PL
index 47bc8ffc..cc1fc8bf 100644
--- a/grpmi/curl_download/Makefile.PL
+++ b/grpmi/curl_download/Makefile.PL
@@ -1,23 +1,15 @@
use ExtUtils::MakeMaker;
-use Config;
-
-
-system("curl-config --libs 2>/dev/null 1>/dev/null") == 0
- or
- die_('CURL development environment seems to be missing (curl-config command reports an error)');
+my $libs = `curl-config --libs`;
+$? == 0 or die "CURL development environment seems to be missing (curl-config command reports an error)\n";
+chomp $libs;
WriteMakefile(
'NAME' => 'curl_download',
- 'LIBS' => [ chomp_(`curl-config --libs`) ],
+ 'LIBS' => [ $libs ],
'VERSION_FROM' => 'curl_download.pm', # finds VERSION
'OBJECT' => 'curl_download.o',
'INC' => '-I.',
'OPTIMIZE' => '-O2 -Wall -Werror',
'MAKEFILE' => 'Makefile_c',
);
-
-
-
-sub chomp_ { my @l = map { my $l = $_; chomp $l; $l } @_; wantarray ? @l : $l[0] }
-sub die_ { die "\n **ERROR**: @_\n\n" }