aboutsummaryrefslogtreecommitdiff
path: root/configure.ac.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac.pamphlet')
-rw-r--r--configure.ac.pamphlet22
1 files changed, 18 insertions, 4 deletions
diff --git a/configure.ac.pamphlet b/configure.ac.pamphlet
index ec693209..e8301d74 100644
--- a/configure.ac.pamphlet
+++ b/configure.ac.pamphlet
@@ -766,18 +766,32 @@ fi
Do we need to build our own version of \Tool{GCL}? The answer is yes, if
\begin{itemize}
\item the option \verb!--with-lisp! is not specified, and
-\item no \Tool{GCL} image is available in the build environment.
+ no \Tool{GCL} image is available in the build environment; or
+\item we found a \Tool{GCL} image, but it is too old for OpenAxiom.
\end{itemize}
-Consequently, we need to check for \Tool{GCL}:
+Consequently, we need to check for \Tool{GCL} and its version:
<<find lisp>>=
-## We need to build our own GCL if none is avalaible
+## We need to build our own GCL if none is avalaible, or the existing
+## one is too old.
if test -z $axiom_lisp; then
AC_PATH_PROG([AXIOM_LISP], [gcl])
## A lisp may not be available AND the GCL source may also
## be missing. Instruct user to either build one or get
## the dependencies from our website.
+ if test -n "$AXIOM_LISP"; then
+ AC_MSG_CHECKING([$AXIOM_LISP version])
+ v=`$AXIOM_LISP -batch -eval "(format t \"~S\" (lisp-implementation-version))"`
+ AC_MSG_RESULT([$v])
+ case $v in
+ *2.6.7*|*2.6.8*) ;; # OK
+ *)
+ AC_MSG_WARN([$v is not supported by this version of OpenAxiom. $AXIOM_LISP will be ignored.])
+ AXIOM_LISP=
+ ;;
+ esac
+ fi
if test -z $AXIOM_LISP && test ! -d ${srcdir}/gcl; then
- AC_MSG_ERROR([OpenAxiom needs GCL. Either separately build one, or get the dependency tarball from OpenAxiom website.])
+ AC_MSG_ERROR([OpenAxiom requires GCL-2.6.7 or GCL-2.6.8. Either separately build one, or get the dependency tarball from OpenAxiom download website.])
fi
axiom_lisp=$AXIOM_LISP