-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
82 lines (71 loc) · 2.39 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
#
# configure.ac
#
# Copyright (C) 2013-2022 Aleix Conchillo Flaque <[email protected]>
#
# This file is part of guile-oauth.
#
# guile-oauth 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-oauth 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-oauth. If not, see https://www.gnu.org/licenses/.
#
AC_INIT([guile-oauth], [1.3.0], [[email protected]])
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_SRCDIR(oauth/oauth1.scm)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability])
AM_SILENT_RULES([yes])
dnl We require pkg.m4 (from pkg-config) and guile.m4 (from Guile.)
dnl Make sure they are available.
m4_pattern_forbid([PKG_CHECK_MODULES])
m4_pattern_forbid([^GUILE_PKG])
dnl Check for Guile >= 2.2
GUILE_PKG([3.0 2.2])
GUILE_PROGS
GUILE_SITE_DIR
GUILE_MODULE_REQUIRED([gcrypt base64])
GUILE_MODULE_REQUIRED([gcrypt hmac])
GUILE_MODULE_REQUIRED([gcrypt random])
GUILE_MODULE_REQUIRED([gnutls])
GUILE_MODULE_REQUIRED([json])
dnl Guile prefix and libdir.
GUILE_PREFIX=`$PKG_CONFIG --print-errors --variable=prefix guile-$GUILE_EFFECTIVE_VERSION`
GUILE_LIBDIR=`$PKG_CONFIG --print-errors --variable=libdir guile-$GUILE_EFFECTIVE_VERSION`
AC_SUBST(GUILE_PREFIX)
AC_SUBST(GUILE_LIBDIR)
if test "$cross_compiling" != no; then
GUILE_TARGET="--target=$host_alias"
AC_SUBST([GUILE_TARGET])
fi
AC_CONFIG_FILES([Makefile
oauth/Makefile
oauth/oauth1/Makefile
oauth/oauth2/Makefile
examples/Makefile])
AC_CONFIG_FILES([env], [chmod +x env])
AC_OUTPUT
dnl This is just for printing $libdir below.
LIBDIR=`eval echo $libdir`
LIBDIR=`eval echo $LIBDIR`
AC_SUBST([LIBDIR])
echo
echo "*** $PACKAGE $VERSION has been successfully configured ***"
echo
echo "$PACKAGE is using:"
echo
echo " --prefix=$prefix --libdir=$LIBDIR"
echo
echo "If you want to install in Guile system's directory re-run with:"
echo
echo " --prefix=$GUILE_PREFIX --libdir=$GUILE_LIBDIR"
echo
# configure.ac ends here