summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJan Sjödin <jan_sjodin@yahoo.com>2011-03-14 22:12:35 +0000
committerJan Sjödin <jan_sjodin@yahoo.com>2011-03-14 22:12:35 +0000
commit6e70cc1f976785674d8552ff47e26cd28fbde120 (patch)
tree6a30c89a89aa27c2813f84877749c845887cfb5b /configure
parent29cfa21326b4cb55b6de24912cddfe7c7fd3a00b (diff)
Check that the AsmParser exists for the native target to enable initialization
function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index d021372ad5..5277423e4d 100755
--- a/configure
+++ b/configure
@@ -5117,7 +5117,9 @@ _ACEOF
LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
- LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
+ if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
+ LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
+ fi
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
@@ -5133,11 +5135,13 @@ cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
_ACEOF
+ if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
cat >>confdefs.h <<_ACEOF
#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
_ACEOF
+ fi
fi
done
@@ -11567,7 +11571,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 11570 "configure"
+#line 11574 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H