mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-06 17:30:41 -08:00
Patches for the patches for C++ compatibility
This commit is contained in:
parent
c9b91f9618
commit
995033beba
3 changed files with 286 additions and 122 deletions
|
|
@ -8,7 +8,7 @@ VPATH = @srcdir@
|
|||
# Programs used by "make":
|
||||
#
|
||||
|
||||
CC = @CC@
|
||||
CC = @ECL_CC@
|
||||
DEFS = -D@host@
|
||||
LIBS = @LIBS@ @TKLIBS@ @CLIBS@
|
||||
CFLAGS = @CFLAGS@
|
||||
|
|
|
|||
390
src/configure
vendored
390
src/configure
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -81,19 +81,21 @@ AC_ARG_ENABLE(shared,
|
|||
AC_ARG_WITH(oldloop,
|
||||
[--with-oldloop Use the old MIT LOOP macro.],
|
||||
oldloop="yes")
|
||||
AC_ARG_ENABLE(cxx,
|
||||
[--enable-cxx Build ECL using C++ compiler],
|
||||
usecxx="$enable_cxx")
|
||||
|
||||
### ----------------------------------------------------------------------
|
||||
### Checks for programs
|
||||
###
|
||||
AC_PROG_CC # sets variable CC
|
||||
if test "$GCC" != "yes"; then
|
||||
AC_MSG_ERROR(Cannot build ECL without GCC)
|
||||
fi
|
||||
AC_PROG_CXX # sets variable CXX
|
||||
AC_PROG_CPP # sets variable CPP
|
||||
AC_PROG_RANLIB # sets variable RANLIB
|
||||
AC_PROG_INSTALL # sets variables INSTALL, INSTALL_DATA, INSTALL_PROGRAM
|
||||
AC_PROG_LN_S # sets variable LN_S
|
||||
AC_EXEEXT dnl Guess whether .exe is needed for executables
|
||||
AC_SUBST(ECL_CC)dnl Which compiler should we use for building ECL
|
||||
AC_SUBST(CFLAGS)dnl Flags for the compiler
|
||||
AC_SUBST(LSPCFLAGS)dnl Additional flags needed to compile translated code
|
||||
AC_SUBST(CLIBS)dnl System libraries to be linked in
|
||||
|
|
@ -205,6 +207,11 @@ if test "${threads}" ; then
|
|||
EXTRA_OBJS="${EXTRA_OBJS} lwp.o"
|
||||
AC_DEFINE(THREADS)
|
||||
fi
|
||||
if test "${usecxx}" ; then
|
||||
ECL_CC="${CXX}"
|
||||
else
|
||||
ECL_CC="${CC}"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------
|
||||
dnl Study the call conventions
|
||||
|
|
@ -272,7 +279,8 @@ else
|
|||
if mkdir gmp; then
|
||||
(cd gmp;
|
||||
$srcdir/gmp/configure --disable-shared --prefix=$bindir \
|
||||
--includedir=${builddir}/h --libdir=${builddir} $gmp_flags)
|
||||
--infodir=${builddir}/doc --includedir=${builddir}/h \
|
||||
--libdir=${builddir} $gmp_flags)
|
||||
fi
|
||||
fi
|
||||
dnl ---------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue