-
Notifications
You must be signed in to change notification settings - Fork 17
/
configure.ac
54 lines (43 loc) · 1.59 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.53])
AC_INIT([fts-elastic], [0.1.0], [https://github.com/filiphanes/fts-elastic])
AM_INIT_AUTOMAKE([no-define foreign tar-ustar])
AC_OUTPUT(Makefile src/Makefile)
AC_CONFIG_SRCDIR([src])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([dummy-config.h])
AM_MAINTAINER_MODE
# Don't clobber Dovecot package versions
AC_DEFINE_UNQUOTED(fts_elastic_NAME, "$PACKAGE_NAME",
[Define to the full name of fts-elastic for Dovecot.])
AC_DEFINE_UNQUOTED(fts_elastic_VERSION, "$PACKAGE_VERSION",
[Define to the version of fts-elastic for Dovecot.])
# Couple with Dovecot
#
DC_DOVECOT
DC_DOVECOT_MODULEDIR
LIBDOVECOT_INCLUDE="$LIBDOVECOT_INCLUDE $LIBDOVECOT_STORAGE_INCLUDE"
CFLAGS="$DOVECOT_CFLAGS -I\$(top_srcdir)"
LIBS="$DOVECOT_LIBS"
AC_SUBST(LIBDOVECOT_INCLUDE)
# Allow shared objects
LT_INIT
AC_ENABLE_SHARED
AC_DISABLE_STATIC
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_SEARCH_LIBS([json_object_from_file], [json json-c], [], [ AC_MSG_ERROR([no json-c available]) ])
AC_SEARCH_LIBS([json_object_object_get_ex], [json json-c], [ AC_DEFINE([JSON_HAS_GET_EX], [1], [Define if we have json_object_object_get_ex])], [])
# Checks for header files.
AC_CHECK_HEADERS([inttypes.h stdlib.h syslog.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_CHECK_FUNCS([memset])
AC_OUTPUT
echo
echo "Install prefix : $prefix"
echo "Lib install prefix : $dovecot_pkglibdir"