aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstroFloyd <AstroFloyd@gmail.com>2018-11-19 09:52:38 +0100
committerAstroFloyd <AstroFloyd@gmail.com>2018-11-19 09:52:38 +0100
commite2be4a69e02d303ea063193daecb3eac9f247183 (patch)
tree17d552e81a1d381779128c623954ea6b280ede7c /sci-mathematics/giac/files/giac-1.2.2-gsl_lapack.patch
parentRemove obsolete ebuilds (diff)
downloadAstroFloyd-e2be4a69e02d303ea063193daecb3eac9f247183.tar.gz
AstroFloyd-e2be4a69e02d303ea063193daecb3eac9f247183.tar.bz2
AstroFloyd-e2be4a69e02d303ea063193daecb3eac9f247183.zip
sci-mathematics/giac: Copy v1.4.9.71-r1 from Sage-on-Gentoo overlay
Signed-off-by: AstroFloyd <AstroFloyd@gmail.com>
Diffstat (limited to 'sci-mathematics/giac/files/giac-1.2.2-gsl_lapack.patch')
-rw-r--r--sci-mathematics/giac/files/giac-1.2.2-gsl_lapack.patch79
1 files changed, 79 insertions, 0 deletions
diff --git a/sci-mathematics/giac/files/giac-1.2.2-gsl_lapack.patch b/sci-mathematics/giac/files/giac-1.2.2-gsl_lapack.patch
new file mode 100644
index 0000000..743f579
--- /dev/null
+++ b/sci-mathematics/giac/files/giac-1.2.2-gsl_lapack.patch
@@ -0,0 +1,79 @@
+diff --git a/configure.in b/configure.in
+index 0f85137..dff76b3 100644
+--- a/configure.in
++++ b/configure.in
+@@ -38,6 +38,7 @@ AC_LANG([C++])
+ AC_PROG_LIBTOOL
+ AC_PROG_YACC
+ AM_PROG_LEX
++PKG_PROG_PKG_CONFIG
+
+ dnl Check for standard C+headers
+ GINAC_STD_CXX_HEADERS
+@@ -111,47 +112,13 @@ AC_CHECK_SIZEOF(long)
+ AC_CHECK_SIZEOF(long long)
+
+ dnl Checking for Gnu Sci Lib
+-CONFIG_GSL="yes"
+-AC_ARG_ENABLE([gsl],[
+- AS_HELP_STRING([--enable-gsl], [Use GNU scientific library [[default=yes]]])],
+- [ if test "x$enableval" = "xno"; then CONFIG_GSL="no"; fi], [])
+-
+-if test "$CONFIG_GSL" = "yes"; then
+- AC_CHECK_HEADERS(gsl/gsl_blas.h)
+- AC_CHECK_HEADERS(gsl/gsl_eigen.h)
+- if test "$ac_cv_header_gsl_gsl_blas_h" != "yes" -o "$ac_cv_header_gsl_gsl_eigen_h" != "yes"; then
+- CONFIG_GSL="no"
+- fi
+-fi
+-if test "$CONFIG_GSL" = "yes"; then
+- save_LIBS="$LIBS"
+- AC_CHECK_LIB(gslcblas, main, [], [CONFIG_GSL="no"])
+- AC_CHECK_LIB(gsl, gsl_sf_gamma, [], [CONFIG_GSL="no"])
+- LIBS="$save_LIBS"
+- fi
+-GSL_LIBS=""
+-if test "$CONFIG_GSL" = "yes"; then
+- GSL_LIBS="-lgsl -lgslcblas"
+- fi
+-AC_SUBST(CONFIG_GSL)
+-AC_SUBST(GSL_LIBS)
+-AM_CONDITIONAL(CONFIG_GSL, [test "$CONFIG_GSL" = "yes"])
++PKG_CHECK_MODULES([GSL], [gsl],[
++ AC_DEFINE(HAVE_LIBGSL,1, [Define if gsl is installed])
++ AC_SUBST(GSL_LIBS)])
+
+-CONFIG_LAPACK="yes"
+-AC_ARG_ENABLE([lapack],
+- [AS_HELP_STRING([--enable-lapack], [Use LAPACK [[default=yes]]])],
+- [ if test "$enableval" = "no"; then CONFIG_LAPACK="no"; fi], [])
+-
+-if test "$CONFIG_LAPACK" = "yes"; then
+-# AC_CHECK_LIB(f2c, main, [], [CONFIG_LAPACK="no"])
+-# AC_CHECK_LIB(blas, main, [], [CONFIG_LAPACK="no"])
+-# AC_CHECK_LIB(tmglib, main, [], [CONFIG_LAPACK="no"])
+- AC_CHECK_LIB(gfortran, main)
+- AC_CHECK_LIB(blas, main)
+- AC_CHECK_LIB(lapack, main, [], [CONFIG_LAPACK="no"])
+-# AX_BLAS([have_blas=yes],[have_blas=no])
+-# AX_LAPACK([have_lapack=yes],[have_lapack=no])
+-fi
++PKG_CHECK_MODULES([LAPACK], [lapack],[
++ AC_DEFINE(HAVE_LIBLAPACK,1,[Define if LAPACK is installed])
++ AC_SUBST(LAPACK_LIBS)])
+
+ CONFIG_PARI="yes"
+ AC_ARG_ENABLE([pari],
+diff --git a/src/Makefile.am b/src/Makefile.am
+index df15c37..e2b2e82 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -13,7 +13,7 @@ libgiac_la_SOURCES = input_lexer.ll sym2poly.cc gausspol.cc threaded.cc \
+ input_lexer.h input_parser.h threaded.h vector.h \
+ help.cc # Ugh..
+
+-libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS)
++libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS) $(LAPACK_LIBS)
+
+ giacincludedir = $(includedir)/giac
+ giacinclude_HEADERS = dispatch.h fraction.h gen.h desolve.h misc.h ti89.h \