projects
/
suricata.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386644a
)
configure: Introduce CLANG variable
author
Hilko Bengen
<bengen@debian.org>
Tue, 22 Jan 2019 17:10:47 +0000
(18:10 +0100)
committer
Sascha Steinbiss
<satta@debian.org>
Thu, 20 Jul 2023 09:03:07 +0000
(10:03 +0100)
Gbp-Pq: Name configure-clang-variable.patch
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index e6c2851adbc2a3b4f062dd79e3ea02c02d6cd574..75130b22b3d14ecd67a0308f1036d0948e172304 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-38,6
+38,15
@@
AC_SUBST([CLANG])
+ AC_ARG_WITH([clang],
+ [CLANG compiler],
+ [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"