aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-10-22 12:37:06 -0500
committerBrent Cook <bcook@openbsd.org>2014-10-22 12:37:06 -0500
commit54259e50a5241d8cc82824fa0f0711eef36ec9f5 (patch)
tree6ff033a0fbc653d03c49f1d1ab8aad49ab02a20d
parent48520cf629f17243e7662e302f61ef10e849a920 (diff)
downloadportable-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.ac5
-rwxr-xr-xupdate.sh2
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
120AC_CHECK_FUNC(memmem,
121 AM_CONDITIONAL(NO_MEMMEM, false),
122 AC_DEFINE(NO_MEMMEM)
123 AM_CONDITIONAL(NO_MEMMEM, true))
124
120AC_CHECK_FUNC(explicit_bzero, 125AC_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)
diff --git a/update.sh b/update.sh
index 269b670..a087a4c 100755
--- a/update.sh
+++ b/update.sh
@@ -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