forked from tpm2-software/tpm2-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
44 lines (44 loc) · 1.56 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
AC_INIT([tpm2.0-tools], [1.0.0])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_CXX
LT_INIT
AM_INIT_AUTOMAKE([foreign
subdir-objects])
AC_CONFIG_FILES([Makefile])
AC_CHECK_HEADER([tss2/tpm20.h],
[
AC_DEFINE([HAVE_TPM20_H],
[1],
[Define if tpm20.h exists.])
],
[AC_MSG_ERROR([Missing TSS2 headers.])])
AC_CHECK_HEADER([tcti/tcti_socket.h],
[
AC_DEFINE([HAVE_TCTI_SOCKET_H],
[1],
[Define if tcti_socket.h exists.])
],
[AC_MSG_ERROR([Missing TCTI socket header.])],
[#include <tss2/tpm20.h>])
AC_CHECK_HEADER([openssl/sha.h],
[
AC_DEFINE([HAVE_OPENSSL_H],
[1],
[Define if sha.h exists.])
],
[AC_MSG_ERROR([Missing OPENSSL headers.])])
AC_CHECK_HEADER([curl/curl.h],
[
AC_DEFINE([HAVE_CURL_H],
[1],
[Define if curl.h exists.])
],
[AC_MSG_ERROR([Missing CURL headers.])])
AC_CHECK_LIB([tss2], [Tss2_Sys_GetContextSize], [],
[AC_MSG_ERROR([Missing TSS2 library.])], [])
AC_CHECK_LIB([crypto], [SHA256_Init], [],
[AC_MSG_ERROR([Missing CRYPTO library.])], [])
AC_CHECK_LIB([curl], [curl_easy_init], [],
[AC_MSG_ERROR([Missing CURL library.])], [])
AC_OUTPUT