diff options
| author | Brent Cook <bcook@openbsd.org> | 2014-10-22 12:37:06 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2014-10-22 12:37:06 -0500 |
| commit | 54259e50a5241d8cc82824fa0f0711eef36ec9f5 (patch) | |
| tree | 6ff033a0fbc653d03c49f1d1ab8aad49ab02a20d | |
| parent | 48520cf629f17243e7662e302f61ef10e849a920 (diff) | |
| download | portable-54259e50a5241d8cc82824fa0f0711eef36ec9f5.tar.gz portable-54259e50a5241d8cc82824fa0f0711eef36ec9f5.tar.bz2 portable-54259e50a5241d8cc82824fa0f0711eef36ec9f5.zip | |
include a proper check for memmem when configuring unit tests
This allows the proper compatibility header definition to be exposed.
| -rw-r--r-- | configure.ac | 5 | ||||
| -rwxr-xr-x | update.sh | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 06ecda5..961cf18 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -117,6 +117,11 @@ AC_CHECK_FUNC(strtonum, | |||
| 117 | AC_DEFINE(NO_STRTONUM) | 117 | AC_DEFINE(NO_STRTONUM) |
| 118 | AM_CONDITIONAL(NO_STRTONUM, true)) | 118 | AM_CONDITIONAL(NO_STRTONUM, true)) |
| 119 | 119 | ||
| 120 | AC_CHECK_FUNC(memmem, | ||
| 121 | AM_CONDITIONAL(NO_MEMMEM, false), | ||
| 122 | AC_DEFINE(NO_MEMMEM) | ||
| 123 | AM_CONDITIONAL(NO_MEMMEM, true)) | ||
| 124 | |||
| 120 | AC_CHECK_FUNC(explicit_bzero, | 125 | AC_CHECK_FUNC(explicit_bzero, |
| 121 | AM_CONDITIONAL(NO_EXPLICIT_BZERO, false), | 126 | AM_CONDITIONAL(NO_EXPLICIT_BZERO, false), |
| 122 | AC_DEFINE(NO_EXPLICIT_BZERO) | 127 | AC_DEFINE(NO_EXPLICIT_BZERO) |
| @@ -321,7 +321,9 @@ $CP $libc_src/string/memmem.c tests/ | |||
| 321 | echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am | 321 | echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am |
| 322 | echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am | 322 | echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am |
| 323 | done | 323 | done |
| 324 | echo "if NO_MEMMEM" >> Makefile.am | ||
| 324 | echo "explicit_bzero_SOURCES += memmem.c" >> Makefile.am | 325 | echo "explicit_bzero_SOURCES += memmem.c" >> Makefile.am |
| 326 | echo "endif" >> Makefile.am | ||
| 325 | ) | 327 | ) |
| 326 | $CP $libcrypto_regress/evp/evptests.txt tests | 328 | $CP $libcrypto_regress/evp/evptests.txt tests |
| 327 | $CP $libcrypto_regress/aead/aeadtests.txt tests | 329 | $CP $libcrypto_regress/aead/aeadtests.txt tests |
