File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ SAGE_SPKG_CONFIGURE([ mathjax] , [
2
+ # Arch: /usr/share/mathjax
3
+ # Gentoo: /usr/share/mathjax
4
+ # Void: /usr/share/mathjax
5
+ AC_MSG_CHECKING ( [ for MathJax-3.x] )
6
+ m4_foreach ( [ mathjax_dir] , [ /usr/share/mathjax] , [
7
+ # tex-chtml.hs is used in src/sage_docbuild/conf.py
8
+ # and was not present in MathJax-2.x
9
+ AS_IF ( [ test -f "mathjax_dir/tex-chtml.js"] , [
10
+ SAGE_MATHJAX_DIR="mathjax_dir"
11
+ AC_MSG_RESULT ( [ mathjax_dir] )
12
+ ] )
13
+ ] )
14
+ AS_IF ( [ test -z "${SAGE_MATHJAX_DIR}"] , [
15
+ AC_MSG_RESULT ( [ no] )
16
+ sage_spkg_install_mathjax=yes
17
+ ] )
18
+ ] ,[ ] ,[ ] ,[
19
+ # post-check
20
+ AS_IF ( [ test x$sage_spkg_install_mathjax = xyes] , [
21
+ # Our spkg-src script adds an extra "mathjax"
22
+ SAGE_MATHJAX_DIR='${prefix}'/share/mathjax/mathjax
23
+ ] )
24
+
25
+ AC_SUBST ( SAGE_MATHJAX_DIR , "${SAGE_MATHJAX_DIR}" )
26
+ ] )
You can’t perform that action at this time.
0 commit comments