forked from mignon-p/https-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (32 loc) · 854 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
38
39
40
41
42
43
44
45
# (c) Oblong Industries
# Autoconf setup
AC_PREREQ(2.61)
AC_INIT([https-example],
[0.1],
[https-example])
AC_CONFIG_SRCDIR(openssl_hostname_validation.c)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([bld/m4])
#
# Identify the compiler
#
AC_PROG_CC
LT_INIT
AM_CONDITIONAL([ENABLE_SHARED], [test "x$enable_shared" != xno])
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
m4_ifdef([AM_COLOR_TESTS], [AM_COLOR_TESTS([yes])])
# Detect OpenSSL
AX_CHECK_OPENSSL
# check for libevent
PKG_CHECK_MODULES([LIBEVENT], [libevent >= 2.1.2
libevent_pthreads >= 2.1.2
libevent_openssl >= 2.1.2])
AC_SUBST(LIBEVENT_LIBS)
AC_SUBST(LIBEVENT_CFLAGS)
# Makefile generation
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT