diff options
Diffstat (limited to 'contrib/amd/m4/macros/func_bad_memcmp.m4')
-rw-r--r-- | contrib/amd/m4/macros/func_bad_memcmp.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/amd/m4/macros/func_bad_memcmp.m4 b/contrib/amd/m4/macros/func_bad_memcmp.m4 new file mode 100644 index 0000000..9b988c8 --- /dev/null +++ b/contrib/amd/m4/macros/func_bad_memcmp.m4 @@ -0,0 +1,11 @@ +dnl My version is similar to the one from Autoconf 2.52, but I also +dnl define HAVE_BAD_MEMCMP so that I can do smarter things to avoid +dnl linkage conflicts with bad memcmp versions that are in libc. +AC_DEFUN(AMU_FUNC_BAD_MEMCMP, +[ +AC_FUNC_MEMCMP +if test "$ac_cv_func_memcmp_working" = no +then +AC_DEFINE(HAVE_BAD_MEMCMP) +fi +]) |