File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ DISTCLEANFILES =
99pkginclude_HEADERS =
1010
1111ACLOCAL_AMFLAGS = -I m4
12+ AM_CPPFLAGS = -I$(top_srcdir ) /include
1213
1314lib_LTLIBRARIES = libwolfprov.la
1415
@@ -23,3 +24,17 @@ include test/include.am
2324# DISTCLEANFILES += .libs/bench
2425
2526test : 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+
You can’t perform that action at this time.
0 commit comments