[vmkit-commits] [vmkit] r181304 - Fail the configure when llvm-config or clang has been set but cannot be found
Sylvestre Ledru
sylvestre at debian.org
Tue May 7 03:15:34 PDT 2013
Author: sylvestre
Date: Tue May 7 05:15:20 2013
New Revision: 181304
URL: http://llvm.org/viewvc/llvm-project?rev=181304&view=rev
Log:
Fail the configure when llvm-config or clang has been set but cannot be found
Modified:
vmkit/trunk/autoconf/configure.ac
vmkit/trunk/configure
Modified: vmkit/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/autoconf/configure.ac?rev=181304&r1=181303&r2=181304&view=diff
==============================================================================
--- vmkit/trunk/autoconf/configure.ac (original)
+++ vmkit/trunk/autoconf/configure.ac Tue May 7 05:15:20 2013
@@ -210,6 +210,10 @@ AC_ARG_WITH(llvm-config-path,
[[LLVM_CONFIG="llvm-config"]]
)
+if test ! -x "$LLVM_CONFIG"; then
+ AC_MSG_ERROR([Cannot find $LLVM_CONFIG (or not executable)])
+fi
+
dnl **************************************************************************
dnl clang
dnl **************************************************************************
@@ -219,10 +223,15 @@ AC_ARG_WITH(clang-path,
[[CLANG_PATH=$with_clang_path]],
[[CLANG_PATH="$(LLVM_CONFIG) --bindir"]]
)
+
+if test ! -x "$CLANG_PATH"; then
+ AC_MSG_ERROR([Cannot find $CLANG_PATH (or not executable)])
+fi
+
AC_SUBST([CLANG_PATH])
dnl **************************************************************************
-dnl GC type
+dnl GC type
dnl **************************************************************************
AC_ARG_WITH(mmtk-plan,
[AS_HELP_STRING(--with-mmtk-plan=something,
Modified: vmkit/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/configure?rev=181304&r1=181303&r2=181304&view=diff
==============================================================================
--- vmkit/trunk/configure (original)
+++ vmkit/trunk/configure Tue May 7 05:15:20 2013
@@ -2546,6 +2546,10 @@ else
fi
+if test ! -x "$LLVM_CONFIG"; then
+ as_fn_error $? "Cannot find $LLVM_CONFIG (or not executable)" "$LINENO" 5
+fi
+
# Check whether --with-clang-path was given.
if test "${with_clang_path+set}" = set; then :
@@ -2556,6 +2560,11 @@ else
fi
+if test ! -x "$CLANG_PATH"; then
+ as_fn_error $? "Cannot find $CLANG_PATH (or not executable)" "$LINENO" 5
+fi
+
+
# Check whether --with-mmtk-plan was given.
More information about the vmkit-commits
mailing list