Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/gap/patches/configure.patch
8818 views
1
--- src.orig/configure 2012-12-14 18:45:34.000000000 +0100
2
+++ src/configure 2013-01-15 16:09:19.962069400 +0100
3
@@ -4125,11 +4125,22 @@
4
*)
5
# user specified directory
6
GMP_HOME="$with_gmp"
7
- if test -d ${GMP_HOME}/include && test -f ${GMP_HOME}/lib/libgmp.a ; then
8
+ if test -d ${GMP_HOME}/include ;
9
+ then
10
GMP_CFLAGS="-I${GMP_HOME}/include"
11
- GMP_LIBS="${GMP_HOME}/lib/libgmp.a"
12
+ if test -f ${GMP_HOME}/lib/libgmp.a ; then
13
+ GMP_LIBS="${GMP_HOME}/lib/libgmp.a"
14
+ elif test -f ${GMP_HOME}/lib/libgmp.so; then
15
+ GMP_LIBS="${GMP_HOME}/lib/libgmp.so"
16
+ elif test -f ${GMP_HOME}/lib/libgmp.dll.a; then
17
+ GMP_LIBS="${GMP_HOME}/lib/libgmp.dll.a"
18
+ elif test -f ${GMP_HOME}/lib/libgmp.dylib; then
19
+ GMP_LIBS="${GMP_HOME}/lib/libgmp.dylib"
20
+ else
21
+ as_fn_error $? "Could not locate GMP library in the specified location" "$LINENO" 5
22
+ fi;
23
else
24
- as_fn_error $? "Could not locate GMP in the specified location" "$LINENO" 5
25
+ as_fn_error $? "Could not locate GMP header in the specified location" "$LINENO" 5
26
fi;
27
MAKE_GMP=""
28
;;
29
30