| 1 |
# Autoconf macros for xdvik. |
| 2 |
# Copyright (C) 2002 - 2009 Stefan Ulrich <[email protected]> |
| 3 |
# |
| 4 |
# This file is free software; the copyright holder |
| 5 |
# gives unlimited permission to copy and/or distribute it, |
| 6 |
# with or without modifications, as long as this notice is preserved. |
| 7 |
|
| 8 |
# XDVI_FUNC_MEMICMP |
| 9 |
# ----------------- |
| 10 |
# Check for memicmp(), which some installations have in <string.h>. |
| 11 |
AC_DEFUN([XDVI_FUNC_MEMICMP], |
| 12 |
[AC_CACHE_CHECK([for memicmp], |
| 13 |
[xdvi_cv_memicmp], |
| 14 |
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]], |
| 15 |
[[(void)memicmp((char *)NULL, (char *)NULL, 0);]])], |
| 16 |
[xdvi_cv_memicmp=yes], |
| 17 |
[xdvi_cv_memicmp=no])]) |
| 18 |
if test "x$xdvi_cv_memicmp" = xyes; then |
| 19 |
AC_DEFINE([HAVE_MEMICMP], 1, [Define if the memicmp() function is in <string.h>]) |
| 20 |
fi |
| 21 |
]) # XDVI_FUNC_MEMICMP |