configure.ac: Use AC_CHECK_HEADER to detect the efi includes
authorDarren Hart <dvhart@linux.intel.com>
Wed, 21 Aug 2013 19:21:18 +0000 (21:21 +0200)
committerKay Sievers <kay@vrfy.org>
Wed, 21 Aug 2013 19:21:18 +0000 (21:21 +0200)
commit20e5ef825ab9f16db049b2ad1f7eaf2751a33020
treecb425ab2f99b43041447e9a95bddaaec56d4a2db
parent3d20df156baa63924d35cefc6cf534a97452f15b
configure.ac: Use AC_CHECK_HEADER to detect the efi includes

While cross-compiling, AC_CHECK_FILE will abort the configure.

The gnu-efi sources don't use relative paths and require the user to
explicitly include -I/usr/include/efi/${ARCH}. I haven't found a way to
do this with AC_CHECK_HEADER. However, since the existing test was not
testing for usability (conftest.c compilation), we don't lose much by
just not looking for efi.h and assume it exists if we can find and use
efibind.h.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
configure.ac