summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 39fe2a6..0fff95c 100755
--- a/configure
+++ b/configure
@@ -47,6 +47,9 @@ if ($? == 0) {
`echo '\#include <histedit.h>' | $CC $CFLAGS $OBJCFLAGS -c -o /dev/null -x c - 2>/dev/null`;
$histedit_h = 1 if ($? == 0);
+`echo '\#include <gmp.h>' | $CC $CFLAGS $OBJCFLAGS -c -o /dev/null -x c - 2>/dev/null`;
+$gmp_h = 1 if ($? == 0);
+
`$XCODEBUILD -version`;
if ($? == 0) {
$xcode = 1;
@@ -80,6 +83,17 @@ if ($no_ffi) {
}
}
+unless ($gmp_h) {
+ print " * GNU MP\n";
+ if ($darwin || $debian) {
+ $install = "$install gmp" if $darwin;
+ $install = "$install libgmp3-dev" if $debian;
+ $installp = 1;
+ } else {
+ push @steps, (" * Download and install GNU MP from: http://gmplib.org/\n");
+ }
+}
+
unless ($histedit_h) {
print " * libedit\n";
if ($darwin || $debian) {