Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/giac/spkg-configure.m4: Test for giac executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 24, 2020
1 parent 64e80ac commit ab410b9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build/pkgs/giac/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
SAGE_SPKG_CONFIGURE([giac], [
SAGE_SPKG_DEPCHECK([pari], [
dnl giac does not seem to reveal its patchlevel
m4_pushdef([GIAC_MIN_VERSION], [1.5.0])
AC_CACHE_CHECK([for giac >= ]GIAC_MIN_VERSION, [ac_cv_path_GIAC], [
AC_PATH_PROGS_FEATURE_CHECK([GIAC], [giac], [
giac_version=$($ac_path_GIAC --version 2> /dev/null | tail -1)
AS_IF([test -n "$giac_version"], [
AX_COMPARE_VERSION([$giac_version], [ge], GIAC_MIN_VERSION, [
ac_cv_path_GIAC="$ac_path_GIAC"
])
])
])
])
AS_IF([test -z "$ac_cv_path_GIAC"],
[sage_spkg_install_giac=yes])
AC_CHECK_HEADER([giac/giac.h], [
AC_SEARCH_LIBS([ConvertUTF16toUTF8], [giac], [
], [sage_spkg_install_giac=yes])
], [sage_spkg_install_giac=yes])
m4_popdef([GIAC_MIN_VERSION])
])
])

0 comments on commit ab410b9

Please sign in to comment.