From 996ff08c0a01304cd8199da504a1946da37f4fc0 Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Mon, 2 May 2005 12:49:30 +0000 Subject: [PATCH] Under Mingw32, solved mistakes in the name of the executables (suffix .exe missing) and the detection of fast setjmp/longjmp --- src/aclocal.m4 | 2 +- src/configure | 36 ++++++++++++++++++------------------ src/configure.in | 4 ++-- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index c48c61e89..aca67375f 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -340,7 +340,7 @@ dnl in several architectures. AC_DEFUN(ECL_FIND_SETJMP,[ AC_SUBST(ECL_SETJMP) AC_SUBST(ECL_LONGJMP) -AC_CHECK_FUNC(_setjmp, +AC_CHECK_FUNC(_longjmp, ECL_SETJMP="_setjmp";ECL_LONGJMP="_longjmp", ECL_SETJMP="setjmp";ECL_LONGJMP="longjmp")]) diff --git a/src/configure b/src/configure index eaaa2d4db..8a5f611ab 100755 --- a/src/configure +++ b/src/configure @@ -1523,8 +1523,8 @@ test -z "${docdir}" && docdir="${datadir}/doc/ecl" boehm_configure_flags="" - TARGETS=ecl${EXEEXT} - SUBDIRS=c + TARGETS='ecl$(EXE)' +SUBDIRS=c # Make sure we can run config.sub. @@ -6444,9 +6444,9 @@ esac -echo "$as_me:$LINENO: checking for _setjmp" >&5 -echo $ECHO_N "checking for _setjmp... $ECHO_C" >&6 -if test "${ac_cv_func__setjmp+set}" = set; then +echo "$as_me:$LINENO: checking for _longjmp" >&5 +echo $ECHO_N "checking for _longjmp... $ECHO_C" >&6 +if test "${ac_cv_func__longjmp+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6455,12 +6455,12 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define _setjmp to an innocuous variant, in case declares _setjmp. +/* Define _longjmp to an innocuous variant, in case declares _longjmp. For example, HP-UX 11i declares gettimeofday. */ -#define _setjmp innocuous__setjmp +#define _longjmp innocuous__longjmp /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char _setjmp (); below. + which can conflict with char _longjmp (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ @@ -6470,7 +6470,7 @@ cat >>conftest.$ac_ext <<_ACEOF # include #endif -#undef _setjmp +#undef _longjmp /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus @@ -6479,14 +6479,14 @@ extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char _setjmp (); +char _longjmp (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ -#if defined (__stub__setjmp) || defined (__stub____setjmp) +#if defined (__stub__longjmp) || defined (__stub____longjmp) choke me #else -char (*f) () = _setjmp; +char (*f) () = _longjmp; #endif #ifdef __cplusplus } @@ -6495,7 +6495,7 @@ char (*f) () = _setjmp; int main () { -return f != _setjmp; +return f != _longjmp; ; return 0; } @@ -6522,19 +6522,19 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func__setjmp=yes + ac_cv_func__longjmp=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_func__setjmp=no +ac_cv_func__longjmp=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: $ac_cv_func__setjmp" >&5 -echo "${ECHO_T}$ac_cv_func__setjmp" >&6 -if test $ac_cv_func__setjmp = yes; then +echo "$as_me:$LINENO: result: $ac_cv_func__longjmp" >&5 +echo "${ECHO_T}$ac_cv_func__longjmp" >&6 +if test $ac_cv_func__longjmp = yes; then ECL_SETJMP="_setjmp";ECL_LONGJMP="_longjmp" else ECL_SETJMP="setjmp";ECL_LONGJMP="longjmp" diff --git a/src/configure.in b/src/configure.in index eb34d20ea..d24424be1 100644 --- a/src/configure.in +++ b/src/configure.in @@ -131,8 +131,8 @@ AC_SUBST(BUNDLE_LDFLAGS) dnl Flags for FASL files linker AC_SUBST(SHORT_SITE_NAME) dnl Short name for the machine we built this on AC_SUBST(LONG_SITE_NAME) dnl Long name for the machine we built this on AC_SUBST(EXTRA_OBJS) dnl Extra *.o files to be compiled into libecl.a -AC_SUBST(TARGETS, [ecl${EXEEXT}]) dnl Versions of ECL to be built -AC_SUBST(SUBDIRS, [c]) dnl Subdirectories that make should process +AC_SUBST(TARGETS, ['ecl$(EXE)'])dnl Versions of ECL to be built +AC_SUBST(SUBDIRS, [c]) dnl Subdirectories that make should process AC_SUBST(LIBRARIES, []) dnl GMP, Boehm's GC, etc AC_SUBST(LSP_LIBRARIES) dnl Libraries produced by lisp translator AC_SUBST(ECL_MODULES, []) dnl Contributed modules to be built in