forked from eqbeats/eqbeats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
96 lines (86 loc) · 2.55 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
# -*- 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])
LT_INIT
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
PKG_CHECK_MODULES([MAGICK], [MagickWand])
PKG_CHECK_MODULES([TAGLIB], [taglib])
PKG_CHECK_MODULES([CGICC], [cgicc])
PKG_CHECK_MODULES([CTEMPLATE], [libctemplate])
PKG_CHECK_MODULES([PCRECPP], [libpcrecpp])
PKG_CHECK_MODULES([NETTLE], [nettle])
PKG_CHECK_MODULES([HIREDIS], [hiredis])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_REALLOC
AC_CHECK_FUNCS([dup2 gettimeofday memset mkdir select socket strchr])
# Paths
AC_ARG_WITH([redis-socket],
AC_HELP_STRING([--with-redis-socket=PATH], [Unix socket for Redis @<:@/run/eqbeats/redis.sock@:>@]),
[redis_socket="$withval"],
[redis_socket='/run/eqbeats/redis.sock'])
AC_SUBST([redis_socket])
AC_ARG_WITH([eqbeats-dir],
AC_HELP_STRING([--with-eqbeats-dir=DIR], [Writable site-specific files @<:@/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
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/userfeature/pages/Makefile
src/youtube/Makefile
src/youtube/pages/Makefile
src/tools/Makefile
static/Makefile
static/icons/Makefile
templates/Makefile
templates/html/Makefile
templates/json/Makefile
templates/oembed/Makefile
sql/Makefile
])
AC_OUTPUT