bytevector: Initial support for UTF string conversion.
[guile-r6rs-libs.git] / configure.ac
blob2d04531e321cadbcf1ecdcb476a5d33e920aca7a
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([guile-r6rs-libs], [0.1], [ludo@gnu.org])
6 AC_CONFIG_AUX_DIR(build-aux)
7 AC_CONFIG_MACRO_DIR(m4)
9 AM_INIT_AUTOMAKE([gnu check-news no-define])
11 AC_CONFIG_SRCDIR([src/bytevector.c])
12 AC_CONFIG_HEADER([src/config.h])
14 # Checks for programs.
15 AC_PROG_CC
16 gl_EARLY
17 AC_PROG_LIBTOOL
19 # Gnulib.
20 gl_INIT
22 # Checks for Guile.
23 GUILE_PROGS
24 GUILE_FLAGS
25 AC_PATH_PROG([guile_snarf], [guile-snarf], [not-found])
26 if test "x$guile_snarf" = "xnot-found"; then
27    AC_MSG_ERROR([`guile-snarf' not found.  Please install Guile 1.8.x or later.])
29 GUILE_SITE_DIR
31 # Checks for header files.
32 AC_HEADER_STDC
33 AC_CHECK_HEADERS([limits.h])
34 AC_CHECK_HEADER([gmp.h], [:],
35   AC_MSG_ERROR([GMP headers not found.  Please install it first.]))
37 # Checks for typedefs, structures, and compiler characteristics.
38 AC_C_CONST
39 AC_C_INLINE
40 AC_TYPE_SIZE_T
41 AC_CHECK_SIZEOF([void *])
43 # Checks for library functions.
44 AC_FUNC_MEMCMP
46 # Low-level details.
47 AC_C_BIGENDIAN
49 if test "x$GCC" = "xyes"; then
50   # Enable useful GCC compilation flags.
51   GCC_CFLAGS="-Wall -Werror"
52   GCC_CFLAGS="-Wcast-align -Wmissing-prototypes -Wpointer-arith $GCC_CFLAGS"
53   GCC_CFLAGS="-Winline -Wdeclaration-after-statement $GCC_CFLAGS"
54 else
55   GCC_CFLAGS=""
57 AC_SUBST([GCC_CFLAGS])
59 AC_CONFIG_FILES([Makefile
60                  lib/Makefile
61                  modules/Makefile
62                  src/Makefile
63                  tests/Makefile
64                  pre-inst-guile])
65 AC_CONFIG_COMMANDS([pre-inst-guile-exec], [chmod +x pre-inst-guile])
67 AC_OUTPUT