aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-02-14 18:51:44 -0600
committerBrent Cook <bcook@openbsd.org>2015-02-14 18:54:43 -0600
commit28311d4355e38376dc7ebcf1d2d7957718f55359 (patch)
treeac6dd78bba77be68c50a9070a7876bdece1443a4 /configure.ac
parent2286578fd4e93e024ac33a0fd8f89dc936ad95a8 (diff)
downloadportable-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.ac2
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"
197AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval]) 197AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval])
198AC_CHECK_FUNCS([getentropy issetugid memmem poll reallocarray]) 198AC_CHECK_FUNCS([getentropy issetugid memmem poll reallocarray])
199AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strtonum]) 199AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strtonum])
200AC_CHECK_FUNCS([symlink openat])
200AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp]) 201AC_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])
215AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes]) 216AM_CONDITIONAL([HAVE_STRTONUM], [test "x$ac_cv_func_strtonum" = xyes])
216AM_CONDITIONAL([HAVE_TIMINGSAFE_BCMP], [test "x$ac_cv_func_timingsafe_bcmp" = xyes]) 217AM_CONDITIONAL([HAVE_TIMINGSAFE_BCMP], [test "x$ac_cv_func_timingsafe_bcmp" = xyes])
217AM_CONDITIONAL([HAVE_TIMINGSAFE_MEMCMP], [test "x$ac_cv_func_timingsafe_memcmp" = xyes]) 218AM_CONDITIONAL([HAVE_TIMINGSAFE_MEMCMP], [test "x$ac_cv_func_timingsafe_memcmp" = xyes])
219AM_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
220AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], 222AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF],