summaryrefslogtreecommitdiffstats
path: root/debian/patches/configure-clang-variable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/configure-clang-variable.patch')
-rw-r--r--debian/patches/configure-clang-variable.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/configure-clang-variable.patch b/debian/patches/configure-clang-variable.patch
new file mode 100644
index 0000000..6aae947
--- /dev/null
+++ b/debian/patches/configure-clang-variable.patch
@@ -0,0 +1,26 @@
+From: Hilko Bengen <bengen@debian.org>
+Date: Tue, 22 Jan 2019 18:10:47 +0100
+Subject: configure: Introduce CLANG variable
+
+---
+ configure.ac | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+--- 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"