guile-fediverse/configure.ac

configure.ac

1
dnl -*- Autoconf -*-
2
3
AC_INIT([Guile-fediverse], [0.1.0],
4
  [julien@lepiller.eu], [guile-fediverse],
5
  [https://framagit.org/tyreunom/guile-fediverse])
6
7
AC_CONFIG_AUX_DIR([build-aux])
8
AM_INIT_AUTOMAKE([foreign color-tests -Wall -Wno-portability])
9
AM_SILENT_RULES([yes])
10
11
dnl We require pkg.m4 (from pkg-config) and guile.m4 (from Guile.)
12
dnl Make sure they are available.
13
m4_pattern_forbid([PKG_CHECK_MODULES])
14
m4_pattern_forbid([GUILE_PKG])
15
16
GUILE_PKG([3.0 2.2 2.0])
17
GUILE_PROGS
18
19
GUILE_MODULE_AVAILABLE([have_guile_json], [(json)])
20
if test "x$have_guile_json" != "xyes"; then
21
  AC_MSG_ERROR([Guile-Json could not be found; please install it.])
22
fi
23
24
GUILE_MODULE_AVAILABLE([have_guile_jsonld], [(jsonld json)])
25
if test "x$have_guile_jsonld" != "xyes"; then
26
  AC_MSG_ERROR([Guile-JsonLD could not be found; please install it.])
27
fi
28
29
AC_ARG_VAR([SCHEMA_ORG_FILE],
30
            AS_HELP_STRING([SCHEMA_ORG_FILE],
31
                           [Specify a file that contains the description of the
32
schema.org vocabulary, in the jsonld format.  When not set, the online version
33
is downloaded during the build.]))
34
35
if test "x$SCHEMA_ORG_FILE" != "x"; then
36
  if test -f "$SCHEMA_ORG_FILE"; then
37
    AC_MSG_NOTICE([The specified schema.org description file will be used.])
38
  else
39
    AC_MSG_ERROR([Specified schema.org description does not exist.])
40
  fi
41
fi
42
43
AC_CONFIG_FILES([Makefile])
44
AC_CONFIG_FILES([env], [chmod +x env])
45
AC_REQUIRE_AUX_FILE([tap-driver.sh])
46
47
AC_OUTPUT
48