Skip to content

Commit 1152ef7

Browse files
alistair23chucklever
authored andcommitted
tlshd: configure.ac: Use AC_CHECK_HEADER instead of AC_CHECK_FILE
AC_CHECK_FILE doesn't work when cross-compiling [1], which breaks a lot of use cases (like OpenEmbedded for one). Autoconf supports AC_CHECK_HEADER which can be used instead and is more robust [2] so let's use that instead. 1: https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Files.html 2: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Generic-Headers.html Signed-off-by: Alistair Francis <[email protected]>
1 parent 3b419fa commit 1152ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ PKG_CHECK_MODULES([LIBNL_GENL3], libnl-genl-3.0 >= 3.1)
6363
AC_SUBST([LIBNL_GENL3_CFLAGS])
6464
AC_SUBST([LIBNL_GENL3_LIBS])
6565

66-
AC_CHECK_FILE([/usr/include/linux/quic.h],
66+
AC_CHECK_HEADER([linux/quic.h],
6767
[AC_CHECK_LIB([gnutls], [gnutls_handshake_set_secret_function],
6868
[AC_DEFINE([HAVE_GNUTLS_QUIC], [1], [Define to 1 if QUIC is found.])])])
6969

0 commit comments

Comments
 (0)