Files
xen/m4/header.m4
Roger Pau Monne c9b0242ad4 autoconf: check endian.h include path
Introduce an autoconf macro to check for the include path of certain
headers that can be different between OSes.

Use such macro to find the correct path for the endian.h header, and
modify the users of endian.h to use the output of such check.

Suggested-by: Ian Jackson <iwj@xenproject.org>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
2021-02-10 11:10:55 +00:00

14 lines
325 B
Plaintext

AC_DEFUN([AX_FIND_HEADER], [
ax_found=0
m4_foreach_w([header], $2, [
AS_IF([test "$ax_found" = "0"], [
AC_CHECK_HEADER(header, [
AC_DEFINE($1, [<header>], [Header path for $1])
ax_found=1])
])
])
AS_IF([test "$ax_found" = "0"], [
AC_MSG_ERROR([No header found from list $2])
])
])