Skip to content

Commit

Permalink
Trac #28879: spkg-configure for GSL
Browse files Browse the repository at this point in the history
URL: https://trac.sagemath.org/28879
Reported by: dimpase
Ticket author(s): Dima Pasechnik
Reviewer(s): Isuru Fernando
  • Loading branch information
Release Manager committed Jan 5, 2020
2 parents 3047e9e + a180599 commit c4ed371
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build/pkgs/gsl/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SAGE_SPKG_CONFIGURE([gsl], [
m4_pushdef([SAGE_GSL_MINVER],["2.4"])
SAGE_SPKG_DEPCHECK([atlas openblas], [
PKG_CHECK_MODULES([GSL], [gsl >= $SAGE_GSL_MINVER], [
PKG_CHECK_VAR([GSLPCDIR], [gsl], [pcfiledir], [
AC_CONFIG_COMMANDS([GSLPCPROCESS], [
$SED -e 's/\${GSL_CBLAS_LIB}\ //' \
-e 's/GSL_CBLAS_LIB.*/Requires: cblas/' $GSL_PC \
> "$SAGE_LOCAL"/lib/pkgconfig/gsl.pc
], [
SED=$ac_cv_path_SED
GSL_PC="$GSLPCDIR"/gsl.pc
])
], [
AC_MSG_WARN([Unable to locate the directory of gsl.pc. This should not happen!])
sage_spkg_install_gsl=yes
])
], [sage_spkg_install_gsl=yes])
])
m4_popdef([SAGE_GSL_MINVER])
])

0 comments on commit c4ed371

Please sign in to comment.