gitile/configure.ac

configure.ac

1
dnl SPDX-FileCopyrightText: 2020 Julien Lepiller <julien@lepiller.eu>
2
dnl Copyright 2020 Julien Lepiller <julien@lepiller.eu>
3
dnl
4
dnl SPDX-License-Identifier: AGPL-3.0-or-later
5
6
#                                               -*- Autoconf -*-
7
# Process this file with autoconf to produce a configure script.
8
9
AC_PREREQ([2.69])
10
AC_INIT([gitile], [0.1], [julien@lepiller.eu])
11
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
12
13
AC_CONFIG_MACRO_DIR([m4])
14
15
# Checks for programs.
16
GUILE_SITE_DIR
17
GUILE_PROGS
18
19
# Checks for libraries.
20
GUILE_MODULE_AVAILABLE([have_git], [(git)])
21
if test "x$have_git" != "xyes"; then
22
  AC_MSG_ERROR([The Guile bindings of libgit2 are missing; please install them.])
23
fi
24
25
GUILE_MODULE_AVAILABLE([have_gcrypt], [(gcrypt hash)])
26
if test "x$have_gcrypt" != "xyes"; then
27
  AC_MSG_ERROR([The Guile bindings of Gcrypt are missing; please install them.])
28
fi
29
30
GUILE_MODULE_AVAILABLE([have_gnutls], [(gnutls)])
31
if test "x$have_gnutls" != "xyes"; then
32
  AC_MSG_ERROR([The Guile bindings of GnuTLS are missing; please install them.])
33
fi
34
35
GUILE_MODULE_AVAILABLE([have_fibers], [(fibers web server)])
36
if test "x$have_fibers" != "xyes"; then
37
  AC_MSG_ERROR([The Guile Fibers library is missing; please install it.])
38
fi
39
40
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
41
AC_CONFIG_FILES([scripts/gitile], [chmod +x scripts/gitile])
42
AC_CONFIG_FILES(Makefile)
43
44
AC_OUTPUT
45