-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
64 lines (51 loc) · 1.28 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
# rebuild: autoreconf -fvi
#
# Copyright (c) 2015 Pagoda Box Inc
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v.
# 2.0. If a copy of the MPL was not distributed with this file, You can obtain one
# at http://mozilla.org/MPL/2.0/.
#
AC_PREREQ(2.61)
AC_INIT([redd], [0.0.2])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([src/redd.c])
AC_PROG_CC
AC_PROG_CC_STDC
AC_CHECK_LIB(pthread, pthread_mutexattr_init,
[],
[AC_MSG_ERROR([pthread libraries not found.])]
)
AC_CHECK_HEADERS(uv.h,
[],
[AC_MSG_ERROR([libuv header files not found.]); break]
)
AC_CHECK_LIB(uv, uv_run,
[],
[AC_MSG_ERROR([libuv libraries not found.])]
)
AC_CHECK_HEADERS(msgpack.h,
[],
[AC_MSG_ERROR([msgpack header files not found.]); break]
)
AC_CHECK_LIB(msgpack, msgpack_object_print,
[],
[AC_MSG_ERROR([msgpack libraries not found.])]
)
AC_CHECK_HEADERS(msgxchng.h,
[],
[AC_MSG_ERROR([msgxchng header files not found.]); break]
)
AC_CHECK_LIB(msgxchng, pack_msgxchng_request,
[],
[AC_MSG_ERROR([msgxchng libraries not found.])]
)
AC_CHECK_HEADERS(bframe.h,
[],
[AC_MSG_ERROR([bframe header files not found.]); break]
)
AC_CHECK_LIB(bframe, new_bframe,
[],
[AC_MSG_ERROR([bframe libraries not found.])]
)
AC_OUTPUT(Makefile src/Makefile)