forked from NationalSecurityAgency/DCP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
60 lines (47 loc) · 1.3 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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([dcp], m4_esyscmd([tr -d '\n' < VERSION]))
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE()
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_MAKE_SET
# LibTool
LT_INIT
AC_PROG_LIBTOOL
AC_CHECK_HEADERS([fcntl.h stddef.h stdint.h stdlib.h string.h unistd.h])
a=1
AC_CHECK_HEADER(jansson.h, [], [a=0])
if test $a == 0
then
AC_MSG_ERROR([jannson library not installed. Try 'apt-get install libjansson-dev' or whatever package manager you happen to be using...])
fi
a=1
AC_CHECK_HEADER(openssl/md5.h, [], [a=0])
if test $a == 0
then
AC_MSG_ERROR([ssl headers not install. Try 'apt-get install libssl-dev'])
fi
a=1
AC_CHECK_HEADER(db.h, [], [a=0])
if test $a == 0
then
AC_MSG_ERROR([Berkeley DB headers not installed. Try 'apt-get install libdb-dev'])
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([getcwd gethostname memset mkdir realpath strdup strerror strrchr strtol])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT