1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-17 22:32:25 +02:00
Commit graph

327 commits

Author SHA1 Message Date
Neil Jerram
53a79cd060 Fix implementation of %fast-slot-ref and %fast-slot-set!
* libguile/goops.c (scm_sys_fast_slot_ref, scm_sys_fast_slot_set_x):
  Correct incantation for getting the number of slots of the specified
  instance.

* libguile/goops.h (SCM_NUMBER_OF_SLOTS): Removed (because wrong).

* test-suite/standalone/test-fast-slot-ref.in: New standalone test.

* configure.in: Generate test-suite/standalone/test-fast-slot-ref.

* test-suite/standalone/Makefile.am (check_SCRIPTS): Add
  test-fast-slot-ref.
2009-01-04 22:41:51 +00:00
Ludovic Courtès
200651f2d7 configure: Check for <ltdl.h>.
* configure.in: Check for <ltdl.h>, to clarify misconfigurations.
2008-12-10 10:06:46 +01:00
Ludovic Courtès
e6edcc18a5 configure: Don't substitute `DLPREOPEN'.
* configure.in: Don't substitute `DLPREOPEN' since it's no longer used
  (see commit 72db29f200).
2008-12-10 09:57:33 +01:00
Ludovic Courtès
0328bf6a0e Make GNU Libtool 2.2.x happier.
* configure.in: Use `AC_CONFIG_MACRO_DIR([m4])'.  Reverts patch
  b01284227e and makes `libtoolize' from
  Libtool 2 happier (removes a couple of warnings).

* Makefile.am (ACLOCAL_AMFLAGS): Remove `-I guile-config' since that
  directory only contains macros that we distribute, not macros that we
  use.
2008-11-30 19:37:29 +01:00
Neil Jerram
05675184ee Avoid Stack overflow' errors when running make check'
For explanation, see comments and text in the new file
libguile/measure-hwm.scm.

* .gitignore: Add libguile/stack-limit-calibration.scm.

* check-guile.in: Load libguile/stack-limit-calibration.scm.

* configure.in: Add AC_CONFIG_FILES to generate test-use-srfi from
  test-use-srfi.in.

* libguile/Makefile.am (TESTS, TESTS_ENVIRONMENT,
  stack-limit-calibration.scm): New targets, so that `make check'
  calibrates the stack limit before running the Guile test suite.

* libguile/measure-hwm.scm: New file, calibrates stack limit for `make
  check'.

* libguile/stackchk.c (scm_sys_get_stack_size): New primitive.

* libguile/stackchk.h (scm_sys_get_stack_size): New primitive
  (declaration).

* test-suite/standalone/test-use-srfi: Renamed test-use-srfi.in, so
  that ./configure can fill in variables in it.

* test-suite/standalone/test-use-srfi.in: Load
  libguile/stack-limit-calibration.scm.
2008-10-17 22:02:17 +01:00
Ludovic Courtès
b01284227e Use Simon Josefsson's `autobuild.m4'.
* Makefile.am (EXTRA_DIST): Add `m4/autobuild.m4'.
  (ACLOCAL_AMFLAGS): Add `-I m4'.

* configure.in: Invoke `AB_INIT'.

* m4/autobuild.m4: New file.
2008-09-11 21:48:23 +02:00
Ludovic Courtès
4e329a9569 Get rid of Automake's "maintainer mode".
* NEWS: Update.
* configure.in: Remove `AM_MAINTAINER_MODE' invocation.
* doc/Makefile.am, ice-9/Makefile.am: Ignore `MAINTAINER_MODE'
  conditional.
2008-09-09 18:07:03 +02:00
Ludovic Courtès
e210266510 Use AC_USE_SYSTEM_EXTENSIONS' instead of the obsolete AC_AIX', etc. 2008-08-20 19:02:41 +02:00
Ludovic Courtès
be97360245 Don't use AC_CONFIG_MACRO_DIR' in configure.in'. 2008-08-14 00:13:21 +02:00
Neil Jerram
adacd2dac5 Fix build failure on Debian hppa architecture (bad stack growth detection)
* configure.in (SCM_I_GSC_STACK_GROWS_UP): Remove use of
	AC_CACHE_CHECK, which was inadvertently causing
	SCM_I_GSC_STACK_GROWS_UP _always_ to be 0.
2008-08-07 23:26:21 +02:00
Ludovic Courtès
dc329592ff Handle lack of struct dirent64' and readdir64_r ()' on HP-UX 11.11. 2008-07-17 00:17:56 +02:00
Neil Jerram
9143131b27 Improve stack direction test
* configure.in: Update stack direction test to be like that in
	Autoconf _AC_LIBOBJ_ALLOCA and Gnulib; specifically in involving a
	function calling itself.
2008-07-12 19:32:35 +01:00
Ludovic Courtès
34ca35ed4d Update to Autoconf 2.61. 2008-07-06 21:03:37 +02:00
Ludovic Courtès
e01343d646 Modernize Automake files. 2008-06-28 22:14:40 +02:00
Ludovic Courtès
627bae78af Add `pkg-config' support. 2008-05-04 22:19:30 +02:00
Ludovic Courtès
e16733a84a Only run `test-with-guile-module' when pthread support is built. 2008-04-26 21:55:29 +02:00
Neil Jerram
b0f07fa20c Merge GDS (except for breakpoints) from CVS HEAD:
* debugger/commands.scm (evaluate, info-args, info-frame,
position, up, down): Improve/fix doc strings.

* Makefile.am (SUBDIRS): Add debugging.
(ice9_sources): Add gds-client.scm and gds-server.scm.

* scheme-debugging.texi: Remove lots of text that is now
duplicated (exactly) elsewhere, leaving only the `Tracing' node.

* guile.texi: Replace `Debugging Features' (scheme-debugging.texi)
by `Using Guile Interactively' and `Using Guile in Emacs'
(scheme-using.texi).  Move the `Tracing' content of
scheme-debugging.texi to the Modules section.

* api-options.texi (Evaluator trap options): Move doc for
with-traps and debug-object? to here.

* api-modules.texi (Included Guile Modules): Change reference from
`Debugging Features' to `Tracing'.

* api-evaluation.texi (Evaluator Behaviour): Add reference to
`Evaluator trap options'.

* api-debug.texi (Examining the Stack): Minor improvements to
display-backtrace doc.

* api-debug.texi (Debug on Error): New text on how to catch errors
and the error stack.

* api-debug.texi (High Level Traps): New.

* api-debug.texi (Debugging): New intro text.  New subsection
"Evaluation Model".  Moved existing subsections "Capturing the
Stack or Innermost Stack Frame", "Examining the Stack", "Examining
Stack Frames", "Source Properties", "Decoding Memoized Source
Expressions" and "Starting a New Stack" under "Evaluation Model".
(Capturing the Stack or Innermost Stack Frame): Some new text, and
correction to doc for last-stack-frame.
(Debug on Error): Renamed from "Interactive Debugging".

* configure.in (AC_CONFIG_FILES): Add emacs/Makefile and
ice-9/debugging/Makefile.

* Makefile.am (SUBDIRS): Add emacs.
2008-03-12 00:57:41 +00:00
Ludovic Courtès
6439b3dfd9 Look for `strncasecmp' declaration. 2008-02-22 09:24:37 +00:00
Ludovic Courtès
3034017fc5 Release Guile 1.8.4. 2008-02-17 00:13:16 +00:00
Neil Jerram
5826bf6572 Release stuff: missing NEWS and 2007/2008 copyrights. 2008-02-15 22:37:52 +00:00
Neil Jerram
809624f345 configure.in: additional note suggested by Greg Troxel 2008-02-12 20:58:59 +00:00
Neil Jerram
03a3c619ed * numbers.c (SCM_COMPLEX_VALUE): Use GUILE_I instead of _Complex_I
directly, and only if GUILE_I was defined by the configure step.
(scm_log, scm_log10, scm_exp, scm_sqrt): Use SCM_COMPLEX_VALUE
code only if SCM_COMPLEX_VALUE is defined.

* configure.in (--without-64-calls): Use AC_MSG_CHECKING and
AC_MSG_RESULT instead of just echo.
(GUILE_I): New programs to try using _Complex_I or 1.0fi for the
imaginary unit.
2008-02-11 21:02:15 +00:00
Neil Jerram
3d02a866a9 Default to --without-64-calls for
powerpc-ibm-aix*.  Thanks to Rainer Tammer for reporting that the
64 calls are a problem on that OS.
2008-02-06 22:27:59 +00:00
Neil Jerram
08f9eb4adc * configure.in (--without-64-calls): New option.
* fports.c (fport_seek): Make dependent on GUILE_USE_64_CALLS.

* _scm.h: Make definition of CHOOSE_LARGEFILE depend on
GUILE_USE_64_CALLS.
2008-02-05 22:04:52 +00:00
Ludovic Courtès
b560974ad9 Changes from arch/CVS synchronization 2007-10-10 16:58:57 +00:00
Kevin Ryde
6bc98ba721 (AC_CHECK_FUNCS): Add clog and cexp. 2007-09-02 22:32:55 +00:00
Ludovic Courtès
8482254ff1 Changes from arch/CVS synchronization 2007-08-11 10:48:28 +00:00
Ludovic Courtès
c60e7fe655 Changes from arch/CVS synchronization 2007-08-03 14:40:01 +00:00
Neil Jerram
97084119ee Merge of IA64 fix from CVS HEAD. 2007-01-28 16:36:38 +00:00
Kevin Ryde
84e4596bd0 (isinf, isnan): Use a volatile global to stop gcc
optimizing out the test.  In particular this fixes solaris where there
isn't an isinf or isnan (though gcc still optimizes as if there is).
Reported by Hugh Sasse.
(AC_C_VOLATILE): New.
2007-01-22 22:55:09 +00:00
Kevin Ryde
d9ff2e69aa (AC_INIT): Don't use "echo -n", it's not portable and
in particular fails on solaris (resulting in literal "-n"s going into
the output, making the resulting configure unusable).
2007-01-21 23:32:32 +00:00
Kevin Ryde
8fc6a6deec (pthread_sigmask): New test. 2006-12-26 23:32:48 +00:00
Kevin Ryde
11e49c4ee8 (pthread_get_stackaddr_np): New test. 2006-12-26 22:33:20 +00:00
Kevin Ryde
cd62ad8ff5 (-lm): No need to suppress libm on mingw, it's not
needed because it's empty, but including it does no harm.
(-lm): Look for "cos" instead of "main", since cos and friends are the
purpose of looking for libm.
(winsock etc): Test $host = *-*-mingw* rather than $MINGW32, autoconf
regards the latter as obsolete.
(AC_MINGW32): Remove test, $MINGW32 now unused.
(uint32_t): Look at HAVE_NETDB_H rather than hard-coding __MINGW32__
in the test program.
2006-12-22 20:40:26 +00:00
Kevin Ryde
0403bb28f4 (process.h, pipe, _pipe): New checks. 2006-12-14 23:18:38 +00:00
Kevin Ryde
80134d3973 (struct timespec, pthread.h): Look for struct timespec
in <pthread.h> as well as <time.h>, it's in pthread.h on mingw.
2006-12-13 23:28:58 +00:00
Kevin Ryde
801cfa4e9e (AM_PROG_CC_C_O): New macro, needed by automake 1.10
for per-target cflags in libguile/Makefile.am.
2006-12-02 23:53:16 +00:00
Kevin Ryde
42ac5e420d 2006-11-08 Ludovic Courtès <ludovic.courtes@laas.fr>
* configure.in (AC_INIT): Set bug address to bug-guile.
2006-11-29 23:30:43 +00:00
Kevin Ryde
22a7ee5876 note 2006 for the glibc 2.3.6, to know how old or new it is or will be 2006-10-04 22:01:25 +00:00
Kevin Ryde
79bebdbe2c (chsize, ftruncate, truncate): New tests, for mingw. 2006-09-28 00:35:42 +00:00
Kevin Ryde
c60152ad5b (clog10): New test, not in mingw. 2006-09-27 01:33:10 +00:00
Ludovic Courtès
903762e5cf Changes from arch/CVS synchronization 2006-09-25 08:23:24 +00:00
Kevin Ryde
0bdb3af4db (complex.h, complex double, csqrt): New tests. 2006-09-22 23:03:30 +00:00
Kevin Ryde
f35ac81fd8 Bit more of:
* configure.in: Test if need braces around PTHREAD_ONCE_INIT, set
	AC_OUTPUT of SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT.

Need to set SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT to some value
always, not just when pthreads.
2006-08-22 23:59:49 +00:00
Kevin Ryde
33f9e79b8c Test if need braces around PTHREAD_ONCE_INIT, set
AC_OUTPUT of SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT.
2006-08-21 23:26:32 +00:00
Kevin Ryde
3e494123b6 (AC_CHECK_FUNCS): Add pthread_getattr_np. 2006-07-25 00:10:17 +00:00
Kevin Ryde
1fe40cee4c (AC_CHECK_DECLS): Add sethostname for Solaris 10.
(AC_CHECK_FUNCS): Remove dirfd, it's a macro.
Reported by Claes Wallin.
2006-07-24 01:09:41 +00:00
Kevin Ryde
0ebff347ec (AC_CHECK_MEMBERS): Test struct tm.tm_gmtoff. 2006-06-25 01:01:06 +00:00
Kevin Ryde
df1f60e79d (isnan): Remove "#ifdef __MINGW32__, #define isnan
_isnan".  Mingw provides isnan as a macro (in math.h), the test
already detects it just fine with no special case.
2006-05-27 22:29:04 +00:00
Kevin Ryde
2f471780c2 (AC_CHECK_FUNCS): Add ioctl.
(pthread_attr_getstack): Restrict test to pthreads case, to avoid
AC_TRY_RUN when cross-compiling --without-threads.
2006-05-26 01:56:59 +00:00