[gnome-builder/wip/libide: 91/237] build: check for clang during configure
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide: 91/237] build: check for clang during configure
- Date: Tue, 17 Feb 2015 21:37:04 +0000 (UTC)
commit 4d449cc3455f7c6b064b80f760aa7b962a67a0e2
Author: Christian Hergert <christian hergert me>
Date: Wed Feb 11 14:16:50 2015 -0800
build: check for clang during configure
build/autotools/autoconf.d/50_dependencies.post-am | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/build/autotools/autoconf.d/50_dependencies.post-am
b/build/autotools/autoconf.d/50_dependencies.post-am
index f720a68..105a812 100644
--- a/build/autotools/autoconf.d/50_dependencies.post-am
+++ b/build/autotools/autoconf.d/50_dependencies.post-am
@@ -6,3 +6,10 @@ PKG_CHECK_MODULES(LIBIDE, [gio-2.0 >= 2.43.4
gio-unix-2.0 >= 2.43.4
libgit2-glib-1.0 >= 0.0.24])
+
+AC_PATH_PROG([LLVM_CONFIG], [llvm-config])
+AS_IF([test "x$LLVM_CONFIG" = "x"],[
+ AC_MSG_ERROR([Failed to locate the llvm-config program.])
+])
+CLANG_LDFLAGS=`$LLVM_CONFIG --ldflags`
+AC_SUBST([CLANG_LDFLAGS])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]