-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
57 lines (45 loc) · 1.9 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dnl Process this file with autoconf to produce a configure script.
AC_INIT([guile-a-sync3], [0.4])
dnl Require autoconf 2.59c or greater for docdir and htmldir
AC_PREREQ(2.59c)
dnl Set so_version info for libtool (set with -version-info in lib/Makefile.am)
dnl CURRENT : REVISION : AGE where
dnl CURRENT = The most recent interface number that this library implements.
dnl REVISION = The implementation number of the current interface.
dnl AGE = The difference between the newest and oldest interface numbers
dnl that this library implements (ie a range so that AGE must be
dnl less than or equal to CURRENT)
dnl
dnl +1 : ? : +1 == new interface that does not break old one
dnl +1 : ? : 0 == new interface that breaks old one
dnl ? : ? : 0 == no new interfaces, but breaks apps
dnl ? :+1 : ? == just some internal changes, nothing breaks (eg bump with
dnl minor/micro library version number changes changing
dnl compiled code but no new interface)
GUILE_A_SYNC3_SO_VERSION=0:0:0
AC_SUBST(GUILE_A_SYNC3_SO_VERSION)
AM_INIT_AUTOMAKE([1.11])
AC_CONFIG_HEADERS([config.h])
dnl check for working c compiler
AC_CHECK_COMPILER
dnl set up libtool
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
dnl check for guile
PKG_CHECK_MODULES(GUILE, guile-3.0 >= 2.9.5)
AC_CHECK_GUILE_SITEDIR
AC_CHECK_GUILE_OBJDIR
dnl check whether to compile scheme files to bytecode
AC_CHECK_COMPILE_SCHEME
dnl check if we have a monotonic clock
AC_CHECK_HAVE_MONOTONIC_CLOCK
dnl Check for POSIX headers.
AC_CHECK_HEADERS([ unistd.h errno.h time.h ],
[:],[AC_MSG_ERROR([Standard POSIX headers not found], 1)])
dnl define MAKE for subdirectories
AC_PROG_MAKE_SET
AC_CONFIG_FILES([ Makefile a-sync/Makefile a-sync/g-golf/Makefile \
a-sync/guile-gi/Makefile lib/Makefile docs/Makefile \
tests/Makefile tests/g-golf/Makefile \
tests/guile-gi/Makefile guile-a-sync3.pc ])
AC_OUTPUT