diff options
author | Brent Cook <bcook@openbsd.org> | 2015-02-14 18:51:44 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-02-14 18:54:43 -0600 |
commit | 28311d4355e38376dc7ebcf1d2d7957718f55359 (patch) | |
tree | ac6dd78bba77be68c50a9070a7876bdece1443a4 /configure.ac | |
parent | 2286578fd4e93e024ac33a0fd8f89dc936ad95a8 (diff) | |
download | portable-28311d4355e38376dc7ebcf1d2d7957718f55359.tar.gz portable-28311d4355e38376dc7ebcf1d2d7957718f55359.tar.bz2 portable-28311d4355e38376dc7ebcf1d2d7957718f55359.zip |
conditionally build certhash into openssl(1)
For now, look for openat and symlink. We may switch to just needing
symlink later.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d8e5338..2f86fbd 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -197,6 +197,7 @@ LDFLAGS="$LDFLAGS $CLANG_FLAGS" | |||
197 | AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval]) | 197 | AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval]) |
198 | AC_CHECK_FUNCS([getentropy issetugid memmem poll reallocarray]) | 198 | AC_CHECK_FUNCS([getentropy issetugid memmem poll reallocarray]) |
199 | AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strtonum]) | 199 | AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strtonum]) |
200 | AC_CHECK_FUNCS([symlink openat]) | ||
200 | AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp]) | 201 | AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp]) |
201 | 202 | ||
202 | # Share test results with automake | 203 | # Share test results with automake |
@@ -215,6 +216,7 @@ AM_CONDITIONAL([HAVE_STRNLEN], [test "x$ac_cv_func_strnlen" = xyes]) | |||
215 | AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) | 216 | AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) |
216 | AM_CONDITIONAL([HAVE_TIMINGSAFE_BCMP], [test "x$ac_cv_func_timingsafe_bcmp" = xyes]) | 217 | AM_CONDITIONAL([HAVE_TIMINGSAFE_BCMP], [test "x$ac_cv_func_timingsafe_bcmp" = xyes]) |
217 | AM_CONDITIONAL([HAVE_TIMINGSAFE_MEMCMP], [test "x$ac_cv_func_timingsafe_memcmp" = xyes]) | 218 | AM_CONDITIONAL([HAVE_TIMINGSAFE_MEMCMP], [test "x$ac_cv_func_timingsafe_memcmp" = xyes]) |
219 | AM_CONDITIONAL([BUILD_CERTHASH], [test "x$ac_cv_func_symlink" = xyes -a "x$ac_cv_func_openat" = xyes]) | ||
218 | 220 | ||
219 | # overrides for arc4random_buf implementations with known issues | 221 | # overrides for arc4random_buf implementations with known issues |
220 | AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], | 222 | AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], |