Andy Wingo
bc02028b52
fix check for when libc already has clock_gettime / clock_getcpuclockid
...
* acinclude.m4 (gl_CLOCK_TIME): If both clock_gettime and
clock_getcpuclockid are present without -lrt and -lposix4, don't add
any libs to LIB_CLOCK_GETTIME. Thanks to taylanbarirli@gmail.com .
2012-02-04 00:10:14 +01:00
Ludovic Courtès
1c1f7a3223
configure: Make sure $GUILE_FOR_BUILD is suitable.
...
* acinclude.m4 (GUILE_CHECK_VERSION, GUILE_CHECK_GUILE_FOR_BUILD): New
macros.
* configure.ac: Remove $GUILE_FOR_BUILD tests. Use
`GUILE_CHECK_GUILE_FOR_BUILD'.
2011-11-23 22:05:53 +01:00
Ludovic Courtès
1fe9920adc
Disable TLS on NetBSD up to 5.x included.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Disable TLS on
`x86_64-unknown-netbsd5.1' too.
2011-07-13 00:02:00 +02:00
Ludovic Courtès
d1f2417102
Comment on the Gnulib `clock-gettime' workaround.
...
* acinclude.m4: Remove `clock_time.m4' serial.
* configure.ac: Add URL of the discussion about `clock-gettime'.
2011-06-19 16:39:22 +02:00
Ludovic Courtès
10c29ebde5
configure: Factorize code checking for `iconveh_' constants; use the cache.
...
* configure.ac: Remove code that determines the values of the `iconveh_'
constants. Use `GUILE_UNISTRING_ICONVEH_VALUES'. instead.
* acinclude.m4 (GUILE_UNISTRING_CONSTANT,
GUILE_UNISTRING_ICONVEH_VALUES): New macros.
2011-06-19 16:30:56 +02:00
Andy Wingo
074f39c7bc
check for clock_getcpuclockid in gl_CLOCK_TIME
...
* acinclude.m4 (gl_CLOCK_TIME): It could be that clock_gettime is in
libc but clock_getcpuclockid is not, so check for that explicitly.
2011-06-17 11:31:12 +02:00
Andy Wingo
e3b8bce8f4
build support for detecting clock_gettime, with -lrt if needed
...
* acinclude.m4 (gl_CLOCK_TIME):
* configure.ac: Locally include gl_CLOCK_TIME. To be fixed properly
when gnulib updates their license to reflect the actual BSD state of
things.
* libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS):
Add -lrt for clock_gettime, if needed.
* meta/guile-2.0-uninstalled.pc.in:
* meta/guile-2.0.pc.in: Likewise, in Libs.private.
2011-05-04 20:19:11 +02:00
Ludovic Courtès
969bb92e9b
Turn the libunistring/iconv configure check into a macro.
...
* acinclude.m4 (GUILE_LIBUNISTRING_WITH_ICONV_SUPPORT): New macro.
* configure.ac: Use it.
2011-04-22 16:59:08 +02:00
Ludovic Courtès
527ba9b726
Fix `GUILE_THREAD_LOCAL_STORAGE'.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Fix M4 quotation.
2011-02-02 22:03:18 +01:00
Ludovic Courtès
71d0152e66
Disable use of thread-local storage on FreeBSD.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Explicitly require
`AC_CANONICAL_HOST'. Disable on FreeBSD.
2011-02-02 18:55:29 +01:00
Thien-Thi Nguyen
3d9f7bd57e
Add copyright notice to acinclude.m4.
...
* acinclude.m4: Add copyright notice, with years derived from "git log" output.
2010-07-22 14:25:27 +02:00
Thien-Thi Nguyen
39f7ae3135
[build] Move GUILE_CONFIG_SCRIPT to acinclude.m4.
...
* configure.ac (GUILE_CONFIG_SCRIPT): Move from here...
* acinclude.m4 (GUILE_CONFIG_SCRIPT): ...to here.
2010-07-22 14:24:04 +02:00
Andy Wingo
ddfb5e2bb0
readline only handles SIGWINCH
...
* acinclude.m4 (GUILE_READLINE): Check for rl_catch_signals and
rl_catch_sigwinch.
* guile-readline/readline.c (scm_init_readline): If we can, turn off
readline's signal handling, because we can do our own.
(scm_readline): Use dynwinds to handle resetting readline's state on
nonlocal exit, not catches.
(unwind_readline): Rename from handle_error.
2010-07-09 17:05:25 +02:00
Volker Grabsch
ec20a3c86d
add pdcurses to the list of termlibs
...
* acinclude.m4 (GUILE_READLINE): Look for pdcurses as found on MinGW.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2010-05-28 17:02:13 +02:00
Ludovic Courtès
d7297d3923
Disable thread-local storage on Solaris 8.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Special-case `*solaris2.8'.
2009-12-15 19:22:19 +01:00
Ludovic Courtès
feef98f203
Properly quote the first argument to `AC_DEFINE{,_UNQUOTED}'.
...
* acinclude.m4, configure.ac, examples/compat/acinclude.m4: Properly
quote the first argument for `AC_DEFINE' and `AC_DEFINE_UNQUOTED'.
* .x-sc_m4_quote_check: New file.
2009-11-24 23:38:26 +01:00
Ludovic Courtès
6b1bc6e56a
Really disable thread-local storage on NetBSD 5.0.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Adjust to match actual
NetBSD 5 triplet, `x86_64-unknown-netbsd5.0.' (note the final dot).
2009-11-24 22:07:16 +01:00
Ludovic Courtès
0ee42e27d5
Explicitly disable TLS on NetBSD 5.0.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Explicitly disable TLS on
NetBSD 5.0.
2009-11-14 16:59:25 +01:00
Ludovic Courtès
96e15df109
Improve TLS detection for systems with compiler support but no libc support.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Use `AC_LINK_IFELSE'
instead of `AC_COMPILE_IFELSE'.
2009-10-15 23:52:00 +02:00
Ludovic Courtès
705edb959b
Use TLS when available for `SCM_I_CURRENT_THREAD'.
...
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): New macro.
* configure.ac: Use it.
* libguile/__scm.h (SCM_THREAD_LOCAL): New macro.
* libguile/gen-scmconfig.c (main): Define `SCM_HAVE_THREAD_STORAGE_CLASS'.
* libguile/gen-scmconfig.h.in (SCM_I_GSC_HAVE_THREAD_STORAGE_CLASS):
New.
* libguile/threads.c
(scm_i_current_thread)[SCM_HAVE_THREAD_STORAGE_CLASS]: New.
(SET_CURRENT_THREAD): New macro.
(guilify_self_1, on_thread_exit, init_thread_key): Use it.
* libguile/threads.h
(scm_i_current_thread)[SCM_HAVE_THREAD_STORAGE_CLASS]: New
declaration.
(SCM_I_CURRENT_THREAD)[SCM_HAVE_THREAD_STORAGE_CLASS]: New macro.
(init_thread_key_once, init_thread_key): Conditionalize on
`!defined SCM_HAVE_THREAD_STORAGE_CLASS'.
(scm_i_init_thread_for_guile): Update accordingly.
2009-10-09 14:10:05 +02:00
Ludovic Courtès
76e8a7588c
Move "-z relro" out of $LDFLAGS so it's not in `guile-2.0.pc'.
...
* acinclude.m4 (GUILE_GNU_LD_RELRO): Substitute `GNU_LD_FLAGS'.
* libguile/Makefile.am (libguile_la_LDFLAGS): Add $(GNU_LD_FLAGS).
* srfi/Makefile.am (AM_LDFLAGS): New.
2009-09-24 00:06:54 +02:00
Ludovic Courtès
9d19a9d61c
Link with `-z relro' when available.
...
* acinclude.m4 (GUILE_GNU_LD_RELRO): New macro.
* configure.in: Use `GUILE_GNU_LD_RELRO'.
2009-09-10 00:16:13 +02:00
Andy Wingo
023cd5ba58
fix guile-readline linker bug
...
* acinclude.m4 (GUILE_READLINE): Fix typo that caused readline not to be
linked to termcap.
2009-08-26 12:12:31 +02:00
Ludovic Courtès
7a5ab3693c
Don't use a sub-configure' for
guile-readline'.
...
* acinclude.m4 (GUILE_READLINE): New macro, based on the former
`guile-readline/configure.ac'.
* configure.ac: Remove `AC_CONFIG_SUBDIRS' invocation. Add
`GUILE_READLINE' invocation. Produce files under `guile-readline'.
* guile-readline/Makefile.am: Conditionalize the meat under
`HAVE_READLINE'.
(INCLUDES): Rename to...
(AM_CPPFLAGS): this. Users updates.
(AM_CFLAGS): New variable.
(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD): Add
$(READLINE_LIBS).
* guile-readline/readline.c: Include <config.h>.
* guile-readline/configure.ac, guile-readline/autogen.sh: Remove.
2009-08-21 01:49:29 +02:00
Neil Jerram
5f0dc04af8
Remove changes that weren't in fact needed:
...
- config.rpath in EXTRA_DIST, in Makefile.am
- dummy definition of AM_INTL_SUBDIR, in acinclude.m4.
2007-02-20 22:55:19 +00:00
Neil Jerram
a2ec35031b
(AM_INTL_SUBDIR): Remove unnecessary dnl.
2007-02-18 23:12:39 +00:00
Neil Jerram
0bdb025f7b
* configure.in: Do AM_GNU_GETTEXT_VERSION, so that autoreconf will
...
run autopoint.
* acinclude.m4 (AM_INTL_SUBDIR): Provide dummy definition, to work
around current autoconf/automake/gettext bug.
2007-01-28 15:58:07 +00:00
Neil Jerram
d79a62db53
(ACX_PTHREAD): Update to latest definition from
...
autoconf macro archive, to fix pthread linking problem on Solaris
10, reported by Charles Gagnon.
2006-06-06 21:39:43 +00:00
Marius Vollmer
75bfae860a
* acinclude.m4 (ACX_PTHREAD): New.
...
* configure.in: Use it instead of simply looking for -lpthread.
Thanks to Andreas Vögele!
2004-09-21 00:09:47 +00:00
Neil Jerram
d70e061933
Fix autoconf underquoting warnings
2004-01-25 13:02:21 +00:00
Rob Browning
e103c6b4ee
* acinclude.m4: add definitions to AC_DEFINE calls for new
...
autoconf.
2002-04-11 04:41:23 +00:00
Neil Jerram
3d77146f52
* Quote multiword string using [ ].
2002-02-21 19:35:39 +00:00
Rob Browning
ee79b9ff89
* acinclude.m4: AC_LANG not a variable now -- use __cplusplus
...
unconditionally .
2001-06-02 20:35:14 +00:00
Marius Vollmer
9e54671afe
Removed copy of "libtool.m4".
2001-05-15 00:54:08 +00:00
Mikael Djurfeldt
468df54ffd
* acinclude.m4: Removed qthreads macros. They are provided in
...
qthreads.m4, so these were redundant.
2000-04-21 14:11:50 +00:00
Mikael Djurfeldt
6d2568e565
* acinclude.m4 (AC_LIBLTDL_CONVENIENCE): Add $(top_srcdir)/libltdl
...
instead of $(top_builddir)/libltdl to includepath.
2000-01-18 11:59:27 +00:00
Marius Vollmer
c96730b1e0
* acinclude.m4: remove GUILE_DLSYM_USCORE, add libtool.m4
...
(no need to install libtool any more)
2000-01-10 00:31:35 +00:00
Jim Blandy
42d0ffc9fa
* acinclude.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): Fix typo in
...
variable name. (Thanks to Bill Schottstaedt.)
1999-09-03 01:24:40 +00:00
Mikael Djurfeldt
6f9f0fb970
* acinclude.m4: Updated. (Thanks to Karl Eichwalder.)
1999-08-29 22:23:33 +00:00
Mikael Djurfeldt
2a4123d3d9
* acinclude.m4: Updated. (Thanks to Karl Eichwalder.)
1999-08-29 21:55:12 +00:00
Mikael Djurfeldt
eb9ef08b77
*** empty log message ***
1999-07-24 11:55:34 +00:00
Tim Pierce
774b7f2281
*** empty log message ***
1997-11-25 02:43:01 +00:00
Tim Pierce
2a0d71767f
Added support for leading dlsym underscore.
1997-11-21 19:39:23 +00:00
Mikael Djurfeldt
0b89e78ee7
* acinclude.m4 (GUILE_NAMED_CHECK_FUNC): New macro: Tagged test,
...
so that test for the same function can be performed multiple
times.
* configure.in (AC_CHECK_HEADERS): Test for rxposix.h,
rx/rxposix.h. Add library rx only if regcomp can't be found
without it.
1997-08-24 18:16:25 +00:00
Jim Blandy
3a629497d2
Changes for reduced Guile distribution: one configure script,
...
no plugins.
* configure.in: Merged the old text from qt/configure.in and
libguile/configure.in; Tom Tromey says automake only wants one
configure.in script. This seems fishy, but...
* Makefile.am: List the subdirectories explicitly; no more PLUGIN
gubbish.
* acconfig.h, acinclude.m4: Moved here from libguile, since
libguile's configure script lives here now.
* AUTHORS, INSTALL, README: Updated.
* Makefile.in, aclocal.m4 configure: Regenerated. Just like
amputated amphibian limbs.
1997-04-24 06:32:52 +00:00