1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2024-12-18 23:22:52 +01:00

- enable configure option to compile with ECL compiler.

This commit is contained in:
cage 2022-03-26 11:14:47 +01:00
parent c7d2a5513e
commit 02ade8d0ed
2 changed files with 21 additions and 11 deletions

21
configure vendored
View File

@ -757,6 +757,7 @@ with_gnu_ld
enable_rpath
with_libiconv_prefix
with_libintl_prefix
with_ecl
'
ac_precious_vars='build_alias
host_alias
@ -1411,6 +1412,7 @@ Optional Packages:
--without-libiconv-prefix don't search for libiconv in includedir and libdir
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
--without-libintl-prefix don't search for libintl in includedir and libdir
--with-ecl Compile with Embedded Common Lisp compiler
Some influential environment variables:
CC C compiler command
@ -7105,13 +7107,20 @@ fi
# Check whether --with-ecl was given.
if test ${with_ecl+y}
then :
withval=$with_ecl; LISP_COMPILER=$LISP_COMPILER_ECL
fi
if test "$LISP_COMPILER" = "no" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can not find SBCL, Common Lisp compiler." >&5
printf "%s\n" "$as_me: WARNING: Can not find SBCL, Common Lisp compiler." >&2;};
LISP_COMPILER=$LISP_COMPILER_ECL;
if test "$LISP_COMPILER_ECL" = "no" ; then
as_fn_error $? "Can not find ECL, Common Lisp compiler." "$LINENO" 5;
fi
if test "$LISP_COMPILER_ECL" != "no" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to find SBCL but ECL seems installed on your system, try: \"./reconfigure --with-ecl\"" >&5
printf "%s\n" "$as_me: Unable to find SBCL but ECL seems installed on your system, try: \"./reconfigure --with-ecl\"" >&6;}
fi
as_fn_error $? "Unable to find a Common Lisp compiler." "$LINENO" 5;
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $LISP_COMPILER as Common Lisp compiler" >&5

View File

@ -45,12 +45,13 @@ AC_PATH_PROG([LISP_COMPILER],[sbcl],[no])
AC_PATH_PROG([LISP_COMPILER_ECL],[ecl],[no])
AC_ARG_WITH([ecl], [AS_HELP_STRING([--with-ecl], [Compile with Embedded Common Lisp compiler])], [LISP_COMPILER=$LISP_COMPILER_ECL], [])
if test "$LISP_COMPILER" = "no" ; then
AC_MSG_WARN([Can not find SBCL, Common Lisp compiler.]);
LISP_COMPILER=$LISP_COMPILER_ECL;
if test "$LISP_COMPILER_ECL" = "no" ; then
AC_MSG_ERROR([Can not find ECL, Common Lisp compiler.]);
fi
if test "$LISP_COMPILER_ECL" != "no" ; then
AC_MSG_NOTICE([Unable to find SBCL but ECL seems installed on your system, try: "./reconfigure --with-ecl"])
fi
AC_MSG_ERROR([Unable to find a Common Lisp compiler.]);
fi
AC_MSG_NOTICE([Using $LISP_COMPILER as Common Lisp compiler])