summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-06-25 09:20:05 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-06-25 19:47:29 +0200
commitabee0de4f1af9ea14aa6a0c29ba07ba7ff6e61f0 (patch)
treeef2a5dd05cf466082662fe7b4757d673a30ea785 /configure.ac
parent4139e0edebe42844054b1120778a54b2b2325a49 (diff)
try to find out CLANGDIR automatically
Change-Id: I21fbcdc947c9ce5d99b14c1aba8fb4e1fb2d9c00 Reviewed-on: https://gerrit.libreoffice.org/74680 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 21061c96597b..f5da5f5c5231 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6839,7 +6839,7 @@ if test "$COM_IS_CLANG" = "TRUE"; then
dnl The prefix where Clang resides, override to where Clang resides if
dnl using a source build:
if test -z "$CLANGDIR"; then
- CLANGDIR=/usr
+ CLANGDIR=$(dirname $(dirname $($CXX -print-prog-name=$(basename $CXX))))
fi
AC_LANG_PUSH([C++])
save_CPPFLAGS=$CPPFLAGS