1998-10-03 08:01:41 +00:00
|
|
|
dnl configuration script for Guile
|
|
|
|
|
dnl Process this file with autoconf to produce configure.
|
1998-10-19 15:28:46 +00:00
|
|
|
dnl
|
2001-07-19 20:57:59 +00:00
|
|
|
dnl Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
1998-10-19 15:28:46 +00:00
|
|
|
dnl
|
|
|
|
|
dnl This file is part of GUILE
|
|
|
|
|
dnl
|
|
|
|
|
dnl GUILE is free software; you can redistribute it and/or modify it
|
|
|
|
|
dnl under the terms of the GNU General Public License as published by
|
|
|
|
|
dnl the Free Software Foundation; either version 2, or (at your
|
|
|
|
|
dnl option) any later version.
|
|
|
|
|
dnl
|
|
|
|
|
dnl GUILE is distributed in the hope that it will be useful, but
|
|
|
|
|
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
dnl General Public License for more details.
|
|
|
|
|
dnl
|
|
|
|
|
dnl You should have received a copy of the GNU General Public License
|
|
|
|
|
dnl along with GUILE; see the file COPYING. If not, write to the
|
|
|
|
|
dnl Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
dnl Boston, MA 02111-1307, USA.
|
|
|
|
|
|
2001-06-02 20:35:01 +00:00
|
|
|
AC_PREREQ(2.50)
|
|
|
|
|
|
|
|
|
|
AC_INIT
|
|
|
|
|
AC_CONFIG_SRCDIR([Makefile.in])
|
Rehashed distribution system, in preparation for nightly
snapshots. Other changes in subdirectories.
* Makefile.in (dist): Rewritten --- the old target was out of
date, dependent on files that we don't have, and relied on GNU
tar. The new target is simpler.
(VERSION, srcdir, dist_dirs): New variables.
(DISTFILES): Renamed from localfiles. Added GUILE-VERSION and
TODO.
(localtreats): Variable removed. We don't have this file.
(info): cd to doc and make info there; don't make info in every
${subdir}; those Makefiles don't know what to do.
(distname, distdir, treats, announcefile): Variables removed.
(manifest-file): Target removed.
(dist-dir): New target, responsible for distributable files in
this directory.
(GZIP, GZIP_EXT, TAR_VERBOSE, DIST_NAME): New variables,
controlling the 'dist' target.
* configure.in: Substitute GUILE-VERSION into the top-level
Makefile. Build doc/Makefile from doc/Makefile.in.
1996-08-01 08:16:15 +00:00
|
|
|
. $srcdir/GUILE-VERSION
|
1997-04-24 06:32:52 +00:00
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
|
1997-02-24 23:35:55 +00:00
|
|
|
AM_MAINTAINER_MODE
|
1997-04-24 06:32:52 +00:00
|
|
|
AM_CONFIG_HEADER(libguile/scmconfig.h)
|
Rehashed distribution system, in preparation for nightly
snapshots. Other changes in subdirectories.
* Makefile.in (dist): Rewritten --- the old target was out of
date, dependent on files that we don't have, and relied on GNU
tar. The new target is simpler.
(VERSION, srcdir, dist_dirs): New variables.
(DISTFILES): Renamed from localfiles. Added GUILE-VERSION and
TODO.
(localtreats): Variable removed. We don't have this file.
(info): cd to doc and make info there; don't make info in every
${subdir}; those Makefiles don't know what to do.
(distname, distdir, treats, announcefile): Variables removed.
(manifest-file): Target removed.
(dist-dir): New target, responsible for distributable files in
this directory.
(GZIP, GZIP_EXT, TAR_VERBOSE, DIST_NAME): New variables,
controlling the 'dist' target.
* configure.in: Substitute GUILE-VERSION into the top-level
Makefile. Build doc/Makefile from doc/Makefile.in.
1996-08-01 08:16:15 +00:00
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
#--------------------------------------------------------------------
|
1999-07-23 22:04:27 +00:00
|
|
|
#
|
|
|
|
|
# Independent Subdirectories
|
|
|
|
|
#
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_SUBDIRS(guile-readline)
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
1997-04-24 06:32:52 +00:00
|
|
|
#
|
|
|
|
|
# User options
|
|
|
|
|
#
|
|
|
|
|
#--------------------------------------------------------------------
|
1996-08-15 07:12:00 +00:00
|
|
|
|
2001-07-19 17:46:42 +00:00
|
|
|
AC_ARG_ENABLE(error-on-warning,
|
|
|
|
|
[ --enable-error-on-warning treat compile warnings as errors],
|
|
|
|
|
[case "${enableval}" in
|
|
|
|
|
yes | y) CFLAGS="${CFLAGS} -Werror"; enable_compile_warnings=no ;;
|
|
|
|
|
no | n) ;;
|
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
|
|
|
|
|
esac])
|
|
|
|
|
|
1999-09-27 23:29:07 +00:00
|
|
|
AC_ARG_ENABLE(debug-freelist,
|
2001-05-02 00:54:58 +00:00
|
|
|
[ --enable-debug-freelist include garbage collector freelist debugging code],
|
1999-09-27 23:29:07 +00:00
|
|
|
if test "$enable_debug_freelist" = y || test "$enable_debug_freelist" = yes; then
|
1999-09-28 00:54:26 +00:00
|
|
|
AC_DEFINE(GUILE_DEBUG_FREELIST)
|
1999-09-27 23:29:07 +00:00
|
|
|
fi)
|
|
|
|
|
|
2000-04-21 00:24:26 +00:00
|
|
|
AC_ARG_ENABLE(debug-malloc,
|
2001-05-02 00:54:58 +00:00
|
|
|
[ --enable-debug-malloc include malloc debugging code],
|
2000-04-21 00:24:26 +00:00
|
|
|
if test "$enable_debug_malloc" = y || test "$enable_debug_malloc" = yes; then
|
|
|
|
|
AC_DEFINE(GUILE_DEBUG_MALLOC)
|
|
|
|
|
fi)
|
|
|
|
|
|
2000-06-12 15:04:39 +00:00
|
|
|
AC_ARG_ENABLE(guile-debug,
|
|
|
|
|
[ --enable-guile-debug include internal debugging functions],
|
|
|
|
|
if test "$enable_guile_debug" = y || test "$enable_guile_debug" = yes; then
|
|
|
|
|
AC_DEFINE(GUILE_DEBUG)
|
|
|
|
|
fi)
|
|
|
|
|
|
* acconfig.h: add HAVE_ARRAYS.
* configure.in: add --disable-arrays option, probably temporary.
* the following changes allow guile to be built with the array
"module" omitted. some of this stuff is just tc7 type support,
which wouldn't be needed if uniform array types were converted
to smobs.
* tag.c (scm_utag_bvect ... scm_utag_cvect): don't define unless
HAVE_ARRAYS.
(scm_tag): don't check array types unless HAVE_ARRAYS.
* sort.c (scm_restricted_vector_sort_x, scm_sorted_p):
remove the unused array types.
* (scm_stable_sort, scm_sort): don't support vectors if not
HAVE_ARRAYS. a bit excessive.
* random.c (vector_scale, vector_sum_squares,
scm_random_solid_sphere_x, scm_random_hollow_sphere_x,
scm_random_normal_vector_x): don't define unless HAVE_ARRAYS.
* gh_data.c (makvect, gh_chars2byvect, gh_shorts2svect,
gh_longs2ivect, gh_ulongs2uvect, gh_floats2fvect, gh_doubles2dvect,
gh_uniform_vector_length, gh_uniform_vector_ref):
don't define unless HAVE_ARRAYS.
(gh_scm2chars, gh_scm2shorts, gh_scm2longs, gh_scm2floats,
gh_scm2doubles):
don't check vector types if not HAVE_ARRAYS.
* eq.c (scm_equal_p), eval.c (SCM_CEVAL), print.c (scm_iprin1),
gc.c (scm_gc_mark, scm_gc_sweep), objects.c (scm_class_of):
don't support the array types unless HAVE_ARRAYS is defined.
* tags.h: make nine tc7 types conditional on HAVE_ARRAYS.
* read.c (scm_lreadr): don't check for #* unless HAVE_ARRAYS is
defined (this should use read-hash-extend).
* ramap.c, unif.c: don't check whether ARRAYS is defined.
* vectors.c (scm_vector_set_length_x): moved here from unif.c. call
scm_uniform_element_size if HAVE_ARRAYS.
vectors.h: prototype too.
* unif.c (scm_uniform_element_size): new procedure.
* init.c (scm_boot_guile_1): don't call scm_init_ramap or
scm_init_unif unless HAVE_ARRAYS is defined.
* __scm.h: don't define ARRAYS.
* Makefile.am (EXTRA_libguile_la_SOURCES): unif.c and ramap.c
moved here from libguile_la_SOURCES.
* Makefile.am (ice9_sources): add arrays.scm.
* boot-9.scm: load arrays.scm if 'array is provided.
* arrays.scm: new file with stuff from boot-9.scm.
1999-11-19 18:16:19 +00:00
|
|
|
AC_ARG_ENABLE(arrays,
|
|
|
|
|
[ --disable-arrays omit array and uniform array support],,
|
|
|
|
|
enable_arrays=yes)
|
|
|
|
|
|
1999-09-26 16:00:36 +00:00
|
|
|
AC_ARG_ENABLE(posix,
|
|
|
|
|
[ --disable-posix omit posix interfaces],,
|
|
|
|
|
enable_posix=yes)
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(networking,
|
2000-01-14 23:14:33 +00:00
|
|
|
[ --disable-networking omit networking interfaces],,
|
1999-09-26 16:00:36 +00:00
|
|
|
enable_networking=yes)
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(regex,
|
|
|
|
|
[ --disable-regex omit regular expression interfaces],,
|
|
|
|
|
enable_regex=yes)
|
|
|
|
|
|
2001-03-09 09:35:13 +00:00
|
|
|
AC_ARG_ENABLE(htmldoc,
|
|
|
|
|
[ --enable-htmldoc build HTML documentation as well as Info],
|
|
|
|
|
[if test "$enable_htmldoc" = "" || test "$enable_htmldoc" = y || test "$enable_htmldoc" = yes; then
|
|
|
|
|
htmldoc_enabled=yes
|
|
|
|
|
AC_PATH_PROG(TEXI2HTML, texi2html, not found)
|
|
|
|
|
if test "$TEXI2HTML" = "not found"; then
|
|
|
|
|
echo
|
|
|
|
|
echo Building HTML documentation requires the \`texi2html\' program,
|
|
|
|
|
echo which appears not to be present on your machine.
|
|
|
|
|
echo
|
|
|
|
|
echo \`texi2html\' is available from
|
|
|
|
|
echo 'http://www.mathematik.uni-kl.de/~obachman/Texi2html/.'
|
|
|
|
|
echo
|
|
|
|
|
echo In the meantime, to build the guile-doc distribution
|
|
|
|
|
echo without HTML enabled, please rerun \`./configure\' without
|
|
|
|
|
echo the \`--enable-htmldoc\' option.
|
|
|
|
|
exit -1
|
|
|
|
|
fi
|
|
|
|
|
fi])
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HTMLDOC, test x$htmldoc_enabled = xyes)
|
|
|
|
|
|
2001-05-02 00:54:58 +00:00
|
|
|
AC_ARG_ENABLE(deprecated,
|
|
|
|
|
[ --disable-deprecated omit deprecated features [no]])
|
|
|
|
|
|
|
|
|
|
if test "$enable_deprecated" = no; then
|
2001-08-31 14:42:31 +00:00
|
|
|
AC_DEFINE(SCM_ENABLE_DEPRECATED, 0)
|
2001-05-02 00:54:58 +00:00
|
|
|
else
|
|
|
|
|
if test "$enable_deprecated" = yes || test "$enable_deprecated" = ""; then
|
2001-05-05 19:15:52 +00:00
|
|
|
warn_default=summary
|
|
|
|
|
elif test "$enable_deprecated" = shutup; then
|
|
|
|
|
warn_default=no
|
|
|
|
|
else
|
|
|
|
|
warn_default=$enable_deprecated
|
2001-05-02 00:54:58 +00:00
|
|
|
fi
|
2001-08-31 14:42:31 +00:00
|
|
|
AC_DEFINE(SCM_ENABLE_DEPRECATED, 1)
|
2001-05-16 07:20:53 +00:00
|
|
|
AC_DEFINE_UNQUOTED(SCM_WARN_DEPRECATED_DEFAULT, "$warn_default")
|
2001-05-02 00:54:58 +00:00
|
|
|
fi
|
|
|
|
|
|
1998-09-05 16:48:23 +00:00
|
|
|
dnl The --disable-debug used to control these two. But now they are
|
|
|
|
|
dnl a required part of the distribution.
|
|
|
|
|
AC_DEFINE(DEBUG_EXTENSIONS)
|
|
|
|
|
AC_DEFINE(READER_EXTENSIONS)
|
|
|
|
|
|
1999-09-26 16:00:36 +00:00
|
|
|
dnl files which are destined for separate modules.
|
|
|
|
|
|
* acconfig.h: add HAVE_ARRAYS.
* configure.in: add --disable-arrays option, probably temporary.
* the following changes allow guile to be built with the array
"module" omitted. some of this stuff is just tc7 type support,
which wouldn't be needed if uniform array types were converted
to smobs.
* tag.c (scm_utag_bvect ... scm_utag_cvect): don't define unless
HAVE_ARRAYS.
(scm_tag): don't check array types unless HAVE_ARRAYS.
* sort.c (scm_restricted_vector_sort_x, scm_sorted_p):
remove the unused array types.
* (scm_stable_sort, scm_sort): don't support vectors if not
HAVE_ARRAYS. a bit excessive.
* random.c (vector_scale, vector_sum_squares,
scm_random_solid_sphere_x, scm_random_hollow_sphere_x,
scm_random_normal_vector_x): don't define unless HAVE_ARRAYS.
* gh_data.c (makvect, gh_chars2byvect, gh_shorts2svect,
gh_longs2ivect, gh_ulongs2uvect, gh_floats2fvect, gh_doubles2dvect,
gh_uniform_vector_length, gh_uniform_vector_ref):
don't define unless HAVE_ARRAYS.
(gh_scm2chars, gh_scm2shorts, gh_scm2longs, gh_scm2floats,
gh_scm2doubles):
don't check vector types if not HAVE_ARRAYS.
* eq.c (scm_equal_p), eval.c (SCM_CEVAL), print.c (scm_iprin1),
gc.c (scm_gc_mark, scm_gc_sweep), objects.c (scm_class_of):
don't support the array types unless HAVE_ARRAYS is defined.
* tags.h: make nine tc7 types conditional on HAVE_ARRAYS.
* read.c (scm_lreadr): don't check for #* unless HAVE_ARRAYS is
defined (this should use read-hash-extend).
* ramap.c, unif.c: don't check whether ARRAYS is defined.
* vectors.c (scm_vector_set_length_x): moved here from unif.c. call
scm_uniform_element_size if HAVE_ARRAYS.
vectors.h: prototype too.
* unif.c (scm_uniform_element_size): new procedure.
* init.c (scm_boot_guile_1): don't call scm_init_ramap or
scm_init_unif unless HAVE_ARRAYS is defined.
* __scm.h: don't define ARRAYS.
* Makefile.am (EXTRA_libguile_la_SOURCES): unif.c and ramap.c
moved here from libguile_la_SOURCES.
* Makefile.am (ice9_sources): add arrays.scm.
* boot-9.scm: load arrays.scm if 'array is provided.
* arrays.scm: new file with stuff from boot-9.scm.
1999-11-19 18:16:19 +00:00
|
|
|
if test "$enable_arrays" = yes; then
|
|
|
|
|
LIBOBJS="$LIBOBJS ramap.o unif.o"
|
|
|
|
|
AC_DEFINE(HAVE_ARRAYS)
|
|
|
|
|
fi
|
|
|
|
|
|
1999-09-26 16:00:36 +00:00
|
|
|
if test "$enable_posix" = yes; then
|
|
|
|
|
LIBOBJS="$LIBOBJS filesys.o posix.o"
|
|
|
|
|
AC_DEFINE(HAVE_POSIX)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "$enable_networking" = yes; then
|
|
|
|
|
LIBOBJS="$LIBOBJS net_db.o socket.o"
|
|
|
|
|
AC_DEFINE(HAVE_NETWORKING)
|
|
|
|
|
fi
|
|
|
|
|
|
2000-04-21 00:24:26 +00:00
|
|
|
if test "$enable_debug_malloc" = yes; then
|
|
|
|
|
LIBOBJS="$LIBOBJS debug-malloc.o"
|
|
|
|
|
fi
|
|
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
2001-11-02 00:05:57 +00:00
|
|
|
dnl Some more checks for Win32
|
|
|
|
|
AC_CYGWIN
|
|
|
|
|
AC_MINGW32
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
|
|
2001-11-19 06:30:29 +00:00
|
|
|
AC_LIBLTDL_INSTALLABLE
|
2000-01-10 00:32:37 +00:00
|
|
|
AC_CONFIG_SUBDIRS(libltdl)
|
|
|
|
|
|
2001-11-02 00:05:57 +00:00
|
|
|
AC_PROG_INSTALL
|
1997-04-24 06:32:52 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
|
AC_PROG_CPP
|
2000-01-10 00:32:37 +00:00
|
|
|
AC_LIBTOOL_DLOPEN
|
1997-04-24 06:32:52 +00:00
|
|
|
|
|
|
|
|
AC_AIX
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
|
AC_MINIX
|
|
|
|
|
|
1998-10-24 20:53:50 +00:00
|
|
|
AM_PROG_CC_STDC
|
1999-09-22 19:58:39 +00:00
|
|
|
AM_PROG_LIBTOOL
|
1998-10-24 20:53:50 +00:00
|
|
|
|
2001-12-26 15:36:43 +00:00
|
|
|
AC_CHECK_PROG(have_makeinfo, maakeinfo, yes, no)
|
|
|
|
|
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
|
|
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
AC_C_CONST
|
1998-10-09 12:12:26 +00:00
|
|
|
AC_C_INLINE
|
2001-04-17 22:35:35 +00:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
2001-11-25 14:44:10 +00:00
|
|
|
if test "$ac_cv_c_inline" != no; then
|
|
|
|
|
AC_DEFINE(HAVE_INLINE)
|
|
|
|
|
fi
|
|
|
|
|
|
2001-11-12 00:58:33 +00:00
|
|
|
AC_CHECK_SIZEOF(short)
|
1999-01-10 07:41:25 +00:00
|
|
|
AC_CHECK_SIZEOF(int)
|
|
|
|
|
AC_CHECK_SIZEOF(long)
|
2001-11-12 00:58:33 +00:00
|
|
|
AC_CHECK_SIZEOF(size_t)
|
* validate.h
(SCM_NUM2{SIZE,PTRDIFF,SHORT,USHORT,BITS,UBITS,INT,UINT}[_DEF]):
new macros.
* unif.h: type renaming:
scm_array -> scm_array_t
scm_array_dim -> scm_array_dim_t
the old names are deprecated, all in-Guile uses changed.
* tags.h (scm_ubits_t): new typedef, representing unsigned
scm_bits_t.
* stacks.h: type renaming:
scm_info_frame -> scm_info_frame_t
scm_stack -> scm_stack_t
the old names are deprecated, all in-Guile uses changed.
* srcprop.h: type renaming:
scm_srcprops -> scm_srcprops_t
scm_srcprops_chunk -> scm_srcprops_chunk_t
the old names are deprecated, all in-Guile uses changed.
* gsubr.c, procs.c, print.c, ports.c, read.c, rdelim.c, ramap.c,
rw.c, smob.c, sort.c, srcprop.c, stacks.c, strings.c, strop.c,
strorder.c, strports.c, struct.c, symbols.c, unif.c, values.c,
vectors.c, vports.c, weaks.c:
various int/size_t -> size_t/scm_bits_t changes.
* random.h: type renaming:
scm_rstate -> scm_rstate_t
scm_rng -> scm_rng_t
scm_i_rstate -> scm_i_rstate_t
the old names are deprecated, all in-Guile uses changed.
* procs.h: type renaming:
scm_subr_entry -> scm_subr_entry_t
the old name is deprecated, all in-Guile uses changed.
* options.h (scm_option_t.val): unsigned long -> scm_bits_t.
type renaming:
scm_option -> scm_option_t
the old name is deprecated, all in-Guile uses changed.
* objects.c: various long -> scm_bits_t changes.
(scm_i_make_class_object): flags: unsigned long -> scm_ubits_t
* numbers.h (SCM_FIXNUM_BIT): deprecated, renamed to
SCM_I_FIXNUM_BIT.
* num2integral.i.c: new file, multiply included by numbers.c, used
to "templatize" the various integral <-> num conversion routines.
* numbers.c (scm_mkbig, scm_big2num, scm_adjbig, scm_normbig,
scm_copybig, scm_2ulong2big, scm_dbl2big, scm_big2dbl):
deprecated.
(scm_i_mkbig, scm_i_big2inum, scm_i_adjbig, scm_i_normbig,
scm_i_copybig, scm_i_short2big, scm_i_ushort2big, scm_i_int2big,
scm_i_uint2big, scm_i_long2big, scm_i_ulong2big, scm_i_bits2big,
scm_i_ubits2big, scm_i_size2big, scm_i_ptrdiff2big,
scm_i_long_long2big, scm_i_ulong_long2big, scm_i_dbl2big,
scm_i_big2dbl, scm_short2num, scm_ushort2num, scm_int2num,
scm_uint2num, scm_bits2num, scm_ubits2num, scm_size2num,
scm_ptrdiff2num, scm_num2short, scm_num2ushort, scm_num2int,
scm_num2uint, scm_num2bits, scm_num2ubits, scm_num2ptrdiff,
scm_num2size): new functions.
* modules.c (scm_module_reverse_lookup): i, n: int -> scm_bits_t.x
* load.c: change int -> size_t in various places (where the
variable is used to store a string length).
(search-path): call scm_done_free, not scm_done_malloc.
* list.c (scm_ilength): return a scm_bits_t, not long.
some other {int,long} -> scm_bits_t changes.
* hashtab.c: various [u]int -> scm_bits_t changes.
scm_ihashx_closure -> scm_ihashx_closure_t (and made a typedef).
(scm_ihashx): n: uint -> scm_bits_t
use scm_bits2num instead of scm_ulong2num.
* gsubr.c: various int -> scm_bits_t changes.
* gh_data.c (gh_scm2double): no loss of precision any more.
* gh.h (gh_str2scm): len: int -> size_t
(gh_{get,set}_substr): start: int -> scm_bits_t,
len: int -> size_t
(gh_<num>2scm): n: int -> scm_bits_t
(gh_*vector_length): return scm_[u]size_t, not unsigned long.
(gh_length): return scm_bits_t, not unsigned long.
* fports.h: type renaming:
scm_fport -> scm_fport_t
the old name is deprecated, all in-Guile uses changed.
* fports.c (fport_fill_input): count: int -> scm_bits_t
(fport_flush): init_size, remaining, count: int -> scm_bits_t
* debug.h (scm_lookup_cstr, scm_lookup_soft, scm_evstr): removed
those prototypes, as the functions they prototype don't exist.
* fports.c (default_buffer_size): int -> size_t
(scm_fport_buffer_add): read_size, write_size: int -> scm_bits_t
default_size: int -> size_t
(scm_setvbuf): csize: int -> scm_bits_t
* fluids.c (n_fluids): int -> scm_bits_t
(grow_fluids): old_length, i: int -> scm_bits_t
(next_fluid_num, scm_fluid_ref, scm_fluid_set_x): n: int ->
scm_bits_t
(scm_c_with_fluids): flen, vlen: int -> scm_bits_t
* filesys.c (s_scm_open_fdes): changed calls to SCM_NUM2LONG to
the new and shiny SCM_NUM2INT.
* extensions.c: extension -> extension_t (and made a typedef).
* eval.h (SCM_IFRAME): cast to scm_bits_t, not int. just so
there are no nasty surprises if/when the various deeply magic tag
bits move somewhere else.
* eval.c: changed the locals used to store results of SCM_IFRAME,
scm_ilength and such to be of type scm_bits_t (and not int/long).
(iqq): depth, edepth: int -> scm_bits_t
(scm_eval_stack): int -> scm_bits_t
(SCM_CEVAL): various vars are not scm_bits_t instead of int.
(check_map_args, scm_map, scm_for_each): len: long -> scm_bits_t
i: int -> scm_bits_t
* environments.c: changed the many calls to scm_ulong2num to
scm_ubits2num.
(import_environment_fold): proc_as_ul: ulong -> scm_ubits_t
* dynwind.c (scm_dowinds): delta: long -> scm_bits_t
* debug.h: type renaming:
scm_debug_info -> scm_debug_info_t
scm_debug_frame -> scm_debug_frame_t
the old names are deprecated, all in-Guile uses changed.
(scm_debug_eframe_size): int -> scm_bits_t
* debug.c (scm_init_debug): use scm_c_define instead of the
deprecated scm_define.
* continuations.h: type renaming:
scm_contregs -> scm_contregs_t
the old name is deprecated, all in-Guile uses changed.
(scm_contregs_t.num_stack_items): size_t -> scm_bits_t
(scm_contregs_t.num_stack_items): ulong -> scm_ubits_t
* continuations.c (scm_make_continuation): change the type of
stack_size form long to scm_bits_t.
* ports.h: type renaming:
scm_port_rw_active -> scm_port_rw_active_t (and made a typedef)
scm_port -> scm_port_t
scm_ptob_descriptor -> scm_ptob_descriptor_t
the old names are deprecated, all in-Guile uses changed.
(scm_port_t.entry): int -> scm_bits_t.
(scm_port_t.line_number): int -> long.
(scm_port_t.putback_buf_size): int -> size_t.
* __scm.h (long_long, ulong_long): deprecated (they pollute the
global namespace and have little value besides that).
(SCM_BITS_LENGTH): new, is the bit size of scm_bits_t (i.e. of an
SCM handle).
(ifdef spaghetti): include sys/types.h and sys/stdtypes.h, if they
exist (for size_t & ptrdiff_t)
(scm_sizet): deprecated.
* Makefile.am (noinst_HEADERS): add num2integral.i.c
2001-05-24 00:50:51 +00:00
|
|
|
|
2001-06-14 17:36:03 +00:00
|
|
|
dnl Check for integral types that can represent the range of pointers.
|
|
|
|
|
dnl If these types don't exist on this platform, they are replaced by
|
|
|
|
|
dnl "unsigned long" and "long", respectively.
|
|
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(stdint.h)
|
2001-07-22 18:28:21 +00:00
|
|
|
AC_CHECK_HEADERS(inttypes.h)
|
2001-11-12 00:58:33 +00:00
|
|
|
AC_CHECK_SIZEOF(uintptr_t)
|
|
|
|
|
AC_CHECK_SIZEOF(ptrdiff_t)
|
|
|
|
|
|
|
|
|
|
AC_CHECK_SIZEOF(long long)
|
* validate.h
(SCM_NUM2{SIZE,PTRDIFF,SHORT,USHORT,BITS,UBITS,INT,UINT}[_DEF]):
new macros.
* unif.h: type renaming:
scm_array -> scm_array_t
scm_array_dim -> scm_array_dim_t
the old names are deprecated, all in-Guile uses changed.
* tags.h (scm_ubits_t): new typedef, representing unsigned
scm_bits_t.
* stacks.h: type renaming:
scm_info_frame -> scm_info_frame_t
scm_stack -> scm_stack_t
the old names are deprecated, all in-Guile uses changed.
* srcprop.h: type renaming:
scm_srcprops -> scm_srcprops_t
scm_srcprops_chunk -> scm_srcprops_chunk_t
the old names are deprecated, all in-Guile uses changed.
* gsubr.c, procs.c, print.c, ports.c, read.c, rdelim.c, ramap.c,
rw.c, smob.c, sort.c, srcprop.c, stacks.c, strings.c, strop.c,
strorder.c, strports.c, struct.c, symbols.c, unif.c, values.c,
vectors.c, vports.c, weaks.c:
various int/size_t -> size_t/scm_bits_t changes.
* random.h: type renaming:
scm_rstate -> scm_rstate_t
scm_rng -> scm_rng_t
scm_i_rstate -> scm_i_rstate_t
the old names are deprecated, all in-Guile uses changed.
* procs.h: type renaming:
scm_subr_entry -> scm_subr_entry_t
the old name is deprecated, all in-Guile uses changed.
* options.h (scm_option_t.val): unsigned long -> scm_bits_t.
type renaming:
scm_option -> scm_option_t
the old name is deprecated, all in-Guile uses changed.
* objects.c: various long -> scm_bits_t changes.
(scm_i_make_class_object): flags: unsigned long -> scm_ubits_t
* numbers.h (SCM_FIXNUM_BIT): deprecated, renamed to
SCM_I_FIXNUM_BIT.
* num2integral.i.c: new file, multiply included by numbers.c, used
to "templatize" the various integral <-> num conversion routines.
* numbers.c (scm_mkbig, scm_big2num, scm_adjbig, scm_normbig,
scm_copybig, scm_2ulong2big, scm_dbl2big, scm_big2dbl):
deprecated.
(scm_i_mkbig, scm_i_big2inum, scm_i_adjbig, scm_i_normbig,
scm_i_copybig, scm_i_short2big, scm_i_ushort2big, scm_i_int2big,
scm_i_uint2big, scm_i_long2big, scm_i_ulong2big, scm_i_bits2big,
scm_i_ubits2big, scm_i_size2big, scm_i_ptrdiff2big,
scm_i_long_long2big, scm_i_ulong_long2big, scm_i_dbl2big,
scm_i_big2dbl, scm_short2num, scm_ushort2num, scm_int2num,
scm_uint2num, scm_bits2num, scm_ubits2num, scm_size2num,
scm_ptrdiff2num, scm_num2short, scm_num2ushort, scm_num2int,
scm_num2uint, scm_num2bits, scm_num2ubits, scm_num2ptrdiff,
scm_num2size): new functions.
* modules.c (scm_module_reverse_lookup): i, n: int -> scm_bits_t.x
* load.c: change int -> size_t in various places (where the
variable is used to store a string length).
(search-path): call scm_done_free, not scm_done_malloc.
* list.c (scm_ilength): return a scm_bits_t, not long.
some other {int,long} -> scm_bits_t changes.
* hashtab.c: various [u]int -> scm_bits_t changes.
scm_ihashx_closure -> scm_ihashx_closure_t (and made a typedef).
(scm_ihashx): n: uint -> scm_bits_t
use scm_bits2num instead of scm_ulong2num.
* gsubr.c: various int -> scm_bits_t changes.
* gh_data.c (gh_scm2double): no loss of precision any more.
* gh.h (gh_str2scm): len: int -> size_t
(gh_{get,set}_substr): start: int -> scm_bits_t,
len: int -> size_t
(gh_<num>2scm): n: int -> scm_bits_t
(gh_*vector_length): return scm_[u]size_t, not unsigned long.
(gh_length): return scm_bits_t, not unsigned long.
* fports.h: type renaming:
scm_fport -> scm_fport_t
the old name is deprecated, all in-Guile uses changed.
* fports.c (fport_fill_input): count: int -> scm_bits_t
(fport_flush): init_size, remaining, count: int -> scm_bits_t
* debug.h (scm_lookup_cstr, scm_lookup_soft, scm_evstr): removed
those prototypes, as the functions they prototype don't exist.
* fports.c (default_buffer_size): int -> size_t
(scm_fport_buffer_add): read_size, write_size: int -> scm_bits_t
default_size: int -> size_t
(scm_setvbuf): csize: int -> scm_bits_t
* fluids.c (n_fluids): int -> scm_bits_t
(grow_fluids): old_length, i: int -> scm_bits_t
(next_fluid_num, scm_fluid_ref, scm_fluid_set_x): n: int ->
scm_bits_t
(scm_c_with_fluids): flen, vlen: int -> scm_bits_t
* filesys.c (s_scm_open_fdes): changed calls to SCM_NUM2LONG to
the new and shiny SCM_NUM2INT.
* extensions.c: extension -> extension_t (and made a typedef).
* eval.h (SCM_IFRAME): cast to scm_bits_t, not int. just so
there are no nasty surprises if/when the various deeply magic tag
bits move somewhere else.
* eval.c: changed the locals used to store results of SCM_IFRAME,
scm_ilength and such to be of type scm_bits_t (and not int/long).
(iqq): depth, edepth: int -> scm_bits_t
(scm_eval_stack): int -> scm_bits_t
(SCM_CEVAL): various vars are not scm_bits_t instead of int.
(check_map_args, scm_map, scm_for_each): len: long -> scm_bits_t
i: int -> scm_bits_t
* environments.c: changed the many calls to scm_ulong2num to
scm_ubits2num.
(import_environment_fold): proc_as_ul: ulong -> scm_ubits_t
* dynwind.c (scm_dowinds): delta: long -> scm_bits_t
* debug.h: type renaming:
scm_debug_info -> scm_debug_info_t
scm_debug_frame -> scm_debug_frame_t
the old names are deprecated, all in-Guile uses changed.
(scm_debug_eframe_size): int -> scm_bits_t
* debug.c (scm_init_debug): use scm_c_define instead of the
deprecated scm_define.
* continuations.h: type renaming:
scm_contregs -> scm_contregs_t
the old name is deprecated, all in-Guile uses changed.
(scm_contregs_t.num_stack_items): size_t -> scm_bits_t
(scm_contregs_t.num_stack_items): ulong -> scm_ubits_t
* continuations.c (scm_make_continuation): change the type of
stack_size form long to scm_bits_t.
* ports.h: type renaming:
scm_port_rw_active -> scm_port_rw_active_t (and made a typedef)
scm_port -> scm_port_t
scm_ptob_descriptor -> scm_ptob_descriptor_t
the old names are deprecated, all in-Guile uses changed.
(scm_port_t.entry): int -> scm_bits_t.
(scm_port_t.line_number): int -> long.
(scm_port_t.putback_buf_size): int -> size_t.
* __scm.h (long_long, ulong_long): deprecated (they pollute the
global namespace and have little value besides that).
(SCM_BITS_LENGTH): new, is the bit size of scm_bits_t (i.e. of an
SCM handle).
(ifdef spaghetti): include sys/types.h and sys/stdtypes.h, if they
exist (for size_t & ptrdiff_t)
(scm_sizet): deprecated.
* Makefile.am (noinst_HEADERS): add num2integral.i.c
2001-05-24 00:50:51 +00:00
|
|
|
|
|
|
|
|
AC_CHECK_SIZEOF(void *)
|
|
|
|
|
|
2001-05-26 20:49:01 +00:00
|
|
|
if test "$ac_cv_sizeof_long" -ne "$ac_cv_sizeof_void_p"; then
|
|
|
|
|
AC_MSG_ERROR(sizes of long and void* are not identical)
|
1999-01-10 07:41:25 +00:00
|
|
|
fi
|
1997-04-24 06:32:52 +00:00
|
|
|
|
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
|
AC_HEADER_TIME
|
|
|
|
|
AC_HEADER_SYS_WAIT
|
2001-11-02 00:05:57 +00:00
|
|
|
AC_CHECK_HEADERS(io.h libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx/rxposix.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h direct.h)
|
1997-04-24 06:32:52 +00:00
|
|
|
GUILE_HEADER_LIBC_WITH_UNISTD
|
|
|
|
|
|
|
|
|
|
AC_TYPE_GETGROUPS
|
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
|
AC_TYPE_MODE_T
|
|
|
|
|
|
1997-06-11 04:38:28 +00:00
|
|
|
AC_CHECK_LIB(m, main)
|
1998-05-06 14:45:11 +00:00
|
|
|
AC_CHECK_FUNCS(gethostbyname)
|
1997-06-11 04:38:28 +00:00
|
|
|
if test $ac_cv_func_gethostbyname = no; then
|
|
|
|
|
AC_CHECK_LIB(nsl, gethostbyname)
|
|
|
|
|
fi
|
1998-05-06 14:45:11 +00:00
|
|
|
AC_CHECK_FUNCS(connect)
|
1997-06-11 04:38:28 +00:00
|
|
|
if test $ac_cv_func_connect = no; then
|
|
|
|
|
AC_CHECK_LIB(socket, connect)
|
|
|
|
|
fi
|
1998-12-14 10:04:48 +00:00
|
|
|
|
2001-11-02 00:05:57 +00:00
|
|
|
dnl
|
|
|
|
|
dnl Check for Winsock and other functionality on Win32 (*not* CygWin)
|
|
|
|
|
dnl
|
|
|
|
|
EXTRA_DEFS=""
|
|
|
|
|
if test "$MINGW32" = "yes" ; then
|
|
|
|
|
AC_CHECK_HEADER(winsock2.h, [AC_DEFINE([HAVE_WINSOCK2_H], 1,
|
|
|
|
|
[Define if you have the <winsock2.h> header file.])])
|
|
|
|
|
AC_CHECK_LIB(ws2_32, main)
|
2001-11-04 15:52:30 +00:00
|
|
|
LIBOBJS="$LIBOBJS win32-uname.o win32-dirent.o"
|
2001-11-07 15:08:45 +00:00
|
|
|
if test "$enable_networking" = yes ; then
|
|
|
|
|
LIBOBJS="$LIBOBJS win32-socket.o"
|
|
|
|
|
fi
|
|
|
|
|
if test "$enable_shared" = yes ; then
|
2001-11-04 15:52:30 +00:00
|
|
|
EXTRA_DEFS="-DSCM_IMPORT"
|
|
|
|
|
AC_DEFINE(USE_DLL_IMPORT, 1,
|
|
|
|
|
[Define if you need additional CPP macros on Win32 platforms.])
|
2001-11-02 00:05:57 +00:00
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(EXTRA_DEFS)
|
|
|
|
|
|
|
|
|
|
dnl Check for dynamic linking
|
1997-06-11 04:38:28 +00:00
|
|
|
|
2000-01-10 00:32:37 +00:00
|
|
|
use_modules=yes
|
|
|
|
|
AC_ARG_WITH(modules,
|
|
|
|
|
[ --with-modules[=FILES] Add support for dynamic modules],
|
|
|
|
|
use_modules="$withval")
|
|
|
|
|
test -z "$use_modules" && use_modules=yes
|
|
|
|
|
DLPREOPEN=
|
|
|
|
|
if test "$use_modules" != no; then
|
1997-10-02 14:17:07 +00:00
|
|
|
AC_DEFINE(DYNAMIC_LINKING)
|
2000-01-10 00:32:37 +00:00
|
|
|
if test "$use_modules" = yes; then
|
|
|
|
|
DLPREOPEN="-dlpreopen force"
|
|
|
|
|
else
|
|
|
|
|
DLPREOPEN="-export-dynamic"
|
|
|
|
|
for module in $use_modules; do
|
|
|
|
|
DLPREOPEN="$DLPREOPEN -dlopen $module"
|
|
|
|
|
done
|
|
|
|
|
fi
|
1997-10-02 14:17:07 +00:00
|
|
|
fi
|
2000-01-10 00:32:37 +00:00
|
|
|
AC_SUBST(INCLTDL)
|
|
|
|
|
AC_SUBST(LIBLTDL)
|
|
|
|
|
AC_SUBST(DLPREOPEN)
|
1997-06-11 04:38:28 +00:00
|
|
|
|
2001-07-19 17:46:42 +00:00
|
|
|
AC_CHECK_FUNCS(ctermid ftime fchown getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer)
|
1998-04-20 00:38:46 +00:00
|
|
|
|
2001-03-09 10:03:47 +00:00
|
|
|
AC_CHECK_HEADERS(crypt.h sys/resource.h sys/file.h)
|
|
|
|
|
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
|
|
|
|
|
AC_CHECK_LIB(crypt, crypt)
|
|
|
|
|
|
1998-10-03 08:01:41 +00:00
|
|
|
### Some systems don't declare some functions. On such systems, we
|
|
|
|
|
### need to at least provide our own K&R-style declarations.
|
|
|
|
|
|
|
|
|
|
### GUILE_FUNC_DECLARED(function, headerfile)
|
|
|
|
|
|
|
|
|
|
### Check for a declaration of FUNCTION in HEADERFILE; if it is
|
|
|
|
|
### not there, #define MISSING_FUNCTION_DECL.
|
|
|
|
|
AC_DEFUN(GUILE_FUNC_DECLARED, [
|
1998-10-12 21:08:17 +00:00
|
|
|
AC_CACHE_CHECK(for $1 declaration, guile_cv_func_$1_declared,
|
1998-10-03 08:01:41 +00:00
|
|
|
AC_EGREP_HEADER($1, $2,
|
2001-05-04 20:28:25 +00:00
|
|
|
guile_cv_func_$1_declared=yes,
|
1998-10-12 21:08:17 +00:00
|
|
|
guile_cv_func_$1_declared=no))
|
|
|
|
|
if test [x$guile_cv_func_]$1[_declared] = xno; then
|
1998-10-03 08:01:41 +00:00
|
|
|
AC_DEFINE([MISSING_]translit($1, [a-z], [A-Z])[_DECL])
|
|
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
GUILE_FUNC_DECLARED(strptime, time.h)
|
1998-10-03 13:34:32 +00:00
|
|
|
GUILE_FUNC_DECLARED(sleep, unistd.h)
|
1998-10-03 08:01:41 +00:00
|
|
|
GUILE_FUNC_DECLARED(usleep, unistd.h)
|
* scmsigs.h, async.h: updated.
* _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
loop.
* posix.c (scm_uname): interpret only negative values as an error.
Solaris normally returns a positive value.
* script.c (scm_compile_shell_switches): if we are not going into
an interactive repl, set scm_mask_ints to zero so that asyncs can
run.
* simpos.c (scm_system): don't ignore/unignore signals around
the "system" call.
* posix.c (scm_open_pipe): don't ignore/unignore signals around
the "popen" call.
* init.c (scm_boot_guile_1): don't call scm_init_signals, it's
done in boot-9.scm instead.
* scmsigs.c, async.c: Major rewriting of signal handling code.
(scm_sigaction): new procedure.
(scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
timing.
(scm_raise): return unspecified, throw error on failure.
* boot-9.scm: signal-handler, alarm-thunk: removed.
don't define ticks-interrupt etc.
top-repl: install signal handlers for SIGINT, SIGFPE, SIGSEGV, SIGBUS
during call to scm-style-repl.
* acconfig.h: mention HAVE_RESTARTS.
* configure.in: check for sigaction and restartable system calls.
1997-05-31 19:02:38 +00:00
|
|
|
|
1998-10-13 23:16:59 +00:00
|
|
|
### On some systems usleep has no return value. If it does have one,
|
|
|
|
|
### we'd like to return it; otherwise, we'll fake it.
|
1998-10-12 21:08:17 +00:00
|
|
|
AC_CACHE_CHECK([return type of usleep], guile_cv_func_usleep_return_type,
|
1998-10-14 08:22:00 +00:00
|
|
|
[AC_EGREP_HEADER(changequote(<, >)<void[ ]+usleep>changequote([, ]),
|
2001-10-14 20:08:08 +00:00
|
|
|
unistd.h,
|
1998-10-12 21:08:17 +00:00
|
|
|
[guile_cv_func_usleep_return_type=void],
|
|
|
|
|
[guile_cv_func_usleep_return_type=int])])
|
|
|
|
|
case "$guile_cv_func_usleep_return_type" in
|
|
|
|
|
"void" )
|
|
|
|
|
AC_DEFINE(USLEEP_RETURNS_VOID)
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
1997-07-11 05:41:08 +00:00
|
|
|
AC_CHECK_HEADER(sys/un.h, have_sys_un_h=1)
|
|
|
|
|
if test -n "$have_sys_un_h" ; then
|
|
|
|
|
AC_DEFINE(HAVE_UNIX_DOMAIN_SOCKETS)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(socketpair getgroups setpwent pause tzset)
|
|
|
|
|
|
1999-05-02 17:16:26 +00:00
|
|
|
AC_CHECK_FUNCS(sethostent gethostent endhostent dnl
|
|
|
|
|
setnetent getnetent endnetent dnl
|
|
|
|
|
setprotoent getprotoent endprotoent dnl
|
|
|
|
|
setservent getservent endservent dnl
|
* configure.in: check for hstrerror.
* socket.c (scm_htons, scm_ntohs, scm_htonl, scm_ntohl): new
functions for network data conversion.
* numbers.c (scm_num2long, scm_num2longlong):
throw out-of-range instead of wrong-type-arg if appropriate.
(scm_iint2str): handle -2^31 correctly.
(scm_num2long): handle -2^31 bignum correctly.
(scm_num2long_long): rewrite the bigdig case: basically copied
from scm_num2long.
numbers.h: (SCM_BITSPERLONGLONG): deleted.
* unif.c (rapr1): use sprintf instead of intprint for unsigned
longs: intprint can't cope with large values.
* numbers.c (scm_num2ulong): check more consistently that the
input is not negative. if it is, throw out-of-range instead of
wrong-type-arg.
* ramap.c (scm_array_fill_int): don't limit fill to INUM for
uvect, ivect or llvect.
Check that fill doesn't overflow short uniform array.
* __scm.h: add another long to the definition of long_long and
ulong_long.
* unif.c (scm_raprin1): use 'l' instead of "long_long" in the
print representation of llvect. read can't handle more than
one character.
(scm_dimensions_to_uniform_array): make "fill" an optional argument
instead of a rest argument.
* tags.h (scm_tc7_llvect): wasn't defined anywhere, so use the free
tag 29 for now.
* __scm.h: don't mention LONGLONGS.
* unif.c, numbers.c, eq.c, gc.c, print.c, eval.c, ramap.c:
replace LONGLONGS with HAVE_LONG_LONGS as set by configure.
* net_db.c (scm_inet_aton): throw errors using the misc-error key
instead of system-error. inet_aton doesn't set errno.
system-error isn't right in gethost either, since it's throwing
the value of h_errno instead of errno. so:
(scm_host_not_found_key, scm_try_again_key,
scm_no_recovery_key, scm_no_data_key): new error keys.
(scm_resolv_error): new procedure, use the new keys.
(scm_gethost): call scm_resolv_error not scm_syserror_msg.
* error.c: (various): use scm_cons instead of scm_listify
to build short lists.
* boot-9.scm (read-hash-extend to set up arrays): add 'l' for
long_long uniform vectors.
* networking.scm (sethostent, setnetent, setprotoent, setservent):
take an optional argument STAYOPEN. default is #f.
* readline.c (scm_init_readline): set rl_readline_name to Guile,
to allow conditionals in .inputrc.
1999-11-18 22:36:28 +00:00
|
|
|
getnetbyaddr getnetbyname dnl
|
2001-04-22 15:53:44 +00:00
|
|
|
inet_lnaof inet_makeaddr inet_netof hstrerror dnl
|
|
|
|
|
inet_pton inet_ntop)
|
1997-07-11 05:41:08 +00:00
|
|
|
|
2000-07-31 21:02:54 +00:00
|
|
|
dnl Some systems do not declare this. Some systems do declare it, as a
|
|
|
|
|
dnl macro. With cygwin it may be in a DLL.
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether netdb.h declares h_errno)
|
|
|
|
|
AC_CACHE_VAL(guile_cv_have_h_errno,
|
|
|
|
|
[AC_TRY_COMPILE([#include <netdb.h>],
|
|
|
|
|
[int a = h_errno;],
|
|
|
|
|
guile_cv_have_h_errno=yes, guile_cv_have_h_errno=no)])
|
|
|
|
|
AC_MSG_RESULT($guile_cv_have_h_errno)
|
|
|
|
|
if test $guile_cv_have_h_errno = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_H_ERRNO)
|
|
|
|
|
fi
|
1997-07-11 05:41:08 +00:00
|
|
|
|
2001-10-14 21:21:20 +00:00
|
|
|
AC_MSG_CHECKING(whether uint32_t is defined)
|
2001-05-03 23:41:44 +00:00
|
|
|
AC_CACHE_VAL(guile_cv_have_uint32_t,
|
2001-10-14 21:21:20 +00:00
|
|
|
[AC_TRY_COMPILE([#include <sys/types.h>
|
|
|
|
|
#include <netdb.h>],
|
|
|
|
|
[uint32_t a;],
|
|
|
|
|
guile_cv_have_uint32_t=yes, guile_cv_have_uint32_t=no)])
|
2001-05-03 23:41:44 +00:00
|
|
|
AC_MSG_RESULT($guile_cv_have_uint32_t)
|
|
|
|
|
if test $guile_cv_have_uint32_t = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_UINT32_T)
|
|
|
|
|
fi
|
|
|
|
|
|
2001-05-05 08:30:17 +00:00
|
|
|
AC_MSG_CHECKING(for working IPv6 support)
|
|
|
|
|
AC_CACHE_VAL(guile_cv_have_ipv6,
|
2001-05-05 08:41:01 +00:00
|
|
|
[AC_TRY_COMPILE([#include <netinet/in.h>
|
|
|
|
|
#include <sys/socket.h>],
|
2001-05-05 08:30:17 +00:00
|
|
|
[struct sockaddr_in6 a; a.sin6_family = AF_INET6;],
|
|
|
|
|
guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)])
|
|
|
|
|
AC_MSG_RESULT($guile_cv_have_ipv6)
|
|
|
|
|
if test $guile_cv_have_ipv6 = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_IPV6)
|
|
|
|
|
fi
|
|
|
|
|
|
2001-04-20 19:14:59 +00:00
|
|
|
# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
|
|
|
|
|
AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id)
|
|
|
|
|
AC_CACHE_VAL(guile_cv_have_sin6_scope_id,
|
|
|
|
|
[AC_TRY_COMPILE([#include <netinet/in.h>],
|
|
|
|
|
[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;],
|
|
|
|
|
guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)])
|
|
|
|
|
AC_MSG_RESULT($guile_cv_have_sin6_scope_id)
|
|
|
|
|
if test $guile_cv_have_sin6_scope_id = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_SIN6_SCOPE_ID)
|
|
|
|
|
fi
|
|
|
|
|
|
2000-01-09 20:50:03 +00:00
|
|
|
AC_MSG_CHECKING(whether localtime caches TZ)
|
|
|
|
|
AC_CACHE_VAL(guile_cv_localtime_cache,
|
|
|
|
|
[if test x$ac_cv_func_tzset = xyes; then
|
|
|
|
|
AC_TRY_RUN([#include <time.h>
|
|
|
|
|
#if STDC_HEADERS
|
|
|
|
|
# include <stdlib.h>
|
|
|
|
|
#endif
|
|
|
|
|
extern char **environ;
|
|
|
|
|
unset_TZ ()
|
|
|
|
|
{
|
|
|
|
|
char **from, **to;
|
|
|
|
|
for (to = from = environ; (*to = *from); from++)
|
|
|
|
|
if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
|
|
|
to++;
|
|
|
|
|
}
|
|
|
|
|
char TZ_GMT0[] = "TZ=GMT0";
|
|
|
|
|
char TZ_PST8[] = "TZ=PST8";
|
|
|
|
|
main()
|
|
|
|
|
{
|
|
|
|
|
time_t now = time ((time_t *) 0);
|
|
|
|
|
int hour_GMT0, hour_unset;
|
|
|
|
|
if (putenv (TZ_GMT0) != 0)
|
|
|
|
|
exit (1);
|
|
|
|
|
hour_GMT0 = localtime (&now)->tm_hour;
|
|
|
|
|
unset_TZ ();
|
|
|
|
|
hour_unset = localtime (&now)->tm_hour;
|
|
|
|
|
if (putenv (TZ_PST8) != 0)
|
|
|
|
|
exit (1);
|
|
|
|
|
if (localtime (&now)->tm_hour == hour_GMT0)
|
|
|
|
|
exit (1);
|
|
|
|
|
unset_TZ ();
|
|
|
|
|
if (localtime (&now)->tm_hour != hour_unset)
|
|
|
|
|
exit (1);
|
|
|
|
|
exit (0);
|
|
|
|
|
}], guile_cv_localtime_cache=no, guile_cv_localtime_cache=yes,
|
|
|
|
|
[# If we have tzset, assume the worst when cross-compiling.
|
|
|
|
|
guile_cv_localtime_cache=yes])
|
|
|
|
|
else
|
|
|
|
|
# If we lack tzset, report that localtime does not cache TZ,
|
|
|
|
|
# since we can't invalidate the cache if we don't have tzset.
|
|
|
|
|
guile_cv_localtime_cache=no
|
|
|
|
|
fi])dnl
|
|
|
|
|
AC_MSG_RESULT($guile_cv_localtime_cache)
|
|
|
|
|
if test $guile_cv_localtime_cache = yes; then
|
|
|
|
|
AC_DEFINE(LOCALTIME_CACHE)
|
|
|
|
|
fi
|
|
|
|
|
|
1999-09-20 21:32:23 +00:00
|
|
|
dnl Test whether system calls are restartable by default on the
|
|
|
|
|
dnl current system. If they are not, we put a loop around every system
|
|
|
|
|
dnl call to check for EINTR (see SCM_SYSCALL) and do not attempt to
|
|
|
|
|
dnl change from the default behaviour. On the other hand, if signals
|
|
|
|
|
dnl are restartable then the loop is not installed and when libguile
|
|
|
|
|
dnl initialises it also resets the behaviour of each signal to cause a
|
|
|
|
|
dnl restart (in case a different runtime had a different default
|
|
|
|
|
dnl behaviour for some reason: e.g., different versions of linux seem
|
|
|
|
|
dnl to behave differently.)
|
|
|
|
|
|
1999-09-18 17:13:38 +00:00
|
|
|
AC_SYS_RESTARTABLE_SYSCALLS
|
* scmsigs.h, async.h: updated.
* _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
loop.
* posix.c (scm_uname): interpret only negative values as an error.
Solaris normally returns a positive value.
* script.c (scm_compile_shell_switches): if we are not going into
an interactive repl, set scm_mask_ints to zero so that asyncs can
run.
* simpos.c (scm_system): don't ignore/unignore signals around
the "system" call.
* posix.c (scm_open_pipe): don't ignore/unignore signals around
the "popen" call.
* init.c (scm_boot_guile_1): don't call scm_init_signals, it's
done in boot-9.scm instead.
* scmsigs.c, async.c: Major rewriting of signal handling code.
(scm_sigaction): new procedure.
(scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
timing.
(scm_raise): return unspecified, throw error on failure.
* boot-9.scm: signal-handler, alarm-thunk: removed.
don't define ticks-interrupt etc.
top-repl: install signal handlers for SIGINT, SIGFPE, SIGSEGV, SIGBUS
during call to scm-style-repl.
* acconfig.h: mention HAVE_RESTARTS.
* configure.in: check for sigaction and restartable system calls.
1997-05-31 19:02:38 +00:00
|
|
|
|
1999-09-26 16:00:36 +00:00
|
|
|
if test "$enable_regex" = yes; then
|
|
|
|
|
if test "$ac_cv_header_regex_h" = yes ||
|
|
|
|
|
test "$ac_cv_header_rxposix_h" = yes ||
|
|
|
|
|
test "$ac_cv_header_rx_rxposix_h" = yes; then
|
|
|
|
|
GUILE_NAMED_CHECK_FUNC(regcomp, norx, [LIBOBJS="regex-posix.o $LIBOBJS"],
|
|
|
|
|
[AC_CHECK_LIB(rx, main)
|
2001-11-02 00:05:57 +00:00
|
|
|
GUILE_NAMED_CHECK_FUNC(regcomp, rx, [LIBOBJS="regex-posix.o $LIBOBJS"],
|
|
|
|
|
[AC_CHECK_LIB(regex, main)
|
|
|
|
|
GUILE_NAMED_CHECK_FUNC(regcomp, regex, [LIBOBJS="regex-posix.o $LIBOBJS"])])]
|
1999-09-26 16:00:36 +00:00
|
|
|
)
|
|
|
|
|
dnl The following should not be necessary, but for some reason
|
|
|
|
|
dnl autoheader misses it if we don't include it!
|
|
|
|
|
if test "$ac_cv_func_regcomp_norx" = yes ||
|
2001-11-02 00:05:57 +00:00
|
|
|
test "$ac_cv_func_regcomp_regex" = yes ||
|
1999-09-26 16:00:36 +00:00
|
|
|
test "$ac_cv_func_regcomp_rx" = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_REGCOMP)
|
|
|
|
|
fi
|
|
|
|
|
fi
|
1997-07-11 05:41:08 +00:00
|
|
|
fi
|
1997-05-27 23:15:31 +00:00
|
|
|
|
2001-06-02 12:39:46 +00:00
|
|
|
AC_REPLACE_FUNCS(inet_aton putenv strerror memmove mkstemp)
|
1997-04-24 06:32:52 +00:00
|
|
|
|
1997-06-28 21:32:46 +00:00
|
|
|
# When testing for the presence of alloca, we need to add alloca.o
|
|
|
|
|
# explicitly to LIBOBJS to make sure that it is translated to
|
|
|
|
|
# `alloca.lo' for libtool later on. This can and should be done more cleanly.
|
1997-04-24 06:32:52 +00:00
|
|
|
AC_FUNC_ALLOCA
|
1997-06-28 21:32:46 +00:00
|
|
|
if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi
|
1997-04-24 06:32:52 +00:00
|
|
|
|
2001-06-02 20:35:01 +00:00
|
|
|
AC_CHECK_MEMBERS([struct stat.st_rdev])
|
|
|
|
|
AC_CHECK_MEMBERS([struct stat.st_blksize])
|
|
|
|
|
|
|
|
|
|
AC_STRUCT_ST_BLOCKS
|
1997-05-26 18:06:57 +00:00
|
|
|
|
1999-08-29 18:00:48 +00:00
|
|
|
AC_CACHE_CHECK([for S_ISLNK in sys/stat.h], ac_cv_macro_S_ISLNK,
|
|
|
|
|
[AC_TRY_CPP([#include <sys/stat.h>
|
|
|
|
|
#ifndef S_ISLNK
|
|
|
|
|
#error no S_ISLNK
|
|
|
|
|
#endif],
|
|
|
|
|
ac_cv_macro_S_ISLNK=yes,
|
|
|
|
|
ac_cv_macro_S_ISLNK=no)])
|
|
|
|
|
if test $ac_cv_macro_S_ISLNK = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_S_ISLNK)
|
|
|
|
|
fi
|
|
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
AC_STRUCT_TIMEZONE
|
|
|
|
|
GUILE_STRUCT_UTIMBUF
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Which way does the stack grow?
|
|
|
|
|
#
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
AC_TRY_RUN(aux (l) unsigned long l;
|
|
|
|
|
{ int x; exit (l >= ((unsigned long)&x)); }
|
2001-05-04 20:28:25 +00:00
|
|
|
main () { int q; aux((unsigned long)&q); },
|
1997-04-24 06:32:52 +00:00
|
|
|
AC_DEFINE(SCM_STACK_GROWS_UP),,AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h.in))
|
|
|
|
|
|
1998-10-14 21:25:17 +00:00
|
|
|
AC_CACHE_CHECK([whether floats fit in longs], guile_cv_type_float_fits_long,
|
|
|
|
|
[AC_TRY_RUN([main () { exit (sizeof(float) > sizeof(long)); }],
|
|
|
|
|
[guile_cv_type_float_fits_long=yes],
|
|
|
|
|
[guile_cv_type_float_fits_long=no],
|
|
|
|
|
[guile_cv_type_float_fits_long=guess-yes])])
|
|
|
|
|
case $guile_cv_type_float_fits_long in
|
|
|
|
|
"yes" )
|
|
|
|
|
AC_DEFINE(SCM_SINGLES)
|
|
|
|
|
;;
|
|
|
|
|
"guess-yes" )
|
|
|
|
|
AC_DEFINE(SCM_SINGLES)
|
|
|
|
|
AC_MSG_WARN([guessing that sizeof(long) == sizeof(float)])
|
|
|
|
|
AC_MSG_WARN([see SCM_SINGLES in scmconfig.h.in])
|
|
|
|
|
;;
|
|
|
|
|
esac
|
1997-04-24 06:32:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for struct linger)
|
|
|
|
|
AC_CACHE_VAL(scm_cv_struct_linger,
|
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/socket.h>],
|
|
|
|
|
[struct linger lgr; lgr.l_linger = 100],
|
|
|
|
|
scm_cv_struct_linger="yes",
|
|
|
|
|
scm_cv_struct_linger="no"))
|
|
|
|
|
AC_MSG_RESULT($scm_cv_struct_linger)
|
|
|
|
|
if test $scm_cv_struct_linger = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_STRUCT_LINGER)
|
|
|
|
|
fi
|
|
|
|
|
|
2000-03-12 01:48:27 +00:00
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for struct timespec)
|
|
|
|
|
AC_CACHE_VAL(scm_cv_struct_timespec,
|
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
|
#include <time.h>],
|
|
|
|
|
[struct timespec t; t.tv_nsec = 100],
|
|
|
|
|
scm_cv_struct_timespec="yes",
|
|
|
|
|
scm_cv_struct_timespec="no"))
|
|
|
|
|
AC_MSG_RESULT($scm_cv_struct_timespec)
|
|
|
|
|
if test $scm_cv_struct_timespec = yes; then
|
|
|
|
|
AC_DEFINE(HAVE_STRUCT_TIMESPEC)
|
|
|
|
|
fi
|
|
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Flags for thread support
|
|
|
|
|
#
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
1998-07-27 01:00:40 +00:00
|
|
|
### What thread package has the user asked for?
|
|
|
|
|
AC_ARG_WITH(threads, [ --with-threads thread interface],
|
|
|
|
|
, with_threads=no)
|
|
|
|
|
|
|
|
|
|
### Turn $with_threads into either the name of a threads package, like
|
|
|
|
|
### `qt', or `no', meaning that threads should not be supported.
|
1998-07-29 17:20:17 +00:00
|
|
|
AC_MSG_CHECKING(whether to support threads)
|
1998-07-27 01:00:40 +00:00
|
|
|
case "$with_threads" in
|
|
|
|
|
"yes" | "qt" | "coop" | "")
|
|
|
|
|
with_threads=qt
|
|
|
|
|
;;
|
|
|
|
|
"no" )
|
|
|
|
|
;;
|
|
|
|
|
* )
|
|
|
|
|
AC_MSG_ERROR(invalid value for --with-threads: $with_threads)
|
|
|
|
|
;;
|
|
|
|
|
esac
|
1998-07-29 17:20:17 +00:00
|
|
|
AC_MSG_RESULT($with_threads)
|
1997-04-24 06:32:52 +00:00
|
|
|
|
1998-07-27 01:00:40 +00:00
|
|
|
## Make sure the threads package we've chosen is actually supported on
|
|
|
|
|
## the present platform.
|
|
|
|
|
case "${with_threads}" in
|
|
|
|
|
"qt" )
|
|
|
|
|
## This configures the QuickThreads package, and sets or clears
|
|
|
|
|
## the THREAD_PACKAGE variable if qthreads don't configure
|
|
|
|
|
## correctly.
|
|
|
|
|
QTHREADS_CONFIGURE
|
|
|
|
|
;;
|
|
|
|
|
esac
|
1997-04-24 06:32:52 +00:00
|
|
|
|
1998-07-27 01:00:40 +00:00
|
|
|
## If we're using threads, bring in some other parts of Guile which
|
|
|
|
|
## work with them.
|
|
|
|
|
if test "${THREAD_PACKAGE}" != "" ; then
|
|
|
|
|
AC_DEFINE(USE_THREADS, 1)
|
1997-04-24 06:32:52 +00:00
|
|
|
|
1998-07-27 01:00:40 +00:00
|
|
|
## Include the Guile thread interface in the library...
|
|
|
|
|
LIBOBJS="$LIBOBJS threads.o"
|
1997-11-27 18:03:06 +00:00
|
|
|
|
1998-07-27 01:00:40 +00:00
|
|
|
## ... and tell it which package to talk to.
|
|
|
|
|
case "${THREAD_PACKAGE}" in
|
|
|
|
|
"QT" )
|
|
|
|
|
AC_DEFINE(USE_COOP_THREADS, 1)
|
|
|
|
|
;;
|
|
|
|
|
* )
|
|
|
|
|
AC_MSG_ERROR(invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE})
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
## Bring in scm_internal_select, if appropriate.
|
|
|
|
|
if test $ac_cv_func_gettimeofday = yes &&
|
|
|
|
|
test $ac_cv_func_select = yes; then
|
|
|
|
|
AC_DEFINE(GUILE_ISELECT, 1)
|
|
|
|
|
fi
|
2000-03-29 01:54:12 +00:00
|
|
|
|
2001-08-01 21:28:29 +00:00
|
|
|
AC_ARG_ENABLE(linuxthreads,
|
|
|
|
|
[ --disable-linuxthreads disable linuxthreads workaround],,
|
|
|
|
|
enable_linuxthreads=yes)
|
|
|
|
|
|
|
|
|
|
## Workaround for linuxthreads (optionally disabled)
|
|
|
|
|
if test $host_os = linux-gnu -a "$enable_linuxthreads" = yes; then
|
2000-03-29 10:44:13 +00:00
|
|
|
AC_DEFINE(GUILE_PTHREAD_COMPAT, 1)
|
|
|
|
|
AC_CHECK_LIB(pthread, main)
|
|
|
|
|
fi
|
1997-11-27 18:03:06 +00:00
|
|
|
fi
|
2001-08-16 03:43:50 +00:00
|
|
|
AC_SUBST(LIBGUILEQTHREADS_INTERFACE_CURRENT)
|
|
|
|
|
AC_SUBST(LIBGUILEQTHREADS_INTERFACE_REVISION)
|
|
|
|
|
AC_SUBST(LIBGUILEQTHREADS_INTERFACE_AGE)
|
|
|
|
|
AC_SUBST(LIBGUILEQTHREADS_INTERFACE)
|
1997-11-27 18:03:06 +00:00
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
## If we're using GCC, ask for aggressive warnings.
|
|
|
|
|
case "$GCC" in
|
1998-07-29 18:34:59 +00:00
|
|
|
yes )
|
1998-07-30 14:26:51 +00:00
|
|
|
## We had -Wstrict-prototypes in here for a bit, but Guile does too
|
|
|
|
|
## much stuff with generic function pointers for that to really be
|
|
|
|
|
## less than exasperating.
|
1999-12-09 19:48:41 +00:00
|
|
|
## -Wpointer-arith was here too, but something changed in gcc/glibc
|
|
|
|
|
## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" ;;
|
1997-04-24 06:32:52 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
AC_PROG_AWK
|
|
|
|
|
|
2001-11-04 15:52:30 +00:00
|
|
|
## Remove fileblocks.o from the object list. This file gets added by
|
|
|
|
|
## the Autoconf macro AC_STRUCT_ST_BLOCKS. But there is no need.
|
|
|
|
|
LIBOBJS="`echo ${LIBOBJS} | sed 's/fileblocks\.o//g'`"
|
|
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
## If we're creating a shared library (using libtool!), then we'll
|
|
|
|
|
## need to generate a list of .lo files corresponding to the .o files
|
|
|
|
|
## given in LIBOBJS. We'll call it LIBLOBJS.
|
|
|
|
|
LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
|
|
|
|
|
|
2001-03-17 21:20:20 +00:00
|
|
|
## We also need to create corresponding .doc and .x files
|
2000-06-12 14:03:32 +00:00
|
|
|
EXTRA_DOT_DOC_FILES="`echo ${LIBOBJS} | sed 's/\.o/.doc/g'`"
|
2001-03-17 21:20:20 +00:00
|
|
|
EXTRA_DOT_X_FILES="`echo ${LIBOBJS} | sed 's/\.o/.x/g'`"
|
2000-06-12 14:03:32 +00:00
|
|
|
|
1997-06-22 23:32:02 +00:00
|
|
|
AC_SUBST(GUILE_MAJOR_VERSION)
|
|
|
|
|
AC_SUBST(GUILE_MINOR_VERSION)
|
2001-05-17 04:53:47 +00:00
|
|
|
AC_SUBST(GUILE_MICRO_VERSION)
|
1997-06-22 23:32:02 +00:00
|
|
|
AC_SUBST(GUILE_VERSION)
|
2001-08-16 03:43:50 +00:00
|
|
|
|
|
|
|
|
AC_SUBST(LIBGUILE_INTERFACE_CURRENT)
|
|
|
|
|
AC_SUBST(LIBGUILE_INTERFACE_REVISION)
|
|
|
|
|
AC_SUBST(LIBGUILE_INTERFACE_AGE)
|
|
|
|
|
AC_SUBST(LIBGUILE_INTERFACE)
|
1998-07-27 01:00:40 +00:00
|
|
|
|
1998-10-03 19:00:10 +00:00
|
|
|
dnl Tell guile-config what flags guile users should link against.
|
1998-07-27 01:00:40 +00:00
|
|
|
GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
|
1998-04-18 21:57:32 +00:00
|
|
|
AC_SUBST(GUILE_LIBS)
|
1997-06-22 23:32:02 +00:00
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
AC_SUBST(AWK)
|
|
|
|
|
AC_SUBST(LIBLOBJS)
|
2000-06-12 14:03:32 +00:00
|
|
|
AC_SUBST(EXTRA_DOT_DOC_FILES)
|
2001-03-17 21:20:20 +00:00
|
|
|
AC_SUBST(EXTRA_DOT_X_FILES)
|
1997-04-24 06:32:52 +00:00
|
|
|
|
2001-06-02 20:35:01 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
|
Makefile
|
|
|
|
|
libguile/Makefile
|
2001-06-03 01:04:51 +00:00
|
|
|
libguile/guile-snarf
|
2001-06-02 20:35:01 +00:00
|
|
|
libguile/guile-doc-snarf
|
|
|
|
|
libguile/guile-func-name-check
|
|
|
|
|
libguile/guile-snarf-docs
|
|
|
|
|
libguile/guile-snarf-docs-texi
|
2001-09-20 16:47:41 +00:00
|
|
|
libguile/version.h
|
2001-06-02 20:35:01 +00:00
|
|
|
ice-9/Makefile
|
|
|
|
|
oop/Makefile
|
|
|
|
|
oop/goops/Makefile
|
|
|
|
|
scripts/Makefile
|
|
|
|
|
srfi/Makefile
|
|
|
|
|
qt/Makefile
|
|
|
|
|
qt/qt.h
|
|
|
|
|
qt/md/Makefile
|
|
|
|
|
qt/time/Makefile
|
|
|
|
|
guile-config/Makefile
|
|
|
|
|
doc/Makefile
|
2001-08-24 10:16:15 +00:00
|
|
|
doc/ref/Makefile
|
|
|
|
|
doc/tutorial/Makefile
|
|
|
|
|
doc/goops/Makefile
|
|
|
|
|
doc/r5rs/Makefile
|
2001-06-02 20:35:01 +00:00
|
|
|
examples/Makefile
|
|
|
|
|
examples/scripts/Makefile
|
|
|
|
|
examples/box/Makefile
|
|
|
|
|
examples/box-module/Makefile
|
|
|
|
|
examples/box-dynamic/Makefile
|
2001-06-05 17:35:42 +00:00
|
|
|
examples/box-dynamic-module/Makefile
|
2001-06-02 20:35:01 +00:00
|
|
|
examples/modules/Makefile
|
|
|
|
|
examples/safe/Makefile
|
2001-08-07 18:17:14 +00:00
|
|
|
test-suite/Makefile
|
2001-06-02 20:35:01 +00:00
|
|
|
check-guile
|
|
|
|
|
guile-tools])
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_COMMANDS(default,
|
2001-06-03 01:04:51 +00:00
|
|
|
[ chmod +x libguile/guile-snarf \
|
|
|
|
|
libguile/guile-doc-snarf \
|
2001-06-02 20:35:01 +00:00
|
|
|
libguile/guile-func-name-check \
|
|
|
|
|
libguile/guile-snarf-docs \
|
|
|
|
|
libguile/guile-snarf-docs-texi \
|
|
|
|
|
check-guile \
|
|
|
|
|
guile-tools])
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT
|
1996-07-25 22:56:11 +00:00
|
|
|
|
1997-04-24 06:32:52 +00:00
|
|
|
dnl Local Variables:
|
|
|
|
|
dnl comment-start: "dnl "
|
|
|
|
|
dnl comment-end: ""
|
|
|
|
|
dnl comment-start-skip: "\\bdnl\\b\\s *"
|
2000-03-13 01:10:13 +00:00
|
|
|
dnl End:
|