From: Hilko Bengen Date: Tue, 22 Jan 2019 17:10:47 +0000 (+0100) Subject: configure: Introduce CLANG variable X-Git-Tag: suricata-5.0.0-rc1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f00c3d304b22ccd875f6bf8fa1e0860dba3459;p=thirdparty%2Fsuricata.git configure: Introduce CLANG variable --- diff --git a/configure.ac b/configure.ac index 8200be342f..712a67aa2d 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,15 @@ AC_LANG_POP([C]) AC_MSG_RESULT([${compiler}]) + AC_ARG_WITH([clang], + [ --with-clang=PROGRAM path to Clang for compiling eBPF code. Use if the main C compiler is not Clang.], + [CLANG="$withval"], + [AS_IF([test "$compiler" = clang], + [CLANG="$CC"], + [AC_PATH_PROG([CLANG],[clang])])]) + + AC_SUBST([CLANG]) + case "$compiler" in clang) CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration -Wno-error=unused-command-line-argument"