build: Check for linux/if_alg.h if tools are enabled
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Jun 2011 08:29:01 +0000 (10:29 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Jun 2011 08:29:01 +0000 (10:29 +0200)
configure.ac

index 06ac210..fa91a9c 100644 (file)
@@ -392,6 +392,9 @@ if (test "${enable_tools}" = "yes"); then
                                AC_MSG_ERROR(GnuTLS library is required))
        AC_SUBST(GNUTLS_CFLAGS)
        AC_SUBST(GNUTLS_LIBS)
+
+       AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes,
+               AC_MSG_ERROR(User-space algorithm header files are required))
 fi
 AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes")