diff --git a/configure.ac b/configure.ac index 60ca6bd52f5a..2bc45d9887d1 100644 --- a/configure.ac +++ b/configure.ac @@ -9019,7 +9019,7 @@ if test "$COM_IS_CLANG" = "TRUE"; then if test -z "$CLANGSYSINCLUDE"; then if test -n "$LLVM_CONFIG"; then # Path to the clang system headers (no idea if there's a better way to get it). - CLANGSYSINCLUDE=$($LLVM_CONFIG --libdir)/clang/$($LLVM_CONFIG --version | sed 's/git\|svn//')/include + CLANGSYSINCLUDE=$(ls -d $($LLVM_CONFIG --libdir)/clang/*/include) fi fi fi