forked from basho-labs/riak-c-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
37 lines (30 loc) · 932 Bytes
/
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
p
# -*- Autoconf -*-
AC_PREREQ([2.61])
AC_INIT([riak_c_client],[0.5])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_LIBTOOL
LT_INIT
PKG_CHECK_MODULES([EVENT], [libevent_pthreads])
PKG_CHECK_MODULES([PROTOBUFC], [libprotobuf-c])
PKG_CHECK_MODULES([PROTOBUF], [protobuf])
PKG_CHECK_MODULES([CUNIT], [cunit])
PKG_CHECK_MODULES([GLIB], [glib-2.0])
AC_TYPE_SIZE_T
AC_TYPE_UINT8_T
AC_CHECK_FUNCS([memset socket strerror])
AC_CHECK_HEADERS([arpa/inet.h stddef.h stdint.h stdlib.h])
AC_CHECK_HEADERS([string.h strings.h unistd.h])
AC_FUNC_MALLOC
AC_ARG_WITH([protoc-c],
[AS_HELP_STRING([--with-protoc-c=PATH],
[location of the protoc protocol buffer C compiler binary, default protoc-c])],
[PROTOC_C="$withval"],
[PROTOC_C='protoc-c'])
AC_SUBST([PROTOC_C])
AC_CONFIG_FILES([Makefile riak-c-client-async.pc riak-c-client.pc])
AC_OUTPUT