forked from eqbeats/eqbeats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
88 lines (79 loc) · 2.62 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([eqbeats], [3.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
AC_GNU_SOURCE
LT_INIT
AC_PROG_CXX
AC_PROG_CC_C99
AC_PROG_INSTALL
AC_PROG_LN_S
AC_CHECK_LIB([fcgi], [FCGX_Init], [FCGI_LIBS="-lfcgi"], [AC_MSG_ERROR([missing fcgi])])
AC_SUBST([FCGI_LIBS])
PKG_CHECK_MODULES([PQ], [libpq])
PKG_CHECK_MODULES([MAGICK], [MagickWand])
PKG_CHECK_MODULES([TAGLIB], [taglib])
PKG_CHECK_MODULES([CGICC], [cgicc])
CGICC_LIBS='-lcgicc -lfcgi++' # cgicc.pc doesn't do its job
AC_SUBST([CGICC_LIBS])
PKG_CHECK_MODULES([CTEMPLATE], [libctemplate])
PKG_CHECK_MODULES([PCRECPP], [libpcrecpp])
PKG_CHECK_MODULES([NETTLE], [nettle])
AC_CHECK_LIB([hiredis], [redisConnectUnix], [
HIREDIS_LIBS="-lhiredis"
AC_SUBST([HIREDIS_LIBS])
AC_DEFINE([HAVE_LIBHIREDIS], 1, [Define to 1 if you have hiredis])
])
AM_CONDITIONAL([HIREDIS], [test "x$ac_cv_lib_hiredis_redisConnectUnix" = xyes])
AC_CHECK_FUNC([asprintf], [], [AC_MSG_ERROR([missing asprintf])])
AC_ARG_WITH([redis-socket],
AC_HELP_STRING([--with-redis-socket=PATH], [(deprecated) Unix socket for Redis @<:@/run/eqbeats/redis.sock@:>@]),
[redis_socket="$withval"],
[redis_socket='/run/eqbeats/redis.sock'])
AC_DEFINE_UNQUOTED([REDIS_SOCKET], ["${redis_socket}"], [Redis socket])
AC_ARG_WITH([eqbeats-dir],
AC_HELP_STRING([--with-eqbeats-dir=DIR], [Default writable website-specific directory @<:@/var/lib/eqbeats@:>@]),
[eqbeats_dir="$withval"],
[eqbeats_dir='/var/lib/eqbeats'])
AC_SUBST([eqbeats_dir])
AC_ARG_WITH([templates],
AC_HELP_STRING([--with-templates=DIR], [path to the CTemplate files @<:@PKGDATADIR/templates@:>@]),
[templates_dir="$withval"],
[templates_dir='${pkgdatadir}/templates'])
AC_SUBST([templates_dir])
AC_CONFIG_FILES([
Makefile
include/Makefile
lib/Makefile
src/Makefile
src/account/Makefile
src/account/pages/Makefile
src/core/Makefile
src/log/Makefile
src/misc/Makefile
src/pages/Makefile
src/playlist/Makefile
src/playlist/pages/Makefile
src/render/Makefile
src/social/Makefile
src/social/pages/Makefile
src/stat/Makefile
src/text/Makefile
src/track/Makefile
src/track/pages/Makefile
src/userfeature/Makefile
src/tools/Makefile
static/Makefile
static/icons/Makefile
templates/Makefile
templates/html/Makefile
templates/json/Makefile
templates/oembed/Makefile
sql/Makefile
conf/Makefile
])
AC_CONFIG_FILES([lib/eqbeats.pc])
AC_OUTPUT