-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
configure.ac
70 lines (60 loc) · 2.22 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
# Copyright (C) 2011-2021 The OpenTSDB Authors.
#
# This library is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License, or
# (at your option) any later version.
#
# This library 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
# Semantic Versioning (see http://semver.org/).
AC_INIT([opentsdb], [2.4.1], [[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([
Makefile
])
AC_CONFIG_FILES([opentsdb.spec])
AC_CONFIG_FILES([build-aux/fetchdep.sh], [chmod +x build-aux/fetchdep.sh])
AC_ARG_WITH([bigtable],
[AS_HELP_STRING([--with-bigtable], [Enable Google's Bigtable backend])],
[with_bigtable=yes],
[with_bigtable=no])
AS_IF([test "x$with_bigtable" = "xyes"],
[AM_CONDITIONAL(BIGTABLE, true)],
[AM_CONDITIONAL(BIGTABLE, false)]
)
AC_ARG_WITH([cassandra],
[AS_HELP_STRING([--with-cassandra], [Enable Cassandra backend])],
[with_cassandra=yes],
[with_cassandra=no])
AS_IF([test "x$with_cassandra" = "xyes"],
[AM_CONDITIONAL(CASSANDRA, true)],
[AM_CONDITIONAL(CASSANDRA, false)]
)
TSDB_FIND_PROG([md5], [md5sum md5 gmd5sum digest])
if test x`basename "$MD5"` = x'digest'; then
MD5='digest -a md5'
fi
TSDB_FIND_PROG([java])
TSDB_FIND_PROG([javac])
TSDB_FIND_PROG([jar])
# Mac OS does not have gnuplot. Falls back to /usr/bin/true to make gnuplot
# optional.
TSDB_FIND_PROG([gnuplot], [true])
AC_PATH_PROG([JAVADOC], [javadoc], [])
AM_MISSING_PROG([JAVADOC], [javadoc])
# Find a tool to download 3rd party dependencies.
AC_PATH_PROG([WGET], [wget])
AC_PATH_PROG([CURL], [curl])
# Make sure we have at least one.
if test -z "$WGET$CURL"; then
AC_MSG_ERROR([cannot find a tool to download an URL])
fi
AC_SUBST([staticdir], ['${pkgdatadir}/static'])
AC_OUTPUT