Skip to content

Commit

Permalink
Make sure libgmp and gmp.h are present
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Sep 14, 2010
1 parent 7adbad1 commit 5156602
Show file tree
Hide file tree
Showing 3 changed files with 448 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Makefile*
META.yml
blib
build
inc
pm_to_blib
MANIFEST*
!MANIFEST.SKIP
Expand Down
4 changes: 4 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use ExtUtils::MakeMaker;
use lib 'inc'; # load our bundled version of Devel::CheckLib
use Devel::CheckLib;

#printf "Your OS is [%s]!\n---\n", $Config::Config{'osname'}; ### for testing purpose only

Expand Down Expand Up @@ -42,6 +44,8 @@ sub MY::metafile {
"metafile:\n$dump";
}

check_lib_or_exit(lib => 'gmp', header => 'gmp.h', @ARGV);

WriteMakefile(
'NAME' => 'Math::BigInt::GMP',
'VERSION_FROM' => 'lib/Math/BigInt/GMP.pm',
Expand Down
Loading

0 comments on commit 5156602

Please sign in to comment.