diff options
Diffstat (limited to 'Build/source/texk/xdvik/m4/xdvi-func-memicmp.m4')
-rw-r--r-- | Build/source/texk/xdvik/m4/xdvi-func-memicmp.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/xdvik/m4/xdvi-func-memicmp.m4 b/Build/source/texk/xdvik/m4/xdvi-func-memicmp.m4 new file mode 100644 index 00000000000..29db674b096 --- /dev/null +++ b/Build/source/texk/xdvik/m4/xdvi-func-memicmp.m4 @@ -0,0 +1,11 @@ +dnl ### Check for memicmp(), which some installations have in string.h +AC_DEFUN([XDVI_FUNC_MEMICMP], +[AC_CACHE_CHECK([for memicmp], xdvi_cv_memicmp, +[AC_TRY_LINK( +[#include <string.h> +], [(void)memicmp((char *)NULL, (char *)NULL, 0);], +xdvi_cv_memicmp=yes, xdvi_cv_memicmp=no)]) +if test $xdvi_cv_memicmp = yes; then + AC_DEFINE([HAVE_MEMICMP], 1, [Define if the memicmp() function is in <string.h>]) +fi]) + |