Path: blob/master/build/pkgs/gap/patches/configure.patch
8818 views
--- src.orig/configure 2012-12-14 18:45:34.000000000 +01001+++ src/configure 2013-01-15 16:09:19.962069400 +01002@@ -4125,11 +4125,22 @@3*)4# user specified directory5GMP_HOME="$with_gmp"6- if test -d ${GMP_HOME}/include && test -f ${GMP_HOME}/lib/libgmp.a ; then7+ if test -d ${GMP_HOME}/include ;8+ then9GMP_CFLAGS="-I${GMP_HOME}/include"10- GMP_LIBS="${GMP_HOME}/lib/libgmp.a"11+ if test -f ${GMP_HOME}/lib/libgmp.a ; then12+ GMP_LIBS="${GMP_HOME}/lib/libgmp.a"13+ elif test -f ${GMP_HOME}/lib/libgmp.so; then14+ GMP_LIBS="${GMP_HOME}/lib/libgmp.so"15+ elif test -f ${GMP_HOME}/lib/libgmp.dll.a; then16+ GMP_LIBS="${GMP_HOME}/lib/libgmp.dll.a"17+ elif test -f ${GMP_HOME}/lib/libgmp.dylib; then18+ GMP_LIBS="${GMP_HOME}/lib/libgmp.dylib"19+ else20+ as_fn_error $? "Could not locate GMP library in the specified location" "$LINENO" 521+ fi;22else23- as_fn_error $? "Could not locate GMP in the specified location" "$LINENO" 524+ as_fn_error $? "Could not locate GMP header in the specified location" "$LINENO" 525fi;26MAKE_GMP=""27;;282930