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
58
59
60
61
|
dnl Process this file with autoconf to produce a configure script.
# Copyright (C) 2000-2012, 2016, 2019 Free Software Foundation, Inc.
# Copyright (C) 2020, 2021 GNUnet e.V.
#
# Author (GnuTLS): Nikos Mavrogiannopoulos, Simon Josefsson
# Author (scheme-GNUnet): Maxime Devos
#
# This file is part of scheme-gnunet
#
# scheme-GNUnet is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# scheme-GNUnet is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with scheme-GNUnet. If not, see <http://www.gnu.org/licenses/>.
# This file is partially based upon the Autoconf script of GnuTLS.
# Not all scheme-GNUnet code is licensed as GPL, some is licensed as AGPL.
AC_PREREQ([2.61])
AC_INIT([scheme-gnunet], [0.1], [bug-gnunet@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_MSG_RESULT([***
*** Checking for compilation programs...
])
dnl Checks for programs.
#PKG_PROG_PKG_CONFIG
AC_ARG_WITH([guile-site-dir], AS_HELP_STRING([--with-guile-site-dir=DIR],
[guile site directory for scheme-gnunet, default is guile system settings]),
[guilesitedir="${withval}"], [guilesitedir='$(GUILE_SITE)'])
AC_ARG_WITH([guile-site-ccache-dir], AS_HELP_STRING([--with-guile-site-ccache-dir=DIR],
[guile ccache directory for scheme-gnunet, default is guile system settings]),
[guilesiteccachedir="${withval}"], [guilesiteccachedir='$(GUILE_SITE_CCACHE)'])
AC_SUBST([guilesitedir])
AC_SUBST([guilesiteccachedir])
dnl Check for 'guild', which can be used to compile Scheme code
dnl on Guile 2.x and 3.x.
AC_PATH_PROG([GUILD], [guild])
AC_SUBST([GUILD])
dnl TODO check if 2.x works
GUILE_PKG([3.0 2.2 2.0])
GUILE_PROGS
GUILE_SITE_DIR
GUILE_FLAGS
AM_CONDITIONAL([HAVE_GUILD], [test "x$GUILD" != "x"])
AC_OUTPUT([Makefile])
|