From 31f7d4f7818f6808707d97c5f876c8418bef1697 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 21 Jul 2013 10:27:16 +0200 Subject: [PATCH] configure.ac: link in llvm option component Recent versions of the clang driver use LLVM's Option library. Signed-off-by: Sven Verdoolaege --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 55f8983..18c4069 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,7 @@ versioninfo=4:0:0 AC_PROG_CC AC_PROG_CXX +AC_PROG_GREP AC_PROG_LIBTOOL AC_SUBST(CLANG_CXXFLAGS) @@ -28,7 +29,12 @@ fi CLANG_CXXFLAGS=`$llvm_config --cxxflags` CLANG_LDFLAGS=`$llvm_config --ldflags` targets=`$llvm_config --targets-built` -CLANG_LIBS=`$llvm_config --libs $targets asmparser bitreader support mc` +components="$targets asmparser bitreader support mc" +$llvm_config --components | $GREP option > /dev/null 2> /dev/null +if test $? -eq 0; then + components="$components option" +fi +CLANG_LIBS=`$llvm_config --libs $components` CLANG_PREFIX=`$llvm_config --prefix` AC_DEFINE_UNQUOTED(CLANG_PREFIX, ["$CLANG_PREFIX"], [Clang installation prefix]) -- 2.11.4.GIT