-
Notifications
You must be signed in to change notification settings - Fork 400
/
configure.ac
44 lines (32 loc) · 1.16 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.71])
AC_INIT([sniproxy],[0.6.1])
AM_INIT_AUTOMAKE([subdir-objects])
AM_SILENT_RULES([yes])
AC_USE_SYSTEM_EXTENSIONS
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
# Checks for libraries.
AC_CHECK_LIB([ev], [ev_run], [],
[AC_MSG_ERROR([libev is required])])
AC_CHECK_LIB([pcre2-8], [pcre2_compile_8], [],
[AC_CHECK_LIB([pcre], [pcre_exec], [],
[AC_MSG_ERROR([libpcre is required])])])
AC_ARG_ENABLE([dns],
[AS_HELP_STRING([--enable-dns], [Enable DNS resolution])])
AM_CONDITIONAL([DNS_ENABLED], [test "$enable_dns"])
AS_IF([test "$enable_dns"],
[AC_CHECK_LIB([udns], [dns_init])])
AC_ARG_ENABLE([rfc3339-timestamps],
[AS_HELP_STRING([--enable-rfc3339-timestamps], [Enable RFC3339 timestamps])],
[AC_DEFINE([RFC3339_TIMESTAMP], 1, [RFC3339 timestamps enabled])])
AC_CHECK_FUNCS([accept4])
# Enable large file support (so we can log more than 2GB)
AC_SYS_LARGEFILE
AC_CONFIG_FILES([Makefile
src/Makefile
man/Makefile
tests/Makefile])
AC_OUTPUT