Changeset 9444 for lang/perl/Crypt-DH-GMP
- Timestamp:
- 04/15/08 00:05:57 (5 years ago)
- Location:
- lang/perl/Crypt-DH-GMP/trunk
- Files:
-
- 3 added
- 1 modified
-
Makefile.PL (modified) (2 diffs)
-
inc (added)
-
inc/Devel (added)
-
inc/Devel/CheckLib.pm (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Crypt-DH-GMP/trunk/Makefile.PL
r9443 r9444 1 1 use strict; 2 use inc::Devel::CheckLib; 2 3 use ExtUtils::MakeMaker; 4 5 # Check for hellish-ness 6 my $RUNNING_IN_HELL = $^O eq 'MSWin32'; 7 8 my $CCFLAGS = $ENV{CCFLAGS}; 9 my $LDFLAGS = $ENV{LDFLAGS}; 10 if (! $RUNNING_IN_HELL) { 11 $CCFLAGS ||= '-I/usr/local/include'; 12 $LDFLAGS ||= '-L/usr/local/lib'; 13 } 14 15 { 16 eval { 17 Devel::CheckLib::assert_lib(lib => "gmp", LIBS => $LDFLAGS); 18 }; 19 if ($@) { 20 print <<EOM; 21 22 *** Whoa! libgmp was not detected! *** 23 24 Can't proceed without libgmp. 25 You will have to install libgmp by yourself. 26 27 EOM 28 exit 0; 29 } 30 } 31 3 32 4 33 # Stolen from Math::BigInt::GMP … … 17 46 'NAME' => 'Crypt::DH::GMP', 18 47 'VERSION_FROM' => 'lib/Crypt/DH/GMP.pm', 19 'LIBS' => [ '-lgmp'],48 'LIBS' => [ split(/\s+/, $LDFLAGS), '-lgmp'], 20 49 'OBJECT' => '$(O_FILES)', 50 'CCFLAGS' => $CCFLAGS, 21 51 # 'OPTIMIZE' => '-g', 22 52 );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)