-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
64 lines (54 loc) · 1.12 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
60
61
62
63
AC_INIT([cryptotest], [0.1], [clabbe.montjoie@gmail.com])
AM_INIT_AUTOMAKE([-Wall foreign])
AC_PREREQ
AC_PROG_CC
AC_FUNC_MALLOC
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_FUNCS([gettimeofday])
AC_CHECK_FUNCS([socket])
AC_CHECK_FUNCS([strerror])
AC_CHECK_FUNCS([strtol])
AC_CHECK_FUNCS([strtoul])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_LIB(crypto, EVP_DigestUpdate)
WANT_AF_ALG=yes
COMPILE_AF_ALG=no
case "${WANT_AF_ALG}" in
yes)
AC_CHECK_HEADERS("linux/if_alg.h",
[COMPILE_AF_ALG=true])
;;
*)
[echo "AF_ALG disabled"]
;;
esac
AM_CONDITIONAL([COMPILE_AF_ALG], [test x$COMPILE_AF_ALG = xtrue])
WANT_CRYPTODEV=yes
COMPILE_CRYPTODEV=no
case "${WANT_CRYPTODEV}" in
yes)
AC_CHECK_HEADERS("crypto/cryptodev.h",
[COMPILE_CRYPTODEV=true])
;;
*)
[echo "cryptodev disabled"]
;;
esac
AM_CONDITIONAL([COMPILE_CRYPTODEV], [test x$COMPILE_CRYPTODEV = xtrue])
case "${COMPILE_CRYPTODEV}" in
true)
[echo "cryptodev support is enabled"]
;;
*)
[echo "cryptodev support cannot be enabled"]
;;
esac
AC_CONFIG_FILES([
Makefile
af_alg/Makefile
cryptodev/Makefile
])
AC_OUTPUT