autoconf: check endian.h include path
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 4 Feb 2021 09:38:33 +0000 (10:38 +0100)
committerIan Jackson <iwj@xenproject.org>
Wed, 10 Feb 2021 11:10:55 +0000 (11:10 +0000)
commitc9b0242ad44a739e0f4c72b67fd4bcf4b042f800
treef8fac038a783584d6e674c24aba9fb20f90190d2
parent687121f8a0e7c1ea1c4fa3d056637e5819342f14
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>
m4/header.m4 [new file with mode: 0644]
tools/configure.ac
tools/libs/guest/xg_dom_decompress_unsafe_lzo1x.c
tools/libs/guest/xg_dom_decompress_unsafe_xz.c
tools/libs/guest/xg_dom_decompress_unsafe_zstd.c
tools/xenstore/include/xenstore_state.h