Skip to content

Commit 6ae9f83

Browse files
author
Andras Fekete
committed
Add missing fixes from wolfEngine
Necessary to make 'make distcheck' work
1 parent 829a9a4 commit 6ae9f83

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Makefile.am

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ DISTCLEANFILES =
99
pkginclude_HEADERS =
1010

1111
ACLOCAL_AMFLAGS = -I m4
12+
AM_CPPFLAGS = -I$(top_srcdir)/include
1213

1314
lib_LTLIBRARIES = libwolfprov.la
1415

@@ -23,3 +24,17 @@ include test/include.am
2324
#DISTCLEANFILES += .libs/bench
2425

2526
test: check
27+
# By default, make distcheck will only add wolfProvider/ as an include directory.
28+
# So, for example, a file like unit.h that has #include
29+
# <wolfprovider/we_logging.h> won't be able to find wp_logging.h, because
30+
# wolfProvider/include isn't an include directory. We add it here.
31+
#
32+
# The OpenSSL lib and include directories won't be visible to make distcheck
33+
# either because make distcheck runs ./configure with no other options. If
34+
# OpenSSL isn't installed in a standard location, this naked configure command
35+
# will fail to find it. We tell it where to find the include and lib directory
36+
# for OpenSSL here.
37+
AM_DISTCHECK_CONFIGURE_FLAGS=CPPFLAGS="-I@abs_top_srcdir@/include \
38+
@OPENSSL_INCLUDES@" \
39+
LDFLAGS="@OPENSSL_LDFLAGS@"
40+

0 commit comments

Comments
 (0)