-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
110 lines (86 loc) · 3.88 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
dnl configuration script for Guile-DSV
dnl Process this file with autoconf to produce configure.
dnl
define(GUILE_DSV_CONFIGURE_COPYRIGHT, [[
Copyright (C) 2013-2024 Artyom V. Poptsov <[email protected]>
This file is part of Guile-DSV.
Guile-DSV 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.
Guile-DSV 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 Guile-DSV. If not, see <http://www.gnu.org/licenses/>.
]])
AC_INIT([Guile-DSV], [0.7.2], [[email protected]],
[guile-dsv],
[https://github.com/artyom-poptsov/guile-dsv])
AC_COPYRIGHT(GUILE_DSV_CONFIGURE_COPYRIGHT)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([build-aux/m4])
AM_INIT_AUTOMAKE([gnu silent-rules -Wall -Wno-portability
color-tests])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [AC_SUBST([AM_DEFAULT_VERBOSITY],1)])
AC_ARG_WITH([guilesitedir],
[AS_HELP_STRING([--with-guilesitedir],
[use the specified installation path for Guile modules])],
[case "x$withval" in
xyes|xno) guilesitedir="";;
*) guilesitedir="$withval";;
esac],
[guilesitedir=""])
dnl ----------------------------------------------------------------------
dnl Guile-SMC standalone mode.
AC_ARG_ENABLE(
[standalonemode],
[AS_HELP_STRING(
[--enable-standalonemode],
[Use the standalone mode for the Guile state machine compiler (Guile-SMC)])])
AS_IF(
[test "x$enable_standalonemode" = "xyes"],
[AC_MSG_NOTICE([Guile-SMC standalone mode enabled])
AC_DEFINE(SMC_STANDALONE_MODE, 1, [Guile-SMC standalone mode enabled])],
[AC_DEFINE(SMC_STANDALONE_MODE, 0, [Guile-SMC standalone mode disabled])]
)
AM_CONDITIONAL([ENABLE_SMC_STANDALONE_MODE], [test "x$enable_standalonemode" = "xyes"])
dnl ----------------------------------------------------------------------
GUILE_PKG([3.0 2.0 2.2])
GUILE_PROGS
GUILE_SITE_DIR
GUILE_MODULE_REQUIRED([string transform])
GUILE_MODULE_REQUIRED([smc fsm])
pkgdatadir="$datadir/$PACKAGE"
if test "x$guilesitedir" = "x"; then
guilesitedir="$pkgdatadir"
fi
AC_SUBST([guilesitedir])
dnl Manual pages.
AM_MISSING_PROG([HELP2MAN], [help2man])
AC_CONFIG_FILES([Makefile build-aux/am/Makefile build-aux/Makefile tests/Makefile])
AC_CONFIG_FILES([modules/dsv/fsm/Makefile])
AC_CONFIG_FILES([doc/Makefile build-aux/m4/Makefile modules/Makefile modules/dsv/Makefile])
AC_CONFIG_FILES([modules/dsv/cli/Makefile])
AC_CONFIG_FILES([utils/Makefile])
AC_CONFIG_FILES([presets/Makefile])
dnl texinfo package required to make the documentation in Texinfo format.
AC_CHECK_PROG(MAKEINFO_CHECK, makeinfo, yes)
AS_IF([test x"$MAKEINFO_CHECK" != x"yes"],
[ AC_MSG_ERROR([Please install texinfo before configuring])])
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
[chmod +x pre-inst-env])
AC_CONFIG_LINKS([modules/dsv/fsm/unix.puml:modules/dsv/fsm/unix.puml])
AC_CONFIG_LINKS([modules/dsv/fsm/rfc4180.puml:modules/dsv/fsm/rfc4180.puml])
# Generate a Makefile, based on the results.
AC_OUTPUT
if test "$guilesitedir" != "$GUILE_SITE"; then
# Guile has a different prefix than this module
AC_MSG_WARN([]
[The Guile modules will be installed in ${guilesitedir}.]
[You should probably re-run `configure' with]
[`--with-guilesitedir=$GUILE_SITE']
[Otherwise, you will have to adjust the `GUILE_LOAD_PATH' environment]
[variable.])
fi