summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2019-11-11 22:44:56 +0000
committerjoerg <joerg@NetBSD.org>2019-11-11 22:44:56 +0000
commit918c74ea12c6bac6ca9bd2147337c0e4fec5010e (patch)
tree3ef5212d84042aedbd5e0629e2c7dc2de1751526
parent5578004b9757994411ac0c8b959a53c2063844d1 (diff)
Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
-rw-r--r--crypto/external/bsd/openssh/lib/Makefile3
-rw-r--r--crypto/external/bsd/openssl/lib/libcrypto/Makefile4
-rw-r--r--distrib/sets/lists/base/mi5
-rw-r--r--distrib/sets/lists/comp/ad.aarch6411
-rw-r--r--distrib/sets/lists/comp/ad.arm8
-rw-r--r--distrib/sets/lists/comp/ad.mips5
-rw-r--r--distrib/sets/lists/comp/ad.powerpc11
-rw-r--r--distrib/sets/lists/comp/md.amd64244
-rw-r--r--distrib/sets/lists/comp/md.i386244
-rw-r--r--distrib/sets/lists/comp/mi11
-rw-r--r--doc/3RDPARTY8
-rw-r--r--etc/mtree/NetBSD.dist.base4
-rw-r--r--external/apache2/Makefile14
-rw-r--r--external/apache2/llvm/Makefile21
-rw-r--r--external/apache2/llvm/Makefile.inc63
-rwxr-xr-xexternal/apache2/llvm/autoconf/autoconf/AutoRegen.sh54
-rw-r--r--external/apache2/llvm/autoconf/autoconf/ExportMap.map7
-rw-r--r--external/apache2/llvm/autoconf/autoconf/LICENSE.TXT24
-rw-r--r--external/apache2/llvm/autoconf/autoconf/README.TXT14
-rw-r--r--external/apache2/llvm/autoconf/autoconf/aclocal.m4265
-rwxr-xr-xexternal/apache2/llvm/autoconf/autoconf/config.guess1529
-rwxr-xr-xexternal/apache2/llvm/autoconf/autoconf/config.sub1770
-rw-r--r--external/apache2/llvm/autoconf/autoconf/configure.ac2043
-rwxr-xr-xexternal/apache2/llvm/autoconf/autoconf/install-sh322
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/build_exeext.m442
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/c_printf_a.m431
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/check_gnu_make.m426
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/config_makefile.m49
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/config_project.m414
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/cxx_flag_check.m42
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/define_subst.m45
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/find_std_program.m4118
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/func_mmap_file.m426
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/header_mmap_anonymous.m421
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/huge_val.m418
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/link_options.m4109
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/linux_mixed_64_32.m417
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/need_dev_zero_for_mmap.m417
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/sanity_check.m431
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/single_cxx_check.m416
-rw-r--r--external/apache2/llvm/autoconf/autoconf/m4/visibility_inlines_hidden.m424
-rwxr-xr-xexternal/apache2/llvm/autoconf/autoconf/missing353
-rwxr-xr-xexternal/apache2/llvm/autoconf/autoconf/mkinstalldirs150
-rwxr-xr-xexternal/apache2/llvm/autoconf/configure11829
-rw-r--r--external/apache2/llvm/autoconf/include/clang/Config/config.h.in66
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/AsmParsers.def.in29
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/AsmPrinters.def.in29
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/Disassemblers.def.in29
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/Targets.def.in28
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/abi-breaking.h.in41
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/config.h.in521
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Config/llvm-config.h.in83
-rw-r--r--external/apache2/llvm/autoconf/include/llvm/Support/DataTypes.h.in130
-rwxr-xr-xexternal/apache2/llvm/autoconf/run-autoconf4
-rw-r--r--external/apache2/llvm/bin/Makefile42
-rw-r--r--external/apache2/llvm/bin/Makefile.inc5
-rw-r--r--external/apache2/llvm/bin/bugpoint/Makefile96
-rw-r--r--external/apache2/llvm/bin/clang-format/Makefile39
-rw-r--r--external/apache2/llvm/bin/clang-rename/Makefile48
-rw-r--r--external/apache2/llvm/bin/clang-tblgen/Makefile33
-rw-r--r--external/apache2/llvm/bin/clang/Makefile132
-rw-r--r--external/apache2/llvm/bin/llc/Makefile81
-rw-r--r--external/apache2/llvm/bin/lli/Makefile54
-rw-r--r--external/apache2/llvm/bin/llvm-ar/Makefile59
-rw-r--r--external/apache2/llvm/bin/llvm-as/Makefile26
-rw-r--r--external/apache2/llvm/bin/llvm-bcanalyzer/Makefile20
-rw-r--r--external/apache2/llvm/bin/llvm-cov/Makefile43
-rw-r--r--external/apache2/llvm/bin/llvm-cxxdump/Makefile36
-rw-r--r--external/apache2/llvm/bin/llvm-cxxfilt/Makefile19
-rw-r--r--external/apache2/llvm/bin/llvm-diff/Makefile27
-rw-r--r--external/apache2/llvm/bin/llvm-dis/Makefile23
-rw-r--r--external/apache2/llvm/bin/llvm-dwarfdump/Makefile49
-rw-r--r--external/apache2/llvm/bin/llvm-dwp/Makefile70
-rw-r--r--external/apache2/llvm/bin/llvm-extract/Makefile33
-rw-r--r--external/apache2/llvm/bin/llvm-link/Makefile33
-rw-r--r--external/apache2/llvm/bin/llvm-mc/Makefile75
-rw-r--r--external/apache2/llvm/bin/llvm-nm/Makefile56
-rw-r--r--external/apache2/llvm/bin/llvm-objcopy/Makefile73
-rw-r--r--external/apache2/llvm/bin/llvm-objdump/Makefile71
-rw-r--r--external/apache2/llvm/bin/llvm-profdata/Makefile26
-rw-r--r--external/apache2/llvm/bin/llvm-readobj/Makefile45
-rw-r--r--external/apache2/llvm/bin/llvm-size/Makefile25
-rw-r--r--external/apache2/llvm/bin/llvm-strings/Makefile18
-rw-r--r--external/apache2/llvm/bin/llvm-symbolizer/Makefile32
-rw-r--r--external/apache2/llvm/bin/llvm-xray/Makefile45
-rw-r--r--external/apache2/llvm/bin/opt/Makefile95
-rw-r--r--external/apache2/llvm/bin/sancov/Makefile60
-rw-r--r--external/apache2/llvm/bin/sanstats/Makefile34
-rw-r--r--external/apache2/llvm/bin/tblgen/Makefile70
-rw-r--r--external/apache2/llvm/config/clang/Config/config.h67
-rw-r--r--external/apache2/llvm/config/llvm/Config/AsmParsers.def36
-rw-r--r--external/apache2/llvm/config/llvm/Config/AsmPrinters.def36
-rw-r--r--external/apache2/llvm/config/llvm/Config/Disassemblers.def36
-rw-r--r--external/apache2/llvm/config/llvm/Config/Targets.def35
-rw-r--r--external/apache2/llvm/config/llvm/Config/abi-breaking.h42
-rw-r--r--external/apache2/llvm/config/llvm/Config/config.h.in522
-rw-r--r--external/apache2/llvm/config/llvm/Config/llvm-config.h.in84
-rw-r--r--external/apache2/llvm/config/llvm/Support/DataTypes.h131
-rw-r--r--external/apache2/llvm/include/Makefile370
-rw-r--r--external/apache2/llvm/include/Makefile.inc3
-rw-r--r--external/apache2/llvm/lib/Makefile174
-rw-r--r--external/apache2/llvm/lib/Makefile.inc5
-rw-r--r--external/apache2/llvm/lib/libLLVMAArch64AsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAArch64CodeGen/Makefile81
-rw-r--r--external/apache2/llvm/lib/libLLVMAArch64Disassembler/Makefile19
-rw-r--r--external/apache2/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile29
-rw-r--r--external/apache2/llvm/lib/libLLVMAArch64TargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAArch64Utils/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAMDGPUAsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAMDGPUCodeGen/Makefile142
-rw-r--r--external/apache2/llvm/lib/libLLVMAMDGPUDisassembler/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile28
-rw-r--r--external/apache2/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAMDGPUUtils/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMARMAsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMARMCodeGen/Makefile80
-rw-r--r--external/apache2/llvm/lib/libLLVMARMDisassembler/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMARMMCTargetDesc/Makefile31
-rw-r--r--external/apache2/llvm/lib/libLLVMARMTargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMARMUtils/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMAnalysis/Makefile113
-rw-r--r--external/apache2/llvm/lib/libLLVMArchive/Makefile13
-rw-r--r--external/apache2/llvm/lib/libLLVMAsmParser/Makefile17
-rw-r--r--external/apache2/llvm/lib/libLLVMAsmPrinter/Makefile39
-rw-r--r--external/apache2/llvm/lib/libLLVMBinaryFormat/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMBitReader/Makefile19
-rw-r--r--external/apache2/llvm/lib/libLLVMBitWriter/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMBitstreamReader/Makefile15
-rw-r--r--external/apache2/llvm/lib/libLLVMCodeGen/Makefile186
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoCodeView/Makefile53
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoDWARF/Makefile41
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoGSYM/Makefile22
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoMSF/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoPDB/Makefile54
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoPDBDIA/Makefile22
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoPDBNative/Makefile57
-rw-r--r--external/apache2/llvm/lib/libLLVMDebugInfoSymbolize/Makefile17
-rw-r--r--external/apache2/llvm/lib/libLLVMDemangle/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMExecutionEngine/Makefile19
-rw-r--r--external/apache2/llvm/lib/libLLVMExecutionEngineJITLink/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMGlobalISel/Makefile36
-rw-r--r--external/apache2/llvm/lib/libLLVMHello/Makefile11
-rw-r--r--external/apache2/llvm/lib/libLLVMIR/Makefile74
-rw-r--r--external/apache2/llvm/lib/libLLVMIRReader/Makefile15
-rw-r--r--external/apache2/llvm/lib/libLLVMInstCombine/Makefile34
-rw-r--r--external/apache2/llvm/lib/libLLVMInstrumentation/Makefile32
-rw-r--r--external/apache2/llvm/lib/libLLVMInterpreter/Makefile13
-rw-r--r--external/apache2/llvm/lib/libLLVMLTO/Makefile22
-rw-r--r--external/apache2/llvm/lib/libLLVMLibDriver/Makefile21
-rw-r--r--external/apache2/llvm/lib/libLLVMLineEditor/Makefile15
-rw-r--r--external/apache2/llvm/lib/libLLVMLinker/Makefile16
-rw-r--r--external/apache2/llvm/lib/libLLVMMC/Makefile74
-rw-r--r--external/apache2/llvm/lib/libLLVMMCA/Makefile40
-rw-r--r--external/apache2/llvm/lib/libLLVMMCDisassembler/Makefile19
-rw-r--r--external/apache2/llvm/lib/libLLVMMCJIT/Makefile15
-rw-r--r--external/apache2/llvm/lib/libLLVMMCParser/Makefile24
-rw-r--r--external/apache2/llvm/lib/libLLVMMIRParser/Makefile17
-rw-r--r--external/apache2/llvm/lib/libLLVMMipsAsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMMipsCodeGen/Makefile73
-rw-r--r--external/apache2/llvm/lib/libLLVMMipsDisassembler/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMMipsMCTargetDesc/Makefile30
-rw-r--r--external/apache2/llvm/lib/libLLVMMipsTargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMObjCARC/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMObject/Makefile42
-rw-r--r--external/apache2/llvm/lib/libLLVMObjectYAML/Makefile35
-rw-r--r--external/apache2/llvm/lib/libLLVMOption/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMOrc/Makefile34
-rw-r--r--external/apache2/llvm/lib/libLLVMPasses/Makefile17
-rw-r--r--external/apache2/llvm/lib/libLLVMPowerPCAsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMPowerPCCodeGen/Makefile64
-rw-r--r--external/apache2/llvm/lib/libLLVMPowerPCDisassembler/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile27
-rw-r--r--external/apache2/llvm/lib/libLLVMPowerPCTargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMProfileData/Makefile22
-rw-r--r--external/apache2/llvm/lib/libLLVMProfileDataCoverage/Makefile17
-rw-r--r--external/apache2/llvm/lib/libLLVMRemarks/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMRuntimeDyld/Makefile24
-rw-r--r--external/apache2/llvm/lib/libLLVMScalarOpts/Makefile88
-rw-r--r--external/apache2/llvm/lib/libLLVMSelectionDAG/Makefile39
-rw-r--r--external/apache2/llvm/lib/libLLVMSparcAsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMSparcCodeGen/Makefile43
-rw-r--r--external/apache2/llvm/lib/libLLVMSparcDisassembler/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMSparcMCTargetDesc/Makefile25
-rw-r--r--external/apache2/llvm/lib/libLLVMSparcTargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMSupport/Makefile156
-rw-r--r--external/apache2/llvm/lib/libLLVMTableGen/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMTarget/Makefile19
-rw-r--r--external/apache2/llvm/lib/libLLVMTextAPI/Makefile27
-rw-r--r--external/apache2/llvm/lib/libLLVMToolDrivers/Makefile21
-rw-r--r--external/apache2/llvm/lib/libLLVMToolDriversDlltool/Makefile21
-rw-r--r--external/apache2/llvm/lib/libLLVMTransformsAggressiveInstCombine/Makefile16
-rw-r--r--external/apache2/llvm/lib/libLLVMTransformsCFGuard/Makefile15
-rw-r--r--external/apache2/llvm/lib/libLLVMTransformsCoroutines/Makefile20
-rw-r--r--external/apache2/llvm/lib/libLLVMTransformsUtils/Makefile75
-rw-r--r--external/apache2/llvm/lib/libLLVMVectorize/Makefile25
-rw-r--r--external/apache2/llvm/lib/libLLVMX86AsmParser/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMX86CodeGen/Makefile80
-rw-r--r--external/apache2/llvm/lib/libLLVMX86Disassembler/Makefile23
-rw-r--r--external/apache2/llvm/lib/libLLVMX86MCTargetDesc/Makefile30
-rw-r--r--external/apache2/llvm/lib/libLLVMX86TargetInfo/Makefile18
-rw-r--r--external/apache2/llvm/lib/libLLVMX86Utils/Makefile15
-rw-r--r--external/apache2/llvm/lib/libLLVMXRay/Makefile28
-rw-r--r--external/apache2/llvm/lib/libLLVMipo/Makefile50
-rw-r--r--external/apache2/llvm/lib/libclangARCMigrate/Makefile34
-rw-r--r--external/apache2/llvm/lib/libclangAST/Makefile117
-rw-r--r--external/apache2/llvm/lib/libclangASTMatchers/Makefile16
-rw-r--r--external/apache2/llvm/lib/libclangASTMatchersDynamic/Makefile18
-rw-r--r--external/apache2/llvm/lib/libclangAnalysis/Makefile39
-rw-r--r--external/apache2/llvm/lib/libclangBasic/Makefile76
-rw-r--r--external/apache2/llvm/lib/libclangCodeGen/Makefile70
-rw-r--r--external/apache2/llvm/lib/libclangCrossTU/Makefile15
-rw-r--r--external/apache2/llvm/lib/libclangDriver/Makefile83
-rw-r--r--external/apache2/llvm/lib/libclangEdit/Makefile17
-rw-r--r--external/apache2/llvm/lib/libclangFormat/Makefile28
-rw-r--r--external/apache2/llvm/lib/libclangFrontend/Makefile46
-rw-r--r--external/apache2/llvm/lib/libclangFrontendRewrite/Makefile23
-rw-r--r--external/apache2/llvm/lib/libclangFrontendTool/Makefile15
-rw-r--r--external/apache2/llvm/lib/libclangIndex/Makefile23
-rw-r--r--external/apache2/llvm/lib/libclangLex/Makefile36
-rw-r--r--external/apache2/llvm/lib/libclangParse/Makefile29
-rw-r--r--external/apache2/llvm/lib/libclangRewrite/Makefile19
-rw-r--r--external/apache2/llvm/lib/libclangSema/Makefile69
-rw-r--r--external/apache2/llvm/lib/libclangSerialization/Makefile28
-rw-r--r--external/apache2/llvm/lib/libclangStaticAnalyzerCheckers/Makefile123
-rw-r--r--external/apache2/llvm/lib/libclangStaticAnalyzerCore/Makefile58
-rw-r--r--external/apache2/llvm/lib/libclangStaticAnalyzerFrontend/Makefile23
-rw-r--r--external/apache2/llvm/lib/libclangTooling/Makefile28
-rw-r--r--external/apache2/llvm/lib/libclangToolingASTDiff/Makefile15
-rw-r--r--external/apache2/llvm/lib/libclangToolingCore/Makefile17
-rw-r--r--external/apache2/llvm/lib/libclangToolingDependencyScanning/Makefile18
-rw-r--r--external/apache2/llvm/lib/libclangToolingInclusions/Makefile16
-rw-r--r--external/apache2/llvm/lib/libclangToolingRefactoring/Makefile31
-rw-r--r--external/apache2/llvm/lib/libclangToolingSyntax/Makefile18
-rw-r--r--external/apache2/llvm/lib/libclangToolingTransformer/Makefile20
-rw-r--r--external/apache2/llvm/librt/Makefile135
-rw-r--r--external/apache2/llvm/librt/Makefile.inc7
-rw-r--r--external/apache2/llvm/librt/libLLVMAArch64AsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAArch64CodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAArch64Disassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAArch64MCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAArch64TargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAArch64Utils/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAMDGPUAsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAMDGPUCodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAMDGPUMCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAMDGPUTargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAMDGPUUtils/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMARMAsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMARMCodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMARMDisassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMARMMCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMARMTargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMARMUtils/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAnalysis/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMAsmPrinter/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMBinaryFormat/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMBitReader/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMCodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMDebugInfoCodeView/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMExecutionEngine/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMGlobalISel/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMIR/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMIRReader/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMInstCombine/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMInstrumentation/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMLinker/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMC/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMCDisassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMCJIT/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMCParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMipsAsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMipsCodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMipsDisassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMipsMCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMMipsTargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMObject/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMPasses/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMPowerPCAsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMPowerPCCodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMPowerPCDisassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMPowerPCMCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMPowerPCTargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMProfileData/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMRuntimeDyld/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMScalarOpts/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSelectionDAG/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSparcAsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSparcCodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSparcDisassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSparcMCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSparcTargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMSupport/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMTarget/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMTransformsAggressiveInstCombine/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMTransformsCoroutines/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMTransformsUtils/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMVectorize/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMX86AsmParser/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMX86CodeGen/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMX86Disassembler/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMX86MCTargetDesc/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMX86TargetInfo/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMX86Utils/Makefile3
-rw-r--r--external/apache2/llvm/librt/libLLVMipo/Makefile3
-rw-r--r--external/apache2/llvm/link.mk40
-rw-r--r--external/apache2/llvm/tablegen.mk32
-rw-r--r--external/bsd/Makefile5
-rw-r--r--external/gpl2/diffutils/bin/diff/Makefile4
-rw-r--r--external/gpl2/diffutils/bin/diff3/Makefile4
-rw-r--r--external/ibm-public/postfix/Makefile.inc5
-rw-r--r--external/mit/lua/lib/liblua/Makefile4
-rw-r--r--external/mit/xorg/bin/xedit/lisp/Makefile4
-rw-r--r--external/mit/xorg/lib/dri/Makefile7
-rw-r--r--external/mit/xorg/lib/gallium/Makefile22
-rw-r--r--external/mpl/bind/lib/libdns/Makefile4
-rw-r--r--external/public-domain/sqlite/lib/Makefile4
-rw-r--r--lib/Makefile6
-rw-r--r--lib/libm/Makefile3
-rw-r--r--lib/libpthread/Makefile6
-rw-r--r--sys/arch/arm/conf/Makefile.arm23
-rw-r--r--sys/modules/lua/Makefile4
-rw-r--r--sys/modules/radeondrm/Makefile4
-rw-r--r--tools/Makefile8
-rw-r--r--tools/llvm-clang-tblgen/Makefile4
-rw-r--r--tools/llvm-clang/Makefile4
-rw-r--r--tools/llvm-lib/libLLVMBitstreamReader/Makefile3
-rw-r--r--tools/llvm-lib/libLLVMDebugInfoDWARF/Makefile3
-rw-r--r--tools/llvm-lib/libLLVMRemarks/Makefile3
-rw-r--r--tools/llvm-lib/libLLVMTextAPI/Makefile3
-rw-r--r--tools/llvm-lib/libLLVMTransformsCFGuard/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerADT/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerARMCodeGen/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerCodeGen/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerCore/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerFragment/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerLD/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerMC/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerObject/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerSupport/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerTarget/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerX86CodeGen/Makefile3
-rw-r--r--tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile3
-rw-r--r--tools/llvm-lib/liblldConfig/Makefile3
-rw-r--r--tools/llvm-lib/liblldCore/Makefile3
-rw-r--r--tools/llvm-lib/liblldDriver/Makefile3
-rw-r--r--tools/llvm-lib/liblldPasses/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriter/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELF/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELFMips/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELFPPC/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELFX86/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterMachO/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterNative/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterPECOFF/Makefile3
-rw-r--r--tools/llvm-lib/liblldReaderWriterYAML/Makefile3
-rw-r--r--tools/llvm-lld/Makefile7
-rw-r--r--tools/llvm-mcld/Makefile7
-rw-r--r--tools/llvm-tblgen/Makefile4
-rw-r--r--tools/llvm/Makefile.inc4
-rw-r--r--usr.bin/xlint/lint1/Makefile4
-rw-r--r--usr.sbin/timed/timed/Makefile4
-rw-r--r--usr.sbin/zdump/Makefile3
369 files changed, 28586 insertions, 369 deletions
diff --git a/crypto/external/bsd/openssh/lib/Makefile b/crypto/external/bsd/openssh/lib/Makefile
index 9c7e4e7204b..896df3a1937 100644
--- a/crypto/external/bsd/openssh/lib/Makefile
+++ b/crypto/external/bsd/openssh/lib/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.29 2019/10/13 07:28:05 mrg Exp $
+# $NetBSD: Makefile,v 1.30 2019/11/11 22:44:56 joerg Exp $
.include <bsd.own.mk>
.include "../Makefile.inc"
+CWARNFLAGS.clang+= -Wno-error=sizeof-array-div
LIB= ssh
SRCS=\
addrmatch.c \
diff --git a/crypto/external/bsd/openssl/lib/libcrypto/Makefile b/crypto/external/bsd/openssl/lib/libcrypto/Makefile
index ecd3ffd0136..993e1d3692e 100644
--- a/crypto/external/bsd/openssl/lib/libcrypto/Makefile
+++ b/crypto/external/bsd/openssl/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2018/10/06 15:31:09 christos Exp $
+# $NetBSD: Makefile,v 1.20 2019/11/11 22:44:56 joerg Exp $
# RCSid:
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
@@ -27,7 +27,7 @@ USE_FIPS= no
# XXX: There's a bit of work to do before we can enable warnings.
WARNS=0
-CWARNFLAGS.clang+= -Wno-empty-body -Wno-unused-value -Wno-parentheses
+CWARNFLAGS.clang+= -Wno-empty-body -Wno-unused-value -Wno-parentheses -Wno-implicit-int-float-conversion
# XXX: This warning seems to trigger incorrectly
CWARNFLAGS.clang+= -Wno-atomic-alignment
diff --git a/distrib/sets/lists/base/mi b/distrib/sets/lists/base/mi
index 0ed51349854..373286fbc50 100644
--- a/distrib/sets/lists/base/mi
+++ b/distrib/sets/lists/base/mi
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1219 2019/10/15 18:33:57 christos Exp $
+# $NetBSD: mi,v 1.1220 2019/11/11 22:44:56 joerg Exp $
#
# Note: Don't delete entries from here - mark them as "obsolete" instead,
# unless otherwise stated below.
@@ -1088,7 +1088,8 @@
./usr/include/clang-3.8 base-obsolete obsolete
./usr/include/clang-4.0 base-obsolete obsolete
./usr/include/clang-5.0 base-obsolete obsolete
-./usr/include/clang-7.0 base-c-usr
+./usr/include/clang-7.0 base-obsolete obsolete
+./usr/include/clang-9.0 base-c-usr
./usr/include/compat base-obsolete obsolete
./usr/include/crypto base-c-usr
./usr/include/dev base-c-usr
diff --git a/distrib/sets/lists/comp/ad.aarch64 b/distrib/sets/lists/comp/ad.aarch64
index 16a744d1f6d..4d7af8b2071 100644
--- a/distrib/sets/lists/comp/ad.aarch64
+++ b/distrib/sets/lists/comp/ad.aarch64
@@ -1,4 +1,4 @@
-# $NetBSD: ad.aarch64,v 1.34 2019/10/28 18:08:44 joerg Exp $
+# $NetBSD: ad.aarch64,v 1.35 2019/11/11 22:44:56 joerg Exp $
./usr/include/aarch64 comp-c-include
./usr/include/aarch64/ansi.h comp-c-include
./usr/include/aarch64/aout_machdep.h comp-c-include
@@ -117,9 +117,12 @@
./usr/include/arm/wchar_limits.h comp-c-include
./usr/include/clang-5.0/arm_acle.h comp-obsolete obsolete
./usr/include/clang-5.0/arm_neon.h comp-obsolete obsolete
-./usr/include/clang-7.0/arm64intr.h comp-c-include llvm
-./usr/include/clang-7.0/arm_acle.h comp-c-include llvm
-./usr/include/clang-7.0/arm_neon.h comp-c-include llvm
+./usr/include/clang-7.0/arm64intr.h comp-obsolete obsolete
+./usr/include/clang-7.0/arm_acle.h comp-obsolete obsolete
+./usr/include/clang-7.0/arm_neon.h comp-obsolete obsolete
+./usr/include/clang-9.0/arm64intr.h comp-c-include llvm
+./usr/include/clang-9.0/arm_acle.h comp-c-include llvm
+./usr/include/clang-9.0/arm_neon.h comp-c-include llvm
./usr/include/evbarm comp-c-include
./usr/include/evbarm/disklabel.h comp-c-include
./usr/include/evbarm/intr.h comp-c-include
diff --git a/distrib/sets/lists/comp/ad.arm b/distrib/sets/lists/comp/ad.arm
index a39fe23ef73..401cd2f0d4f 100644
--- a/distrib/sets/lists/comp/ad.arm
+++ b/distrib/sets/lists/comp/ad.arm
@@ -1,4 +1,4 @@
-# $NetBSD: ad.arm,v 1.98 2019/10/03 00:59:50 mrg Exp $
+# $NetBSD: ad.arm,v 1.99 2019/11/11 22:44:56 joerg Exp $
./usr/bin/elf2aout comp-sysutil-bin
./usr/include/acorn26 comp-obsolete obsolete
./usr/include/acorn26/ansi.h comp-obsolete obsolete
@@ -304,8 +304,10 @@
./usr/include/clang-4.0/arm_neon.h comp-obsolete obsolete
./usr/include/clang-5.0/arm_acle.h comp-obsolete obsolete
./usr/include/clang-5.0/arm_neon.h comp-obsolete obsolete
-./usr/include/clang-7.0/arm_acle.h comp-c-include llvm
-./usr/include/clang-7.0/arm_neon.h comp-c-include llvm
+./usr/include/clang-7.0/arm_acle.h comp-obsolete obsolete
+./usr/include/clang-7.0/arm_neon.h comp-obsolete obsolete
+./usr/include/clang-9.0/arm_acle.h comp-c-include llvm
+./usr/include/clang-9.0/arm_neon.h comp-c-include llvm
./usr/include/epoc32 comp-c-include
./usr/include/epoc32/ansi.h comp-obsolete obsolete
./usr/include/epoc32/aout_machdep.h comp-obsolete obsolete
diff --git a/distrib/sets/lists/comp/ad.mips b/distrib/sets/lists/comp/ad.mips
index b5c3f63ab0c..31fffc98c89 100644
--- a/distrib/sets/lists/comp/ad.mips
+++ b/distrib/sets/lists/comp/ad.mips
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips,v 1.83 2019/10/03 00:59:50 mrg Exp $
+# $NetBSD: ad.mips,v 1.84 2019/11/11 22:44:56 joerg Exp $
-./usr/lib/64/libgomp.a
-./usr/lib/64/libgomp.so
-./usr/lib/64/libgomp.so.1
@@ -11,7 +11,8 @@
./usr/bin/elf2ecoff comp-sysutil-bin
./usr/include/clang-4.0/msa.h comp-obsolete obsolete
./usr/include/clang-5.0/msa.h comp-obsolete obsolete
-./usr/include/clang-7.0/msa.h comp-c-include llvm
+./usr/include/clang-7.0/msa.h comp-obsolete obsolete
+./usr/include/clang-9.0/msa.h comp-c-include llvm
./usr/include/g++/bits/mips32 comp-c-include compat,arch64
./usr/include/g++/bits/mips32/c++config.h comp-c-include compat,arch64,gcc
./usr/include/g++/bits/mips64 comp-c-include compat,arch64
diff --git a/distrib/sets/lists/comp/ad.powerpc b/distrib/sets/lists/comp/ad.powerpc
index 99fd8a46e9b..44777c139a5 100644
--- a/distrib/sets/lists/comp/ad.powerpc
+++ b/distrib/sets/lists/comp/ad.powerpc
@@ -1,4 +1,4 @@
-# $NetBSD: ad.powerpc,v 1.96 2019/11/02 21:34:58 christos Exp $
+# $NetBSD: ad.powerpc,v 1.97 2019/11/11 22:44:56 joerg Exp $
./usr/bin/elf2aout comp-sysutil-bin
./usr/bin/psim comp-debug-bin gdb
./usr/include/altivec.h comp-obsolete obsolete
@@ -14,9 +14,12 @@
./usr/include/clang-5.0/altivec.h comp-obsolete obsolete
./usr/include/clang-5.0/htmintrin.h comp-obsolete obsolete
./usr/include/clang-5.0/htmxlintrin.h comp-obsolete obsolete
-./usr/include/clang-7.0/altivec.h comp-c-include llvm
-./usr/include/clang-7.0/htmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/htmxlintrin.h comp-c-include llvm
+./usr/include/clang-7.0/altivec.h comp-obsolete obsolete
+./usr/include/clang-7.0/htmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/htmxlintrin.h comp-obsolete obsolete
+./usr/include/clang-9.0/altivec.h comp-c-include llvm
+./usr/include/clang-9.0/htmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/htmxlintrin.h comp-c-include llvm
./usr/include/g++/bits/powerpc comp-c-include compat
./usr/include/g++/bits/powerpc/c++config.h comp-c-include compat,gcc
./usr/include/g++/bits/powerpc64 comp-c-include compat
diff --git a/distrib/sets/lists/comp/md.amd64 b/distrib/sets/lists/comp/md.amd64
index 085bded7d32..31201cd3d19 100644
--- a/distrib/sets/lists/comp/md.amd64
+++ b/distrib/sets/lists/comp/md.amd64
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.274 2019/10/03 00:59:50 mrg Exp $
+# $NetBSD: md.amd64,v 1.275 2019/11/11 22:44:56 joerg Exp $
./usr/include/amd64 comp-c-include
./usr/include/amd64/ansi.h comp-c-include
./usr/include/amd64/aout_machdep.h comp-c-include
@@ -332,85 +332,169 @@
./usr/include/clang-5.0/xsaveoptintrin.h comp-obsolete obsolete
./usr/include/clang-5.0/xsavesintrin.h comp-obsolete obsolete
./usr/include/clang-5.0/xtestintrin.h comp-obsolete obsolete
-./usr/include/clang-7.0/__wmmintrin_aes.h comp-c-include llvm
-./usr/include/clang-7.0/__wmmintrin_pclmul.h comp-c-include llvm
-./usr/include/clang-7.0/adxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/ammintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512bitalgintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512bwintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512cdintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512dqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512erintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512fintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512ifmaintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512ifmavlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512pfintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vbmi2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vbmiintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vbmivlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlbitalgintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlbwintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlcdintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vldqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlvbmi2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlvnniintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vnniintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vpopcntdqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vpopcntdqvlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/bmi2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/bmiintrin.h comp-c-include llvm
-./usr/include/clang-7.0/cetintrin.h comp-c-include llvm
-./usr/include/clang-7.0/cldemoteintrin.h comp-c-include llvm
-./usr/include/clang-7.0/clflushoptintrin.h comp-c-include llvm
-./usr/include/clang-7.0/clwbintrin.h comp-c-include llvm
-./usr/include/clang-7.0/clzerointrin.h comp-c-include llvm
-./usr/include/clang-7.0/cpuid.h comp-c-include llvm
-./usr/include/clang-7.0/emmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/f16cintrin.h comp-c-include llvm
-./usr/include/clang-7.0/fma4intrin.h comp-c-include llvm
-./usr/include/clang-7.0/fmaintrin.h comp-c-include llvm
-./usr/include/clang-7.0/fxsrintrin.h comp-c-include llvm
-./usr/include/clang-7.0/gfniintrin.h comp-c-include llvm
-./usr/include/clang-7.0/ia32intrin.h comp-c-include llvm
-./usr/include/clang-7.0/immintrin.h comp-c-include llvm
-./usr/include/clang-7.0/invpcidintrin.h comp-c-include llvm
-./usr/include/clang-7.0/lwpintrin.h comp-c-include llvm
-./usr/include/clang-7.0/lzcntintrin.h comp-c-include llvm
-./usr/include/clang-7.0/mm3dnow.h comp-c-include llvm
-./usr/include/clang-7.0/mm_malloc.h comp-c-include llvm
-./usr/include/clang-7.0/mmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/movdirintrin.h comp-c-include llvm
-./usr/include/clang-7.0/mwaitxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/nmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/pconfigintrin.h comp-c-include llvm
-./usr/include/clang-7.0/pkuintrin.h comp-c-include llvm
-./usr/include/clang-7.0/pmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/popcntintrin.h comp-c-include llvm
-./usr/include/clang-7.0/prfchwintrin.h comp-c-include llvm
-./usr/include/clang-7.0/ptwriteintrin.h comp-c-include llvm
-./usr/include/clang-7.0/rdseedintrin.h comp-c-include llvm
-./usr/include/clang-7.0/rtmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/sgxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/shaintrin.h comp-c-include llvm
-./usr/include/clang-7.0/smmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/tbmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/tmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/vaesintrin.h comp-c-include llvm
-./usr/include/clang-7.0/vpclmulqdqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/waitpkgintrin.h comp-c-include llvm
-./usr/include/clang-7.0/wbnoinvdintrin.h comp-c-include llvm
-./usr/include/clang-7.0/wmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/x86intrin.h comp-c-include llvm
-./usr/include/clang-7.0/xmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xopintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsavecintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsaveintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsaveoptintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsavesintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xtestintrin.h comp-c-include llvm
+./usr/include/clang-7.0/__wmmintrin_aes.h comp-obsolete obsolete
+./usr/include/clang-7.0/__wmmintrin_pclmul.h comp-obsolete obsolete
+./usr/include/clang-7.0/adxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/ammintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512bitalgintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512bwintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512cdintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512dqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512erintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512fintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512ifmaintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512ifmavlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512pfintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vbmi2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vbmiintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vbmivlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlbitalgintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlbwintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlcdintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vldqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlvbmi2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlvnniintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vnniintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vpopcntdqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vpopcntdqvlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/bmi2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/bmiintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/cetintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/cldemoteintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/clflushoptintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/clwbintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/clzerointrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/cpuid.h comp-obsolete obsolete
+./usr/include/clang-7.0/emmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/f16cintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/fma4intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/fmaintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/fxsrintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/gfniintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/ia32intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/immintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/invpcidintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/lwpintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/lzcntintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/mm3dnow.h comp-obsolete obsolete
+./usr/include/clang-7.0/mm_malloc.h comp-obsolete obsolete
+./usr/include/clang-7.0/mmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/movdirintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/mwaitxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/nmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/pconfigintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/pkuintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/pmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/popcntintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/prfchwintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/ptwriteintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/rdseedintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/rtmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/sgxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/shaintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/smmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/tbmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/tmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/vaesintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/vpclmulqdqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/waitpkgintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/wbnoinvdintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/wmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/x86intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xopintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsavecintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsaveintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsaveoptintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsavesintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xtestintrin.h comp-obsolete obsolete
+./usr/include/clang-9.0/adxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/ammintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512bf16intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512bitalgintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512bwintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512cdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512dqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512erintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512fintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512ifmaintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512ifmavlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512pfintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vbmi2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vbmiintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vbmivlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlbf16intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlbitalgintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlbwintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlcdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vldqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlvbmi2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlvnniintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlvp2intersectintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vnniintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vp2intersectintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vpopcntdqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vpopcntdqvlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/bmi2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/bmiintrin.h comp-c-include llvm
+./usr/include/clang-9.0/cetintrin.h comp-c-include llvm
+./usr/include/clang-9.0/cldemoteintrin.h comp-c-include llvm
+./usr/include/clang-9.0/clflushoptintrin.h comp-c-include llvm
+./usr/include/clang-9.0/clwbintrin.h comp-c-include llvm
+./usr/include/clang-9.0/clzerointrin.h comp-c-include llvm
+./usr/include/clang-9.0/cpuid.h comp-c-include llvm
+./usr/include/clang-9.0/emmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/enqcmdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/f16cintrin.h comp-c-include llvm
+./usr/include/clang-9.0/fma4intrin.h comp-c-include llvm
+./usr/include/clang-9.0/fmaintrin.h comp-c-include llvm
+./usr/include/clang-9.0/fxsrintrin.h comp-c-include llvm
+./usr/include/clang-9.0/gfniintrin.h comp-c-include llvm
+./usr/include/clang-9.0/ia32intrin.h comp-c-include llvm
+./usr/include/clang-9.0/immintrin.h comp-c-include llvm
+./usr/include/clang-9.0/invpcidintrin.h comp-c-include llvm
+./usr/include/clang-9.0/lwpintrin.h comp-c-include llvm
+./usr/include/clang-9.0/lzcntintrin.h comp-c-include llvm
+./usr/include/clang-9.0/mm3dnow.h comp-c-include llvm
+./usr/include/clang-9.0/mmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/mm_malloc.h comp-c-include llvm
+./usr/include/clang-9.0/movdirintrin.h comp-c-include llvm
+./usr/include/clang-9.0/mwaitxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/nmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/pconfigintrin.h comp-c-include llvm
+./usr/include/clang-9.0/pkuintrin.h comp-c-include llvm
+./usr/include/clang-9.0/pmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/popcntintrin.h comp-c-include llvm
+./usr/include/clang-9.0/prfchwintrin.h comp-c-include llvm
+./usr/include/clang-9.0/ptwriteintrin.h comp-c-include llvm
+./usr/include/clang-9.0/rdseedintrin.h comp-c-include llvm
+./usr/include/clang-9.0/rtmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/sgxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/shaintrin.h comp-c-include llvm
+./usr/include/clang-9.0/smmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/tbmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/tmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/vaesintrin.h comp-c-include llvm
+./usr/include/clang-9.0/vpclmulqdqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/waitpkgintrin.h comp-c-include llvm
+./usr/include/clang-9.0/wbnoinvdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/__wmmintrin_aes.h comp-c-include llvm
+./usr/include/clang-9.0/wmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/__wmmintrin_pclmul.h comp-c-include llvm
+./usr/include/clang-9.0/x86intrin.h comp-c-include llvm
+./usr/include/clang-9.0/xmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xopintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsavecintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsaveintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsaveoptintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsavesintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xtestintrin.h comp-c-include llvm
./usr/include/dev/nvmm comp-c-include
./usr/include/dev/nvmm/nvmm.h comp-c-include
./usr/include/dev/nvmm/nvmm_ioctl.h comp-c-include
diff --git a/distrib/sets/lists/comp/md.i386 b/distrib/sets/lists/comp/md.i386
index b3427ba4294..46238164061 100644
--- a/distrib/sets/lists/comp/md.i386
+++ b/distrib/sets/lists/comp/md.i386
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.192 2019/10/03 00:59:50 mrg Exp $
+# $NetBSD: md.i386,v 1.193 2019/11/11 22:44:56 joerg Exp $
./usr/include/clang-3.4/__wmmintrin_aes.h comp-obsolete obsolete
./usr/include/clang-3.4/__wmmintrin_pclmul.h comp-obsolete obsolete
./usr/include/clang-3.4/ammintrin.h comp-obsolete obsolete
@@ -261,85 +261,169 @@
./usr/include/clang-5.0/xsaveoptintrin.h comp-obsolete obsolete
./usr/include/clang-5.0/xsavesintrin.h comp-obsolete obsolete
./usr/include/clang-5.0/xtestintrin.h comp-obsolete obsolete
-./usr/include/clang-7.0/adxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/ammintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512bitalgintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512bwintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512cdintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512dqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512erintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512fintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512ifmaintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512ifmavlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512pfintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vbmi2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vbmiintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vbmivlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlbitalgintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlbwintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlcdintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vldqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlvbmi2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vlvnniintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vnniintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vpopcntdqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avx512vpopcntdqvlintrin.h comp-c-include llvm
-./usr/include/clang-7.0/avxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/bmi2intrin.h comp-c-include llvm
-./usr/include/clang-7.0/bmiintrin.h comp-c-include llvm
-./usr/include/clang-7.0/cetintrin.h comp-c-include llvm
-./usr/include/clang-7.0/cldemoteintrin.h comp-c-include llvm
-./usr/include/clang-7.0/clflushoptintrin.h comp-c-include llvm
-./usr/include/clang-7.0/clwbintrin.h comp-c-include llvm
-./usr/include/clang-7.0/clzerointrin.h comp-c-include llvm
-./usr/include/clang-7.0/cpuid.h comp-c-include llvm
-./usr/include/clang-7.0/emmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/f16cintrin.h comp-c-include llvm
-./usr/include/clang-7.0/fma4intrin.h comp-c-include llvm
-./usr/include/clang-7.0/fmaintrin.h comp-c-include llvm
-./usr/include/clang-7.0/fxsrintrin.h comp-c-include llvm
-./usr/include/clang-7.0/gfniintrin.h comp-c-include llvm
-./usr/include/clang-7.0/ia32intrin.h comp-c-include llvm
-./usr/include/clang-7.0/immintrin.h comp-c-include llvm
-./usr/include/clang-7.0/invpcidintrin.h comp-c-include llvm
-./usr/include/clang-7.0/lwpintrin.h comp-c-include llvm
-./usr/include/clang-7.0/lzcntintrin.h comp-c-include llvm
-./usr/include/clang-7.0/mm3dnow.h comp-c-include llvm
-./usr/include/clang-7.0/mmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/mm_malloc.h comp-c-include llvm
-./usr/include/clang-7.0/movdirintrin.h comp-c-include llvm
-./usr/include/clang-7.0/mwaitxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/nmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/pconfigintrin.h comp-c-include llvm
-./usr/include/clang-7.0/pkuintrin.h comp-c-include llvm
-./usr/include/clang-7.0/pmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/popcntintrin.h comp-c-include llvm
-./usr/include/clang-7.0/prfchwintrin.h comp-c-include llvm
-./usr/include/clang-7.0/ptwriteintrin.h comp-c-include llvm
-./usr/include/clang-7.0/rdseedintrin.h comp-c-include llvm
-./usr/include/clang-7.0/rtmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/sgxintrin.h comp-c-include llvm
-./usr/include/clang-7.0/shaintrin.h comp-c-include llvm
-./usr/include/clang-7.0/smmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/tbmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/tmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/vaesintrin.h comp-c-include llvm
-./usr/include/clang-7.0/vpclmulqdqintrin.h comp-c-include llvm
-./usr/include/clang-7.0/waitpkgintrin.h comp-c-include llvm
-./usr/include/clang-7.0/wbnoinvdintrin.h comp-c-include llvm
-./usr/include/clang-7.0/__wmmintrin_aes.h comp-c-include llvm
-./usr/include/clang-7.0/wmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/__wmmintrin_pclmul.h comp-c-include llvm
-./usr/include/clang-7.0/x86intrin.h comp-c-include llvm
-./usr/include/clang-7.0/xmmintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xopintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsavecintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsaveintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsaveoptintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xsavesintrin.h comp-c-include llvm
-./usr/include/clang-7.0/xtestintrin.h comp-c-include llvm
+./usr/include/clang-7.0/adxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/ammintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512bitalgintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512bwintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512cdintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512dqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512erintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512fintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512ifmaintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512ifmavlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512pfintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vbmi2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vbmiintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vbmivlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlbitalgintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlbwintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlcdintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vldqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlvbmi2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vlvnniintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vnniintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vpopcntdqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avx512vpopcntdqvlintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/avxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/bmi2intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/bmiintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/cetintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/cldemoteintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/clflushoptintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/clwbintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/clzerointrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/cpuid.h comp-obsolete obsolete
+./usr/include/clang-7.0/emmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/f16cintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/fma4intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/fmaintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/fxsrintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/gfniintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/ia32intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/immintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/invpcidintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/lwpintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/lzcntintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/mm3dnow.h comp-obsolete obsolete
+./usr/include/clang-7.0/mmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/mm_malloc.h comp-obsolete obsolete
+./usr/include/clang-7.0/movdirintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/mwaitxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/nmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/pconfigintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/pkuintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/pmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/popcntintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/prfchwintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/ptwriteintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/rdseedintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/rtmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/sgxintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/shaintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/smmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/tbmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/tmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/vaesintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/vpclmulqdqintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/waitpkgintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/wbnoinvdintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/__wmmintrin_aes.h comp-obsolete obsolete
+./usr/include/clang-7.0/wmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/__wmmintrin_pclmul.h comp-obsolete obsolete
+./usr/include/clang-7.0/x86intrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xmmintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xopintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsavecintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsaveintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsaveoptintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xsavesintrin.h comp-obsolete obsolete
+./usr/include/clang-7.0/xtestintrin.h comp-obsolete obsolete
+./usr/include/clang-9.0/adxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/ammintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512bf16intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512bitalgintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512bwintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512cdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512dqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512erintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512fintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512ifmaintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512ifmavlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512pfintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vbmi2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vbmiintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vbmivlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlbf16intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlbitalgintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlbwintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlcdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vldqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlvbmi2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlvnniintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vlvp2intersectintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vnniintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vp2intersectintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vpopcntdqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avx512vpopcntdqvlintrin.h comp-c-include llvm
+./usr/include/clang-9.0/avxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/bmi2intrin.h comp-c-include llvm
+./usr/include/clang-9.0/bmiintrin.h comp-c-include llvm
+./usr/include/clang-9.0/cetintrin.h comp-c-include llvm
+./usr/include/clang-9.0/cldemoteintrin.h comp-c-include llvm
+./usr/include/clang-9.0/clflushoptintrin.h comp-c-include llvm
+./usr/include/clang-9.0/clwbintrin.h comp-c-include llvm
+./usr/include/clang-9.0/clzerointrin.h comp-c-include llvm
+./usr/include/clang-9.0/cpuid.h comp-c-include llvm
+./usr/include/clang-9.0/emmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/enqcmdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/f16cintrin.h comp-c-include llvm
+./usr/include/clang-9.0/fma4intrin.h comp-c-include llvm
+./usr/include/clang-9.0/fmaintrin.h comp-c-include llvm
+./usr/include/clang-9.0/fxsrintrin.h comp-c-include llvm
+./usr/include/clang-9.0/gfniintrin.h comp-c-include llvm
+./usr/include/clang-9.0/ia32intrin.h comp-c-include llvm
+./usr/include/clang-9.0/immintrin.h comp-c-include llvm
+./usr/include/clang-9.0/invpcidintrin.h comp-c-include llvm
+./usr/include/clang-9.0/lwpintrin.h comp-c-include llvm
+./usr/include/clang-9.0/lzcntintrin.h comp-c-include llvm
+./usr/include/clang-9.0/mm3dnow.h comp-c-include llvm
+./usr/include/clang-9.0/mmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/mm_malloc.h comp-c-include llvm
+./usr/include/clang-9.0/movdirintrin.h comp-c-include llvm
+./usr/include/clang-9.0/mwaitxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/nmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/pconfigintrin.h comp-c-include llvm
+./usr/include/clang-9.0/pkuintrin.h comp-c-include llvm
+./usr/include/clang-9.0/pmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/popcntintrin.h comp-c-include llvm
+./usr/include/clang-9.0/prfchwintrin.h comp-c-include llvm
+./usr/include/clang-9.0/ptwriteintrin.h comp-c-include llvm
+./usr/include/clang-9.0/rdseedintrin.h comp-c-include llvm
+./usr/include/clang-9.0/rtmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/sgxintrin.h comp-c-include llvm
+./usr/include/clang-9.0/shaintrin.h comp-c-include llvm
+./usr/include/clang-9.0/smmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/tbmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/tmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/vaesintrin.h comp-c-include llvm
+./usr/include/clang-9.0/vpclmulqdqintrin.h comp-c-include llvm
+./usr/include/clang-9.0/waitpkgintrin.h comp-c-include llvm
+./usr/include/clang-9.0/wbnoinvdintrin.h comp-c-include llvm
+./usr/include/clang-9.0/__wmmintrin_aes.h comp-c-include llvm
+./usr/include/clang-9.0/wmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/__wmmintrin_pclmul.h comp-c-include llvm
+./usr/include/clang-9.0/x86intrin.h comp-c-include llvm
+./usr/include/clang-9.0/xmmintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xopintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsavecintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsaveintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsaveoptintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xsavesintrin.h comp-c-include llvm
+./usr/include/clang-9.0/xtestintrin.h comp-c-include llvm
./usr/include/emmintrin.h comp-obsolete obsolete
./usr/include/gcc-4.1/emmintrin.h comp-obsolete obsolete
./usr/include/gcc-4.1/mm_malloc.h comp-obsolete obsolete
diff --git a/distrib/sets/lists/comp/mi b/distrib/sets/lists/comp/mi
index ccd5afa8454..d8331ba6a8a 100644
--- a/distrib/sets/lists/comp/mi
+++ b/distrib/sets/lists/comp/mi
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.2291 2019/11/10 18:47:13 christos Exp $
+# $NetBSD: mi,v 1.2292 2019/11/11 22:44:56 joerg Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
./etc/mtree/set.comp comp-sys-root
@@ -47,11 +47,11 @@
./usr/bin/gettext comp-c-bin
./usr/bin/gettextize comp-obsolete obsolete
./usr/bin/gprof comp-debug-bin binutils
-./usr/bin/ld.mcld comp-c-bin mclinker
+./usr/bin/ld.mcld comp-obsolete obsolete
./usr/bin/lex comp-c-bin
./usr/bin/lint comp-c-bin
-./usr/bin/lld comp-c-bin lld
-./usr/bin/lldb comp-c-bin lldb
+./usr/bin/lld comp-obsolete obsolete
+./usr/bin/lldb comp-obsolete obsolete
./usr/bin/llvm-tblgen comp-c-bin llvm
./usr/bin/lorder comp-util-bin
./usr/bin/luac comp-util-bin
@@ -364,7 +364,8 @@
./usr/include/clang-4.0/stdatomic.h comp-obsolete obsolete
./usr/include/clang-4.0/stdnoreturn.h comp-obsolete obsolete
./usr/include/clang-5.0/stdatomic.h comp-obsolete obsolete
-./usr/include/clang-7.0/stdatomic.h comp-c-include llvm
+./usr/include/clang-7.0/stdatomic.h comp-obsolete obsolete
+./usr/include/clang-9.0/stdatomic.h comp-c-include llvm
./usr/include/complex.h comp-c-include
./usr/include/cpio.h comp-c-include
./usr/include/crypto/cryptodev.h comp-c-include
diff --git a/doc/3RDPARTY b/doc/3RDPARTY
index 246986a10b4..77ed1f842ce 100644
--- a/doc/3RDPARTY
+++ b/doc/3RDPARTY
@@ -1,4 +1,4 @@
-# $NetBSD: 3RDPARTY,v 1.1667 2019/11/06 23:44:39 sevan Exp $
+# $NetBSD: 3RDPARTY,v 1.1668 2019/11/11 22:44:57 joerg Exp $
#
# This file contains a list of the software that has been integrated into
# NetBSD where we are not the primary maintainer.
@@ -729,14 +729,14 @@ Notes:
.so'ing only. Copy the rest to man.
Package: llvm
-Version: 7.0.0svn (r337282)
+Version: 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
Current Vers.: 9.0.0
Maintainer: llvm-dev@lists.llvm.org
Home Page: https://llvm.org
Date: 2019-10-09
Responsible: joerg
-License: BSD/MIT
-Location: external/bsd/llvm/dist
+License: Apache2 with runtime exceptions
+Location: external/apache2/llvm/dist
Notes:
A CVS ACL is in place for the location to prevent unintentioned commits.
All changes should come via import from upstream SVN.
diff --git a/etc/mtree/NetBSD.dist.base b/etc/mtree/NetBSD.dist.base
index 109da30b0e5..3173f7e37b8 100644
--- a/etc/mtree/NetBSD.dist.base
+++ b/etc/mtree/NetBSD.dist.base
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.dist.base,v 1.203 2019/10/03 01:34:31 mrg Exp $
+# $NetBSD: NetBSD.dist.base,v 1.204 2019/11/11 22:44:57 joerg Exp $
# @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
# Do not customize this file as it may be overwritten on upgrades.
@@ -110,7 +110,7 @@
./usr/include/c++
./usr/include/c++/experimental
./usr/include/c++/ext
-./usr/include/clang-7.0
+./usr/include/clang-9.0
./usr/include/crypto
./usr/include/dev
./usr/include/dev/apm
diff --git a/external/apache2/Makefile b/external/apache2/Makefile
index 30d8d5633e6..3d512bd141b 100644
--- a/external/apache2/Makefile
+++ b/external/apache2/Makefile
@@ -1,13 +1,17 @@
-# $NetBSD: Makefile,v 1.2 2019/10/09 13:13:08 jhigh Exp $
+# $NetBSD: Makefile,v 1.3 2019/11/11 22:44:57 joerg Exp $
.include <bsd.own.mk>
-.if (${MKMDNS} != "no")
-SUBDIR+= mDNSResponder
-.endif
-
.if (defined(MKARGON2) && ${MKARGON2} != "no")
SUBDIR+= argon2
.endif
+.if (${MKLLVM} != "no" || ${MKLLVMRT} != "no")
+SUBDIR+= llvm
+.endif
+
+.if (${MKMDNS} != "no")
+SUBDIR+= mDNSResponder
+.endif
+
.include <bsd.subdir.mk>
diff --git a/external/apache2/llvm/Makefile b/external/apache2/llvm/Makefile
new file mode 100644
index 00000000000..3af5504227f
--- /dev/null
+++ b/external/apache2/llvm/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:57 joerg Exp $
+
+.include <bsd.init.mk>
+
+SUBDIR= include \
+
+.if ${MKLLVMRT} != "no"
+SUBDIR+= \
+ librt
+.endif
+
+.if ${MKLLVM} != "no"
+SUBDIR+= \
+ lib \
+ .WAIT \
+ bin
+.endif
+
+.include "Makefile.inc"
+
+.include <bsd.subdir.mk>
diff --git a/external/apache2/llvm/Makefile.inc b/external/apache2/llvm/Makefile.inc
new file mode 100644
index 00000000000..981efe9122a
--- /dev/null
+++ b/external/apache2/llvm/Makefile.inc
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile.inc,v 1.1 2019/11/11 22:44:57 joerg Exp $
+
+.if !defined(LLVM_TOPLEVEL_MK)
+LLVM_TOPLEVEL_MK=
+
+.include <bsd.own.mk>
+
+COMMON_REVISION= 01f3a59fb3e2542fce74c768718f594d0debd0da
+CLANG_REVISION= ${COMMON_REVISION}
+LLVM_REVISION= ${COMMON_REVISION}
+
+LLVM_VERSION= 9.0.0
+CLANG_VERSION= 9.0.0
+
+CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
+LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
+LLVM_TOPLEVEL:= ${.PARSEDIR}
+CONFIG_DIR:= ${.PARSEDIR}/autoconf
+
+CPPFLAGS+= -I. -I${CLANG_SRCDIR}/include -I${LLVM_SRCDIR}/include
+
+.if defined(HOSTLIB) || defined(HOSTPROG) || defined(_BSD_HOSTINIT_MK_)
+LLVM_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/include
+CLANG_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/tools/clang/include
+LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm-include && ${PRINTOBJDIR}
+LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR}
+HOST_CPPFLAGS+= ${CPPFLAGS}
+HOST_CXXFLAGS+= -O2 -fno-rtti -fno-exceptions
+HOST_CPPFLAGS+= -std=c++14
+LLVM_TARGETS= x86,powerpc,sparc,aarch64,arm,mips
+.else
+LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
+CLANG_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
+LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
+LLVM_TARGETS= x86,powerpc,sparc,aarch64,arm,mips,amdgpu
+
+CXXFLAGS+= -std=c++14
+CXXFLAGS+= -fno-rtti -fno-exceptions
+CXXFLAGS+= -ffunction-sections -fdata-sections
+LDFLAGS+= -Wl,--gc-sections
+DPADD+= ${LIBEXECINFO}
+LDADD+= -lexecinfo
+.endif
+CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG} \
+ -I${CLANG_INCLUDE_CONFIG}
+
+LLVM_PLATFORM=${MACHINE_GNU_ARCH}--netbsd
+
+LLVM_CONFIGURE_ARGS= \
+ --enable-targets=${LLVM_TARGETS} \
+ --with-c-include-dirs=/usr/include/clang-${CLANG_VERSION:R}:/usr/include \
+ --disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \
+ --with-clang-default-openmp-runtime=libomp \
+ --with-llvm-srcdir=${LLVM_SRCDIR} \
+ --with-clang-srcdir=${CLANG_SRCDIR} \
+ --host=${LLVM_PLATFORM} --disable-compiler-version-checks \
+ --disable-bindings llvm_cv_gnu_make_command=${MAKE}
+
+.for tool in circo dot dotty fdp neato twopi xdot
+LLVM_CONFIGURE_ARGS+= ac_cv_path_${tool:tu}="echo ${tool}"
+.endfor
+
+.endif
diff --git a/external/apache2/llvm/autoconf/autoconf/AutoRegen.sh b/external/apache2/llvm/autoconf/autoconf/AutoRegen.sh
new file mode 100755
index 00000000000..63024acf98d
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/AutoRegen.sh
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+die() {
+ echo "$@" 1>&2
+ exit 1
+}
+
+clean() {
+ echo $1 | sed -e 's/\\//g'
+}
+
+### NOTE: ############################################################
+### These variables specify the tool versions we want to use.
+### Periods should be escaped with backslash for use by grep.
+###
+### If you update these, please also update docs/GettingStarted.rst
+want_autoconf_version='2\.69'
+want_autoheader_version=$want_autoconf_version
+want_aclocal_version='1\.16'
+### END NOTE #########################################################
+
+outfile=configure
+configfile=configure.ac
+
+want_autoconf_version_clean=$(clean $want_autoconf_version)
+want_autoheader_version_clean=$(clean $want_autoheader_version)
+want_aclocal_version_clean=$(clean $want_aclocal_version)
+
+test -d autoconf && test -f autoconf/$configfile && cd autoconf
+test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
+autoconf --version | grep $want_autoconf_version > /dev/null
+test $? -eq 0 || die "Your autoconf was not detected as being $want_autoconf_version_clean"
+aclocal --version | grep '^aclocal.*'$want_aclocal_version > /dev/null
+test $? -eq 0 || die "Your aclocal was not detected as being $want_aclocal_version_clean"
+autoheader --version | grep '^autoheader.*'$want_autoheader_version > /dev/null
+test $? -eq 0 || die "Your autoheader was not detected as being $want_autoheader_version_clean"
+echo ""
+echo "### NOTE: ############################################################"
+echo "### If you get *any* warnings from autoconf below you MUST fix the"
+echo "### scripts in the m4 directory because there are future forward"
+echo "### compatibility or platform support issues at risk. Please do NOT"
+echo "### commit any configure script that was generated with warnings"
+echo "### present. You should get just three 'Regenerating..' lines."
+echo "######################################################################"
+echo ""
+echo "Regenerating aclocal.m4 with aclocal $want_aclocal_version_clean"
+cwd=`pwd`
+aclocal --force -I $cwd/m4 || die "aclocal failed"
+echo "Regenerating configure with autoconf $want_autoconf_version_clean"
+autoconf --force --warnings=all -o ../$outfile $configfile || die "autoconf failed"
+cd ..
+echo "Regenerating config.h.in with autoheader $want_autoheader_version_clean"
+autoheader --warnings=all -I autoconf -I autoconf/m4 autoconf/$configfile || die "autoheader failed"
+exit 0
diff --git a/external/apache2/llvm/autoconf/autoconf/ExportMap.map b/external/apache2/llvm/autoconf/autoconf/ExportMap.map
new file mode 100644
index 00000000000..17b185fed91
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/ExportMap.map
@@ -0,0 +1,7 @@
+{
+ global: main;
+ __progname;
+ environ;
+
+ local: *;
+};
diff --git a/external/apache2/llvm/autoconf/autoconf/LICENSE.TXT b/external/apache2/llvm/autoconf/autoconf/LICENSE.TXT
new file mode 100644
index 00000000000..72fdd39edcc
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/LICENSE.TXT
@@ -0,0 +1,24 @@
+------------------------------------------------------------------------------
+Autoconf Files
+------------------------------------------------------------------------------
+All autoconf files are licensed under the LLVM license with the following
+additions:
+
+llvm/autoconf/install-sh:
+ This script is licensed under the LLVM license, with the following
+ additional copyrights and restrictions:
+
+ Copyright 1991 by the Massachusetts Institute of Technology
+
+ Permission to use, copy, modify, distribute, and sell this software and its
+ documentation for any purpose is hereby granted without fee, provided that
+ the above copyright notice appear in all copies and that both that
+ copyright notice and this permission notice appear in supporting
+ documentation, and that the name of M.I.T. not be used in advertising or
+ publicity pertaining to distribution of the software without specific,
+ written prior permission. M.I.T. makes no representations about the
+ suitability of this software for any purpose. It is provided "as is"
+ without express or implied warranty.
+
+Please see the source files for additional copyrights.
+
diff --git a/external/apache2/llvm/autoconf/autoconf/README.TXT b/external/apache2/llvm/autoconf/autoconf/README.TXT
new file mode 100644
index 00000000000..2fc9d3a3c48
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/README.TXT
@@ -0,0 +1,14 @@
+Upgrading autoconf
+===============================================================================
+
+If you are in the mood to upgrade autoconf, you should:
+
+ 1. Consider not upgrading.
+ 2. No really, this is a hassle, you don't want to do it.
+ 3. Get the new version of autoconf and put it in <SRC>
+ 4. configure/build/install autoconf with --prefix=<PFX>
+ 5. Run autoupdate on all the m4 macros in llvm/autoconf/m4
+ 6. Run autoupdate on llvm/autoconf/configure.ac
+ 7. Regenerate configure script with AutoRegen.sh
+ 8. If there are any warnings from AutoRegen.sh, fix them and go to step 7.
+ 9. Test, test, test.
diff --git a/external/apache2/llvm/autoconf/autoconf/aclocal.m4 b/external/apache2/llvm/autoconf/autoconf/aclocal.m4
new file mode 100644
index 00000000000..3636c80c311
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/aclocal.m4
@@ -0,0 +1,265 @@
+# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
+
+# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
+# Check for the extension used for executables on build platform.
+# This is necessary for cross-compiling where the build platform
+# may differ from the host platform.
+AC_DEFUN([AC_BUILD_EXEEXT],
+[
+AC_MSG_CHECKING([for executable suffix on build platform])
+AC_CACHE_VAL(ac_cv_build_exeext,
+[if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
+ ac_cv_build_exeext=.exe
+else
+ ac_build_prefix=${build_alias}-
+
+ AC_CHECK_PROG(BUILD_CC, ${ac_build_prefix}gcc, ${ac_build_prefix}gcc)
+ if test -z "$BUILD_CC"; then
+ AC_CHECK_PROG(BUILD_CC, gcc, gcc)
+ if test -z "$BUILD_CC"; then
+ AC_CHECK_PROG(BUILD_CC, cc, cc, , , /usr/ucb/cc)
+ fi
+ fi
+ test -z "$BUILD_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
+ ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AS_MESSAGE_LOG_FD'
+ rm -f conftest*
+ echo 'int main () { return 0; }' > conftest.$ac_ext
+ ac_cv_build_exeext=
+ if AC_TRY_EVAL(ac_build_link); then
+ for file in conftest.*; do
+ case $file in
+ *.c | *.o | *.obj | *.dSYM) ;;
+ *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
+ esac
+ done
+ else
+ AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.])
+ fi
+ rm -f conftest*
+ test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
+fi])
+BUILD_EXEEXT=""
+test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
+AC_MSG_RESULT(${ac_cv_build_exeext})
+ac_build_exeext=$BUILD_EXEEXT
+AC_SUBST(BUILD_EXEEXT)])
+
+#
+# Check for GNU Make. This is originally from
+# http://www.gnu.org/software/ac-archive/htmldoc/check_gnu_make.html
+#
+AC_DEFUN([AC_CHECK_GNU_MAKE],
+[AC_CACHE_CHECK([for GNU make],[llvm_cv_gnu_make_command],
+dnl Search all the common names for GNU make
+[llvm_cv_gnu_make_command=''
+ for a in "$MAKE" make gmake gnumake ; do
+ if test -z "$a" ; then continue ; fi ;
+ if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
+ then
+ llvm_cv_gnu_make_command=$a ;
+ break;
+ fi
+ done])
+dnl If there was a GNU version, then set @ifGNUmake@ to the empty string,
+dnl '#' otherwise
+ if test "x$llvm_cv_gnu_make_command" != "x" ; then
+ ifGNUmake='' ;
+ else
+ ifGNUmake='#' ;
+ AC_MSG_RESULT("Not found");
+ fi
+ AC_SUBST(ifGNUmake)
+])
+
+AC_DEFUN([CXX_FLAG_CHECK],
+ [AC_SUBST($1, `$CXX -Werror patsubst($2, [^-Wno-], [-W]) -fsyntax-only -xc /dev/null 2>/dev/null && echo $2`)])
+
+# Combine AC_DEFINE and AC_SUBST
+AC_DEFUN([LLVM_DEFINE_SUBST], [
+AC_DEFINE([$1], [$2], [$3])
+AC_SUBST([$1], ['$2'])
+])
+
+#
+# This function determins if the HUGE_VAL macro is compilable with the
+# -pedantic switch or not. XCode < 2.4.1 doesn't get it right.
+#
+AC_DEFUN([AC_HUGE_VAL_CHECK],[
+ AC_CACHE_CHECK([for HUGE_VAL sanity], [ac_cv_huge_val_sanity],[
+ AC_LANG_PUSH([C++])
+ ac_save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
+ [[double x = HUGE_VAL; return x != x;]])],
+ [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no],
+ [ac_cv_huge_val_sanity=yes])
+ CXXFLAGS=$ac_save_CXXFLAGS
+ AC_LANG_POP([C++])
+ ])
+ AC_SUBST(HUGE_VAL_SANITY,$ac_cv_huge_val_sanity)
+])
+
+#
+# Get the linker version string.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_GET_VERSION],
+ [AC_CACHE_CHECK([for linker version],[llvm_cv_link_version],
+ [
+ version_string="$(${LD:-ld} -v 2>&1 | head -1)"
+
+ # Check for ld64.
+ if (echo "$version_string" | grep -q "ld64"); then
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
+ else
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
+ fi
+ ])
+ AC_DEFINE_UNQUOTED([HOST_LINK_VERSION],"$llvm_cv_link_version",
+ [Linker version detected at compile time.])
+])
+
+#
+# Determine if the system can handle the -R option being passed to the linker.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_USE_R],
+[AC_CACHE_CHECK([for compiler -Wl,-R<path> option],[llvm_cv_link_use_r],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS -Wl,-R."
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_r=yes],[llvm_cv_link_use_r=no])
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_r" = yes ; then
+ AC_DEFINE([HAVE_LINK_R],[1],[Define if you can use -Wl,-R. to pass -R. to the linker, in order to add the current directory to the dynamic linker search path.])
+ fi
+])
+
+#
+# Determine if the system can handle the -rdynamic option being passed
+# to the compiler.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_EXPORT_DYNAMIC],
+[AC_CACHE_CHECK([for compiler -rdynamic option],
+ [llvm_cv_link_use_export_dynamic],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS -rdynamic"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_export_dynamic=yes],[llvm_cv_link_use_export_dynamic=no])
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_export_dynamic" = yes ; then
+ AC_DEFINE([HAVE_LINK_EXPORT_DYNAMIC],[1],[Define if you can use -rdynamic.])
+ fi
+])
+
+#
+# Determine if the system can handle the --version-script option being
+# passed to the linker.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_VERSION_SCRIPT],
+[AC_CACHE_CHECK([for compiler -Wl,--version-script option],
+ [llvm_cv_link_use_version_script],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+
+ # The following code is from the autoconf manual,
+ # "11.13: Limitations of Usual Tools".
+ # Create a temporary directory $tmp in $TMPDIR (default /tmp).
+ # Use mktemp if possible; otherwise fall back on mkdir,
+ # with $RANDOM to make collisions less likely.
+ : ${TMPDIR=/tmp}
+ {
+ tmp=`
+ (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
+ ` &&
+ test -n "$tmp" && test -d "$tmp"
+ } || {
+ tmp=$TMPDIR/foo$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+ } || exit $?
+
+ echo "{" > "$tmp/export.map"
+ echo " global: main;" >> "$tmp/export.map"
+ echo " local: *;" >> "$tmp/export.map"
+ echo "};" >> "$tmp/export.map"
+
+ CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_version_script=yes],[llvm_cv_link_use_version_script=no])
+ rm "$tmp/export.map"
+ rmdir "$tmp"
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_version_script" = yes ; then
+ AC_SUBST(HAVE_LINK_VERSION_SCRIPT,1)
+ fi
+])
+
+
+#
+# Some Linux machines run a 64-bit kernel with a 32-bit userspace. 'uname -m'
+# shows these as x86_64. Ask the system 'gcc' what it thinks.
+#
+AC_DEFUN([AC_IS_LINUX_MIXED],
+[AC_CACHE_CHECK(for 32-bit userspace on 64-bit system,llvm_cv_linux_mixed,
+[ AC_LANG_PUSH([C])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#ifndef __x86_64__
+ error: Not x86-64 even if uname says so!
+ #endif
+ ]])],
+ [llvm_cv_linux_mixed=no],
+ [llvm_cv_linux_mixed=yes])
+ AC_LANG_POP([C])
+])
+])
+
+#
+# Determine if the compiler accepts -fvisibility-inlines-hidden
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN],
+[AC_CACHE_CHECK([for compiler -fvisibility-inlines-hidden option],
+ [llvm_cv_cxx_visibility_inlines_hidden],
+[ AC_LANG_PUSH([C++])
+ oldcxxflags="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [template <typename T> struct X { void __attribute__((noinline)) f() {} };],
+ [X<int>().f();])],
+ [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
+ CXXFLAGS="$oldcxxflags"
+ AC_LANG_POP([C++])
+])
+if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
+ AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[1])
+else
+ AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[0])
+fi
+])
+
diff --git a/external/apache2/llvm/autoconf/autoconf/config.guess b/external/apache2/llvm/autoconf/autoconf/config.guess
new file mode 100755
index 00000000000..b209a1a06c6
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/config.guess
@@ -0,0 +1,1529 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011 Free Software Foundation, Inc.
+
+timestamp='2011-08-20'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner. Please send patches (context
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
+# entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
+Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ELF__
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:Bitrig:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[4567])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep -q __LP64__
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case ${UNAME_PROCESSOR} in
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ *:MSYS*:*)
+ echo ${UNAME_MACHINE}-pc-msys
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ authenticamd | genuineintel | EM64T)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ aarch64*:Linux:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+ fi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ LIBC=gnu
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:* | mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=${UNAME_MACHINE}el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=${UNAME_MACHINE}
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-unknown-linux-gnu
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-gnu
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes@openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf@swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ i386)
+ eval $set_cc_for_build
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ UNAME_PROCESSOR="x86_64"
+ fi
+ fi ;;
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches@gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/external/apache2/llvm/autoconf/autoconf/config.sub b/external/apache2/llvm/autoconf/autoconf/config.sub
new file mode 100755
index 00000000000..2583c901235
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/config.sub
@@ -0,0 +1,1770 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011 Free Software Foundation, Inc.
+
+timestamp='2011-11-02'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted GNU ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
+Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray | -microblaze)
+ os=
+ basic_machine=$1
+ ;;
+ -bluegene*)
+ os=-cnk
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | aarch64 | aarch64_be \
+ | be32 | be64 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fido | fr30 | frv \
+ | hexagon \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | le32 | le64 \
+ | lm32 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | moxie \
+ | mt \
+ | msp430 \
+ | nds32 | nds32le | nds32be \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | open8 \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
+ | pyramid \
+ | rx \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+ | ubicom32 \
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | we32k \
+ | x86 | xc16x | xstormy16 | xtensa \
+ | z8k | z80)
+ basic_machine=$basic_machine-unknown
+ ;;
+ c54x)
+ basic_machine=tic54x-unknown
+ ;;
+ c55x)
+ basic_machine=tic55x-unknown
+ ;;
+ c6x)
+ basic_machine=tic6x-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | picochip)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+
+ xscaleeb)
+ basic_machine=armeb-unknown
+ ;;
+
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | aarch64-* | aarch64_be-* \
+ | avr-* | avr32-* \
+ | be32-* | be64-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hexagon-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | le32-* | le64-* \
+ | lm32-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nds32-* | nds32le-* | nds32be-* \
+ | nios-* | nios2-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | open8-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+ | pyramid-* \
+ | romp-* | rs6000-* | rx-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
+ | tahoe-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tile*-* \
+ | tron-* \
+ | ubicom32-* \
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+ | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c54x-*)
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c55x-*)
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c6x-*)
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16 | cr16-*)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ microblaze)
+ basic_machine=microblaze-xilinx
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc | ppcbe) basic_machine=powerpc-unknown
+ ;;
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ strongarm-* | thumb-*)
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tile*)
+ basic_machine=$basic_machine-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ xscale-* | xscalee[bl]-*)
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -auroraux)
+ os=-auroraux
+ ;;
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* | -aros* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -bitrig*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -nacl*)
+ ;;
+ -ps4)
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ tic54x-*)
+ os=-coff
+ ;;
+ tic55x-*)
+ os=-coff
+ ;;
+ tic6x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -cnk*|-aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/external/apache2/llvm/autoconf/autoconf/configure.ac b/external/apache2/llvm/autoconf/autoconf/configure.ac
new file mode 100644
index 00000000000..5fffd873df2
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/configure.ac
@@ -0,0 +1,2043 @@
+dnl === configure.ac --------------------------------------------------------===
+dnl The LLVM Compiler Infrastructure
+dnl
+dnl This file is distributed under the University of Illinois Open Source
+dnl License. See LICENSE.TXT for details.
+dnl
+dnl===-----------------------------------------------------------------------===
+dnl This is the LLVM configuration script. It is processed by the autoconf
+dnl program to produce a script named configure. This script contains the
+dnl configuration checks that LLVM needs in order to support multiple platforms.
+dnl This file is composed of 10 sections per the recommended organization of
+dnl autoconf input defined in the autoconf documentation. As this file evolves,
+dnl please keep the various types of checks within their sections. The sections
+dnl are as follows:
+dnl
+dnl SECTION 1: Initialization & Setup
+dnl SECTION 2: Architecture, target, and host checks
+dnl SECTION 3: Command line arguments for the configure script.
+dnl SECTION 4: Check for programs we need and that they are the right version
+dnl SECTION 5: Check for libraries
+dnl SECTION 6: Check for header files
+dnl SECTION 7: Check for types and structures
+dnl SECTION 8: Check for specific functions needed
+dnl SECTION 9: Additional checks, variables, etc.
+dnl SECTION 10: Specify the output files and generate it
+dnl
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 1: Initialization & Setup
+dnl===
+dnl===-----------------------------------------------------------------------===
+dnl Initialize autoconf and define the package name, version number and
+dnl address for reporting bugs.
+
+AC_INIT([LLVM],[4.0.0svn],[http://llvm.org/bugs/])
+
+LLVM_VERSION_MAJOR=4
+LLVM_VERSION_MINOR=0
+LLVM_VERSION_PATCH=0
+LLVM_VERSION_SUFFIX=svn
+
+AC_DEFINE_UNQUOTED([LLVM_VERSION_MAJOR], $LLVM_VERSION_MAJOR, [Major version of the LLVM API])
+AC_DEFINE_UNQUOTED([LLVM_VERSION_MINOR], $LLVM_VERSION_MINOR, [Minor version of the LLVM API])
+AC_DEFINE_UNQUOTED([LLVM_VERSION_PATCH], $LLVM_VERSION_PATCH, [Patch version of the LLVM API])
+AC_DEFINE_UNQUOTED([LLVM_VERSION_STRING], "$PACKAGE_VERSION", [LLVM version string])
+if false; then
+ AC_DEFINE_UNQUOTED([LLVM_VERSION_INFO], [], [LLVM version information])
+fi
+
+AC_SUBST([LLVM_VERSION_MAJOR])
+AC_SUBST([LLVM_VERSION_MINOR])
+AC_SUBST([LLVM_VERSION_PATCH])
+AC_SUBST([LLVM_VERSION_SUFFIX])
+
+dnl Provide a copyright substitution and ensure the copyright notice is included
+dnl in the output of --version option of the generated configure script.
+AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."])
+AC_COPYRIGHT([Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.])
+
+dnl Indicate that we require autoconf 2.60 or later.
+AC_PREREQ(2.60)
+
+dnl Place all of the extra autoconf files into the config subdirectory. Tell
+dnl various tools where the m4 autoconf macros are.
+AC_CONFIG_AUX_DIR([autoconf])
+
+AC_ARG_WITH(llvm-srcdir,
+ AS_HELP_STRING([--with-llvm-srcdir],
+ [Directory to the out-of-tree LLVM source]),,
+ withval="-")
+case "$withval" in
+ -) llvm_srcdir="$srcdir" ;;
+ /* | [[A-Za-z]]:[[\\/]]*) llvm_srcdir="$withval" ;;
+ *) llvm_srcdir="$ac_pwd/$withval" ;;
+esac
+
+dnl Quit if the source directory has already been configured.
+dnl NOTE: This relies upon undocumented autoconf behavior.
+if test ${srcdir} != "." ; then
+ if test -f ${srcdir}/include/llvm/Config/config.h ; then
+ AC_MSG_ERROR([Already configured in ${srcdir}])
+ fi
+fi
+
+dnl Quit if it is an in-source build
+if test ${srcdir} = "." ; then
+ AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!])
+fi
+
+dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
+dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc).
+: ${CFLAGS=}
+: ${CXXFLAGS=}
+
+dnl We need to check for the compiler up here to avoid anything else
+dnl starting with a different one.
+AC_PROG_CC(clang gcc)
+AC_PROG_CXX(clang++ g++)
+AC_PROG_CPP
+
+dnl If CXX is Clang, check that it can find and parse C++ standard library
+dnl headers.
+if test "$CXX" = "clang++" ; then
+ AC_MSG_CHECKING([whether clang works])
+ AC_LANG_PUSH([C++])
+ dnl Note that space between 'include' and '(' is required. There's a broken
+ dnl regex in aclocal that otherwise will think that we call m4's include
+ dnl builtin.
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits>
+#if __has_include (<cxxabi.h>)
+#include <cxxabi.h>
+#endif
+#if __has_include (<unwind.h>)
+#include <unwind.h>
+#endif
+]])],
+[
+ AC_MSG_RESULT([yes])
+],
+[
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ...])
+])
+ AC_LANG_POP([C++])
+fi
+
+dnl Set up variables that track whether the host compiler is GCC or Clang where
+dnl we can effectively sanity check them. We don't try to sanity check all the
+dnl other possible compilers.
+AC_MSG_CHECKING([whether GCC or Clang is our host compiler])
+AC_LANG_PUSH([C++])
+llvm_cv_cxx_compiler=unknown
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#if ! __clang__
+ #error
+ #endif
+ ]])],
+ llvm_cv_cxx_compiler=clang,
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#if ! __GNUC__
+ #error
+ #endif
+ ]])],
+ llvm_cv_cxx_compiler=gcc, [])])
+AC_LANG_POP([C++])
+AC_MSG_RESULT([${llvm_cv_cxx_compiler}])
+AC_SUBST(CXX_COMPILER,$llvm_cv_cxx_compiler)
+
+dnl Disable the build of polly, even if it is checked out into tools/polly.
+AC_ARG_ENABLE(polly,
+ AS_HELP_STRING([--enable-polly],
+ [Use polly if available (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_POLLY,[1]) ;;
+ no) AC_SUBST(ENABLE_POLLY,[0]) ;;
+ default) AC_SUBST(ENABLE_POLLY,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-polly. Use "yes" or "no"]) ;;
+esac
+
+
+dnl Check if polly is checked out into tools/polly and configure it if
+dnl available.
+if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
+ AC_SUBST(LLVM_HAS_POLLY,1)
+ AC_CONFIG_SUBDIRS([tools/polly])
+fi
+if false; then
+AC_DEFINE([LINK_POLLY_INTO_TOOLS], [], [Define if we link Polly to the tools])
+fi
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 2: Architecture, target, and host checks
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+dnl Check the target for which we're compiling and the host that will do the
+dnl compilations. This will tell us which LLVM compiler will be used for
+dnl compiling SSA into object code. This needs to be done early because
+dnl following tests depend on it.
+AC_CANONICAL_TARGET
+
+dnl Determine the platform type and cache its value. This helps us configure
+dnl the System library to the correct build platform.
+AC_CACHE_CHECK([type of operating system we're going to host on],
+ [llvm_cv_os_type],
+[case $host in
+ *-*-aix*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="AIX"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-irix*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="IRIX"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-cygwin*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Cygwin"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-darwin*)
+ llvm_cv_link_all_option="-Wl,-all_load"
+ llvm_cv_no_link_all_option="-Wl,-noall_load"
+ llvm_cv_os_type="Darwin"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-minix*)
+ llvm_cv_link_all_option="-Wl,-all_load"
+ llvm_cv_no_link_all_option="-Wl,-noall_load"
+ llvm_cv_os_type="Minix"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-freebsd*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="FreeBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-kfreebsd-gnu)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="GNU/kFreeBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-openbsd*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="OpenBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-netbsd*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="NetBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-dragonfly*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="DragonFly"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-bitrig*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Bitrig"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-hpux*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="HP-UX"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-interix*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Interix"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-linux*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Linux"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-gnu*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="GNU"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-solaris*)
+ llvm_cv_link_all_option="-Wl,-z,allextract"
+ llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
+ llvm_cv_os_type="SunOS"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-win32*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Win32"
+ llvm_cv_platform_type="Win32" ;;
+ *-*-mingw*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="MingW"
+ llvm_cv_platform_type="Win32" ;;
+ *-*-haiku*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Haiku"
+ llvm_cv_platform_type="Unix" ;;
+ *-unknown-eabi*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Freestanding"
+ llvm_cv_platform_type="Unix" ;;
+ *-unknown-elf*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Freestanding"
+ llvm_cv_platform_type="Unix" ;;
+ *)
+ llvm_cv_link_all_option=""
+ llvm_cv_no_link_all_option=""
+ llvm_cv_os_type="Unknown"
+ llvm_cv_platform_type="Unknown" ;;
+esac])
+
+AC_CACHE_CHECK([type of operating system we're going to target],
+ [llvm_cv_target_os_type],
+[case $target in
+ *-*-aix*)
+ llvm_cv_target_os_type="AIX" ;;
+ *-*-irix*)
+ llvm_cv_target_os_type="IRIX" ;;
+ *-*-cygwin*)
+ llvm_cv_target_os_type="Cygwin" ;;
+ *-*-darwin*)
+ llvm_cv_target_os_type="Darwin" ;;
+ *-*-minix*)
+ llvm_cv_target_os_type="Minix" ;;
+ *-*-freebsd*)
+ llvm_cv_target_os_type="FreeBSD" ;;
+ *-*-kfreebsd-gnu)
+ llvm_cv_target_os_type="GNU/kFreeBSD" ;;
+ *-*-openbsd*)
+ llvm_cv_target_os_type="OpenBSD" ;;
+ *-*-netbsd*)
+ llvm_cv_target_os_type="NetBSD" ;;
+ *-*-dragonfly*)
+ llvm_cv_target_os_type="DragonFly" ;;
+ *-*-bitrig*)
+ llvm_cv_target_os_type="Bitrig" ;;
+ *-*-hpux*)
+ llvm_cv_target_os_type="HP-UX" ;;
+ *-*-interix*)
+ llvm_cv_target_os_type="Interix" ;;
+ *-*-linux*)
+ llvm_cv_target_os_type="Linux" ;;
+ *-*-gnu*)
+ llvm_cv_target_os_type="GNU" ;;
+ *-*-solaris*)
+ llvm_cv_target_os_type="SunOS" ;;
+ *-*-win32*)
+ llvm_cv_target_os_type="Win32" ;;
+ *-*-mingw*)
+ llvm_cv_target_os_type="MingW" ;;
+ *-*-haiku*)
+ llvm_cv_target_os_type="Haiku" ;;
+ *-*-rtems*)
+ llvm_cv_target_os_type="RTEMS" ;;
+ *-*-nacl*)
+ llvm_cv_target_os_type="NativeClient" ;;
+ *-unknown-eabi*)
+ llvm_cv_target_os_type="Freestanding" ;;
+ *-*-ps4)
+ llvm_cv_target_os_type="PS4" ;;
+ *)
+ llvm_cv_target_os_type="Unknown" ;;
+esac])
+
+dnl Make sure we aren't attempting to configure for an unknown system
+if test "$llvm_cv_os_type" = "Unknown" ; then
+ AC_MSG_ERROR([Operating system is unknown, configure can't continue])
+fi
+
+dnl Set the "OS" Makefile variable based on the platform type so the
+dnl makefile can configure itself to specific build hosts
+AC_SUBST(OS,$llvm_cv_os_type)
+AC_SUBST(HOST_OS,$llvm_cv_os_type)
+AC_SUBST(TARGET_OS,$llvm_cv_target_os_type)
+
+dnl Set the LINKALL and NOLINKALL Makefile variables based on the platform
+AC_SUBST(LINKALL,$llvm_cv_link_all_option)
+AC_SUBST(NOLINKALL,$llvm_cv_no_link_all_option)
+
+dnl Set the "LLVM_ON_*" variables based on llvm_cv_platform_type
+dnl This is used by lib/Support to determine the basic kind of implementation
+dnl to use.
+case $llvm_cv_platform_type in
+ Unix)
+ AC_DEFINE([LLVM_ON_UNIX],[1],[Define if this is Unixish platform])
+ AC_SUBST(LLVM_ON_UNIX,[1])
+ AC_SUBST(LLVM_ON_WIN32,[0])
+ ;;
+ Win32)
+ AC_DEFINE([LLVM_ON_WIN32],[1],[Define if this is Win32ish platform])
+ AC_SUBST(LLVM_ON_UNIX,[0])
+ AC_SUBST(LLVM_ON_WIN32,[1])
+ ;;
+esac
+
+dnl Determine what our target architecture is and configure accordingly.
+dnl This will allow Makefiles to make a distinction between the hardware and
+dnl the OS.
+AC_CACHE_CHECK([target architecture],[llvm_cv_target_arch],
+[case $target in
+ i?86-*) llvm_cv_target_arch="x86" ;;
+ amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
+ sparc*-*) llvm_cv_target_arch="Sparc" ;;
+ powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
+ arm64*-*) llvm_cv_target_arch="AArch64" ;;
+ arm*-*) llvm_cv_target_arch="ARM" ;;
+ aarch64*-*) llvm_cv_target_arch="AArch64" ;;
+ avr-*) llvm_cv_target_arch="AVR" ;;
+ mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
+ mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
+ xcore-*) llvm_cv_target_arch="XCore" ;;
+ msp430-*) llvm_cv_target_arch="MSP430" ;;
+ hexagon-*) llvm_cv_target_arch="Hexagon" ;;
+ nvptx-*) llvm_cv_target_arch="NVPTX" ;;
+ s390x-*) llvm_cv_target_arch="SystemZ" ;;
+ wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
+ *) llvm_cv_target_arch="Unknown" ;;
+esac])
+
+if test "$llvm_cv_target_arch" = "Unknown" ; then
+ AC_MSG_WARN([Configuring LLVM for an unknown target archicture])
+fi
+
+dnl Determine the LLVM native architecture for the target
+case "$llvm_cv_target_arch" in
+ x86) LLVM_NATIVE_ARCH="X86" ;;
+ x86_64) LLVM_NATIVE_ARCH="X86" ;;
+ *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
+esac
+
+dnl Define a substitution, ARCH, for the target architecture
+AC_SUBST(ARCH,$llvm_cv_target_arch)
+AC_SUBST(LLVM_NATIVE_ARCH,$LLVM_NATIVE_ARCH)
+
+dnl Determine what our host architecture.
+dnl This will allow MCJIT regress tests runs only for supported
+dnl platforms.
+case $host in
+ i?86-*) host_arch="x86" ;;
+ amd64-* | x86_64-*) host_arch="x86_64" ;;
+ sparc*-*) host_arch="Sparc" ;;
+ powerpc*-*) host_arch="PowerPC" ;;
+ arm64*-*) host_arch="AArch64" ;;
+ arm*-*) host_arch="ARM" ;;
+ aarch64*-*) host_arch="AArch64" ;;
+ avr-*) host_arch="AVR" ;;
+ mips-* | mips64-*) host_arch="Mips" ;;
+ mipsel-* | mips64el-*) host_arch="Mips" ;;
+ xcore-*) host_arch="XCore" ;;
+ msp430-*) host_arch="MSP430" ;;
+ hexagon-*) host_arch="Hexagon" ;;
+ s390x-*) host_arch="SystemZ" ;;
+ wasm*-*) host_arch="WebAssembly" ;;
+ *) host_arch="Unknown" ;;
+esac
+
+if test "$host_arch" = "Unknown" ; then
+ AC_MSG_WARN([Configuring LLVM for an unknown host archicture])
+fi
+
+AC_SUBST(HOST_ARCH,$host_arch)
+
+dnl Check for build platform executable suffix if we're cross-compiling
+if test "$cross_compiling" = yes; then
+ AC_SUBST(LLVM_CROSS_COMPILING, [1])
+ AC_BUILD_EXEEXT
+ ac_build_prefix=${build_alias}-
+ AC_CHECK_PROG(BUILD_CXX, ${ac_build_prefix}g++, ${ac_build_prefix}g++)
+ if test -z "$BUILD_CXX"; then
+ AC_CHECK_PROG(BUILD_CXX, g++, g++)
+ if test -z "$BUILD_CXX"; then
+ AC_CHECK_PROG(BUILD_CXX, c++, c++, , , /usr/ucb/c++)
+ fi
+ fi
+else
+ AC_SUBST(LLVM_CROSS_COMPILING, [0])
+fi
+
+dnl Check to see if there's a .svn or .git directory indicating that this
+dnl build is being done from a checkout. This sets up several defaults for
+dnl the command line switches. When we build with a checkout directory,
+dnl we get a debug with assertions turned on. Without, we assume a source
+dnl release and we get an optimized build without assertions.
+dnl See --enable-optimized and --enable-assertions below
+if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
+ cvsbuild="yes"
+ optimize="no"
+ AC_SUBST(CVSBUILD,[[CVSBUILD=1]])
+else
+ cvsbuild="no"
+ optimize="yes"
+fi
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 3: Command line arguments for the configure script.
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+dnl --enable-libcpp : check whether or not to use libc++ on the command line
+AC_ARG_ENABLE(libcpp,
+ AS_HELP_STRING([--enable-libcpp],
+ [Use libc++ if available (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_LIBCPP,[1]) ;;
+ no) AC_SUBST(ENABLE_LIBCPP,[0]) ;;
+ default) AC_SUBST(ENABLE_LIBCPP,[0]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-libcpp. Use "yes" or "no"]) ;;
+esac
+
+dnl Check both GCC and Clang for sufficiently modern versions. These checks can
+dnl be bypassed by passing a flag if necessary on a platform. We have to do
+dnl these checks here so that we have the configuration of the standard C++
+dnl library finished.
+AC_ARG_ENABLE(compiler-version-checks,
+ AS_HELP_STRING([--enable-compiler-version-checks],
+ [Check the version of the host compiler (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ no)
+ ;;
+ yes|default)
+ AC_LANG_PUSH([C++])
+ case "$llvm_cv_cxx_compiler" in
+ clang)
+ AC_MSG_CHECKING([whether Clang is new enough])
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
+#error This version of Clang is too old to build LLVM
+#endif
+]])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([
+The selected Clang compiler is not new enough to build LLVM. Please upgrade to
+Clang 3.1. You may pass --disable-compiler-version-checks to configure to
+bypass these sanity checks.])])
+
+ dnl Note that libstdc++4.6 is known broken for C++11 builds. The errors
+ dnl are sometimes deeply confusing though. Here we test for an obvious
+ dnl incomplete feature in 4.6's standard library that was completed in
+ dnl 4.7's. We also have to disable this test if 'ENABLE_LIBCPP' is set
+ dnl because the enable flags don't actually fix CXXFLAGS, they rely on
+ dnl that happening in the Makefile.
+ if test "$ENABLE_LIBCPP" -eq 0 ; then
+ AC_MSG_CHECKING([whether Clang will select a modern C++ standard library])
+ llvm_cv_old_cxxflags="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -std=c++0x"
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[
+#include <atomic>
+std::atomic<float> x(0.0f);
+int main() { return (float)x; }
+]])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([
+We detected a missing feature in the standard C++ library that was known to be
+missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
+C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
+than 4.7. You will need to update your system and ensure Clang uses the newer
+standard library.
+
+If this error is incorrect or you need to force things to work, you may pass
+'--disable-compiler-version-checks' to configure to bypass this test.])])
+ CXXFLAGS="$llvm_cv_old_cxxflags"
+ fi
+ ;;
+ gcc)
+ AC_MSG_CHECKING([whether GCC is new enough])
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
+#error This version of GCC is too old to build LLVM
+#endif
+]])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([
+The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
+to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
+bypass these sanity checks.])])
+ ;;
+ unknown)
+ ;;
+ esac
+ AC_LANG_POP([C++])
+ ;;
+ *)
+ AC_MSG_ERROR([Invalid setting for --enable-compiler-version-checks. Use "yes" or "no"])
+ ;;
+esac
+
+dnl --enable-cxx1y : check whether or not to use -std=c++1y on the command line
+AC_ARG_ENABLE(cxx1y,
+ AS_HELP_STRING([--enable-cxx1y],
+ [Use c++1y if available (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_CXX1Y,[1]) ;;
+ no) AC_SUBST(ENABLE_CXX1Y,[0]) ;;
+ default) AC_SUBST(ENABLE_CXX1Y,[0]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-cxx1y. Use "yes" or "no"]) ;;
+esac
+
+dnl --enable-split-dwarf : check whether or not to use -gsplit-dwarf on the command
+dnl line
+AC_ARG_ENABLE(split-dwarf,
+ AS_HELP_STRING([--enable-split-dwarf],
+ [Use split-dwarf if available (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_SPLIT_DWARF,[1]) ;;
+ no) AC_SUBST(ENABLE_SPLIT_DWARF,[0]) ;;
+ default) AC_SUBST(ENABLE_SPLIT_DWARF,[0]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-split-dwarf. Use "yes" or "no"]) ;;
+esac
+
+dnl --enable-clang-arcmt: check whether to enable clang arcmt
+clang_arcmt="yes"
+AC_ARG_ENABLE(clang-arcmt,
+ AS_HELP_STRING([--enable-clang-arcmt],
+ [Enable building of clang ARCMT (default is YES)]),
+ clang_arcmt="$enableval",
+ enableval="yes")
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_CLANG_ARCMT,[1]) ;;
+ no) AC_SUBST(ENABLE_CLANG_ARCMT,[0]) ;;
+ default) AC_SUBST(ENABLE_CLANG_ARCMT,[1]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-clang-arcmt. Use "yes" or "no"]) ;;
+esac
+
+dnl --enable-clang-plugin-support: check whether to enable plugins in clang
+clang_plugin_support="yes"
+AC_ARG_ENABLE(clang-plugin-support,
+ AS_HELP_STRING([--enable-clang-plugin-support],
+ [Enable plugin support in clang (default is YES)]),
+ clang_plugin_support="$enableval",
+ enableval="yes")
+case "$enableval" in
+ yes) AC_SUBST(CLANG_PLUGIN_SUPPORT,[1]) ;;
+ no) AC_SUBST(CLANG_PLUGIN_SUPPORT,[0]) ;;
+ default) AC_SUBST(CLANG_PLUGIN_SUPPORT,[1]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-clang-plugin-support. Use "yes" or "no"]) ;;
+esac
+
+dnl --enable-clang-static-analyzer: check whether to enable static-analyzer
+clang_static_analyzer="yes"
+AC_ARG_ENABLE(clang-static-analyzer,
+ AS_HELP_STRING([--enable-clang-static-analyzer],
+ [Enable building of clang Static Analyzer (default is YES)]),
+ clang_static_analyzer="$enableval",
+ enableval="yes")
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[1]) ;;
+ no)
+ if test ${clang_arcmt} != "no" ; then
+ AC_MSG_ERROR([Cannot enable clang ARC Migration Tool while disabling static analyzer.])
+ fi
+ AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[0])
+ ;;
+ default) AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[1]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-clang-static-analyzer. Use "yes" or "no"]) ;;
+esac
+
+dnl --enable-optimized : check whether they want to do an optimized build:
+AC_ARG_ENABLE(optimized, AS_HELP_STRING(
+ --enable-optimized,[Compile with optimizations enabled (default is NO)]),,enableval=$optimize)
+if test ${enableval} = "no" ; then
+ AC_SUBST(ENABLE_OPTIMIZED,[[]])
+else
+ AC_SUBST(ENABLE_OPTIMIZED,[[ENABLE_OPTIMIZED=1]])
+fi
+
+dnl --enable-profiling : check whether they want to do a profile build:
+AC_ARG_ENABLE(profiling, AS_HELP_STRING(
+ --enable-profiling,[Compile with profiling enabled (default is NO)]),,enableval="no")
+if test ${enableval} = "no" ; then
+ AC_SUBST(ENABLE_PROFILING,[[]])
+else
+ AC_SUBST(ENABLE_PROFILING,[[ENABLE_PROFILING=1]])
+fi
+
+dnl --enable-assertions : check whether they want to turn on assertions or not:
+AC_ARG_ENABLE(assertions,AS_HELP_STRING(
+ --enable-assertions,[Compile with assertion checks enabled (default is YES)]),, enableval="yes")
+if test ${enableval} = "yes" ; then
+ AC_SUBST(DISABLE_ASSERTIONS,[[]])
+ assertions_enabled="yes"
+else
+ AC_SUBST(DISABLE_ASSERTIONS,[[DISABLE_ASSERTIONS=1]])
+ assertions_enabled="no"
+fi
+
+dnl --enable-werror : check whether we want Werror on by default
+AC_ARG_ENABLE(werror,AS_HELP_STRING(
+ --enable-werror,[Compile with -Werror enabled (default is NO)]),, enableval="no")
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_WERROR,[1]) ;;
+ no) AC_SUBST(ENABLE_WERROR,[0]) ;;
+ default) AC_SUBST(ENABLE_WERROR,[0]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-werror. Use "yes" or "no"]) ;;
+esac
+
+dnl --enable-expensive-checks : check whether they want to turn on expensive debug checks:
+AC_ARG_ENABLE(expensive-checks,AS_HELP_STRING(
+ --enable-expensive-checks,[Compile with expensive debug checks enabled (default is NO)]),, enableval="no")
+if test ${enableval} = "yes" ; then
+ AC_SUBST(ENABLE_EXPENSIVE_CHECKS,[[ENABLE_EXPENSIVE_CHECKS=1]])
+ AC_SUBST(EXPENSIVE_CHECKS,[[yes]])
+else
+ AC_SUBST(ENABLE_EXPENSIVE_CHECKS,[[]])
+ AC_SUBST(EXPENSIVE_CHECKS,[[no]])
+fi
+
+dnl --enable-abi-breaking-checks : decide whether we should compile in asserts and
+dnl checks that make the build ABI incompatible with an llvm built without these
+dnl checks enabled.
+AC_ARG_ENABLE(abi-breaking-checks,AS_HELP_STRING(
+ --enable-abi-breaking-checks,[Compile with abi-breaking asserts support (default is with-asserts)]),, enableval="with-asserts")
+case "$enableval" in
+ with-asserts) if test ${assertions_enabled} = "yes" ; then
+ ENABLE_ABI_BREAKING_CHECKS=1
+ else
+ ENABLE_ABI_BREAKING_CHECKS=0
+ fi ;;
+ yes)
+ ENABLE_ABI_BREAKING_CHECKS=1
+ ;;
+ no)
+ ENABLE_ABI_BREAKING_CHECKS=0
+ ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-abi-breaking-checks. Use "with-asserts", "yes" or "no"])
+esac
+AC_SUBST(ENABLE_ABI_BREAKING_CHECKS,[$ENABLE_ABI_BREAKING_CHECKS])
+AC_DEFINE_UNQUOTED([LLVM_ENABLE_ABI_BREAKING_CHECKS],
+ [$ENABLE_ABI_BREAKING_CHECKS],
+ [Define to enable checks that alter the LLVM C++ ABI])
+
+dnl --enable-debug-runtime : should runtime libraries have debug symbols?
+AC_ARG_ENABLE(debug-runtime,
+ AS_HELP_STRING(--enable-debug-runtime,[Build runtime libs with debug symbols (default is NO)]),,enableval=no)
+if test ${enableval} = "no" ; then
+ AC_SUBST(DEBUG_RUNTIME,[[]])
+else
+ AC_SUBST(DEBUG_RUNTIME,[[DEBUG_RUNTIME=1]])
+fi
+
+dnl --enable-debug-symbols : should even optimized compiler libraries
+dnl have debug symbols?
+AC_ARG_ENABLE(debug-symbols,
+ AS_HELP_STRING(--enable-debug-symbols,[Build compiler with debug symbols (default is NO if optimization is on and YES if it's off)]),,enableval=no)
+if test ${enableval} = "no" ; then
+ AC_SUBST(DEBUG_SYMBOLS,[[]])
+else
+ AC_SUBST(DEBUG_SYMBOLS,[[DEBUG_SYMBOLS=1]])
+fi
+
+dnl --enable-keep-symbols : do not strip installed executables
+AC_ARG_ENABLE(keep-symbols,
+ AS_HELP_STRING(--enable-keep-symbols,[Do not strip installed executables)]),,enableval=no)
+if test ${enableval} = "no" ; then
+ AC_SUBST(KEEP_SYMBOLS,[[]])
+else
+ AC_SUBST(KEEP_SYMBOLS,[[KEEP_SYMBOLS=1]])
+fi
+
+dnl --enable-jit: check whether they want to enable the jit
+AC_ARG_ENABLE(jit,
+ AS_HELP_STRING(--enable-jit,
+ [Enable Just In Time Compiling (default is YES)]),,
+ enableval=default)
+if test ${enableval} = "no"
+then
+ AC_SUBST(JIT,[[]])
+else
+ case "$llvm_cv_target_arch" in
+ x86) AC_SUBST(TARGET_HAS_JIT,1) ;;
+ Sparc) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ PowerPC) AC_SUBST(TARGET_HAS_JIT,1) ;;
+ x86_64) AC_SUBST(TARGET_HAS_JIT,1) ;;
+ ARM) AC_SUBST(TARGET_HAS_JIT,1) ;;
+ AVR) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ Mips) AC_SUBST(TARGET_HAS_JIT,1) ;;
+ XCore) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ MSP430) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ Hexagon) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ NVPTX) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ SystemZ) AC_SUBST(TARGET_HAS_JIT,1) ;;
+ WebAssembly) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ *) AC_SUBST(TARGET_HAS_JIT,0) ;;
+ esac
+fi
+
+TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
+AC_SUBST(TARGETS_WITH_JIT,$TARGETS_WITH_JIT)
+
+dnl Allow enablement of building and installing docs
+AC_ARG_ENABLE(docs,
+ AS_HELP_STRING([--enable-docs],
+ [Build documents (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_DOCS,[1]) ;;
+ no) AC_SUBST(ENABLE_DOCS,[0]) ;;
+ default) AC_SUBST(ENABLE_DOCS,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-docs. Use "yes" or "no"]) ;;
+esac
+
+dnl Allow enablement of doxygen generated documentation
+AC_ARG_ENABLE(doxygen,
+ AS_HELP_STRING([--enable-doxygen],
+ [Build doxygen documentation (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_DOXYGEN,[1]) ;;
+ no|default) AC_SUBST(ENABLE_DOXYGEN,[0]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-doxygen. Use "yes" or "no"]) ;;
+esac
+
+dnl Allow enablement of doxygen search engine
+AC_ARG_ENABLE(doxygen-search,
+ AS_HELP_STRING([--enable-doxygen-search],
+ [Enable doxygen search support (default is NO)]),,
+ enableval=default)
+ENABLE_DOXYGEN_SEARCH="$enableval"
+
+case "$enableval" in
+ yes|no|default) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-doxygen-search. Use "yes" or "no"]) ;;
+esac
+
+AC_ARG_ENABLE(doxygen-external-search,
+ AS_HELP_STRING([--enable-doxygen-external-search],
+ [Enable doxygen exteranl search (default is NO)]),,
+ enableval=default)
+ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
+
+case "$enableval" in
+ yes)
+ dnl To match with the CMake behavior, enable doxygen when
+ dnl --enable-doxygen-external-search is enabled.
+ case "$ENABLE_DOXYGEN_SEARCH" in
+ yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
+ no) AC_MSG_ERROR([The option --enable-doxygen-external-search requires --enable-doxygen-search]) ;;
+ esac
+ ;;
+ no|default) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-doxygen-external-search. Use "yes" or "no"]) ;;
+esac
+
+AC_ARG_WITH(doxygen-search-engine-url,
+ AS_HELP_STRING([--with-doxygen-search-engine-url],
+ [Specify the external search engine for doxygen]),,)
+WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
+
+AC_ARG_WITH(doxygen-search-mappings,
+ AS_HELP_STRING([--with-doxygen-search-mappings],
+ [Specify the extra search mapping for doxygen]),,)
+WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
+
+case "$ENABLE_DOXYGEN_SEARCH" in
+ yes)
+ if test "$ENABLE_DOXYGEN" = "0" ; then
+ AC_MSG_ERROR([The option --enable-doxygen-search requires --enable-doxygen.])
+ fi
+
+ AC_SUBST(enable_searchengine,[YES])
+
+ case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
+ yes)
+ AC_SUBST(enable_external_search,[YES])
+ AC_SUBST(enable_server_based_search,[YES])
+ AC_SUBST(searchengine_url,["$WITH_DOXYGEN_SEARCH_ENGINE_URL"])
+ AC_SUBST(extra_search_mappings,["$WITH_DOXYGEN_SEARCH_MAPPINGS"])
+ ;;
+
+ no|default)
+ AC_SUBST(enable_external_search,[NO])
+ AC_SUBST(enable_server_based_search,[NO])
+ AC_SUBST(searchengine_url,[])
+ AC_SUBST(extra_search_mappings,[])
+ ;;
+ esac
+ ;;
+
+ no|default)
+ AC_SUBST(enable_searchengine,[NO])
+ AC_SUBST(searchengine_url,[])
+ AC_SUBST(enable_server_based_search,[NO])
+ AC_SUBST(enable_external_search,[NO])
+ AC_SUBST(extra_search_mappings,[])
+ ;;
+
+ *)
+ AC_MSG_ERROR([Invalid setting for --enable-doxygen-search. Use "yes" or "no"])
+ ;;
+esac
+
+dnl Allow enablement of doxygen generated Qt help files
+AC_ARG_ENABLE(doxygen-qt-help,
+ AS_HELP_STRING([--enable-doxygen-qt-help],
+ [Build Qt help files (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes)
+ if test "$ENABLE_DOXYGEN" = "0" ; then
+ AC_MSG_ERROR([The option --enable-doxygen-qt-help requires --enable-doxygen.])
+ fi
+
+ AC_PATH_PROG(QHELPGENERATOR, [qhelpgenerator], [qhelpgenerator])
+
+ dnl Qt help file for llvm doxygen documentation
+ AC_SUBST(llvm_doxygen_generate_qhp,[YES])
+ AC_SUBST(llvm_doxygen_qch_filename,[org.llvm.qch])
+ AC_SUBST(llvm_doxygen_qhp_namespace,[org.llvm])
+ AC_SUBST(llvm_doxygen_qhelpgenerator_path,["$QHELPGENERATOR"])
+ AC_SUBST(llvm_doxygen_qhp_cust_filter_name,["$PACKAGE_STRING"])
+ AC_SUBST(llvm_doxygen_qhp_cust_filter_attrs,["$PACKAGE_NAME,$PACKAGE_VERSION"])
+
+ dnl Qt help file for clang doxygen documentation
+ AC_SUBST(clang_doxygen_generate_qhp,[YES])
+ AC_SUBST(clang_doxygen_qch_filename,[org.llvm.clang.qch])
+ AC_SUBST(clang_doxygen_qhp_namespace,[org.llvm.clang])
+ AC_SUBST(clang_doxygen_qhelpgenerator_path,["$QHELPGENERATOR"])
+ AC_SUBST(clang_doxygen_qhp_cust_filter_name,["Clang $PACKAGE_VERSION"])
+ AC_SUBST(clang_doxygen_qhp_cust_filter_attrs,["Clang,$PACKAGE_VERSION"])
+ ;;
+
+ no|default)
+ AC_SUBST(llvm_doxygen_generate_qhp,[NO])
+ AC_SUBST(llvm_doxygen_qch_filename,[])
+ AC_SUBST(llvm_doxygen_qhp_namespace,[])
+ AC_SUBST(llvm_doxygen_qhelpgenerator_path,[])
+ AC_SUBST(llvm_doxygen_qhp_cust_filter_name,[])
+ AC_SUBST(llvm_doxygen_qhp_cust_filter_attrs,[])
+
+ AC_SUBST(clang_doxygen_generate_qhp,[NO])
+ AC_SUBST(clang_doxygen_qch_filename,[])
+ AC_SUBST(clang_doxygen_qhp_namespace,[])
+ AC_SUBST(clang_doxygen_qhelpgenerator_path,[])
+ AC_SUBST(clang_doxygen_qhp_cust_filter_name,["Clang $PACKAGE_VERSION"])
+ AC_SUBST(clang_doxygen_qhp_cust_filter_attrs,["Clang,$PACKAGE_VERSION"])
+ ;;
+
+ *)
+ AC_MSG_ERROR([Invalid setting for --enable-doxygen-qt-help. Use "yes" or "no"]) ;;
+esac
+
+dnl Allow disablement of threads
+AC_ARG_ENABLE(threads,
+ AS_HELP_STRING([--enable-threads],
+ [Use threads if available (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(LLVM_ENABLE_THREADS,[1]) ;;
+ no) AC_SUBST(LLVM_ENABLE_THREADS,[0]) ;;
+ default) AC_SUBST(LLVM_ENABLE_THREADS,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-threads. Use "yes" or "no"]) ;;
+esac
+AC_DEFINE_UNQUOTED([LLVM_ENABLE_THREADS],$LLVM_ENABLE_THREADS,
+ [Define if threads enabled])
+
+dnl Allow disablement of pthread.h
+AC_ARG_ENABLE(pthreads,
+ AS_HELP_STRING([--enable-pthreads],
+ [Use pthreads if available (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_PTHREADS,[1]) ;;
+ no) AC_SUBST(ENABLE_PTHREADS,[0]) ;;
+ default) AC_SUBST(ENABLE_PTHREADS,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-pthreads. Use "yes" or "no"]) ;;
+esac
+
+dnl Allow disablement of zlib
+AC_ARG_ENABLE(zlib,
+ AS_HELP_STRING([--enable-zlib],
+ [Use zlib for compression/decompression if
+ available (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(LLVM_ENABLE_ZLIB,[1]) ;;
+ no) AC_SUBST(LLVM_ENABLE_ZLIB,[0]) ;;
+ default) AC_SUBST(LLVM_ENABLE_ZLIB,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-zlib. Use "yes" or "no"]) ;;
+esac
+AC_DEFINE_UNQUOTED([LLVM_ENABLE_ZLIB],$LLVM_ENABLE_ZLIB,
+ [Define if zlib compression is available])
+
+dnl Allow building a shared library and linking tools against it.
+AC_ARG_ENABLE(shared,
+ AS_HELP_STRING([--enable-shared],
+ [Build a shared library and link tools against it (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_SHARED,[1]) ;;
+ no) AC_SUBST(ENABLE_SHARED,[0]) ;;
+ default) AC_SUBST(ENABLE_SHARED,[0]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-shared. Use "yes" or "no"]) ;;
+esac
+
+dnl Allow libstdc++ is embedded in LLVM.dll.
+AC_ARG_ENABLE(embed-stdcxx,
+ AS_HELP_STRING([--enable-embed-stdcxx],
+ [Build a shared library with embedded libstdc++ for Win32 DLL (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_EMBED_STDCXX,[1]) ;;
+ no) AC_SUBST(ENABLE_EMBED_STDCXX,[0]) ;;
+ default) AC_SUBST(ENABLE_EMBED_STDCXX,[0]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-embed-stdcxx. Use "yes" or "no"]) ;;
+esac
+
+dnl Enable support for showing backtraces.
+AC_ARG_ENABLE(backtraces, AS_HELP_STRING(
+ [--enable-backtraces],
+ [Enable embedding backtraces on crash (default is YES)]),
+ [case "$enableval" in
+ yes) llvm_cv_enable_backtraces="yes" ;;
+ no) llvm_cv_enable_backtraces="no" ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-backtraces. Use "yes" or "no"]) ;;
+ esac],
+ llvm_cv_enable_backtraces="yes")
+if test "$llvm_cv_enable_backtraces" = "yes" ; then
+ AC_DEFINE([ENABLE_BACKTRACES],[1],
+ [Define to 1 to enable backtraces, and to 0 otherwise.])
+fi
+
+dnl Enable installing platform specific signal handling overrides, for improved
+dnl CrashRecovery support or interaction with crash reporting software. This
+dnl support may be inappropriate for some clients embedding LLVM as a library.
+AC_ARG_ENABLE(crash-overrides, AS_HELP_STRING(
+ [--enable-crash-overrides],
+ [Enable crash handling overrides (default is YES)]),
+ [case "$enableval" in
+ yes) llvm_cv_enable_crash_overrides="yes" ;;
+ no) llvm_cv_enable_crash_overrides="no" ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-crash-overrides. Use "yes" or "no"]) ;;
+ esac],
+ llvm_cv_enable_crash_overrides="yes")
+if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
+ AC_DEFINE([ENABLE_CRASH_OVERRIDES],[1],
+ [Define to 1 to enable crash overrides, and to 0 otherwise.])
+fi
+
+dnl List all possible targets
+ALL_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore"
+AC_SUBST(ALL_TARGETS,$ALL_TARGETS)
+
+dnl Allow specific targets to be specified for building (or not)
+TARGETS_TO_BUILD=""
+AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
+ [Build specific host targets: all or target1,target2,... Valid targets are:
+ host, x86, x86_64, sparc, powerpc, arm64, arm, aarch64, mips, hexagon,
+ xcore, msp430, nvptx, systemz, r600, bpf, wasm, and cpp (default=all)]),,
+ enableval=all)
+if test "$enableval" = host-only ; then
+ enableval=host
+fi
+case "$enableval" in
+ all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
+ *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
+ case "$a_target" in
+ x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
+ powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
+ aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
+ arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
+ arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
+ bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
+ mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
+ msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
+ cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
+ hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
+ nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
+ systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
+ amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
+ r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
+ wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
+ host) case "$llvm_cv_target_arch" in
+ x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
+ PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
+ AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
+ ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
+ Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
+ MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
+ Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
+ NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
+ SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
+ WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
+ *) AC_MSG_ERROR([Can not set target to build]) ;;
+ esac ;;
+ *) AC_MSG_ERROR([Unrecognized target $a_target]) ;;
+ esac
+ done
+ ;;
+esac
+
+AC_ARG_ENABLE([experimental-targets],AS_HELP_STRING([--enable-experimental-targets],
+ [Build experimental host targets: disable or target1,target2,...
+ (default=disable)]),,
+ enableval=disable)
+
+if test ${enableval} != "disable"
+then
+ TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
+fi
+
+AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD)
+
+dnl Determine whether we are building LLVM support for the native architecture.
+dnl If so, define LLVM_NATIVE_ARCH to that LLVM target.
+for a_target in $TARGETS_TO_BUILD; do
+ if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_ARCH, $LLVM_NATIVE_ARCH,
+ [LLVM architecture name for the native architecture, if available])
+ LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
+ LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
+ LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
+ LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
+ LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
+ LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
+ fi
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_TARGET, $LLVM_NATIVE_TARGET,
+ [LLVM name for the native Target init function, if available])
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_TARGETINFO, $LLVM_NATIVE_TARGETINFO,
+ [LLVM name for the native TargetInfo init function, if available])
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_TARGETMC, $LLVM_NATIVE_TARGETMC,
+ [LLVM name for the native target MC init function, if available])
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_ASMPRINTER, $LLVM_NATIVE_ASMPRINTER,
+ [LLVM name for the native AsmPrinter init function, if available])
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_ASMPARSER, $LLVM_NATIVE_ASMPARSER,
+ [LLVM name for the native AsmParser init function, if available])
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
+ AC_DEFINE_UNQUOTED(LLVM_NATIVE_DISASSEMBLER, $LLVM_NATIVE_DISASSEMBLER,
+ [LLVM name for the native Disassembler init function, if available])
+ fi
+ fi
+done
+
+dnl Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
+dnl target feature def files.
+LLVM_ENUM_TARGETS=""
+LLVM_ENUM_ASM_PRINTERS=""
+LLVM_ENUM_ASM_PARSERS=""
+LLVM_ENUM_DISASSEMBLERS=""
+for target_to_build in $TARGETS_TO_BUILD; do
+ LLVM_ENUM_TARGETS="$LLVM_ENUM_TARGETS${as_nl}LLVM_TARGET($target_to_build)"
+ has_asm_printer=0
+ for asm_printer in ${llvm_srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp; do
+ if test -f "$asm_printer"; then
+ has_asm_printer=1
+ fi
+ done
+ if test "$has_asm_printer" = 1; then
+ LLVM_ENUM_ASM_PRINTERS="$LLVM_ENUM_ASM_PRINTERS${as_nl}LLVM_ASM_PRINTER($target_to_build)";
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/AsmParser/CMakeLists.txt ; then
+ LLVM_ENUM_ASM_PARSERS="$LLVM_ENUM_ASM_PARSERS${as_nl}LLVM_ASM_PARSER($target_to_build)";
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/Disassembler/CMakeLists.txt ; then
+ LLVM_ENUM_DISASSEMBLERS="$LLVM_ENUM_DISASSEMBLERS${as_nl}LLVM_DISASSEMBLER($target_to_build)";
+ fi
+done
+LLVM_ENUM_TARGETS="${LLVM_ENUM_TARGETS#${as_nl}}${as_nl}"
+LLVM_ENUM_ASM_PRINTERS="${LLVM_ENUM_ASM_PRINTERS#${as_nl}}${as_nl}"
+LLVM_ENUM_ASM_PARSERS="${LLVM_ENUM_ASM_PARSERS#${as_nl}}${as_nl}"
+LLVM_ENUM_DISASSEMBLERS="${LLVM_ENUM_DISASSEMBLERS#${as_nl}}${as_nl}"
+AC_SUBST(LLVM_ENUM_TARGETS)
+AC_SUBST(LLVM_ENUM_ASM_PRINTERS)
+AC_SUBST(LLVM_ENUM_ASM_PARSERS)
+AC_SUBST(LLVM_ENUM_DISASSEMBLERS)
+
+dnl Override the option to use for optimized builds.
+AC_ARG_WITH(optimize-option,
+ AS_HELP_STRING([--with-optimize-option],
+ [Select the compiler options to use for optimized builds]),,
+ withval=default)
+AC_MSG_CHECKING([optimization flags])
+case "$withval" in
+ default)
+ case "$llvm_cv_os_type" in
+ FreeBSD) optimize_option=-O2 ;;
+ MingW) optimize_option=-O2 ;;
+ *) optimize_option=-O3 ;;
+ esac ;;
+ *) optimize_option="$withval" ;;
+esac
+AC_SUBST(OPTIMIZE_OPTION,$optimize_option)
+AC_MSG_RESULT([$optimize_option])
+
+dnl Specify extra build options
+AC_ARG_WITH(extra-options,
+ AS_HELP_STRING([--with-extra-options],
+ [Specify additional options to compile LLVM with]),,
+ withval=default)
+case "$withval" in
+ default) EXTRA_OPTIONS= ;;
+ *) EXTRA_OPTIONS=$withval ;;
+esac
+AC_SUBST(EXTRA_OPTIONS,$EXTRA_OPTIONS)
+
+dnl Specify extra linker build options
+AC_ARG_WITH(extra-ld-options,
+ AS_HELP_STRING([--with-extra-ld-options],
+ [Specify additional options to link LLVM with]),,
+ withval=default)
+case "$withval" in
+ default) EXTRA_LD_OPTIONS= ;;
+ *) EXTRA_LD_OPTIONS=$withval ;;
+esac
+AC_SUBST(EXTRA_LD_OPTIONS,$EXTRA_LD_OPTIONS)
+
+dnl Allow specific bindings to be specified for building (or not)
+AC_ARG_ENABLE([bindings],AS_HELP_STRING([--enable-bindings],
+ [Build specific language bindings: all,auto,none,{binding-name} (default=auto)]),,
+ enableval=default)
+BINDINGS_TO_BUILD=""
+case "$enableval" in
+ yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
+ all ) BINDINGS_TO_BUILD="ocaml" ;;
+ none | no) BINDINGS_TO_BUILD="" ;;
+ *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
+ case "$a_binding" in
+ ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
+ *) AC_MSG_ERROR([Unrecognized binding $a_binding]) ;;
+ esac
+ done
+ ;;
+esac
+
+dnl Allow the ocaml libdir to be overridden. This could go in a configure
+dnl script for bindings/ocaml/configure, except that its auto value depends on
+dnl OCAMLC, which is found here to support tests.
+AC_ARG_WITH([ocaml-libdir],
+ [AS_HELP_STRING([--with-ocaml-libdir],
+ [Specify install location for ocaml bindings (default is stdlib)])],
+ [],
+ [withval=auto])
+case "$withval" in
+ auto) with_ocaml_libdir="$withval" ;;
+ /* | [[A-Za-z]]:[[\\/]]*) with_ocaml_libdir="$withval" ;;
+ *) AC_MSG_ERROR([Invalid path for --with-ocaml-libdir. Provide full path]) ;;
+esac
+
+AC_ARG_WITH(clang-srcdir,
+ AS_HELP_STRING([--with-clang-srcdir],
+ [Directory to the out-of-tree Clang source]),,
+ withval="-")
+case "$withval" in
+ -) clang_src_root="" ;;
+ /* | [[A-Za-z]]:[[\\/]]*) clang_src_root="$withval" ;;
+ *) clang_src_root="$ac_pwd/$withval" ;;
+esac
+AC_SUBST(CLANG_SRC_ROOT,[$clang_src_root])
+
+AC_ARG_WITH(clang-resource-dir,
+ AS_HELP_STRING([--with-clang-resource-dir],
+ [Relative directory from the Clang binary for resource files]),,
+ withval="")
+AC_DEFINE_UNQUOTED(CLANG_RESOURCE_DIR,"$withval",
+ [Relative directory for resource files])
+
+AC_ARG_WITH(c-include-dirs,
+ AS_HELP_STRING([--with-c-include-dirs],
+ [Colon separated list of directories clang will search for headers]),,
+ withval="")
+AC_DEFINE_UNQUOTED(C_INCLUDE_DIRS,"$withval",
+ [Directories clang will search for headers])
+
+AC_ARG_WITH(clang-default-openmp-runtime,
+ AS_HELP_STRING([--with-clang-default-openmp-runtime],
+ [The default OpenMP runtime for Clang.]),,
+ withval="libomp")
+
+AC_DEFINE_UNQUOTED(CLANG_ENABLE_ARCMT, 1, [Build ARCMT])
+AC_DEFINE_UNQUOTED(CLANG_ENABLE_OBJC_REWRITER, 1, [Build ObjC rewriter])
+AC_DEFINE_UNQUOTED(CLANG_ENABLE_STATIC_ANALYZER, 1, [Build Static analyzer])
+
+AC_DEFINE_UNQUOTED(ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER, 0,
+ [Enable the experimental new pass manager by default])
+AC_DEFINE_UNQUOTED(CLANG_OPENMP_NVPTX_DEFAULT_ARCH, "sm_35",
+ [Default architecture for OpenMP offloading to Nvidia GPUs.])
+
+AC_DEFINE_UNQUOTED(ENABLE_X86_RELAX_RELOCATIONS, 0,
+ [enable x86 relax relocations by default])
+AC_DEFINE_UNQUOTED(CLANG_DEFAULT_CXX_STDLIB, "",
+ [Default C++ stdlib to use.])
+AC_DEFINE_UNQUOTED(CLANG_DEFAULT_LINKER, "",
+ [Default linker to use (linker name or absolute path, empty for platform default)])
+AC_DEFINE_UNQUOTED(CLANG_DEFAULT_OBJCOPY, "objcopy",
+ [Default objcopy to use.])
+AC_DEFINE_UNQUOTED(CLANG_DEFAULT_RTLIB, "",
+ [Default runtime library to use.])
+AC_DEFINE_UNQUOTED(CLANG_DEFAULT_UNWINDLIB, "none",
+ [Default unwind library to use.])
+AC_DEFINE_UNQUOTED(CLANG_DEFAULT_OPENMP_RUNTIME, "libomp",
+ [Default OpenMP runtime used by -fopenmp.])
+AC_DEFINE_UNQUOTED(CLANG_LIBDIR_SUFFIX, "",
+ [Multilib suffix for libdir.])
+AC_DEFINE_UNQUOTED(DEFAULT_SYSROOT, "",
+ [Default <path> to all compiler invocations for --sysroot=<path>.])
+AC_DEFINE_UNQUOTED(GCC_INSTALL_PREFIX, "",
+ [Directory where gcc is installed.])
+
+dnl Allow linking of LLVM with GPLv3 binutils code.
+AC_ARG_WITH(binutils-include,
+ AS_HELP_STRING([--with-binutils-include],
+ [Specify path to binutils/include/ containing plugin-api.h file for gold plugin.]),,
+ withval=default)
+case "$withval" in
+ default) WITH_BINUTILS_INCDIR=default ;;
+ /* | [[A-Za-z]]:[[\\/]]*) WITH_BINUTILS_INCDIR=$withval ;;
+ *) AC_MSG_ERROR([Invalid path for --with-binutils-include. Provide full path]) ;;
+esac
+if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
+ AC_SUBST(BINUTILS_INCDIR,$WITH_BINUTILS_INCDIR)
+ if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
+ echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
+ AC_MSG_ERROR([Invalid path to directory containing plugin-api.h.]);
+ fi
+fi
+
+dnl Specify the URL where bug reports should be submitted.
+AC_ARG_WITH(bug-report-url,
+ AS_HELP_STRING([--with-bug-report-url],
+ [Specify the URL where bug reports should be submitted (default=http://llvm.org/bugs/)]),,
+ withval="http://llvm.org/bugs/")
+AC_DEFINE_UNQUOTED(BUG_REPORT_URL,"$withval",
+ [Bug report URL.])
+
+dnl --enable-terminfo: check whether the user wants to control use of terminfo:
+AC_ARG_ENABLE(terminfo,AS_HELP_STRING(
+ [--enable-terminfo],
+ [Query the terminfo database if available (default is YES)]),
+ [case "$enableval" in
+ yes) llvm_cv_enable_terminfo="yes" ;;
+ no) llvm_cv_enable_terminfo="no" ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-terminfo. Use "yes" or "no"]) ;;
+ esac],
+ llvm_cv_enable_terminfo="yes")
+case "$llvm_cv_enable_terminfo" in
+ yes) AC_SUBST(ENABLE_TERMINFO,[1]) ;;
+ no) AC_SUBST(ENABLE_TERMINFO,[0]) ;;
+esac
+
+dnl --enable-libedit: check whether the user wants to turn off libedit.
+AC_ARG_ENABLE(libedit,AS_HELP_STRING(
+ [--enable-libedit],
+ [Use libedit if available (default is YES)]),
+ [case "$enableval" in
+ yes) llvm_cv_enable_libedit="yes" ;;
+ no) llvm_cv_enable_libedit="no" ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-libedit. Use "yes" or "no"]) ;;
+ esac],
+ llvm_cv_enable_libedit="yes")
+
+dnl --enable-libffi : check whether the user wants to turn off libffi:
+AC_ARG_ENABLE(libffi,AS_HELP_STRING(
+ --enable-libffi,[Check for the presence of libffi (default is NO)]),
+ [case "$enableval" in
+ yes) llvm_cv_enable_libffi="yes" ;;
+ no) llvm_cv_enable_libffi="no" ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-libffi. Use "yes" or "no"]) ;;
+ esac],
+ llvm_cv_enable_libffi=no)
+
+AC_ARG_WITH(internal-prefix,
+ AS_HELP_STRING([--with-internal-prefix],
+ [Installation directory for internal files]),,
+ withval="")
+AC_SUBST(INTERNAL_PREFIX,[$withval])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 4: Check for programs we need and that they are the right version
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+dnl Check for the tools that the makefiles require
+AC_CHECK_GNU_MAKE
+AC_PROG_LN_S
+AC_PATH_PROG(NM, [nm], [nm])
+AC_PATH_PROG(CMP, [cmp], [cmp])
+AC_PATH_PROG(CP, [cp], [cp])
+AC_PATH_PROG(DATE, [date], [date])
+AC_PATH_PROG(FIND, [find], [find])
+AC_PATH_PROG(GREP, [grep], [grep])
+AC_PATH_PROG(MKDIR,[mkdir],[mkdir])
+AC_PATH_PROG(MV, [mv], [mv])
+AC_PROG_RANLIB
+AC_CHECK_TOOL(AR, ar, false)
+AC_PATH_PROG(RM, [rm], [rm])
+AC_PATH_PROG(SED, [sed], [sed])
+AC_PATH_PROG(TAR, [tar], [gtar])
+AC_PATH_PROG(BINPWD,[pwd], [pwd])
+
+dnl Looking for misc. graph plotting software
+AC_PATH_PROG(DOT, [dot], [echo dot])
+if test "$DOT" != "echo dot" ; then
+ dnl If we're targeting for mingw we should emit windows paths, not msys
+ if test "$llvm_cv_os_type" = "MingW" ; then
+ DOT=`echo $DOT | sed 's/^\/\([[A-Za-z]]\)\//\1:\//' `
+ fi
+fi
+
+dnl Find the install program
+AC_PROG_INSTALL
+dnl Prepend src dir to install path dir if it's a relative path
+dnl This is a hack for installs that take place in something other
+dnl than the top level.
+case "$INSTALL" in
+ [[\\/$]]* | ?:[[\\/]]* ) ;;
+ *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
+esac
+
+dnl Checks for documentation and testing tools that we can do without. If these
+dnl are not found then they are set to "true" which always succeeds but does
+dnl nothing. This just lets the build output show that we could have done
+dnl something if the tool was available.
+AC_PATH_PROG(BZIP2, [bzip2])
+AC_PATH_PROG(CAT, [cat])
+AC_PATH_PROG(DOXYGEN, [doxygen])
+AC_PATH_PROG(GROFF, [groff])
+AC_PATH_PROG(GZIPBIN, [gzip])
+AC_PATH_PROG(PDFROFF, [pdfroff])
+AC_PATH_PROG(ZIP, [zip])
+AC_PATH_PROG(GO, [go])
+AC_PATH_PROGS(OCAMLFIND, [ocamlfind])
+AC_PATH_PROGS(GAS, [gas as])
+
+dnl Get the version of the linker in use.
+AC_LINK_GET_VERSION
+
+dnl Determine whether the linker supports the --version-script option.
+AC_LINK_VERSION_SCRIPT
+
+AC_CHECK_HEADERS([errno.h])
+
+case "$llvm_cv_os_type" in
+ Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
+ Darwin) llvm_shlib_ext=.dylib ;;
+ *) llvm_shlib_ext=.so ;;
+esac
+
+AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$llvm_shlib_ext"],
+ [Define to the extension used for shared libraries, say, ".so".])
+
+AC_MSG_CHECKING([tool compatibility])
+
+dnl Ensure that compilation tools are GCC or a GNU compatible compiler such as
+dnl ICC; we use GCC specific options in the makefiles so the compiler needs
+dnl to support those options.
+dnl "icc" emits gcc signatures
+dnl "icc -no-gcc" emits no gcc signature BUT is still compatible
+ICC=no
+IXX=no
+case $CC in
+ icc*|icpc*)
+ ICC=yes
+ IXX=yes
+ ;;
+ *)
+ ;;
+esac
+
+if test "$GCC" != "yes" && test "$ICC" != "yes"
+then
+ AC_MSG_ERROR([gcc|icc required but not found])
+fi
+
+dnl Ensure that compilation tools are compatible with GCC extensions
+if test "$GXX" != "yes" && test "$IXX" != "yes"
+then
+ AC_MSG_ERROR([g++|clang++|icc required but not found])
+fi
+
+dnl Verify that GCC is version 3.0 or higher
+if test "$GCC" = "yes"
+then
+ AC_COMPILE_IFELSE(
+[
+ AC_LANG_SOURCE([[
+ #if !defined(__GNUC__) || __GNUC__ < 3
+ #error Unsupported GCC version
+ #endif
+ ]])
+],
+[], [AC_MSG_ERROR([gcc 3.x required, but you have a lower version])])
+fi
+
+dnl Check for GNU Make. We use its extensions, so don't build without it
+if test -z "$llvm_cv_gnu_make_command"
+then
+ AC_MSG_ERROR([GNU Make required but not found])
+fi
+
+dnl Tool compatibility is okay if we make it here.
+AC_MSG_RESULT([ok])
+
+dnl Check optional compiler flags.
+AC_MSG_CHECKING([optional compiler flags])
+case "$llvm_cv_cxx_compiler" in
+ clang)
+ CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros])
+ CXX_FLAG_CHECK(MISSING_FIELD_INITIALIZERS, [-Wmissing-field-initializers])
+ CXX_FLAG_CHECK(COVERED_SWITCH_DEFAULT, [-Wcovered-switch-default])
+ ;;
+ gcc)
+ dnl If we're using gcc check for -Wno-missing-field-initializers as gcc will warn
+ dnl on plain open brace initializations. clang won't so use -Wmissing-field-initializers
+ dnl there.
+ CXX_FLAG_CHECK(MISSING_FIELD_INITIALIZERS, [-Wno-missing-field-initializers])
+ CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros])
+ CXX_FLAG_CHECK(COVERED_SWITCH_DEFAULT, [-Wcovered-switch-default])
+ CXX_FLAG_CHECK(NO_MAYBE_UNINITIALIZED, [-Wno-maybe-uninitialized])
+ dnl gcc 4.7 introduced -Wmaybe-uninitialized to distinguish cases which are
+ dnl known to be uninitialized from cases which might be uninitialized. We
+ dnl still want to catch the first kind of errors.
+ if test -z "$NO_MAYBE_UNINITIALIZED"
+ then
+ CXX_FLAG_CHECK(NO_UNINITIALIZED, [-Wno-uninitialized])
+ fi
+ ;;
+ unknown)
+ ;;
+esac
+
+dnl Check for misbehaving -Wcomment (gcc-4.7 has this) and maybe add
+dnl -Wno-comment to the flags.
+no_comment=
+llvm_cv_old_cxxflags="$CXXFLAGS"
+CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
+AC_COMPILE_IFELSE(
+[
+ AC_LANG_SOURCE([[// Comment \o\
+// Another comment
+int main() { return 0; }
+ ]])
+],
+[
+ no_comment=-Wno-comment
+],
+[])
+AC_SUBST(NO_COMMENT, [$no_comment])
+CXXFLAGS="$llvm_cv_old_cxxflags"
+
+AC_MSG_RESULT([$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 5: Check for libraries
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+if test "$llvm_cv_os_type" = "MingW" ; then
+ AC_CHECK_LIB(psapi, main)
+ AC_CHECK_LIB(shell32, main)
+fi
+
+dnl dlopen() is required for plugin support.
+AC_SEARCH_LIBS(dlopen,dl,LLVM_DEFINE_SUBST([HAVE_DLOPEN],[1],
+ [Define if dlopen() is available on this platform.]),
+ AC_MSG_WARN([dlopen() not found - disabling plugin support]))
+
+dnl Search for the clock_gettime() function. Note that we rely on the POSIX
+dnl macros to detect whether clock_gettime is available, this just finds the
+dnl right libraries to link with.
+AC_SEARCH_LIBS(clock_gettime,rt)
+
+dnl The curses library is optional; used for querying terminal info
+if test "$llvm_cv_enable_terminfo" = "yes" ; then
+ dnl We need the has_color functionality in curses for it to be useful.
+ AC_SEARCH_LIBS(setupterm,tinfo terminfo curses ncurses ncursesw,
+ LLVM_DEFINE_SUBST([HAVE_TERMINFO],[1],
+ [Define if the setupterm() function is supported this platform.]))
+fi
+
+dnl The libedit library is optional; used by lib/LineEditor
+if test "$llvm_cv_enable_libedit" = "yes" ; then
+ AC_SEARCH_LIBS(el_init,edit,
+ AC_DEFINE([HAVE_LIBEDIT],[1],
+ [Define to 1 if you have the `edit' library (-ledit).]))
+fi
+
+dnl libffi is optional; used to call external functions from the interpreter
+if test "$llvm_cv_enable_libffi" = "yes" ; then
+ AC_SEARCH_LIBS(ffi_call,ffi,AC_DEFINE([HAVE_FFI_CALL],[1],
+ [Define if libffi is available on this platform.]),
+ AC_MSG_ERROR([libffi not found - configure without --enable-libffi to compile without it]))
+fi
+
+dnl mallinfo and mallctl are optional; the code can compile (minus features) without it
+AC_CHECK_FUNCS([mallinfo mallctl])
+
+dnl pthread locking functions are optional - but llvm will not be thread-safe
+dnl without locks.
+if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
+ AC_CHECK_LIB(pthread, pthread_mutex_init)
+ AC_SEARCH_LIBS(pthread_mutex_lock,pthread,
+ AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1],
+ [Have pthread_mutex_lock]))
+ AC_SEARCH_LIBS(pthread_rwlock_init,pthread,
+ AC_DEFINE([HAVE_PTHREAD_RWLOCK_INIT],[1],
+ [Have pthread_rwlock_init]))
+ AC_SEARCH_LIBS(pthread_getspecific,pthread,
+ AC_DEFINE([HAVE_PTHREAD_GETSPECIFIC],[1],
+ [Have pthread_getspecific]))
+fi
+
+dnl zlib is optional; used for compression/uncompression
+if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
+ AC_CHECK_LIB(z, compress2)
+fi
+
+dnl Allow OProfile support for JIT output.
+USE_OPROFILE=0
+AC_ARG_WITH(oprofile,
+ AS_HELP_STRING([--with-oprofile=<prefix>],
+ [Tell OProfile >= 0.9.4 how to symbolize JIT output]),
+ [
+ case "$withval" in
+ no) ;;
+ *)
+ USE_OPROFILE=1
+ ;;
+ esac
+ case "$withval" in
+ /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
+ no) llvm_cv_oppath= ;;
+ *) llvm_cv_oppath="${withval}/lib/oprofile"
+ CPPFLAGS="-I${withval}/include";;
+ esac
+ case $llvm_cv_os_type in
+ Linux)
+ if test -n "$llvm_cv_oppath" ; then
+ LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
+ dnl Work around http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537744:
+ dnl libbfd is not included properly in libopagent in some Debian
+ dnl versions. If libbfd isn't found at all, we assume opagent works
+ dnl anyway.
+ AC_SEARCH_LIBS(bfd_init, bfd, [], [])
+ AC_SEARCH_LIBS(op_open_agent, opagent, [], [
+ echo "Error! You need to have libopagent around."
+ exit 1
+ ])
+ AC_CHECK_HEADER([opagent.h], [], [
+ echo "Error! You need to have opagent.h around."
+ exit 1
+ ])
+ fi ;;
+ *)
+ AC_MSG_ERROR([OProfile support is available on Linux only.]) ;;
+ esac
+ ])
+AC_SUBST(USE_OPROFILE, [$USE_OPROFILE])
+AC_DEFINE_UNQUOTED([LLVM_USE_OPROFILE],$USE_OPROFILE,
+ [Define if we have the oprofile JIT-support library])
+
+dnl Enable support for Intel JIT Events API.
+AC_ARG_WITH(intel-jitevents,
+ AS_HELP_STRING([--with-intel-jitevents Notify Intel JIT profiling API of generated code]),
+ [
+ case "$withval" in
+ yes) AC_SUBST(USE_INTEL_JITEVENTS,[1]);;
+ no) AC_SUBST(USE_INTEL_JITEVENTS,[0]);;
+ *) AC_MSG_ERROR([Invalid setting for --with-intel-jitevents. Use "yes" or "no"]);;
+ esac
+
+ case $llvm_cv_os_type in
+ Linux|Win32|Cygwin|MingW) ;;
+ *) AC_MSG_ERROR([Intel JIT API support is available on Linux and Windows only.]);;
+ esac
+
+ case "$llvm_cv_target_arch" in
+ x86|x86_64) ;;
+ *) AC_MSG_ERROR([Target architecture $llvm_cv_target_arch does not support Intel JIT Events API.]);;
+ esac
+ ],
+ [
+ AC_SUBST(USE_INTEL_JITEVENTS, [0])
+ ])
+AC_DEFINE_UNQUOTED([LLVM_USE_INTEL_JITEVENTS],$USE_INTEL_JITEVENTS,
+ [Define if we have the Intel JIT API runtime support library])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 6: Check for header files
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+dnl First, use autoconf provided macros for specific headers that we need
+dnl We don't check for ancient stuff or things that are guaranteed to be there
+dnl by the C++ standard. We always use the <cfoo> versions of <foo.h> C headers.
+dnl Generally we're looking for POSIX headers.
+AC_HEADER_DIRENT
+AC_HEADER_STAT
+AC_HEADER_TIME
+
+AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h link.h])
+AC_CHECK_HEADERS([signal.h stdint.h termios.h unistd.h])
+AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h])
+AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])
+AC_CHECK_HEADERS([valgrind/valgrind.h])
+AC_CHECK_HEADERS([fenv.h])
+AC_CHECK_DECLS([arc4random], [], [], [[#include <stdlib.h>]])
+AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include <fenv.h>]])
+if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
+ AC_CHECK_HEADERS(pthread.h,
+ AC_SUBST(HAVE_PTHREAD, 1),
+ AC_SUBST(HAVE_PTHREAD, 0))
+else
+ AC_SUBST(HAVE_PTHREAD, 0)
+fi
+if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
+ AC_CHECK_HEADERS(zlib.h,
+ AC_SUBST(HAVE_LIBZ, 1),
+ AC_SUBST(HAVE_LIBZ, 0))
+else
+ AC_SUBST(HAVE_LIBZ, 0)
+fi
+
+dnl Try to find ffi.h.
+if test "$llvm_cv_enable_libffi" = "yes" ; then
+ AC_CHECK_HEADERS([ffi.h ffi/ffi.h])
+fi
+
+dnl Try to find Darwin specific crash reporting libraries.
+AC_CHECK_HEADERS([CrashReporterClient.h])
+
+dnl Try to find Darwin specific crash reporting global.
+AC_MSG_CHECKING([__crashreporter_info__])
+AC_LINK_IFELSE(
+[
+ AC_LANG_SOURCE([[
+ extern const char *__crashreporter_info__;
+ int main() {
+ __crashreporter_info__ = "test";
+ return 0;
+ }
+ ]])
+],
+[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([HAVE_CRASHREPORTER_INFO], [1], [can use __crashreporter_info__])
+],
+[
+ AC_MSG_RESULT([no])
+ AC_DEFINE([HAVE_CRASHREPORTER_INFO], [0], [can use __crashreporter_info__])
+])
+
+AC_DEFINE([HAVE_DIA_SDK], [0],
+ [Define to 1 if you have the DIA SDK installed, and to 0 if you don't.])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 7: Check for types and structures
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+AC_HUGE_VAL_CHECK
+AC_TYPE_PID_T
+AC_TYPE_SIZE_T
+AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[Define as the return type of signal handlers (`int' or `void').])
+AC_STRUCT_TM
+AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found]))
+AC_CHECK_TYPES([uint64_t],,
+ AC_CHECK_TYPES([u_int64_t],,
+ AC_MSG_ERROR([Type uint64_t or u_int64_t required but not found])))
+
+AC_CHECK_MEMBERS([struct stat.st_mtimensec.tv_nsec, struct stat.st_mtim.tv_nsec],,,
+ [#include <sys/stat.h>])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 8: Check for specific functions needed
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+AC_CHECK_FUNCS([_Unwind_Backtrace backtrace getcwd ])
+AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ])
+AC_CHECK_FUNCS([isatty mkdtemp mkstemp ])
+AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit ])
+AC_CHECK_FUNCS([strerror strerror_r setenv ])
+AC_CHECK_FUNCS([strtoll sysconf malloc_zone_statistics ])
+AC_CHECK_FUNCS([sigaltstack writev posix_fallocate])
+AC_CHECK_FUNCS([futimes futimens _chsize_s])
+
+dnl Check for arc4random accessible via AC_INCLUDES_DEFAULT.
+AC_CHECK_DECLS([arc4random])
+
+dnl Check the declaration "Secure API" on Windows environments.
+AC_CHECK_DECLS([strerror_s])
+
+dnl Check symbols in libgcc.a for JIT on Mingw.
+if test "$llvm_cv_os_type" = "MingW" ; then
+ AC_CHECK_LIB(gcc,_alloca,AC_DEFINE([HAVE__ALLOCA],[1],[Have host's _alloca]))
+ AC_CHECK_LIB(gcc,__alloca,AC_DEFINE([HAVE___ALLOCA],[1],[Have host's __alloca]))
+ AC_CHECK_LIB(gcc,__chkstk,AC_DEFINE([HAVE___CHKSTK],[1],[Have host's __chkstk]))
+ AC_CHECK_LIB(gcc,__chkstk_ms,AC_DEFINE([HAVE___CHKSTK_MS],[1],[Have host's __chkstk_ms]))
+ AC_CHECK_LIB(gcc,___chkstk,AC_DEFINE([HAVE____CHKSTK],[1],[Have host's ___chkstk]))
+ AC_CHECK_LIB(gcc,___chkstk_ms,AC_DEFINE([HAVE____CHKSTK_MS],[1],[Have host's ___chkstk_ms]))
+
+ AC_CHECK_LIB(gcc,__ashldi3,AC_DEFINE([HAVE___ASHLDI3],[1],[Have host's __ashldi3]))
+ AC_CHECK_LIB(gcc,__ashrdi3,AC_DEFINE([HAVE___ASHRDI3],[1],[Have host's __ashrdi3]))
+ AC_CHECK_LIB(gcc,__divdi3,AC_DEFINE([HAVE___DIVDI3],[1],[Have host's __divdi3]))
+ AC_CHECK_LIB(gcc,__fixdfdi,AC_DEFINE([HAVE___FIXDFDI],[1],[Have host's __fixdfdi]))
+ AC_CHECK_LIB(gcc,__fixsfdi,AC_DEFINE([HAVE___FIXSFDI],[1],[Have host's __fixsfdi]))
+ AC_CHECK_LIB(gcc,__floatdidf,AC_DEFINE([HAVE___FLOATDIDF],[1],[Have host's __floatdidf]))
+ AC_CHECK_LIB(gcc,__lshrdi3,AC_DEFINE([HAVE___LSHRDI3],[1],[Have host's __lshrdi3]))
+ AC_CHECK_LIB(gcc,__moddi3,AC_DEFINE([HAVE___MODDI3],[1],[Have host's __moddi3]))
+ AC_CHECK_LIB(gcc,__udivdi3,AC_DEFINE([HAVE___UDIVDI3],[1],[Have host's __udivdi3]))
+ AC_CHECK_LIB(gcc,__umoddi3,AC_DEFINE([HAVE___UMODDI3],[1],[Have host's __umoddi3]))
+
+ AC_CHECK_LIB(gcc,__main,AC_DEFINE([HAVE___MAIN],[1],[Have host's __main]))
+ AC_CHECK_LIB(gcc,__cmpdi2,AC_DEFINE([HAVE___CMPDI2],[1],[Have host's __cmpdi2]))
+fi
+
+dnl atomic builtins are required for threading support.
+AC_MSG_CHECKING(for GCC atomic builtins)
+dnl Since we'll be using these atomic builtins in C++ files we should test
+dnl the C++ compiler.
+AC_LANG_PUSH([C++])
+AC_LINK_IFELSE(
+[
+ AC_LANG_SOURCE([[
+ int main() {
+ volatile unsigned long val = 1;
+ __sync_synchronize();
+ __sync_val_compare_and_swap(&val, 1, 0);
+ __sync_add_and_fetch(&val, 1);
+ __sync_sub_and_fetch(&val, 1);
+ return 0;
+ }
+ ]])
+],
+[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([LLVM_HAS_ATOMICS], [1], [Has gcc/MSVC atomic intrinsics])
+],
+[
+ AC_MSG_RESULT([no])
+ AC_DEFINE([LLVM_HAS_ATOMICS], [0], [Has gcc/MSVC atomic intrinsics])
+ AC_MSG_WARN([LLVM will be built thread-unsafe because atomic builtins are missing])
+])
+AC_LANG_POP([C++])
+
+AC_LANG_PUSH([C++])
+AC_LINK_IFELSE(
+[
+ AC_LANG_SOURCE([[
+#include <type_traits>
+struct T { int val; };
+static_assert(std::is_trivially_copyable<T>::value, "ok");
+int main() { return 0; }
+ ]])
+],
+[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([HAVE_STD_IS_TRIVIALLY_COPYABLE], [1], [Has usable std::is_trivially_copyable])
+],
+[
+ AC_MSG_RESULT([no])
+ AC_DEFINE([HAVE_STD_IS_TRIVIALLY_COPYABLE], [0], [Has usable std::is_trivially_copyable])
+])
+AC_LANG_POP([C++])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 9: Additional checks, variables, etc.
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+dnl Handle 32-bit linux systems running a 64-bit kernel.
+dnl This has to come after section 4 because it invokes the compiler.
+if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
+ AC_IS_LINUX_MIXED
+ if test "$llvm_cv_linux_mixed" = "yes"; then
+ llvm_cv_target_arch="x86"
+ ARCH="x86"
+ fi
+fi
+
+dnl Propagate the shared library extension that the libltdl checks did to
+dnl the Makefiles so we can use it there too
+AC_SUBST(SHLIBEXT,$llvm_shlib_ext)
+
+dnl Translate the various configuration directories and other basic
+dnl information into substitutions that will end up in Makefile.config.in
+dnl that these configured values can be used by the makefiles
+if test "${prefix}" = "NONE" ; then
+ prefix="/usr/local"
+fi
+eval LLVM_PREFIX="${prefix}";
+
+dnl Place the various directories into the config.h file as #defines so that we
+dnl can know about the installation paths within LLVM.
+AC_DEFINE_UNQUOTED(LLVM_PREFIX,"$LLVM_PREFIX",
+ [Installation prefix directory])
+AC_DEFINE_UNQUOTED(LLVM_HOST_TRIPLE, "$host",
+ [Host triple LLVM will be executed on])
+AC_DEFINE_UNQUOTED(LLVM_DEFAULT_TARGET_TRIPLE, "$target",
+ [Target triple LLVM will generate code for by default])
+
+dnl Determine which bindings to build.
+if test "$BINDINGS_TO_BUILD" = auto ; then
+ BINDINGS_TO_BUILD=""
+ if test "x$OCAMLFIND" != x ; then
+ BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
+ fi
+ if test "x$GO" != x ; then
+ if $GO run ${srcdir}/bindings/go/conftest.go ; then
+ BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
+ fi
+ fi
+fi
+AC_SUBST(BINDINGS_TO_BUILD,$BINDINGS_TO_BUILD)
+
+dnl Do any work necessary to ensure that bindings have what they need.
+binding_prereqs_failed=0
+for a_binding in $BINDINGS_TO_BUILD ; do
+ case "$a_binding" in
+ ocaml)
+ if test "x$OCAMLFIND" = x ; then
+ AC_MSG_WARN([--enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind])
+ binding_prereqs_failed=1
+ fi
+
+ if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
+ HAVE_OCAMLOPT=1
+ else
+ HAVE_OCAMLOPT=0
+ fi
+ AC_SUBST(HAVE_OCAMLOPT)
+
+ if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
+ AC_MSG_WARN([--enable-bindings=ocaml specified, but ctypes is not installed])
+ binding_prereqs_failed=1
+ fi
+
+ if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
+ HAVE_OCAML_OUNIT=1
+ else
+ HAVE_OCAML_OUNIT=0
+ AC_MSG_WARN([--enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run])
+ dnl oUnit is optional!
+ fi
+ AC_SUBST(HAVE_OCAML_OUNIT)
+
+ if test "x$with_ocaml_libdir" != xauto ; then
+ AC_SUBST(OCAML_LIBDIR,$with_ocaml_libdir)
+ else
+ ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
+ if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
+ then
+ # ocaml stdlib is beneath our prefix; use stdlib
+ AC_SUBST(OCAML_LIBDIR,$ocaml_stdlib)
+ else
+ # ocaml stdlib is outside our prefix; use libdir/ocaml
+ AC_SUBST(OCAML_LIBDIR,${prefix}/lib/ocaml)
+ fi
+ fi
+ ;;
+ go)
+ if test "x$GO" = x ; then
+ AC_MSG_WARN([--enable-bindings=go specified, but go not found. Try configure GO=/path/to/go])
+ binding_prereqs_failed=1
+ else
+ if $GO run ${srcdir}/bindings/go/conftest.go ; then
+ :
+ else
+ AC_MSG_WARN([--enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go])
+ binding_prereqs_failed=1
+ fi
+ fi
+ ;;
+ esac
+done
+if test "$binding_prereqs_failed" = 1 ; then
+ AC_MSG_ERROR([Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings.])
+fi
+
+dnl Determine whether the compiler supports -fvisibility-inlines-hidden.
+AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
+
+dnl Determine linker rpath flag
+if test "$llvm_cv_link_use_r" = "yes" ; then
+ RPATH="-Wl,-R"
+else
+ RPATH="-Wl,-rpath"
+fi
+AC_SUBST(RPATH)
+
+dnl Determine linker rdynamic flag
+if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
+ RDYNAMIC="-rdynamic"
+else
+ RDYNAMIC=""
+fi
+AC_SUBST(RDYNAMIC)
+
+AC_DEFINE([LLVM_ENABLE_ABI_BREAKING_CHECKS],[0],
+ [Define to 1 to checks for ABI changes, and to 0 otherwise.])
+AC_DEFINE_UNQUOTED([BACKTRACE_HEADER], [<execinfo.h>], [Header containing the backtrace function])
+
+AC_DEFINE([LLVM_ENABLE_CRASH_DUMPS], [0], [Enable crash memory dumps (Windows-only)])
+AC_DEFINE([LLVM_SUPPORT_XCODE_SIGNPOSTS], [0], [Enable support for Xcode signposts (disabled)])
+
+dnl===-----------------------------------------------------------------------===
+dnl===
+dnl=== SECTION 10: Specify the output files and generate it
+dnl===
+dnl===-----------------------------------------------------------------------===
+
+dnl Configure header files
+dnl WARNING: dnl If you add or remove any of the following config headers, then
+dnl you MUST also update Makefile so that the variable FilesToConfig
+dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the
+dnl files can be updated automatically when their *.in sources change.
+AC_CONFIG_HEADERS([include/llvm/Config/config.h include/llvm/Config/llvm-config.h include/llvm/Config/abi-breaking.h])
+AH_TOP([#ifndef CONFIG_H
+#define CONFIG_H
+
+/* Exported configuration */
+#include "llvm/Config/llvm-config.h"])
+AH_BOTTOM([#endif])
+
+AC_CONFIG_FILES([include/llvm/Config/Targets.def])
+AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def])
+AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def])
+AC_CONFIG_FILES([include/llvm/Config/Disassemblers.def])
+AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h])
+
+dnl Configure clang, if present
+if test "${clang_src_root}" = ""; then
+ clang_src_root="$srcdir/tools/clang"
+fi
+if test -f ${clang_src_root}/README.txt; then
+ AC_CONFIG_HEADERS([include/clang/Config/config.h])
+fi
+
+dnl Finally, crank out the output
+AC_OUTPUT
diff --git a/external/apache2/llvm/autoconf/autoconf/install-sh b/external/apache2/llvm/autoconf/autoconf/install-sh
new file mode 100755
index 00000000000..dd97db7aa1c
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/install-sh
@@ -0,0 +1,322 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2004-09-10.20
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch. It can only install one file at a time, a restriction
+# shared with many OS's install programs.
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+chmodcmd="$chmodprog 0755"
+chowncmd=
+chgrpcmd=
+stripcmd=
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=
+dst=
+dir_arg=
+dstarg=
+no_target_directory=
+
+usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+-c (ignored)
+-d create directories instead of installing files.
+-g GROUP $chgrpprog installed files to GROUP.
+-m MODE $chmodprog installed files to MODE.
+-o USER $chownprog installed files to USER.
+-s $stripprog installed files.
+-t DIRECTORY install into DIRECTORY.
+-T report an error if DSTFILE is a directory.
+--help display this help and exit.
+--version display version info and exit.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
+"
+
+while test -n "$1"; do
+ case $1 in
+ -c) shift
+ continue;;
+
+ -d) dir_arg=true
+ shift
+ continue;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift
+ shift
+ continue;;
+
+ --help) echo "$usage"; exit 0;;
+
+ -m) chmodcmd="$chmodprog $2"
+ shift
+ shift
+ continue;;
+
+ -o) chowncmd="$chownprog $2"
+ shift
+ shift
+ continue;;
+
+ -s) stripcmd=$stripprog
+ shift
+ continue;;
+
+ -t) dstarg=$2
+ shift
+ shift
+ continue;;
+
+ -T) no_target_directory=true
+ shift
+ continue;;
+
+ --version) echo "$0 $scriptversion"; exit 0;;
+
+ *) # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ test -n "$dir_arg$dstarg" && break
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dstarg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dstarg"
+ shift # fnord
+ fi
+ shift # arg
+ dstarg=$arg
+ done
+ break;;
+ esac
+done
+
+if test -z "$1"; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src ;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ src=
+
+ if test -d "$dst"; then
+ mkdircmd=:
+ chmodcmd=
+ else
+ mkdircmd=$mkdirprog
+ fi
+ else
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dstarg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dstarg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst ;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dstarg: Is a directory" >&2
+ exit 1
+ fi
+ dst=$dst/`basename "$src"`
+ fi
+ fi
+
+ # This sed command emulates the dirname command.
+ dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+ # Make sure that the destination directory exists.
+
+ # Skip lots of stat calls in the usual case.
+ if test ! -d "$dstdir"; then
+ defaultIFS='
+ '
+ IFS="${IFS-$defaultIFS}"
+
+ oIFS=$IFS
+ # Some sh's can't handle IFS=/ for some reason.
+ IFS='%'
+ set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
+ IFS=$oIFS
+
+ pathcomp=
+
+ while test $# -ne 0 ; do
+ pathcomp=$pathcomp$1
+ shift
+ if test ! -d "$pathcomp"; then
+ $mkdirprog "$pathcomp"
+ # mkdir can fail with a `File exist' error in case several
+ # install-sh are creating the directory concurrently. This
+ # is OK.
+ test -d "$pathcomp" || exit
+ fi
+ pathcomp=$pathcomp/
+ done
+ fi
+
+ if test -n "$dir_arg"; then
+ $doit $mkdircmd "$dst" \
+ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
+ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
+ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
+ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
+
+ else
+ dstfile=`basename "$dst"`
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Copy the file name to the temp name.
+ $doit $cpprog "$src" "$dsttmp" &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
+ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
+ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
+ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
+
+ # Now rename the file to the real destination.
+ { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
+ || {
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ if test -f "$dstdir/$dstfile"; then
+ $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
+ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
+ || {
+ echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
+ (exit 1); exit
+ }
+ else
+ :
+ fi
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
+ }
+ }
+ fi || { (exit 1); exit; }
+done
+
+# The final little trick to "correctly" pass the exit status to the exit trap.
+{
+ (exit 0); exit
+}
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/build_exeext.m4 b/external/apache2/llvm/autoconf/autoconf/m4/build_exeext.m4
new file mode 100644
index 00000000000..1bdecc1ba57
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/build_exeext.m4
@@ -0,0 +1,42 @@
+# Check for the extension used for executables on build platform.
+# This is necessary for cross-compiling where the build platform
+# may differ from the host platform.
+AC_DEFUN([AC_BUILD_EXEEXT],
+[
+AC_MSG_CHECKING([for executable suffix on build platform])
+AC_CACHE_VAL(ac_cv_build_exeext,
+[if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
+ ac_cv_build_exeext=.exe
+else
+ ac_build_prefix=${build_alias}-
+
+ AC_CHECK_PROG(BUILD_CC, ${ac_build_prefix}gcc, ${ac_build_prefix}gcc)
+ if test -z "$BUILD_CC"; then
+ AC_CHECK_PROG(BUILD_CC, gcc, gcc)
+ if test -z "$BUILD_CC"; then
+ AC_CHECK_PROG(BUILD_CC, cc, cc, , , /usr/ucb/cc)
+ fi
+ fi
+ test -z "$BUILD_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
+ ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AS_MESSAGE_LOG_FD'
+ rm -f conftest*
+ echo 'int main () { return 0; }' > conftest.$ac_ext
+ ac_cv_build_exeext=
+ if AC_TRY_EVAL(ac_build_link); then
+ for file in conftest.*; do
+ case $file in
+ *.c | *.o | *.obj | *.dSYM) ;;
+ *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
+ esac
+ done
+ else
+ AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.])
+ fi
+ rm -f conftest*
+ test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
+fi])
+BUILD_EXEEXT=""
+test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
+AC_MSG_RESULT(${ac_cv_build_exeext})
+ac_build_exeext=$BUILD_EXEEXT
+AC_SUBST(BUILD_EXEEXT)])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/c_printf_a.m4 b/external/apache2/llvm/autoconf/autoconf/m4/c_printf_a.m4
new file mode 100644
index 00000000000..61bac8c9dd1
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/c_printf_a.m4
@@ -0,0 +1,31 @@
+#
+# Determine if the printf() functions have the %a format character.
+# This is modified from:
+# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_slist.html
+AC_DEFUN([AC_C_PRINTF_A],
+[AC_CACHE_CHECK([if printf has the %a format character],[llvm_cv_c_printf_a],
+[AC_LANG_PUSH([C])
+ AC_RUN_IFELSE([
+ AC_LANG_PROGRAM([[
+#include <stdio.h>
+#include <stdlib.h>
+]],[[
+volatile double A, B;
+char Buffer[100];
+A = 1;
+A /= 10.0;
+sprintf(Buffer, "%a", A);
+B = atof(Buffer);
+if (A != B)
+ return (1);
+if (A != 0x1.999999999999ap-4)
+ return (1);
+return (0);]])],
+ llvm_cv_c_printf_a=yes,
+ llvmac_cv_c_printf_a=no,
+ llvmac_cv_c_printf_a=no)
+ AC_LANG_POP([C])])
+ if test "$llvm_cv_c_printf_a" = "yes"; then
+ AC_DEFINE([HAVE_PRINTF_A],[1],[Define to have the %a format string])
+ fi
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/check_gnu_make.m4 b/external/apache2/llvm/autoconf/autoconf/m4/check_gnu_make.m4
new file mode 100644
index 00000000000..7355e1c85bb
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/check_gnu_make.m4
@@ -0,0 +1,26 @@
+#
+# Check for GNU Make. This is originally from
+# http://www.gnu.org/software/ac-archive/htmldoc/check_gnu_make.html
+#
+AC_DEFUN([AC_CHECK_GNU_MAKE],
+[AC_CACHE_CHECK([for GNU make],[llvm_cv_gnu_make_command],
+dnl Search all the common names for GNU make
+[llvm_cv_gnu_make_command=''
+ for a in "$MAKE" make gmake gnumake ; do
+ if test -z "$a" ; then continue ; fi ;
+ if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
+ then
+ llvm_cv_gnu_make_command=$a ;
+ break;
+ fi
+ done])
+dnl If there was a GNU version, then set @ifGNUmake@ to the empty string,
+dnl '#' otherwise
+ if test "x$llvm_cv_gnu_make_command" != "x" ; then
+ ifGNUmake='' ;
+ else
+ ifGNUmake='#' ;
+ AC_MSG_RESULT("Not found");
+ fi
+ AC_SUBST(ifGNUmake)
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/config_makefile.m4 b/external/apache2/llvm/autoconf/autoconf/m4/config_makefile.m4
new file mode 100644
index 00000000000..b1eaffdcd85
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/config_makefile.m4
@@ -0,0 +1,9 @@
+#
+# Configure a Makefile without clobbering it if it exists and is not out of
+# date. This macro is unique to LLVM.
+#
+AC_DEFUN([AC_CONFIG_MAKEFILE],
+[AC_CONFIG_COMMANDS($1,
+ [${llvm_src}/autoconf/mkinstalldirs `dirname $1`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/$1 $1])
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/config_project.m4 b/external/apache2/llvm/autoconf/autoconf/m4/config_project.m4
new file mode 100644
index 00000000000..eea7faf165c
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/config_project.m4
@@ -0,0 +1,14 @@
+#
+# Provide the arguments and other processing needed for an LLVM project
+#
+AC_DEFUN([LLVM_CONFIG_PROJECT],
+ [AC_ARG_WITH([llvmsrc],
+ AS_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]),
+ [llvm_src="$withval"],[llvm_src="]$1["])
+ AC_SUBST(LLVM_SRC,$llvm_src)
+ AC_ARG_WITH([llvmobj],
+ AS_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),
+ [llvm_obj="$withval"],[llvm_obj="]$2["])
+ AC_SUBST(LLVM_OBJ,$llvm_obj)
+ AC_CONFIG_COMMANDS([setup],,[llvm_src="${LLVM_SRC}"])
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/cxx_flag_check.m4 b/external/apache2/llvm/autoconf/autoconf/m4/cxx_flag_check.m4
new file mode 100644
index 00000000000..4b097445501
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/cxx_flag_check.m4
@@ -0,0 +1,2 @@
+AC_DEFUN([CXX_FLAG_CHECK],
+ [AC_SUBST($1, `$CXX -Werror patsubst($2, [^-Wno-], [-W]) -fsyntax-only -xc /dev/null 2>/dev/null && echo $2`)])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/define_subst.m4 b/external/apache2/llvm/autoconf/autoconf/m4/define_subst.m4
new file mode 100644
index 00000000000..c66333f2fb6
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/define_subst.m4
@@ -0,0 +1,5 @@
+# Combine AC_DEFINE and AC_SUBST
+AC_DEFUN([LLVM_DEFINE_SUBST], [
+AC_DEFINE([$1], [$2], [$3])
+AC_SUBST([$1], ['$2'])
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/find_std_program.m4 b/external/apache2/llvm/autoconf/autoconf/m4/find_std_program.m4
new file mode 100644
index 00000000000..c789df8e641
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/find_std_program.m4
@@ -0,0 +1,118 @@
+dnl Check for a standard program that has a bin, include and lib directory
+dnl
+dnl Parameters:
+dnl $1 - prefix directory to check
+dnl $2 - program name to check
+dnl $3 - header file to check
+dnl $4 - library file to check
+AC_DEFUN([CHECK_STD_PROGRAM],
+[m4_define([allcapsname],translit($2,a-z,A-Z))
+if test -n "$1" -a -d "$1" -a -n "$2" -a -d "$1/bin" -a -x "$1/bin/$2" ; then
+ AC_SUBST([USE_]allcapsname(),["USE_]allcapsname()[ = 1"])
+ AC_SUBST(allcapsname(),[$1/bin/$2])
+ AC_SUBST(allcapsname()[_BIN],[$1/bin])
+ AC_SUBST(allcapsname()[_DIR],[$1])
+ if test -n "$3" -a -d "$1/include" -a -f "$1/include/$3" ; then
+ AC_SUBST(allcapsname()[_INC],[$1/include])
+ fi
+ if test -n "$4" -a -d "$1/lib" -a -f "$1/lib/$4" ; then
+ AC_SUBST(allcapsname()[_LIB],[$1/lib])
+ fi
+fi
+])
+
+dnl Find a program via --with options, in the path, or well known places
+dnl
+dnl Parameters:
+dnl $1 - program's executable name
+dnl $2 - header file name to check (optional)
+dnl $3 - library file name to check (optional)
+dnl $4 - alternate (long) name for the program
+AC_DEFUN([FIND_STD_PROGRAM],
+[m4_define([allcapsname],translit($1,a-z,A-Z))
+m4_define([stdprog_long_name],ifelse($4,,translit($1,[ !@#$%^&*()-+={}[]:;"',./?],[-]),translit($4,[ !@#$%^&*()-+={}[]:;"',./?],[-])))
+AC_MSG_CHECKING([for ]stdprog_long_name()[ bin/lib/include locations])
+AC_ARG_WITH($1,
+ AS_HELP_STRING([--with-]stdprog_long_name()[=DIR],
+ [Specify that the ]stdprog_long_name()[ install prefix is DIR]),
+ $1[pfxdir=$withval],$1[pfxdir=nada])
+AC_ARG_WITH($1[-bin],
+ AS_HELP_STRING([--with-]stdprog_long_name()[-bin=DIR],
+ [Specify that the ]stdprog_long_name()[ binary is in DIR]),
+ $1[bindir=$withval],$1[bindir=nada])
+AC_ARG_WITH($1[-lib],
+ AS_HELP_STRING([--with-]stdprog_long_name()[-lib=DIR],
+ [Specify that ]stdprog_long_name()[ libraries are in DIR]),
+ $1[libdir=$withval],$1[libdir=nada])
+AC_ARG_WITH($1[-inc],
+ AS_HELP_STRING([--with-]stdprog_long_name()[-inc=DIR],
+ [Specify that the ]stdprog_long_name()[ includes are in DIR]),
+ $1[incdir=$withval],$1[incdir=nada])
+eval pfxval=\$\{$1pfxdir\}
+eval binval=\$\{$1bindir\}
+eval incval=\$\{$1incdir\}
+eval libval=\$\{$1libdir\}
+if test "${pfxval}" != "nada" ; then
+ CHECK_STD_PROGRAM(${pfxval},$1,$2,$3)
+elif test "${binval}" != "nada" ; then
+ if test "${libval}" != "nada" ; then
+ if test "${incval}" != "nada" ; then
+ if test -d "${binval}" ; then
+ if test -d "${incval}" ; then
+ if test -d "${libval}" ; then
+ AC_SUBST(allcapsname(),${binval}/$1)
+ AC_SUBST(allcapsname()[_BIN],${binval})
+ AC_SUBST(allcapsname()[_INC],${incval})
+ AC_SUBST(allcapsname()[_LIB],${libval})
+ AC_SUBST([USE_]allcapsname(),["USE_]allcapsname()[ = 1"])
+ AC_MSG_RESULT([found via --with options])
+ else
+ AC_MSG_RESULT([failed])
+ AC_MSG_ERROR([The --with-]$1[-libdir value must be a directory])
+ fi
+ else
+ AC_MSG_RESULT([failed])
+ AC_MSG_ERROR([The --with-]$1[-incdir value must be a directory])
+ fi
+ else
+ AC_MSG_RESULT([failed])
+ AC_MSG_ERROR([The --with-]$1[-bindir value must be a directory])
+ fi
+ else
+ AC_MSG_RESULT([failed])
+ AC_MSG_ERROR([The --with-]$1[-incdir option must be specified])
+ fi
+ else
+ AC_MSG_RESULT([failed])
+ AC_MSG_ERROR([The --with-]$1[-libdir option must be specified])
+ fi
+else
+ tmppfxdir=`which $1 2>&1`
+ if test -n "$tmppfxdir" -a -d "${tmppfxdir%*$1}" -a \
+ -d "${tmppfxdir%*$1}/.." ; then
+ tmppfxdir=`cd "${tmppfxdir%*$1}/.." ; pwd`
+ CHECK_STD_PROGRAM($tmppfxdir,$1,$2,$3)
+ AC_MSG_RESULT([found in PATH at ]$tmppfxdir)
+ else
+ checkresult="yes"
+ eval checkval=\$\{"USE_"allcapsname()\}
+ CHECK_STD_PROGRAM([/usr],$1,$2,$3)
+ if test -z "${checkval}" ; then
+ CHECK_STD_PROGRAM([/usr/local],$1,$2,$3)
+ if test -z "${checkval}" ; then
+ CHECK_STD_PROGRAM([/sw],$1,$2,$3)
+ if test -z "${checkval}" ; then
+ CHECK_STD_PROGRAM([/opt],$1,$2,$3)
+ if test -z "${checkval}" ; then
+ CHECK_STD_PROGRAM([/],$1,$2,$3)
+ if test -z "${checkval}" ; then
+ checkresult="no"
+ fi
+ fi
+ fi
+ fi
+ fi
+ AC_MSG_RESULT($checkresult)
+ fi
+fi
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/func_mmap_file.m4 b/external/apache2/llvm/autoconf/autoconf/m4/func_mmap_file.m4
new file mode 100644
index 00000000000..372c87fbe5c
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/func_mmap_file.m4
@@ -0,0 +1,26 @@
+#
+# Check for the ability to mmap a file.
+#
+AC_DEFUN([AC_FUNC_MMAP_FILE],
+[AC_CACHE_CHECK(for mmap of files,
+ac_cv_func_mmap_file,
+[ AC_LANG_PUSH([C])
+ AC_RUN_IFELSE([
+ AC_LANG_PROGRAM([[
+#include <sys/types.h>
+#include <sys/mman.h>
+#include <fcntl.h>
+]],[[
+ int fd;
+ fd = creat ("foo",0777);
+ fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
+ unlink ("foo");
+ return (fd != (int) MAP_FAILED);]])],
+ [ac_cv_func_mmap_file=yes],[ac_cv_func_mmap_file=no],[ac_cv_func_mmap_file=no])
+ AC_LANG_POP([C])
+])
+if test "$ac_cv_func_mmap_file" = yes; then
+ AC_DEFINE([HAVE_MMAP_FILE],[],[Define if mmap() can map files into memory])
+ AC_SUBST(MMAP_FILE,[yes])
+fi
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/header_mmap_anonymous.m4 b/external/apache2/llvm/autoconf/autoconf/m4/header_mmap_anonymous.m4
new file mode 100644
index 00000000000..2270d29557b
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/header_mmap_anonymous.m4
@@ -0,0 +1,21 @@
+#
+# Check for anonymous mmap macros. This is modified from
+# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_slist.html
+#
+AC_DEFUN([AC_HEADER_MMAP_ANONYMOUS],
+[AC_CACHE_CHECK(for MAP_ANONYMOUS vs. MAP_ANON,
+ac_cv_header_mmap_anon,
+[ AC_LANG_PUSH([C])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#include <sys/mman.h>
+#include <unistd.h>
+#include <fcntl.h>]],
+ [[mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);]])],
+ ac_cv_header_mmap_anon=yes,
+ ac_cv_header_mmap_anon=no)
+ AC_LANG_POP([C])
+])
+if test "$ac_cv_header_mmap_anon" = yes; then
+ AC_DEFINE([HAVE_MMAP_ANONYMOUS],[1],[Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if it uses MAP_ANON])
+fi
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/huge_val.m4 b/external/apache2/llvm/autoconf/autoconf/m4/huge_val.m4
new file mode 100644
index 00000000000..d224d7cb64e
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/huge_val.m4
@@ -0,0 +1,18 @@
+#
+# This function determins if the HUGE_VAL macro is compilable with the
+# -pedantic switch or not. XCode < 2.4.1 doesn't get it right.
+#
+AC_DEFUN([AC_HUGE_VAL_CHECK],[
+ AC_CACHE_CHECK([for HUGE_VAL sanity], [ac_cv_huge_val_sanity],[
+ AC_LANG_PUSH([C++])
+ ac_save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
+ [[double x = HUGE_VAL; return x != x;]])],
+ [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no],
+ [ac_cv_huge_val_sanity=yes])
+ CXXFLAGS=$ac_save_CXXFLAGS
+ AC_LANG_POP([C++])
+ ])
+ AC_SUBST(HUGE_VAL_SANITY,$ac_cv_huge_val_sanity)
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/link_options.m4 b/external/apache2/llvm/autoconf/autoconf/m4/link_options.m4
new file mode 100644
index 00000000000..abf6596f7c6
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/link_options.m4
@@ -0,0 +1,109 @@
+#
+# Get the linker version string.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_GET_VERSION],
+ [AC_CACHE_CHECK([for linker version],[llvm_cv_link_version],
+ [
+ version_string="$(${LD:-ld} -v 2>&1 | head -1)"
+
+ # Check for ld64.
+ if (echo "$version_string" | grep -q "ld64"); then
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
+ else
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
+ fi
+ ])
+ AC_DEFINE_UNQUOTED([HOST_LINK_VERSION],"$llvm_cv_link_version",
+ [Linker version detected at compile time.])
+])
+
+#
+# Determine if the system can handle the -R option being passed to the linker.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_USE_R],
+[AC_CACHE_CHECK([for compiler -Wl,-R<path> option],[llvm_cv_link_use_r],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS -Wl,-R."
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_r=yes],[llvm_cv_link_use_r=no])
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_r" = yes ; then
+ AC_DEFINE([HAVE_LINK_R],[1],[Define if you can use -Wl,-R. to pass -R. to the linker, in order to add the current directory to the dynamic linker search path.])
+ fi
+])
+
+#
+# Determine if the system can handle the -rdynamic option being passed
+# to the compiler.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_EXPORT_DYNAMIC],
+[AC_CACHE_CHECK([for compiler -rdynamic option],
+ [llvm_cv_link_use_export_dynamic],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS -rdynamic"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_export_dynamic=yes],[llvm_cv_link_use_export_dynamic=no])
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_export_dynamic" = yes ; then
+ AC_DEFINE([HAVE_LINK_EXPORT_DYNAMIC],[1],[Define if you can use -rdynamic.])
+ fi
+])
+
+#
+# Determine if the system can handle the --version-script option being
+# passed to the linker.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_VERSION_SCRIPT],
+[AC_CACHE_CHECK([for compiler -Wl,--version-script option],
+ [llvm_cv_link_use_version_script],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+
+ # The following code is from the autoconf manual,
+ # "11.13: Limitations of Usual Tools".
+ # Create a temporary directory $tmp in $TMPDIR (default /tmp).
+ # Use mktemp if possible; otherwise fall back on mkdir,
+ # with $RANDOM to make collisions less likely.
+ : ${TMPDIR=/tmp}
+ {
+ tmp=`
+ (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
+ ` &&
+ test -n "$tmp" && test -d "$tmp"
+ } || {
+ tmp=$TMPDIR/foo$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+ } || exit $?
+
+ echo "{" > "$tmp/export.map"
+ echo " global: main;" >> "$tmp/export.map"
+ echo " local: *;" >> "$tmp/export.map"
+ echo "};" >> "$tmp/export.map"
+
+ CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_version_script=yes],[llvm_cv_link_use_version_script=no])
+ rm "$tmp/export.map"
+ rmdir "$tmp"
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_version_script" = yes ; then
+ AC_SUBST(HAVE_LINK_VERSION_SCRIPT,1)
+ fi
+])
+
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/linux_mixed_64_32.m4 b/external/apache2/llvm/autoconf/autoconf/m4/linux_mixed_64_32.m4
new file mode 100644
index 00000000000..123491f87e5
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/linux_mixed_64_32.m4
@@ -0,0 +1,17 @@
+#
+# Some Linux machines run a 64-bit kernel with a 32-bit userspace. 'uname -m'
+# shows these as x86_64. Ask the system 'gcc' what it thinks.
+#
+AC_DEFUN([AC_IS_LINUX_MIXED],
+[AC_CACHE_CHECK(for 32-bit userspace on 64-bit system,llvm_cv_linux_mixed,
+[ AC_LANG_PUSH([C])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#ifndef __x86_64__
+ error: Not x86-64 even if uname says so!
+ #endif
+ ]])],
+ [llvm_cv_linux_mixed=no],
+ [llvm_cv_linux_mixed=yes])
+ AC_LANG_POP([C])
+])
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/need_dev_zero_for_mmap.m4 b/external/apache2/llvm/autoconf/autoconf/m4/need_dev_zero_for_mmap.m4
new file mode 100644
index 00000000000..57b32283017
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/need_dev_zero_for_mmap.m4
@@ -0,0 +1,17 @@
+#
+# When allocating RWX memory, check whether we need to use /dev/zero
+# as the file descriptor or not.
+#
+AC_DEFUN([AC_NEED_DEV_ZERO_FOR_MMAP],
+[AC_CACHE_CHECK([if /dev/zero is needed for mmap],
+ac_cv_need_dev_zero_for_mmap,
+[if test "$llvm_cv_os_type" = "Interix" ; then
+ ac_cv_need_dev_zero_for_mmap=yes
+ else
+ ac_cv_need_dev_zero_for_mmap=no
+ fi
+])
+if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
+ AC_DEFINE([NEED_DEV_ZERO_FOR_MMAP],[1],
+ [Define if /dev/zero should be used when mapping RWX memory, or undefine if its not necessary])
+fi])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/sanity_check.m4 b/external/apache2/llvm/autoconf/autoconf/m4/sanity_check.m4
new file mode 100644
index 00000000000..639fccca246
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/sanity_check.m4
@@ -0,0 +1,31 @@
+dnl Check a program for version sanity. The test runs a program, passes it an
+dnl argument to make it print out some identification string, and filters that
+dnl output with a regular expression. If the output is non-empty, the program
+dnl passes the sanity check.
+dnl $1 - Name or full path of the program to run
+dnl $2 - Argument to pass to print out identification string
+dnl $3 - grep RE to match identification string
+dnl $4 - set to 1 to make errors only a warning
+AC_DEFUN([CHECK_PROGRAM_SANITY],
+[
+AC_MSG_CHECKING([sanity for program ]$1)
+sanity="0"
+sanity_path=`which $1 2>/dev/null`
+if test "$?" -eq 0 -a -x "$sanity_path" ; then
+ sanity=`$1 $2 2>&1 | grep "$3"`
+ if test -z "$sanity" ; then
+ AC_MSG_RESULT([no])
+ sanity="0"
+ if test "$4" -eq 1 ; then
+ AC_MSG_WARN([Program ]$1[ failed to pass sanity check.])
+ else
+ AC_MSG_ERROR([Program ]$1[ failed to pass sanity check.])
+ fi
+ else
+ AC_MSG_RESULT([yes])
+ sanity="1"
+ fi
+else
+ AC_MSG_RESULT([not found])
+fi
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/single_cxx_check.m4 b/external/apache2/llvm/autoconf/autoconf/m4/single_cxx_check.m4
new file mode 100644
index 00000000000..cb473264182
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/single_cxx_check.m4
@@ -0,0 +1,16 @@
+dnl
+dnl AC_SINGLE_CXX_CHECK(CACHEVAR, FUNCTION, HEADER, PROGRAM)
+dnl $1, $2, $3, $4,
+
+AC_DEFUN([AC_SINGLE_CXX_CHECK],
+[
+ AC_CACHE_CHECK([for $2 in $3], [$1],
+ [
+ AC_LANG_PUSH([C++])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]][$3], [$4])],
+ [$1][[=yes]],
+ [$1][[=no]])
+ AC_LANG_POP([C++])
+ ])
+])
+
diff --git a/external/apache2/llvm/autoconf/autoconf/m4/visibility_inlines_hidden.m4 b/external/apache2/llvm/autoconf/autoconf/m4/visibility_inlines_hidden.m4
new file mode 100644
index 00000000000..b1cc42aa5f5
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/m4/visibility_inlines_hidden.m4
@@ -0,0 +1,24 @@
+#
+# Determine if the compiler accepts -fvisibility-inlines-hidden
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN],
+[AC_CACHE_CHECK([for compiler -fvisibility-inlines-hidden option],
+ [llvm_cv_cxx_visibility_inlines_hidden],
+[ AC_LANG_PUSH([C++])
+ oldcxxflags="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [template <typename T> struct X { void __attribute__((noinline)) f() {} };],
+ [X<int>().f();])],
+ [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
+ CXXFLAGS="$oldcxxflags"
+ AC_LANG_POP([C++])
+])
+if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
+ AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[1])
+else
+ AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[0])
+fi
+])
diff --git a/external/apache2/llvm/autoconf/autoconf/missing b/external/apache2/llvm/autoconf/autoconf/missing
new file mode 100755
index 00000000000..64b5f901dd5
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/missing
@@ -0,0 +1,353 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2004-09-07.08
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
+# Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case "$1" in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ tar try tar, gnutar, gtar, then tar without non-portable flags
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Send bug reports to <bug-automake@gnu.org>."
+ exit 0
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit 0
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case "$1" in
+ lex|yacc)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case "$1" in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case "$f" in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
+ test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison|yacc)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if [ $# -ne 1 ]; then
+ eval LASTARG="\${$#}"
+ case "$LASTARG" in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if [ -f "$SRCFILE" ]; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if [ -f "$SRCFILE" ]; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if [ ! -f y.tab.h ]; then
+ echo >y.tab.h
+ fi
+ if [ ! -f y.tab.c ]; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex|flex)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if [ $# -ne 1 ]; then
+ eval LASTARG="\${$#}"
+ case "$LASTARG" in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if [ -f "$SRCFILE" ]; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if [ ! -f lex.yy.c ]; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+ if test -z "$file"; then
+ file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
+ fi
+ if [ -f "$file" ]; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit 1
+ fi
+ ;;
+
+ makeinfo)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+ if test -z "$file"; then
+ file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
+ fi
+ touch $file
+ ;;
+
+ tar)
+ shift
+
+ # We have already tried tar in the generic part.
+ # Look for gnutar/gtar before invocation to avoid ugly error
+ # messages.
+ if (gnutar --version > /dev/null 2>&1); then
+ gnutar "$@" && exit 0
+ fi
+ if (gtar --version > /dev/null 2>&1); then
+ gtar "$@" && exit 0
+ fi
+ firstarg="$1"
+ if shift; then
+ case "$firstarg" in
+ *o*)
+ firstarg=`echo "$firstarg" | sed s/o//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ case "$firstarg" in
+ *h*)
+ firstarg=`echo "$firstarg" | sed s/h//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ fi
+
+ echo 1>&2 "\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+ You may want to install GNU tar or Free paxutils, or check the
+ command line arguments."
+ exit 1
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff --git a/external/apache2/llvm/autoconf/autoconf/mkinstalldirs b/external/apache2/llvm/autoconf/autoconf/mkinstalldirs
new file mode 100755
index 00000000000..1ee2d580177
--- /dev/null
+++ b/external/apache2/llvm/autoconf/autoconf/mkinstalldirs
@@ -0,0 +1,150 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+
+scriptversion=2004-02-15.20
+
+# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain.
+#
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+errstatus=0
+dirmode=""
+
+usage="\
+Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
+
+Create each directory DIR (with mode MODE, if specified), including all
+leading file name components.
+
+Report bugs to <bug-automake@gnu.org>."
+
+# process command line arguments
+while test $# -gt 0 ; do
+ case $1 in
+ -h | --help | --h*) # -h for help
+ echo "$usage"
+ exit 0
+ ;;
+ -m) # -m PERM arg
+ shift
+ test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
+ dirmode=$1
+ shift
+ ;;
+ --version)
+ echo "$0 $scriptversion"
+ exit 0
+ ;;
+ --) # stop option processing
+ shift
+ break
+ ;;
+ -*) # unknown option
+ echo "$usage" 1>&2
+ exit 1
+ ;;
+ *) # first non-opt arg
+ break
+ ;;
+ esac
+done
+
+for file
+do
+ if test -d "$file"; then
+ shift
+ else
+ break
+ fi
+done
+
+case $# in
+ 0) exit 0 ;;
+esac
+
+# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
+# mkdir -p a/c at the same time, both will detect that a is missing,
+# one will create a, then the other will try to create a and die with
+# a "File exists" error. This is a problem when calling mkinstalldirs
+# from a parallel make. We use --version in the probe to restrict
+# ourselves to GNU mkdir, which is thread-safe.
+case $dirmode in
+ '')
+ if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
+ # echo "mkdir -p -- $*"
+ exec mkdir -p -- "$@"
+ else
+ # On NextStep and OpenStep, the `mkdir' command does not
+ # recognize any option. It will interpret all options as
+ # directories to create, and then abort because `.' already
+ # exists.
+ test -d ./-p && rmdir ./-p
+ test -d ./--version && rmdir ./--version
+ fi
+ ;;
+ *)
+ if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
+ test ! -d ./--version; then
+ # echo "mkdir -m $dirmode -p -- $*"
+ exec mkdir -m "$dirmode" -p -- "$@"
+ else
+ # Clean up after NextStep and OpenStep mkdir.
+ for d in ./-m ./-p ./--version "./$dirmode";
+ do
+ test -d $d && rmdir $d
+ done
+ fi
+ ;;
+esac
+
+for file
+do
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+ shift
+
+ pathcomp=
+ for d
+ do
+ pathcomp="$pathcomp$d"
+ case $pathcomp in
+ -*) pathcomp=./$pathcomp ;;
+ esac
+
+ if test ! -d "$pathcomp"; then
+ # echo "mkdir $pathcomp"
+
+ mkdir "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ else
+ if test ! -z "$dirmode"; then
+ # echo "chmod $dirmode $pathcomp"
+ lasterr=""
+ chmod "$dirmode" "$pathcomp" || lasterr=$?
+
+ if test ! -z "$lasterr"; then
+ errstatus=$lasterr
+ fi
+ fi
+ fi
+ fi
+
+ pathcomp="$pathcomp/"
+ done
+done
+
+exit $errstatus
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff --git a/external/apache2/llvm/autoconf/configure b/external/apache2/llvm/autoconf/configure
new file mode 100755
index 00000000000..86844663fca
--- /dev/null
+++ b/external/apache2/llvm/autoconf/configure
@@ -0,0 +1,11829 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.69 for LLVM 4.0.0svn.
+#
+# Report bugs to <http://llvm.org/bugs/>.
+#
+#
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+#
+# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# Use a proper internal environment variable to ensure we don't fall
+ # into an infinite loop, continuously re-executing ourselves.
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
+ _as_can_reexec=no; export _as_can_reexec;
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+as_fn_exit 255
+ fi
+ # We don't want this to propagate to other subprocesses.
+ { _as_can_reexec=; unset _as_can_reexec;}
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1
+test -x / || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null; then :
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir/$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
+ export CONFIG_SHELL
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+fi
+
+ if test x$as_have_required = xno; then :
+ $as_echo "$0: This script requires a shell more modern than all"
+ $as_echo "$0: the shells that I found on your system."
+ if test x${ZSH_VERSION+set} = xset ; then
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ $as_echo "$0: Please tell bug-autoconf@gnu.org and
+$0: http://llvm.org/bugs/ about your system, including any
+$0: error possibly output before this message. Then install
+$0: a modern shell, or manually run the script under such a
+$0: shell if you do have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+ # already done that, so ensure we don't try to do so again and fall
+ # in an infinite loop. This has already happened in practice.
+ _as_can_reexec=no; export _as_can_reexec
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='LLVM'
+PACKAGE_TARNAME='llvm'
+PACKAGE_VERSION='4.0.0svn'
+PACKAGE_STRING='LLVM 4.0.0svn'
+PACKAGE_BUGREPORT='http://llvm.org/bugs/'
+PACKAGE_URL=''
+
+enable_option_checking=no
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='LTLIBOBJS
+LIBOBJS
+RDYNAMIC
+RPATH
+ENABLE_VISIBILITY_INLINES_HIDDEN
+OCAML_LIBDIR
+HAVE_OCAML_OUNIT
+HAVE_OCAMLOPT
+BINDINGS_TO_BUILD
+SHLIBEXT
+HUGE_VAL_SANITY
+HAVE_LIBZ
+HAVE_PTHREAD
+USE_INTEL_JITEVENTS
+USE_OPROFILE
+HAVE_TERMINFO
+HAVE_DLOPEN
+NO_COMMENT
+NO_UNINITIALIZED
+NO_MAYBE_UNINITIALIZED
+COVERED_SWITCH_DEFAULT
+MISSING_FIELD_INITIALIZERS
+NO_VARIADIC_MACROS
+EGREP
+HAVE_LINK_VERSION_SCRIPT
+GAS
+OCAMLFIND
+GO
+ZIP
+PDFROFF
+GZIPBIN
+GROFF
+DOXYGEN
+CAT
+BZIP2
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+DOT
+BINPWD
+TAR
+SED
+RM
+AR
+RANLIB
+MV
+MKDIR
+GREP
+FIND
+DATE
+CP
+CMP
+NM
+LN_S
+ifGNUmake
+INTERNAL_PREFIX
+ENABLE_TERMINFO
+BINUTILS_INCDIR
+CLANG_SRC_ROOT
+EXTRA_LD_OPTIONS
+EXTRA_OPTIONS
+OPTIMIZE_OPTION
+LLVM_ENUM_DISASSEMBLERS
+LLVM_ENUM_ASM_PARSERS
+LLVM_ENUM_ASM_PRINTERS
+LLVM_ENUM_TARGETS
+TARGETS_TO_BUILD
+ALL_TARGETS
+ENABLE_EMBED_STDCXX
+ENABLE_SHARED
+LLVM_ENABLE_ZLIB
+ENABLE_PTHREADS
+LLVM_ENABLE_THREADS
+clang_doxygen_qhp_cust_filter_attrs
+clang_doxygen_qhp_cust_filter_name
+clang_doxygen_qhelpgenerator_path
+clang_doxygen_qhp_namespace
+clang_doxygen_qch_filename
+clang_doxygen_generate_qhp
+llvm_doxygen_qhp_cust_filter_attrs
+llvm_doxygen_qhp_cust_filter_name
+llvm_doxygen_qhelpgenerator_path
+llvm_doxygen_qhp_namespace
+llvm_doxygen_qch_filename
+llvm_doxygen_generate_qhp
+QHELPGENERATOR
+extra_search_mappings
+searchengine_url
+enable_server_based_search
+enable_external_search
+enable_searchengine
+ENABLE_DOXYGEN
+ENABLE_DOCS
+TARGETS_WITH_JIT
+TARGET_HAS_JIT
+JIT
+KEEP_SYMBOLS
+DEBUG_SYMBOLS
+DEBUG_RUNTIME
+ENABLE_ABI_BREAKING_CHECKS
+EXPENSIVE_CHECKS
+ENABLE_EXPENSIVE_CHECKS
+ENABLE_WERROR
+DISABLE_ASSERTIONS
+ENABLE_PROFILING
+ENABLE_OPTIMIZED
+ENABLE_CLANG_STATIC_ANALYZER
+CLANG_PLUGIN_SUPPORT
+ENABLE_CLANG_ARCMT
+ENABLE_SPLIT_DWARF
+ENABLE_CXX1Y
+ENABLE_LIBCPP
+CVSBUILD
+BUILD_CXX
+BUILD_EXEEXT
+BUILD_CC
+LLVM_CROSS_COMPILING
+HOST_ARCH
+LLVM_NATIVE_ARCH
+ARCH
+LLVM_ON_WIN32
+LLVM_ON_UNIX
+NOLINKALL
+LINKALL
+TARGET_OS
+HOST_OS
+OS
+target_os
+target_vendor
+target_cpu
+target
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+subdirs
+LLVM_HAS_POLLY
+ENABLE_POLLY
+CXX_COMPILER
+CPP
+ac_ct_CXX
+CXXFLAGS
+CXX
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+LLVM_COPYRIGHT
+LLVM_VERSION_SUFFIX
+LLVM_VERSION_PATCH
+LLVM_VERSION_MINOR
+LLVM_VERSION_MAJOR
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+with_llvm_srcdir
+enable_polly
+enable_libcpp
+enable_compiler_version_checks
+enable_cxx1y
+enable_split_dwarf
+enable_clang_arcmt
+enable_clang_plugin_support
+enable_clang_static_analyzer
+enable_optimized
+enable_profiling
+enable_assertions
+enable_werror
+enable_expensive_checks
+enable_abi_breaking_checks
+enable_debug_runtime
+enable_debug_symbols
+enable_keep_symbols
+enable_jit
+enable_docs
+enable_doxygen
+enable_doxygen_search
+enable_doxygen_external_search
+with_doxygen_search_engine_url
+with_doxygen_search_mappings
+enable_doxygen_qt_help
+enable_threads
+enable_pthreads
+enable_zlib
+enable_shared
+enable_embed_stdcxx
+enable_backtraces
+enable_crash_overrides
+enable_targets
+enable_experimental_targets
+with_optimize_option
+with_extra_options
+with_extra_ld_options
+enable_bindings
+with_ocaml_libdir
+with_clang_srcdir
+with_clang_resource_dir
+with_c_include_dirs
+with_clang_default_openmp_runtime
+with_binutils_include
+with_bug_report_url
+enable_terminfo
+enable_libedit
+enable_libffi
+with_internal_prefix
+with_oprofile
+with_intel_jitevents
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CXX
+CXXFLAGS
+CCC
+CPP'
+ac_subdirs_all='tools/polly'
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures LLVM 4.0.0svn to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking ...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+ --target=TARGET configure for building compilers for TARGET [HOST]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of LLVM 4.0.0svn:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --enable-polly Use polly if available (default is YES)
+ --enable-libcpp Use libc++ if available (default is NO)
+ --enable-compiler-version-checks
+ Check the version of the host compiler (default is
+ YES)
+ --enable-cxx1y Use c++1y if available (default is NO)
+ --enable-split-dwarf Use split-dwarf if available (default is NO)
+ --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
+ --enable-clang-plugin-support
+ Enable plugin support in clang (default is YES)
+ --enable-clang-static-analyzer
+ Enable building of clang Static Analyzer (default is
+ YES)
+ --enable-optimized Compile with optimizations enabled (default is NO)
+ --enable-profiling Compile with profiling enabled (default is NO)
+ --enable-assertions Compile with assertion checks enabled (default is
+ YES)
+ --enable-werror Compile with -Werror enabled (default is NO)
+ --enable-expensive-checks
+ Compile with expensive debug checks enabled (default
+ is NO)
+ --enable-abi-breaking-checks
+ Compile with abi-breaking asserts support (default
+ is with-asserts)
+ --enable-debug-runtime Build runtime libs with debug symbols (default is
+ NO)
+ --enable-debug-symbols Build compiler with debug symbols (default is NO if
+ optimization is on and YES if it's off)
+ --enable-keep-symbols Do not strip installed executables)
+ --enable-jit Enable Just In Time Compiling (default is YES)
+ --enable-docs Build documents (default is YES)
+ --enable-doxygen Build doxygen documentation (default is NO)
+ --enable-doxygen-search Enable doxygen search support (default is NO)
+ --enable-doxygen-external-search
+ Enable doxygen exteranl search (default is NO)
+ --enable-doxygen-qt-help
+ Build Qt help files (default is NO)
+ --enable-threads Use threads if available (default is YES)
+ --enable-pthreads Use pthreads if available (default is YES)
+ --enable-zlib Use zlib for compression/decompression if available
+ (default is YES)
+ --enable-shared Build a shared library and link tools against it
+ (default is NO)
+ --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
+ Win32 DLL (default is NO)
+ --enable-backtraces Enable embedding backtraces on crash (default is
+ YES)
+ --enable-crash-overrides
+ Enable crash handling overrides (default is YES)
+ --enable-targets Build specific host targets: all or
+ target1,target2,... Valid targets are: host, x86,
+ x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
+ hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
+ wasm, and cpp (default=all)
+ --enable-experimental-targets
+ Build experimental host targets: disable or
+ target1,target2,... (default=disable)
+ --enable-bindings Build specific language bindings:
+ all,auto,none,{binding-name} (default=auto)
+ --enable-terminfo Query the terminfo database if available (default is
+ YES)
+ --enable-libedit Use libedit if available (default is YES)
+ --enable-libffi Check for the presence of libffi (default is NO)
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-llvm-srcdir Directory to the out-of-tree LLVM source
+ --with-doxygen-search-engine-url
+ Specify the external search engine for doxygen
+ --with-doxygen-search-mappings
+ Specify the extra search mapping for doxygen
+ --with-optimize-option Select the compiler options to use for optimized
+ builds
+ --with-extra-options Specify additional options to compile LLVM with
+ --with-extra-ld-options Specify additional options to link LLVM with
+ --with-ocaml-libdir Specify install location for ocaml bindings (default
+ is stdlib)
+ --with-clang-srcdir Directory to the out-of-tree Clang source
+ --with-clang-resource-dir
+ Relative directory from the Clang binary for
+ resource files
+ --with-c-include-dirs Colon separated list of directories clang will
+ search for headers
+ --with-clang-default-openmp-runtime
+ The default OpenMP runtime for Clang.
+ --with-binutils-include Specify path to binutils/include/ containing
+ plugin-api.h file for gold plugin.
+ --with-bug-report-url Specify the URL where bug reports should be
+ submitted (default=http://llvm.org/bugs/)
+ --with-internal-prefix Installation directory for internal files
+ --with-oprofile=<prefix>
+ Tell OProfile >= 0.9.4 how to symbolize JIT output
+ --with-intel-jitevents Notify Intel JIT profiling API of generated code
+
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ CPP C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <http://llvm.org/bugs/>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+LLVM configure 4.0.0svn
+generated by GNU Autoconf 2.69
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+
+Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_cxx_try_compile LINENO
+# ----------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_compile
+
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } > conftest.i && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# ac_fn_cxx_try_link LINENO
+# -------------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ test -x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_link
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ test -x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
+# the include files in INCLUDES and setting the cache variable VAR
+# accordingly.
+ac_fn_c_check_header_mongrel ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if eval \${$3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
+$as_echo_n "checking $2 usability... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_header_compiler=yes
+else
+ ac_header_compiler=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
+$as_echo_n "checking $2 presence... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <$2>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ ac_header_preproc=yes
+else
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
+ yes:no: )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+( $as_echo "## ------------------------------------ ##
+## Report this to http://llvm.org/bugs/ ##
+## ------------------------------------ ##"
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=\$ac_header_compiler"
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_mongrel
+
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main ()
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_func
+
+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
+# ---------------------------------------------
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
+# accordingly.
+ac_fn_c_check_decl ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ as_decl_name=`echo $2|sed 's/ *(.*//'`
+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+#ifndef $as_decl_name
+#ifdef __cplusplus
+ (void) $as_decl_use;
+#else
+ (void) $as_decl_name;
+#endif
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_decl
+
+# ac_fn_cxx_try_run LINENO
+# ------------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_cxx_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_run
+
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
+# -------------------------------------------
+# Tests whether TYPE exists after having included INCLUDES, setting cache
+# variable VAR accordingly.
+ac_fn_c_check_type ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=no"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+if (sizeof ($2))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+if (sizeof (($2)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ eval "$3=yes"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_type
+
+# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
+# ----------------------------------------------------
+# Tries to find if the field MEMBER exists in type AGGR, after including
+# INCLUDES, setting cache variable VAR accordingly.
+ac_fn_c_check_member ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
+$as_echo_n "checking for $2.$3... " >&6; }
+if eval \${$4+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$5
+int
+main ()
+{
+static $2 ac_aggr;
+if (ac_aggr.$3)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$4=yes"
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$5
+int
+main ()
+{
+static $2 ac_aggr;
+if (sizeof ac_aggr.$3)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$4=yes"
+else
+ eval "$4=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$4
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_member
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by LLVM $as_me 4.0.0svn, which was
+generated by GNU Autoconf 2.69. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+$as_echo "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ # We do not want a PATH search for config.site.
+ case $CONFIG_SITE in #((
+ -*) ac_site_file1=./$CONFIG_SITE;;
+ */*) ac_site_file1=$CONFIG_SITE;;
+ *) ac_site_file1=./$CONFIG_SITE;;
+ esac
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+LLVM_VERSION_MAJOR=4
+LLVM_VERSION_MINOR=0
+LLVM_VERSION_PATCH=0
+LLVM_VERSION_SUFFIX=svn
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
+_ACEOF
+
+if false; then
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_VERSION_INFO /**/
+_ACEOF
+
+fi
+
+
+
+
+
+
+LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
+
+
+
+
+
+ac_aux_dir=
+for ac_dir in autoconf "$srcdir"/autoconf; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+
+
+# Check whether --with-llvm-srcdir was given.
+if test "${with_llvm_srcdir+set}" = set; then :
+ withval=$with_llvm_srcdir;
+else
+ withval="-"
+fi
+
+case "$withval" in
+ -) llvm_srcdir="$srcdir" ;;
+ /* | [A-Za-z]:[\\/]*) llvm_srcdir="$withval" ;;
+ *) llvm_srcdir="$ac_pwd/$withval" ;;
+esac
+
+if test ${srcdir} != "." ; then
+ if test -f ${srcdir}/include/llvm/Config/config.h ; then
+ as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5
+ fi
+fi
+
+if test ${srcdir} = "." ; then
+ as_fn_error $? "In-source builds are not allowed. Please configure from a separate build directory!" "$LINENO" 5
+fi
+
+: ${CFLAGS=}
+: ${CXXFLAGS=}
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in clang gcc
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in clang gcc
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+if test -z "$ac_file"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest conftest$ac_cv_exeext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if ${ac_cv_objext+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if ${ac_cv_c_compiler_gnu+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_compiler_gnu=yes
+else
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if ${ac_cv_prog_cc_g+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+else
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if ${ac_cv_prog_cc_c89+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+struct stat;
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -z "$CXX"; then
+ if test -n "$CCC"; then
+ CXX=$CCC
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in clang++ g++
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CXX"; then
+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
+$as_echo "$CXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CXX" && break
+ done
+fi
+if test -z "$CXX"; then
+ ac_ct_CXX=$CXX
+ for ac_prog in clang++ g++
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CXX"; then
+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CXX="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
+$as_echo "$ac_ct_CXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CXX" && break
+done
+
+ if test "x$ac_ct_CXX" = x; then
+ CXX="g++"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CXX=$ac_ct_CXX
+ fi
+fi
+
+ fi
+fi
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
+$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
+if ${ac_cv_cxx_compiler_gnu+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ac_compiler_gnu=yes
+else
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
+$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GXX=yes
+else
+ GXX=
+fi
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
+$as_echo_n "checking whether $CXX accepts -g... " >&6; }
+if ${ac_cv_prog_cxx_g+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
+ ac_cxx_werror_flag=yes
+ ac_cv_prog_cxx_g=no
+ CXXFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ac_cv_prog_cxx_g=yes
+else
+ CXXFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+else
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+ CXXFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ac_cv_prog_cxx_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
+$as_echo "$ac_cv_prog_cxx_g" >&6; }
+if test "$ac_test_CXXFLAGS" = set; then
+ CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+ if test "$GXX" = yes; then
+ CXXFLAGS="-g -O2"
+ else
+ CXXFLAGS="-g"
+ fi
+else
+ if test "$GXX" = yes; then
+ CXXFLAGS="-O2"
+ else
+ CXXFLAGS=
+ fi
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if ${ac_cv_prog_CPP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+if test "$CXX" = "clang++" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang works" >&5
+$as_echo_n "checking whether clang works... " >&6; }
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits>
+#if __has_include (<cxxabi.h>)
+#include <cxxabi.h>
+#endif
+#if __has_include (<unwind.h>)
+#include <unwind.h>
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." "$LINENO" 5
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC or Clang is our host compiler" >&5
+$as_echo_n "checking whether GCC or Clang is our host compiler... " >&6; }
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+llvm_cv_cxx_compiler=unknown
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#if ! __clang__
+ #error
+ #endif
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ llvm_cv_cxx_compiler=clang
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#if ! __GNUC__
+ #error
+ #endif
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ llvm_cv_cxx_compiler=gcc
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${llvm_cv_cxx_compiler}" >&5
+$as_echo "${llvm_cv_cxx_compiler}" >&6; }
+CXX_COMPILER=$llvm_cv_cxx_compiler
+
+
+# Check whether --enable-polly was given.
+if test "${enable_polly+set}" = set; then :
+ enableval=$enable_polly;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_POLLY=1
+ ;;
+ no) ENABLE_POLLY=0
+ ;;
+ default) ENABLE_POLLY=1
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+
+if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
+ LLVM_HAS_POLLY=1
+
+
+
+subdirs="$subdirs tools/polly"
+
+fi
+if false; then
+
+$as_echo "#define LINK_POLLY_INTO_TOOLS /**/" >>confdefs.h
+
+fi
+
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if ${ac_cv_build+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if ${ac_cv_host+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
+$as_echo_n "checking target system type... " >&6; }
+if ${ac_cv_target+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$target_alias" = x; then
+ ac_cv_target=$ac_cv_host
+else
+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
+$as_echo "$ac_cv_target" >&6; }
+case $ac_cv_target in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
+esac
+target=$ac_cv_target
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_target
+shift
+target_cpu=$1
+target_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+target_os=$*
+IFS=$ac_save_IFS
+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
+
+
+# The aliases save the names the user supplied, while $host etc.
+# will get canonicalized.
+test -n "$target_alias" &&
+ test "$program_prefix$program_suffix$program_transform_name" = \
+ NONENONEs,x,x, &&
+ program_prefix=${target_alias}-
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
+$as_echo_n "checking type of operating system we're going to host on... " >&6; }
+if ${llvm_cv_os_type+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $host in
+ *-*-aix*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="AIX"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-irix*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="IRIX"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-cygwin*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Cygwin"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-darwin*)
+ llvm_cv_link_all_option="-Wl,-all_load"
+ llvm_cv_no_link_all_option="-Wl,-noall_load"
+ llvm_cv_os_type="Darwin"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-minix*)
+ llvm_cv_link_all_option="-Wl,-all_load"
+ llvm_cv_no_link_all_option="-Wl,-noall_load"
+ llvm_cv_os_type="Minix"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-freebsd*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="FreeBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-kfreebsd-gnu)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="GNU/kFreeBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-openbsd*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="OpenBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-netbsd*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="NetBSD"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-dragonfly*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="DragonFly"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-bitrig*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Bitrig"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-hpux*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="HP-UX"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-interix*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Interix"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-linux*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Linux"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-gnu*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="GNU"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-solaris*)
+ llvm_cv_link_all_option="-Wl,-z,allextract"
+ llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
+ llvm_cv_os_type="SunOS"
+ llvm_cv_platform_type="Unix" ;;
+ *-*-win32*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Win32"
+ llvm_cv_platform_type="Win32" ;;
+ *-*-mingw*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="MingW"
+ llvm_cv_platform_type="Win32" ;;
+ *-*-haiku*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Haiku"
+ llvm_cv_platform_type="Unix" ;;
+ *-unknown-eabi*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Freestanding"
+ llvm_cv_platform_type="Unix" ;;
+ *-unknown-elf*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="Freestanding"
+ llvm_cv_platform_type="Unix" ;;
+ *)
+ llvm_cv_link_all_option=""
+ llvm_cv_no_link_all_option=""
+ llvm_cv_os_type="Unknown"
+ llvm_cv_platform_type="Unknown" ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
+$as_echo "$llvm_cv_os_type" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
+$as_echo_n "checking type of operating system we're going to target... " >&6; }
+if ${llvm_cv_target_os_type+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $target in
+ *-*-aix*)
+ llvm_cv_target_os_type="AIX" ;;
+ *-*-irix*)
+ llvm_cv_target_os_type="IRIX" ;;
+ *-*-cygwin*)
+ llvm_cv_target_os_type="Cygwin" ;;
+ *-*-darwin*)
+ llvm_cv_target_os_type="Darwin" ;;
+ *-*-minix*)
+ llvm_cv_target_os_type="Minix" ;;
+ *-*-freebsd*)
+ llvm_cv_target_os_type="FreeBSD" ;;
+ *-*-kfreebsd-gnu)
+ llvm_cv_target_os_type="GNU/kFreeBSD" ;;
+ *-*-openbsd*)
+ llvm_cv_target_os_type="OpenBSD" ;;
+ *-*-netbsd*)
+ llvm_cv_target_os_type="NetBSD" ;;
+ *-*-dragonfly*)
+ llvm_cv_target_os_type="DragonFly" ;;
+ *-*-bitrig*)
+ llvm_cv_target_os_type="Bitrig" ;;
+ *-*-hpux*)
+ llvm_cv_target_os_type="HP-UX" ;;
+ *-*-interix*)
+ llvm_cv_target_os_type="Interix" ;;
+ *-*-linux*)
+ llvm_cv_target_os_type="Linux" ;;
+ *-*-gnu*)
+ llvm_cv_target_os_type="GNU" ;;
+ *-*-solaris*)
+ llvm_cv_target_os_type="SunOS" ;;
+ *-*-win32*)
+ llvm_cv_target_os_type="Win32" ;;
+ *-*-mingw*)
+ llvm_cv_target_os_type="MingW" ;;
+ *-*-haiku*)
+ llvm_cv_target_os_type="Haiku" ;;
+ *-*-rtems*)
+ llvm_cv_target_os_type="RTEMS" ;;
+ *-*-nacl*)
+ llvm_cv_target_os_type="NativeClient" ;;
+ *-unknown-eabi*)
+ llvm_cv_target_os_type="Freestanding" ;;
+ *-*-ps4)
+ llvm_cv_target_os_type="PS4" ;;
+ *)
+ llvm_cv_target_os_type="Unknown" ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
+$as_echo "$llvm_cv_target_os_type" >&6; }
+
+if test "$llvm_cv_os_type" = "Unknown" ; then
+ as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5
+fi
+
+OS=$llvm_cv_os_type
+
+HOST_OS=$llvm_cv_os_type
+
+TARGET_OS=$llvm_cv_target_os_type
+
+
+LINKALL=$llvm_cv_link_all_option
+
+NOLINKALL=$llvm_cv_no_link_all_option
+
+
+case $llvm_cv_platform_type in
+ Unix)
+
+$as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
+
+ LLVM_ON_UNIX=1
+
+ LLVM_ON_WIN32=0
+
+ ;;
+ Win32)
+
+$as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
+
+ LLVM_ON_UNIX=0
+
+ LLVM_ON_WIN32=1
+
+ ;;
+esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
+$as_echo_n "checking target architecture... " >&6; }
+if ${llvm_cv_target_arch+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $target in
+ i?86-*) llvm_cv_target_arch="x86" ;;
+ amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
+ sparc*-*) llvm_cv_target_arch="Sparc" ;;
+ powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
+ arm64*-*) llvm_cv_target_arch="AArch64" ;;
+ arm*-*) llvm_cv_target_arch="ARM" ;;
+ aarch64*-*) llvm_cv_target_arch="AArch64" ;;
+ avr-*) llvm_cv_target_arch="AVR" ;;
+ mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
+ mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
+ xcore-*) llvm_cv_target_arch="XCore" ;;
+ msp430-*) llvm_cv_target_arch="MSP430" ;;
+ hexagon-*) llvm_cv_target_arch="Hexagon" ;;
+ nvptx-*) llvm_cv_target_arch="NVPTX" ;;
+ s390x-*) llvm_cv_target_arch="SystemZ" ;;
+ wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
+ *) llvm_cv_target_arch="Unknown" ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
+$as_echo "$llvm_cv_target_arch" >&6; }
+
+if test "$llvm_cv_target_arch" = "Unknown" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
+$as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
+fi
+
+case "$llvm_cv_target_arch" in
+ x86) LLVM_NATIVE_ARCH="X86" ;;
+ x86_64) LLVM_NATIVE_ARCH="X86" ;;
+ *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
+esac
+
+ARCH=$llvm_cv_target_arch
+
+LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
+
+
+case $host in
+ i?86-*) host_arch="x86" ;;
+ amd64-* | x86_64-*) host_arch="x86_64" ;;
+ sparc*-*) host_arch="Sparc" ;;
+ powerpc*-*) host_arch="PowerPC" ;;
+ arm64*-*) host_arch="AArch64" ;;
+ arm*-*) host_arch="ARM" ;;
+ aarch64*-*) host_arch="AArch64" ;;
+ avr-*) host_arch="AVR" ;;
+ mips-* | mips64-*) host_arch="Mips" ;;
+ mipsel-* | mips64el-*) host_arch="Mips" ;;
+ xcore-*) host_arch="XCore" ;;
+ msp430-*) host_arch="MSP430" ;;
+ hexagon-*) host_arch="Hexagon" ;;
+ s390x-*) host_arch="SystemZ" ;;
+ wasm*-*) host_arch="WebAssembly" ;;
+ *) host_arch="Unknown" ;;
+esac
+
+if test "$host_arch" = "Unknown" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown host archicture" >&5
+$as_echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
+fi
+
+HOST_ARCH=$host_arch
+
+
+if test "$cross_compiling" = yes; then
+ LLVM_CROSS_COMPILING=1
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
+$as_echo_n "checking for executable suffix on build platform... " >&6; }
+if ${ac_cv_build_exeext+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
+ ac_cv_build_exeext=.exe
+else
+ ac_build_prefix=${build_alias}-
+
+ # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_build_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_BUILD_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$BUILD_CC"; then
+ ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+BUILD_CC=$ac_cv_prog_BUILD_CC
+if test -n "$BUILD_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
+$as_echo "$BUILD_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$BUILD_CC"; then
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_BUILD_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$BUILD_CC"; then
+ ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_BUILD_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+BUILD_CC=$ac_cv_prog_BUILD_CC
+if test -n "$BUILD_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
+$as_echo "$BUILD_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$BUILD_CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_BUILD_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$BUILD_CC"; then
+ ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_BUILD_CC="cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_BUILD_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set BUILD_CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+BUILD_CC=$ac_cv_prog_BUILD_CC
+if test -n "$BUILD_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
+$as_echo "$BUILD_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+ fi
+ test -z "$BUILD_CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
+ ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ rm -f conftest*
+ echo 'int main () { return 0; }' > conftest.$ac_ext
+ ac_cv_build_exeext=
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
+ (eval $ac_build_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ for file in conftest.*; do
+ case $file in
+ *.c | *.o | *.obj | *.dSYM) ;;
+ *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
+ esac
+ done
+ else
+ as_fn_error $? "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
+ fi
+ rm -f conftest*
+ test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
+fi
+fi
+
+BUILD_EXEEXT=""
+test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
+$as_echo "${ac_cv_build_exeext}" >&6; }
+ac_build_exeext=$BUILD_EXEEXT
+
+ ac_build_prefix=${build_alias}-
+ # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
+set dummy ${ac_build_prefix}g++; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_BUILD_CXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$BUILD_CXX"; then
+ ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+BUILD_CXX=$ac_cv_prog_BUILD_CXX
+if test -n "$BUILD_CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
+$as_echo "$BUILD_CXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$BUILD_CXX"; then
+ # Extract the first word of "g++", so it can be a program name with args.
+set dummy g++; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_BUILD_CXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$BUILD_CXX"; then
+ ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_BUILD_CXX="g++"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+BUILD_CXX=$ac_cv_prog_BUILD_CXX
+if test -n "$BUILD_CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
+$as_echo "$BUILD_CXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$BUILD_CXX"; then
+ # Extract the first word of "c++", so it can be a program name with args.
+set dummy c++; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_BUILD_CXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$BUILD_CXX"; then
+ ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_BUILD_CXX="c++"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_BUILD_CXX
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set BUILD_CXX to just the basename; use the full file name.
+ shift
+ ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+BUILD_CXX=$ac_cv_prog_BUILD_CXX
+if test -n "$BUILD_CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
+$as_echo "$BUILD_CXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+ fi
+else
+ LLVM_CROSS_COMPILING=0
+
+fi
+
+if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
+ cvsbuild="yes"
+ optimize="no"
+ CVSBUILD=CVSBUILD=1
+
+else
+ cvsbuild="no"
+ optimize="yes"
+fi
+
+
+# Check whether --enable-libcpp was given.
+if test "${enable_libcpp+set}" = set; then :
+ enableval=$enable_libcpp;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_LIBCPP=1
+ ;;
+ no) ENABLE_LIBCPP=0
+ ;;
+ default) ENABLE_LIBCPP=0
+;;
+ *) as_fn_error $? "Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-compiler-version-checks was given.
+if test "${enable_compiler_version_checks+set}" = set; then :
+ enableval=$enable_compiler_version_checks;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ no)
+ ;;
+ yes|default)
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ case "$llvm_cv_cxx_compiler" in
+ clang)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5
+$as_echo_n "checking whether Clang is new enough... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
+#error This version of Clang is too old to build LLVM
+#endif
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "
+The selected Clang compiler is not new enough to build LLVM. Please upgrade to
+Clang 3.1. You may pass --disable-compiler-version-checks to configure to
+bypass these sanity checks." "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ if test "$ENABLE_LIBCPP" -eq 0 ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang will select a modern C++ standard library" >&5
+$as_echo_n "checking whether Clang will select a modern C++ standard library... " >&6; }
+ llvm_cv_old_cxxflags="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -std=c++0x"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <atomic>
+std::atomic<float> x(0.0f);
+int main() { return (float)x; }
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "
+We detected a missing feature in the standard C++ library that was known to be
+missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
+C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
+than 4.7. You will need to update your system and ensure Clang uses the newer
+standard library.
+
+If this error is incorrect or you need to force things to work, you may pass
+'--disable-compiler-version-checks' to configure to bypass this test." "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ CXXFLAGS="$llvm_cv_old_cxxflags"
+ fi
+ ;;
+ gcc)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is new enough" >&5
+$as_echo_n "checking whether GCC is new enough... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
+#error This version of GCC is too old to build LLVM
+#endif
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "
+The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
+to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
+bypass these sanity checks." "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ;;
+ unknown)
+ ;;
+ esac
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ ;;
+ *)
+ as_fn_error $? "Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" "$LINENO" 5
+ ;;
+esac
+
+# Check whether --enable-cxx1y was given.
+if test "${enable_cxx1y+set}" = set; then :
+ enableval=$enable_cxx1y;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_CXX1Y=1
+ ;;
+ no) ENABLE_CXX1Y=0
+ ;;
+ default) ENABLE_CXX1Y=0
+;;
+ *) as_fn_error $? "Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-split-dwarf was given.
+if test "${enable_split_dwarf+set}" = set; then :
+ enableval=$enable_split_dwarf;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_SPLIT_DWARF=1
+ ;;
+ no) ENABLE_SPLIT_DWARF=0
+ ;;
+ default) ENABLE_SPLIT_DWARF=0
+;;
+ *) as_fn_error $? "Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+clang_arcmt="yes"
+# Check whether --enable-clang-arcmt was given.
+if test "${enable_clang_arcmt+set}" = set; then :
+ enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
+else
+ enableval="yes"
+fi
+
+case "$enableval" in
+ yes) ENABLE_CLANG_ARCMT=1
+ ;;
+ no) ENABLE_CLANG_ARCMT=0
+ ;;
+ default) ENABLE_CLANG_ARCMT=1
+;;
+ *) as_fn_error $? "Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+clang_plugin_support="yes"
+# Check whether --enable-clang-plugin-support was given.
+if test "${enable_clang_plugin_support+set}" = set; then :
+ enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
+else
+ enableval="yes"
+fi
+
+case "$enableval" in
+ yes) CLANG_PLUGIN_SUPPORT=1
+ ;;
+ no) CLANG_PLUGIN_SUPPORT=0
+ ;;
+ default) CLANG_PLUGIN_SUPPORT=1
+;;
+ *) as_fn_error $? "Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+clang_static_analyzer="yes"
+# Check whether --enable-clang-static-analyzer was given.
+if test "${enable_clang_static_analyzer+set}" = set; then :
+ enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
+else
+ enableval="yes"
+fi
+
+case "$enableval" in
+ yes) ENABLE_CLANG_STATIC_ANALYZER=1
+ ;;
+ no)
+ if test ${clang_arcmt} != "no" ; then
+ as_fn_error $? "Cannot enable clang ARC Migration Tool while disabling static analyzer." "$LINENO" 5
+ fi
+ ENABLE_CLANG_STATIC_ANALYZER=0
+
+ ;;
+ default) ENABLE_CLANG_STATIC_ANALYZER=1
+;;
+ *) as_fn_error $? "Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-optimized was given.
+if test "${enable_optimized+set}" = set; then :
+ enableval=$enable_optimized;
+else
+ enableval=$optimize
+fi
+
+if test ${enableval} = "no" ; then
+ ENABLE_OPTIMIZED=
+
+else
+ ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
+
+fi
+
+# Check whether --enable-profiling was given.
+if test "${enable_profiling+set}" = set; then :
+ enableval=$enable_profiling;
+else
+ enableval="no"
+fi
+
+if test ${enableval} = "no" ; then
+ ENABLE_PROFILING=
+
+else
+ ENABLE_PROFILING=ENABLE_PROFILING=1
+
+fi
+
+# Check whether --enable-assertions was given.
+if test "${enable_assertions+set}" = set; then :
+ enableval=$enable_assertions;
+else
+ enableval="yes"
+fi
+
+if test ${enableval} = "yes" ; then
+ DISABLE_ASSERTIONS=
+
+ assertions_enabled="yes"
+else
+ DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
+
+ assertions_enabled="no"
+fi
+
+# Check whether --enable-werror was given.
+if test "${enable_werror+set}" = set; then :
+ enableval=$enable_werror;
+else
+ enableval="no"
+fi
+
+case "$enableval" in
+ yes) ENABLE_WERROR=1
+ ;;
+ no) ENABLE_WERROR=0
+ ;;
+ default) ENABLE_WERROR=0
+;;
+ *) as_fn_error $? "Invalid setting for --enable-werror. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-expensive-checks was given.
+if test "${enable_expensive_checks+set}" = set; then :
+ enableval=$enable_expensive_checks;
+else
+ enableval="no"
+fi
+
+if test ${enableval} = "yes" ; then
+ ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
+
+ EXPENSIVE_CHECKS=yes
+
+else
+ ENABLE_EXPENSIVE_CHECKS=
+
+ EXPENSIVE_CHECKS=no
+
+fi
+
+# Check whether --enable-abi-breaking-checks was given.
+if test "${enable_abi_breaking_checks+set}" = set; then :
+ enableval=$enable_abi_breaking_checks;
+else
+ enableval="with-asserts"
+fi
+
+case "$enableval" in
+ with-asserts) if test ${assertions_enabled} = "yes" ; then
+ ENABLE_ABI_BREAKING_CHECKS=1
+ else
+ ENABLE_ABI_BREAKING_CHECKS=0
+ fi ;;
+ yes)
+ ENABLE_ABI_BREAKING_CHECKS=1
+ ;;
+ no)
+ ENABLE_ABI_BREAKING_CHECKS=0
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" "$LINENO" 5
+esac
+ENABLE_ABI_BREAKING_CHECKS=$ENABLE_ABI_BREAKING_CHECKS
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS $ENABLE_ABI_BREAKING_CHECKS
+_ACEOF
+
+
+# Check whether --enable-debug-runtime was given.
+if test "${enable_debug_runtime+set}" = set; then :
+ enableval=$enable_debug_runtime;
+else
+ enableval=no
+fi
+
+if test ${enableval} = "no" ; then
+ DEBUG_RUNTIME=
+
+else
+ DEBUG_RUNTIME=DEBUG_RUNTIME=1
+
+fi
+
+# Check whether --enable-debug-symbols was given.
+if test "${enable_debug_symbols+set}" = set; then :
+ enableval=$enable_debug_symbols;
+else
+ enableval=no
+fi
+
+if test ${enableval} = "no" ; then
+ DEBUG_SYMBOLS=
+
+else
+ DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
+
+fi
+
+# Check whether --enable-keep-symbols was given.
+if test "${enable_keep_symbols+set}" = set; then :
+ enableval=$enable_keep_symbols;
+else
+ enableval=no
+fi
+
+if test ${enableval} = "no" ; then
+ KEEP_SYMBOLS=
+
+else
+ KEEP_SYMBOLS=KEEP_SYMBOLS=1
+
+fi
+
+# Check whether --enable-jit was given.
+if test "${enable_jit+set}" = set; then :
+ enableval=$enable_jit;
+else
+ enableval=default
+fi
+
+if test ${enableval} = "no"
+then
+ JIT=
+
+else
+ case "$llvm_cv_target_arch" in
+ x86) TARGET_HAS_JIT=1
+ ;;
+ Sparc) TARGET_HAS_JIT=0
+ ;;
+ PowerPC) TARGET_HAS_JIT=1
+ ;;
+ x86_64) TARGET_HAS_JIT=1
+ ;;
+ ARM) TARGET_HAS_JIT=1
+ ;;
+ AVR) TARGET_HAS_JIT=0
+ ;;
+ Mips) TARGET_HAS_JIT=1
+ ;;
+ XCore) TARGET_HAS_JIT=0
+ ;;
+ MSP430) TARGET_HAS_JIT=0
+ ;;
+ Hexagon) TARGET_HAS_JIT=0
+ ;;
+ NVPTX) TARGET_HAS_JIT=0
+ ;;
+ SystemZ) TARGET_HAS_JIT=1
+ ;;
+ WebAssembly) TARGET_HAS_JIT=0
+ ;;
+ *) TARGET_HAS_JIT=0
+ ;;
+ esac
+fi
+
+TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
+TARGETS_WITH_JIT=$TARGETS_WITH_JIT
+
+
+# Check whether --enable-docs was given.
+if test "${enable_docs+set}" = set; then :
+ enableval=$enable_docs;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_DOCS=1
+ ;;
+ no) ENABLE_DOCS=0
+ ;;
+ default) ENABLE_DOCS=1
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-docs. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-doxygen was given.
+if test "${enable_doxygen+set}" = set; then :
+ enableval=$enable_doxygen;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_DOXYGEN=1
+ ;;
+ no|default) ENABLE_DOXYGEN=0
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-doxygen-search was given.
+if test "${enable_doxygen_search+set}" = set; then :
+ enableval=$enable_doxygen_search;
+else
+ enableval=default
+fi
+
+ENABLE_DOXYGEN_SEARCH="$enableval"
+
+case "$enableval" in
+ yes|no|default) ;;
+ *) as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-doxygen-external-search was given.
+if test "${enable_doxygen_external_search+set}" = set; then :
+ enableval=$enable_doxygen_external_search;
+else
+ enableval=default
+fi
+
+ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
+
+case "$enableval" in
+ yes)
+ case "$ENABLE_DOXYGEN_SEARCH" in
+ yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
+ no) as_fn_error $? "The option --enable-doxygen-external-search requires --enable-doxygen-search" "$LINENO" 5 ;;
+ esac
+ ;;
+ no|default) ;;
+ *) as_fn_error $? "Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+
+# Check whether --with-doxygen-search-engine-url was given.
+if test "${with_doxygen_search_engine_url+set}" = set; then :
+ withval=$with_doxygen_search_engine_url;
+fi
+
+WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
+
+
+# Check whether --with-doxygen-search-mappings was given.
+if test "${with_doxygen_search_mappings+set}" = set; then :
+ withval=$with_doxygen_search_mappings;
+fi
+
+WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
+
+case "$ENABLE_DOXYGEN_SEARCH" in
+ yes)
+ if test "$ENABLE_DOXYGEN" = "0" ; then
+ as_fn_error $? "The option --enable-doxygen-search requires --enable-doxygen." "$LINENO" 5
+ fi
+
+ enable_searchengine=YES
+
+
+ case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
+ yes)
+ enable_external_search=YES
+
+ enable_server_based_search=YES
+
+ searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
+
+ extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
+
+ ;;
+
+ no|default)
+ enable_external_search=NO
+
+ enable_server_based_search=NO
+
+
+
+ ;;
+ esac
+ ;;
+
+ no|default)
+ enable_searchengine=NO
+
+
+ enable_server_based_search=NO
+
+ enable_external_search=NO
+
+
+ ;;
+
+ *)
+ as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5
+ ;;
+esac
+
+# Check whether --enable-doxygen-qt-help was given.
+if test "${enable_doxygen_qt_help+set}" = set; then :
+ enableval=$enable_doxygen_qt_help;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes)
+ if test "$ENABLE_DOXYGEN" = "0" ; then
+ as_fn_error $? "The option --enable-doxygen-qt-help requires --enable-doxygen." "$LINENO" 5
+ fi
+
+ # Extract the first word of "qhelpgenerator", so it can be a program name with args.
+set dummy qhelpgenerator; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_QHELPGENERATOR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $QHELPGENERATOR in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
+ ;;
+esac
+fi
+QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
+if test -n "$QHELPGENERATOR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QHELPGENERATOR" >&5
+$as_echo "$QHELPGENERATOR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+ llvm_doxygen_generate_qhp=YES
+
+ llvm_doxygen_qch_filename=org.llvm.qch
+
+ llvm_doxygen_qhp_namespace=org.llvm
+
+ llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
+
+ llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
+
+ llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
+
+
+ clang_doxygen_generate_qhp=YES
+
+ clang_doxygen_qch_filename=org.llvm.clang.qch
+
+ clang_doxygen_qhp_namespace=org.llvm.clang
+
+ clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
+
+ clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
+
+ clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
+
+ ;;
+
+ no|default)
+ llvm_doxygen_generate_qhp=NO
+
+
+
+
+
+
+
+ clang_doxygen_generate_qhp=NO
+
+
+
+
+ clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
+
+ clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
+
+ ;;
+
+ *)
+ as_fn_error $? "Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-threads was given.
+if test "${enable_threads+set}" = set; then :
+ enableval=$enable_threads;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) LLVM_ENABLE_THREADS=1
+ ;;
+ no) LLVM_ENABLE_THREADS=0
+ ;;
+ default) LLVM_ENABLE_THREADS=1
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
+_ACEOF
+
+
+# Check whether --enable-pthreads was given.
+if test "${enable_pthreads+set}" = set; then :
+ enableval=$enable_pthreads;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_PTHREADS=1
+ ;;
+ no) ENABLE_PTHREADS=0
+ ;;
+ default) ENABLE_PTHREADS=1
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-zlib was given.
+if test "${enable_zlib+set}" = set; then :
+ enableval=$enable_zlib;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) LLVM_ENABLE_ZLIB=1
+ ;;
+ no) LLVM_ENABLE_ZLIB=0
+ ;;
+ default) LLVM_ENABLE_ZLIB=1
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
+_ACEOF
+
+
+# Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then :
+ enableval=$enable_shared;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_SHARED=1
+ ;;
+ no) ENABLE_SHARED=0
+ ;;
+ default) ENABLE_SHARED=0
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-embed-stdcxx was given.
+if test "${enable_embed_stdcxx+set}" = set; then :
+ enableval=$enable_embed_stdcxx;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_EMBED_STDCXX=1
+ ;;
+ no) ENABLE_EMBED_STDCXX=0
+ ;;
+ default) ENABLE_EMBED_STDCXX=0
+ ;;
+ *) as_fn_error $? "Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+esac
+
+# Check whether --enable-backtraces was given.
+if test "${enable_backtraces+set}" = set; then :
+ enableval=$enable_backtraces; case "$enableval" in
+ yes) llvm_cv_enable_backtraces="yes" ;;
+ no) llvm_cv_enable_backtraces="no" ;;
+ *) as_fn_error $? "Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+ esac
+else
+ llvm_cv_enable_backtraces="yes"
+fi
+
+if test "$llvm_cv_enable_backtraces" = "yes" ; then
+
+$as_echo "#define ENABLE_BACKTRACES 1" >>confdefs.h
+
+fi
+
+# Check whether --enable-crash-overrides was given.
+if test "${enable_crash_overrides+set}" = set; then :
+ enableval=$enable_crash_overrides; case "$enableval" in
+ yes) llvm_cv_enable_crash_overrides="yes" ;;
+ no) llvm_cv_enable_crash_overrides="no" ;;
+ *) as_fn_error $? "Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+ esac
+else
+ llvm_cv_enable_crash_overrides="yes"
+fi
+
+if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
+
+$as_echo "#define ENABLE_CRASH_OVERRIDES 1" >>confdefs.h
+
+fi
+
+ALL_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore"
+ALL_TARGETS=$ALL_TARGETS
+
+
+TARGETS_TO_BUILD=""
+# Check whether --enable-targets was given.
+if test "${enable_targets+set}" = set; then :
+ enableval=$enable_targets;
+else
+ enableval=all
+fi
+
+if test "$enableval" = host-only ; then
+ enableval=host
+fi
+case "$enableval" in
+ all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
+ *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
+ case "$a_target" in
+ x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
+ powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
+ aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
+ arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
+ arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
+ bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
+ mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
+ msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
+ cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
+ hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
+ nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
+ systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
+ amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
+ r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
+ wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
+ host) case "$llvm_cv_target_arch" in
+ x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
+ Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
+ PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
+ AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
+ ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
+ Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
+ XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
+ MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
+ Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
+ NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
+ SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
+ WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
+ *) as_fn_error $? "Can not set target to build" "$LINENO" 5 ;;
+ esac ;;
+ *) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5 ;;
+ esac
+ done
+ ;;
+esac
+
+# Check whether --enable-experimental-targets was given.
+if test "${enable_experimental_targets+set}" = set; then :
+ enableval=$enable_experimental_targets;
+else
+ enableval=disable
+fi
+
+
+if test ${enableval} != "disable"
+then
+ TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
+fi
+
+TARGETS_TO_BUILD=$TARGETS_TO_BUILD
+
+
+for a_target in $TARGETS_TO_BUILD; do
+ if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
+_ACEOF
+
+ LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
+ LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
+ LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
+ LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
+ LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
+ LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
+ fi
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
+_ACEOF
+
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
+_ACEOF
+
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
+_ACEOF
+
+ fi
+ fi
+done
+
+LLVM_ENUM_TARGETS=""
+LLVM_ENUM_ASM_PRINTERS=""
+LLVM_ENUM_ASM_PARSERS=""
+LLVM_ENUM_DISASSEMBLERS=""
+for target_to_build in $TARGETS_TO_BUILD; do
+ LLVM_ENUM_TARGETS="$LLVM_ENUM_TARGETS${as_nl}LLVM_TARGET($target_to_build)"
+ has_asm_printer=0
+ for asm_printer in ${llvm_srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp; do
+ if test -f "$asm_printer"; then
+ has_asm_printer=1
+ fi
+ done
+ if test "$has_asm_printer" = 1; then
+ LLVM_ENUM_ASM_PRINTERS="$LLVM_ENUM_ASM_PRINTERS${as_nl}LLVM_ASM_PRINTER($target_to_build)";
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/AsmParser/CMakeLists.txt ; then
+ LLVM_ENUM_ASM_PARSERS="$LLVM_ENUM_ASM_PARSERS${as_nl}LLVM_ASM_PARSER($target_to_build)";
+ fi
+ if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/Disassembler/CMakeLists.txt ; then
+ LLVM_ENUM_DISASSEMBLERS="$LLVM_ENUM_DISASSEMBLERS${as_nl}LLVM_DISASSEMBLER($target_to_build)";
+ fi
+done
+LLVM_ENUM_TARGETS="${LLVM_ENUM_TARGETS#${as_nl}}${as_nl}"
+LLVM_ENUM_ASM_PRINTERS="${LLVM_ENUM_ASM_PRINTERS#${as_nl}}${as_nl}"
+LLVM_ENUM_ASM_PARSERS="${LLVM_ENUM_ASM_PARSERS#${as_nl}}${as_nl}"
+LLVM_ENUM_DISASSEMBLERS="${LLVM_ENUM_DISASSEMBLERS#${as_nl}}${as_nl}"
+
+
+
+
+
+
+# Check whether --with-optimize-option was given.
+if test "${with_optimize_option+set}" = set; then :
+ withval=$with_optimize_option;
+else
+ withval=default
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
+$as_echo_n "checking optimization flags... " >&6; }
+case "$withval" in
+ default)
+ case "$llvm_cv_os_type" in
+ FreeBSD) optimize_option=-O2 ;;
+ MingW) optimize_option=-O2 ;;
+ *) optimize_option=-O3 ;;
+ esac ;;
+ *) optimize_option="$withval" ;;
+esac
+OPTIMIZE_OPTION=$optimize_option
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
+$as_echo "$optimize_option" >&6; }
+
+
+# Check whether --with-extra-options was given.
+if test "${with_extra_options+set}" = set; then :
+ withval=$with_extra_options;
+else
+ withval=default
+fi
+
+case "$withval" in
+ default) EXTRA_OPTIONS= ;;
+ *) EXTRA_OPTIONS=$withval ;;
+esac
+EXTRA_OPTIONS=$EXTRA_OPTIONS
+
+
+
+# Check whether --with-extra-ld-options was given.
+if test "${with_extra_ld_options+set}" = set; then :
+ withval=$with_extra_ld_options;
+else
+ withval=default
+fi
+
+case "$withval" in
+ default) EXTRA_LD_OPTIONS= ;;
+ *) EXTRA_LD_OPTIONS=$withval ;;
+esac
+EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
+
+
+# Check whether --enable-bindings was given.
+if test "${enable_bindings+set}" = set; then :
+ enableval=$enable_bindings;
+else
+ enableval=default
+fi
+
+BINDINGS_TO_BUILD=""
+case "$enableval" in
+ yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
+ all ) BINDINGS_TO_BUILD="ocaml" ;;
+ none | no) BINDINGS_TO_BUILD="" ;;
+ *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
+ case "$a_binding" in
+ ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
+ *) as_fn_error $? "Unrecognized binding $a_binding" "$LINENO" 5 ;;
+ esac
+ done
+ ;;
+esac
+
+
+# Check whether --with-ocaml-libdir was given.
+if test "${with_ocaml_libdir+set}" = set; then :
+ withval=$with_ocaml_libdir;
+else
+ withval=auto
+fi
+
+case "$withval" in
+ auto) with_ocaml_libdir="$withval" ;;
+ /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
+ *) as_fn_error $? "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
+esac
+
+
+# Check whether --with-clang-srcdir was given.
+if test "${with_clang_srcdir+set}" = set; then :
+ withval=$with_clang_srcdir;
+else
+ withval="-"
+fi
+
+case "$withval" in
+ -) clang_src_root="" ;;
+ /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
+ *) clang_src_root="$ac_pwd/$withval" ;;
+esac
+CLANG_SRC_ROOT=$clang_src_root
+
+
+
+# Check whether --with-clang-resource-dir was given.
+if test "${with_clang_resource_dir+set}" = set; then :
+ withval=$with_clang_resource_dir;
+else
+ withval=""
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_RESOURCE_DIR "$withval"
+_ACEOF
+
+
+
+# Check whether --with-c-include-dirs was given.
+if test "${with_c_include_dirs+set}" = set; then :
+ withval=$with_c_include_dirs;
+else
+ withval=""
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define C_INCLUDE_DIRS "$withval"
+_ACEOF
+
+
+
+# Check whether --with-clang-default-openmp-runtime was given.
+if test "${with_clang_default_openmp_runtime+set}" = set; then :
+ withval=$with_clang_default_openmp_runtime;
+else
+ withval="libomp"
+fi
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_ENABLE_ARCMT 1
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_ENABLE_OBJC_REWRITER 1
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_ENABLE_STATIC_ANALYZER 1
+_ACEOF
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35"
+_ACEOF
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ENABLE_X86_RELAX_RELOCATIONS 0
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_DEFAULT_CXX_STDLIB ""
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_DEFAULT_LINKER ""
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_DEFAULT_OBJCOPY "objcopy"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_DEFAULT_RTLIB ""
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_DEFAULT_UNWINDLIB "none"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_LIBDIR_SUFFIX ""
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_SYSROOT ""
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define GCC_INSTALL_PREFIX ""
+_ACEOF
+
+
+
+# Check whether --with-binutils-include was given.
+if test "${with_binutils_include+set}" = set; then :
+ withval=$with_binutils_include;
+else
+ withval=default
+fi
+
+case "$withval" in
+ default) WITH_BINUTILS_INCDIR=default ;;
+ /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
+ *) as_fn_error $? "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
+esac
+if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
+ BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
+
+ if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
+ echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
+ as_fn_error $? "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
+ fi
+fi
+
+
+# Check whether --with-bug-report-url was given.
+if test "${with_bug_report_url+set}" = set; then :
+ withval=$with_bug_report_url;
+else
+ withval="http://llvm.org/bugs/"
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define BUG_REPORT_URL "$withval"
+_ACEOF
+
+
+# Check whether --enable-terminfo was given.
+if test "${enable_terminfo+set}" = set; then :
+ enableval=$enable_terminfo; case "$enableval" in
+ yes) llvm_cv_enable_terminfo="yes" ;;
+ no) llvm_cv_enable_terminfo="no" ;;
+ *) as_fn_error $? "Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+ esac
+else
+ llvm_cv_enable_terminfo="yes"
+fi
+
+case "$llvm_cv_enable_terminfo" in
+ yes) ENABLE_TERMINFO=1
+ ;;
+ no) ENABLE_TERMINFO=0
+ ;;
+esac
+
+# Check whether --enable-libedit was given.
+if test "${enable_libedit+set}" = set; then :
+ enableval=$enable_libedit; case "$enableval" in
+ yes) llvm_cv_enable_libedit="yes" ;;
+ no) llvm_cv_enable_libedit="no" ;;
+ *) as_fn_error $? "Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+ esac
+else
+ llvm_cv_enable_libedit="yes"
+fi
+
+
+# Check whether --enable-libffi was given.
+if test "${enable_libffi+set}" = set; then :
+ enableval=$enable_libffi; case "$enableval" in
+ yes) llvm_cv_enable_libffi="yes" ;;
+ no) llvm_cv_enable_libffi="no" ;;
+ *) as_fn_error $? "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
+ esac
+else
+ llvm_cv_enable_libffi=no
+fi
+
+
+
+# Check whether --with-internal-prefix was given.
+if test "${with_internal_prefix+set}" = set; then :
+ withval=$with_internal_prefix;
+else
+ withval=""
+fi
+
+INTERNAL_PREFIX=$withval
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
+$as_echo_n "checking for GNU make... " >&6; }
+if ${llvm_cv_gnu_make_command+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ llvm_cv_gnu_make_command=''
+ for a in "$MAKE" make gmake gnumake ; do
+ if test -z "$a" ; then continue ; fi ;
+ if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
+ then
+ llvm_cv_gnu_make_command=$a ;
+ break;
+ fi
+ done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
+$as_echo "$llvm_cv_gnu_make_command" >&6; }
+ if test "x$llvm_cv_gnu_make_command" != "x" ; then
+ ifGNUmake='' ;
+ else
+ ifGNUmake='#' ;
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
+$as_echo "\"Not found\"" >&6; };
+ fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+# Extract the first word of "nm", so it can be a program name with args.
+set dummy nm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_NM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $NM in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_NM="$NM" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
+ ;;
+esac
+fi
+NM=$ac_cv_path_NM
+if test -n "$NM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
+$as_echo "$NM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "cmp", so it can be a program name with args.
+set dummy cmp; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_CMP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $CMP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
+ ;;
+esac
+fi
+CMP=$ac_cv_path_CMP
+if test -n "$CMP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
+$as_echo "$CMP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "cp", so it can be a program name with args.
+set dummy cp; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_CP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $CP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_CP="$CP" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
+ ;;
+esac
+fi
+CP=$ac_cv_path_CP
+if test -n "$CP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
+$as_echo "$CP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "date", so it can be a program name with args.
+set dummy date; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_DATE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $DATE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
+ ;;
+esac
+fi
+DATE=$ac_cv_path_DATE
+if test -n "$DATE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
+$as_echo "$DATE" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "find", so it can be a program name with args.
+set dummy find; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_FIND+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $FIND in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
+ ;;
+esac
+fi
+FIND=$ac_cv_path_FIND
+if test -n "$FIND"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
+$as_echo "$FIND" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "grep", so it can be a program name with args.
+set dummy grep; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GREP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
+ ;;
+esac
+fi
+GREP=$ac_cv_path_GREP
+if test -n "$GREP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
+$as_echo "$GREP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "mkdir", so it can be a program name with args.
+set dummy mkdir; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_MKDIR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MKDIR in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
+ ;;
+esac
+fi
+MKDIR=$ac_cv_path_MKDIR
+if test -n "$MKDIR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
+$as_echo "$MKDIR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "mv", so it can be a program name with args.
+set dummy mv; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_MV+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MV in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MV="$MV" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
+ ;;
+esac
+fi
+MV=$ac_cv_path_MV
+if test -n "$MV"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
+$as_echo "$MV" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_RANLIB+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_AR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="ar"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+else
+ AR="$ac_cv_prog_AR"
+fi
+
+# Extract the first word of "rm", so it can be a program name with args.
+set dummy rm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_RM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $RM in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_RM="$RM" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
+ ;;
+esac
+fi
+RM=$ac_cv_path_RM
+if test -n "$RM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
+$as_echo "$RM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "sed", so it can be a program name with args.
+set dummy sed; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_SED+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SED in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SED="$SED" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
+ ;;
+esac
+fi
+SED=$ac_cv_path_SED
+if test -n "$SED"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
+$as_echo "$SED" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "tar", so it can be a program name with args.
+set dummy tar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_TAR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $TAR in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
+ ;;
+esac
+fi
+TAR=$ac_cv_path_TAR
+if test -n "$TAR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
+$as_echo "$TAR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "pwd", so it can be a program name with args.
+set dummy pwd; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_BINPWD+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $BINPWD in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
+ ;;
+esac
+fi
+BINPWD=$ac_cv_path_BINPWD
+if test -n "$BINPWD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
+$as_echo "$BINPWD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+# Extract the first word of "dot", so it can be a program name with args.
+set dummy dot; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_DOT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $DOT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
+ ;;
+esac
+fi
+DOT=$ac_cv_path_DOT
+if test -n "$DOT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
+$as_echo "$DOT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test "$DOT" != "echo dot" ; then
+ if test "$llvm_cv_os_type" = "MingW" ; then
+ DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
+ fi
+fi
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if ${ac_cv_path_install+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in #((
+ ./ | .// | /[cC]/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+case "$INSTALL" in
+ [\\/$]* | ?:[\\/]* ) ;;
+ *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
+esac
+
+# Extract the first word of "bzip2", so it can be a program name with args.
+set dummy bzip2; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_BZIP2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $BZIP2 in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+BZIP2=$ac_cv_path_BZIP2
+if test -n "$BZIP2"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
+$as_echo "$BZIP2" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "cat", so it can be a program name with args.
+set dummy cat; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_CAT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $CAT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+CAT=$ac_cv_path_CAT
+if test -n "$CAT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
+$as_echo "$CAT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "doxygen", so it can be a program name with args.
+set dummy doxygen; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_DOXYGEN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $DOXYGEN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+DOXYGEN=$ac_cv_path_DOXYGEN
+if test -n "$DOXYGEN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
+$as_echo "$DOXYGEN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "groff", so it can be a program name with args.
+set dummy groff; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GROFF+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GROFF in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+GROFF=$ac_cv_path_GROFF
+if test -n "$GROFF"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
+$as_echo "$GROFF" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "gzip", so it can be a program name with args.
+set dummy gzip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GZIPBIN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GZIPBIN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+GZIPBIN=$ac_cv_path_GZIPBIN
+if test -n "$GZIPBIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPBIN" >&5
+$as_echo "$GZIPBIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "pdfroff", so it can be a program name with args.
+set dummy pdfroff; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PDFROFF+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PDFROFF in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PDFROFF=$ac_cv_path_PDFROFF
+if test -n "$PDFROFF"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5
+$as_echo "$PDFROFF" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "zip", so it can be a program name with args.
+set dummy zip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_ZIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ZIP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+ZIP=$ac_cv_path_ZIP
+if test -n "$ZIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
+$as_echo "$ZIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Extract the first word of "go", so it can be a program name with args.
+set dummy go; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GO+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GO in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GO="$GO" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+GO=$ac_cv_path_GO
+if test -n "$GO"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
+$as_echo "$GO" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+for ac_prog in ocamlfind
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_OCAMLFIND+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $OCAMLFIND in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+OCAMLFIND=$ac_cv_path_OCAMLFIND
+if test -n "$OCAMLFIND"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
+$as_echo "$OCAMLFIND" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$OCAMLFIND" && break
+done
+
+for ac_prog in gas as
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GAS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GAS in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+GAS=$ac_cv_path_GAS
+if test -n "$GAS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
+$as_echo "$GAS" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$GAS" && break
+done
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5
+$as_echo_n "checking for linker version... " >&6; }
+if ${llvm_cv_link_version+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ version_string="$(${LD:-ld} -v 2>&1 | head -1)"
+
+ # Check for ld64.
+ if (echo "$version_string" | grep -q "ld64"); then
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
+ else
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
+ fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
+$as_echo "$llvm_cv_link_version" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define HOST_LINK_VERSION "$llvm_cv_link_version"
+_ACEOF
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5
+$as_echo_n "checking for compiler -Wl,--version-script option... " >&6; }
+if ${llvm_cv_link_use_version_script+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ oldcflags="$CFLAGS"
+
+ # The following code is from the autoconf manual,
+ # "11.13: Limitations of Usual Tools".
+ # Create a temporary directory $tmp in $TMPDIR (default /tmp).
+ # Use mktemp if possible; otherwise fall back on mkdir,
+ # with $RANDOM to make collisions less likely.
+ : ${TMPDIR=/tmp}
+ {
+ tmp=`
+ (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
+ ` &&
+ test -n "$tmp" && test -d "$tmp"
+ } || {
+ tmp=$TMPDIR/foo$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+ } || exit $?
+
+ echo "{" > "$tmp/export.map"
+ echo " global: main;" >> "$tmp/export.map"
+ echo " local: *;" >> "$tmp/export.map"
+ echo "};" >> "$tmp/export.map"
+
+ CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ llvm_cv_link_use_version_script=yes
+else
+ llvm_cv_link_use_version_script=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ rm "$tmp/export.map"
+ rmdir "$tmp"
+ CFLAGS="$oldcflags"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5
+$as_echo "$llvm_cv_link_use_version_script" >&6; }
+if test "$llvm_cv_link_use_version_script" = yes ; then
+ HAVE_LINK_VERSION_SCRIPT=1
+
+ fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if ${ac_cv_path_GREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_GREP" || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if ${ac_cv_path_EGREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_EGREP" || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if ${ac_cv_header_stdc+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdc=yes
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then :
+ :
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+for ac_header in errno.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
+if test "x$ac_cv_header_errno_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_ERRNO_H 1
+_ACEOF
+
+fi
+
+done
+
+
+case "$llvm_cv_os_type" in
+ Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
+ Darwin) llvm_shlib_ext=.dylib ;;
+ *) llvm_shlib_ext=.so ;;
+esac
+
+
+cat >>confdefs.h <<_ACEOF
+#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
+_ACEOF
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
+$as_echo_n "checking tool compatibility... " >&6; }
+
+ICC=no
+IXX=no
+case $CC in
+ icc*|icpc*)
+ ICC=yes
+ IXX=yes
+ ;;
+ *)
+ ;;
+esac
+
+if test "$GCC" != "yes" && test "$ICC" != "yes"
+then
+ as_fn_error $? "gcc|icc required but not found" "$LINENO" 5
+fi
+
+if test "$GXX" != "yes" && test "$IXX" != "yes"
+then
+ as_fn_error $? "g++|clang++|icc required but not found" "$LINENO" 5
+fi
+
+if test "$GCC" = "yes"
+then
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+ #if !defined(__GNUC__) || __GNUC__ < 3
+ #error Unsupported GCC version
+ #endif
+
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "gcc 3.x required, but you have a lower version" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+if test -z "$llvm_cv_gnu_make_command"
+then
+ as_fn_error $? "GNU Make required but not found" "$LINENO" 5
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
+$as_echo_n "checking optional compiler flags... " >&6; }
+case "$llvm_cv_cxx_compiler" in
+ clang)
+ NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
+
+ MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers`
+
+ COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
+
+ ;;
+ gcc)
+ MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
+
+ NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
+
+ COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
+
+ NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
+
+ if test -z "$NO_MAYBE_UNINITIALIZED"
+ then
+ NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
+
+ fi
+ ;;
+ unknown)
+ ;;
+esac
+
+no_comment=
+llvm_cv_old_cxxflags="$CXXFLAGS"
+CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ // Comment \o\
+// Another comment
+int main() { return 0; }
+
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+ no_comment=-Wno-comment
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+NO_COMMENT=$no_comment
+
+CXXFLAGS="$llvm_cv_old_cxxflags"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
+$as_echo "$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
+
+
+if test "$llvm_cv_os_type" = "MingW" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
+$as_echo_n "checking for main in -lpsapi... " >&6; }
+if ${ac_cv_lib_psapi_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpsapi $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_psapi_main=yes
+else
+ ac_cv_lib_psapi_main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
+$as_echo "$ac_cv_lib_psapi_main" >&6; }
+if test "x$ac_cv_lib_psapi_main" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBPSAPI 1
+_ACEOF
+
+ LIBS="-lpsapi $LIBS"
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lshell32" >&5
+$as_echo_n "checking for main in -lshell32... " >&6; }
+if ${ac_cv_lib_shell32_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lshell32 $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_shell32_main=yes
+else
+ ac_cv_lib_shell32_main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shell32_main" >&5
+$as_echo "$ac_cv_lib_shell32_main" >&6; }
+if test "x$ac_cv_lib_shell32_main" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBSHELL32 1
+_ACEOF
+
+ LIBS="-lshell32 $LIBS"
+
+fi
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
+$as_echo_n "checking for library containing dlopen... " >&6; }
+if ${ac_cv_search_dlopen+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' dl; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_dlopen=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_dlopen+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_dlopen+:} false; then :
+
+else
+ ac_cv_search_dlopen=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
+$as_echo "$ac_cv_search_dlopen" >&6; }
+ac_res=$ac_cv_search_dlopen
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+
+$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
+
+HAVE_DLOPEN='1'
+
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
+$as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
+$as_echo_n "checking for library containing clock_gettime... " >&6; }
+if ${ac_cv_search_clock_gettime+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char clock_gettime ();
+int
+main ()
+{
+return clock_gettime ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' rt; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_clock_gettime=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_clock_gettime+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_clock_gettime+:} false; then :
+
+else
+ ac_cv_search_clock_gettime=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
+$as_echo "$ac_cv_search_clock_gettime" >&6; }
+ac_res=$ac_cv_search_clock_gettime
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
+if test "$llvm_cv_enable_terminfo" = "yes" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5
+$as_echo_n "checking for library containing setupterm... " >&6; }
+if ${ac_cv_search_setupterm+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char setupterm ();
+int
+main ()
+{
+return setupterm ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_setupterm=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_setupterm+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_setupterm+:} false; then :
+
+else
+ ac_cv_search_setupterm=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5
+$as_echo "$ac_cv_search_setupterm" >&6; }
+ac_res=$ac_cv_search_setupterm
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+
+$as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
+
+HAVE_TERMINFO='1'
+
+
+fi
+
+fi
+
+if test "$llvm_cv_enable_libedit" = "yes" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing el_init" >&5
+$as_echo_n "checking for library containing el_init... " >&6; }
+if ${ac_cv_search_el_init+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char el_init ();
+int
+main ()
+{
+return el_init ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' edit; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_el_init=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_el_init+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_el_init+:} false; then :
+
+else
+ ac_cv_search_el_init=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_el_init" >&5
+$as_echo "$ac_cv_search_el_init" >&6; }
+ac_res=$ac_cv_search_el_init
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
+
+fi
+
+fi
+
+if test "$llvm_cv_enable_libffi" = "yes" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
+$as_echo_n "checking for library containing ffi_call... " >&6; }
+if ${ac_cv_search_ffi_call+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ffi_call ();
+int
+main ()
+{
+return ffi_call ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' ffi; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_ffi_call=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_ffi_call+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_ffi_call+:} false; then :
+
+else
+ ac_cv_search_ffi_call=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
+$as_echo "$ac_cv_search_ffi_call" >&6; }
+ac_res=$ac_cv_search_ffi_call
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
+
+else
+ as_fn_error $? "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
+fi
+
+fi
+
+for ac_func in mallinfo mallctl
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
+$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
+if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpthread $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pthread_mutex_init ();
+int
+main ()
+{
+return pthread_mutex_init ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_pthread_pthread_mutex_init=yes
+else
+ ac_cv_lib_pthread_pthread_mutex_init=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
+$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
+if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBPTHREAD 1
+_ACEOF
+
+ LIBS="-lpthread $LIBS"
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
+$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
+if ${ac_cv_search_pthread_mutex_lock+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pthread_mutex_lock ();
+int
+main ()
+{
+return pthread_mutex_lock ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' pthread; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_pthread_mutex_lock=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_pthread_mutex_lock+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_pthread_mutex_lock+:} false; then :
+
+else
+ ac_cv_search_pthread_mutex_lock=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
+$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
+ac_res=$ac_cv_search_pthread_mutex_lock
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
+$as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
+if ${ac_cv_search_pthread_rwlock_init+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pthread_rwlock_init ();
+int
+main ()
+{
+return pthread_rwlock_init ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' pthread; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_pthread_rwlock_init=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_pthread_rwlock_init+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_pthread_rwlock_init+:} false; then :
+
+else
+ ac_cv_search_pthread_rwlock_init=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
+$as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
+ac_res=$ac_cv_search_pthread_rwlock_init
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
+$as_echo_n "checking for library containing pthread_getspecific... " >&6; }
+if ${ac_cv_search_pthread_getspecific+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pthread_getspecific ();
+int
+main ()
+{
+return pthread_getspecific ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' pthread; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_pthread_getspecific=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_pthread_getspecific+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_pthread_getspecific+:} false; then :
+
+else
+ ac_cv_search_pthread_getspecific=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
+$as_echo "$ac_cv_search_pthread_getspecific" >&6; }
+ac_res=$ac_cv_search_pthread_getspecific
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
+
+fi
+
+fi
+
+if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
+$as_echo_n "checking for compress2 in -lz... " >&6; }
+if ${ac_cv_lib_z_compress2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lz $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char compress2 ();
+int
+main ()
+{
+return compress2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_z_compress2=yes
+else
+ ac_cv_lib_z_compress2=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
+$as_echo "$ac_cv_lib_z_compress2" >&6; }
+if test "x$ac_cv_lib_z_compress2" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBZ 1
+_ACEOF
+
+ LIBS="-lz $LIBS"
+
+fi
+
+fi
+
+USE_OPROFILE=0
+
+# Check whether --with-oprofile was given.
+if test "${with_oprofile+set}" = set; then :
+ withval=$with_oprofile;
+ case "$withval" in
+ no) ;;
+ *)
+ USE_OPROFILE=1
+ ;;
+ esac
+ case "$withval" in
+ /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
+ no) llvm_cv_oppath= ;;
+ *) llvm_cv_oppath="${withval}/lib/oprofile"
+ CPPFLAGS="-I${withval}/include";;
+ esac
+ case $llvm_cv_os_type in
+ Linux)
+ if test -n "$llvm_cv_oppath" ; then
+ LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
+$as_echo_n "checking for library containing bfd_init... " >&6; }
+if ${ac_cv_search_bfd_init+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char bfd_init ();
+int
+main ()
+{
+return bfd_init ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' bfd; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_bfd_init=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_bfd_init+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_bfd_init+:} false; then :
+
+else
+ ac_cv_search_bfd_init=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
+$as_echo "$ac_cv_search_bfd_init" >&6; }
+ac_res=$ac_cv_search_bfd_init
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
+$as_echo_n "checking for library containing op_open_agent... " >&6; }
+if ${ac_cv_search_op_open_agent+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char op_open_agent ();
+int
+main ()
+{
+return op_open_agent ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' opagent; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_op_open_agent=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_op_open_agent+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_op_open_agent+:} false; then :
+
+else
+ ac_cv_search_op_open_agent=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
+$as_echo "$ac_cv_search_op_open_agent" >&6; }
+ac_res=$ac_cv_search_op_open_agent
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+
+ echo "Error! You need to have libopagent around."
+ exit 1
+
+fi
+
+ ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
+if test "x$ac_cv_header_opagent_h" = xyes; then :
+
+else
+
+ echo "Error! You need to have opagent.h around."
+ exit 1
+
+fi
+
+
+ fi ;;
+ *)
+ as_fn_error $? "OProfile support is available on Linux only." "$LINENO" 5 ;;
+ esac
+
+fi
+
+USE_OPROFILE=$USE_OPROFILE
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_USE_OPROFILE $USE_OPROFILE
+_ACEOF
+
+
+
+# Check whether --with-intel-jitevents was given.
+if test "${with_intel_jitevents+set}" = set; then :
+ withval=$with_intel_jitevents;
+ case "$withval" in
+ yes) USE_INTEL_JITEVENTS=1
+;;
+ no) USE_INTEL_JITEVENTS=0
+;;
+ *) as_fn_error $? "Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" "$LINENO" 5;;
+ esac
+
+ case $llvm_cv_os_type in
+ Linux|Win32|Cygwin|MingW) ;;
+ *) as_fn_error $? "Intel JIT API support is available on Linux and Windows only." "$LINENO" 5;;
+ esac
+
+ case "$llvm_cv_target_arch" in
+ x86|x86_64) ;;
+ *) as_fn_error $? "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." "$LINENO" 5;;
+ esac
+
+else
+
+ USE_INTEL_JITEVENTS=0
+
+
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
+_ACEOF
+
+
+
+ac_header_dirent=no
+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
+ as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
+$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
+if eval \${$as_ac_Header+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <$ac_hdr>
+
+int
+main ()
+{
+if ((DIR *) 0)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$as_ac_Header=yes"
+else
+ eval "$as_ac_Header=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$as_ac_Header
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
+_ACEOF
+
+ac_header_dirent=$ac_hdr; break
+fi
+
+done
+# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
+if test $ac_header_dirent = dirent.h; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
+$as_echo_n "checking for library containing opendir... " >&6; }
+if ${ac_cv_search_opendir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char opendir ();
+int
+main ()
+{
+return opendir ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' dir; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_opendir=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_opendir+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_opendir+:} false; then :
+
+else
+ ac_cv_search_opendir=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
+$as_echo "$ac_cv_search_opendir" >&6; }
+ac_res=$ac_cv_search_opendir
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
+$as_echo_n "checking for library containing opendir... " >&6; }
+if ${ac_cv_search_opendir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char opendir ();
+int
+main ()
+{
+return opendir ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' x; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_opendir=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_opendir+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_opendir+:} false; then :
+
+else
+ ac_cv_search_opendir=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
+$as_echo "$ac_cv_search_opendir" >&6; }
+ac_res=$ac_cv_search_opendir
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
+$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
+if ${ac_cv_header_stat_broken+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#if defined S_ISBLK && defined S_IFDIR
+extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
+#endif
+
+#if defined S_ISBLK && defined S_IFCHR
+extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
+#endif
+
+#if defined S_ISLNK && defined S_IFREG
+extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
+#endif
+
+#if defined S_ISSOCK && defined S_IFREG
+extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
+#endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stat_broken=no
+else
+ ac_cv_header_stat_broken=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
+$as_echo "$ac_cv_header_stat_broken" >&6; }
+if test $ac_cv_header_stat_broken = yes; then
+
+$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
+$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
+if ${ac_cv_header_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <sys/time.h>
+#include <time.h>
+
+int
+main ()
+{
+if ((struct tm *) 0)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_time=yes
+else
+ ac_cv_header_time=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
+$as_echo "$ac_cv_header_time" >&6; }
+if test $ac_cv_header_time = yes; then
+
+$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
+
+fi
+
+
+for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+for ac_header in signal.h stdint.h termios.h unistd.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+for ac_header in valgrind/valgrind.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
+if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_VALGRIND_VALGRIND_H 1
+_ACEOF
+
+fi
+
+done
+
+for ac_header in fenv.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
+if test "x$ac_cv_header_fenv_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_FENV_H 1
+_ACEOF
+
+fi
+
+done
+
+ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "#include <stdlib.h>
+"
+if test "x$ac_cv_have_decl_arc4random" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_ARC4RANDOM $ac_have_decl
+_ACEOF
+
+ac_fn_c_check_decl "$LINENO" "FE_ALL_EXCEPT" "ac_cv_have_decl_FE_ALL_EXCEPT" "#include <fenv.h>
+"
+if test "x$ac_cv_have_decl_FE_ALL_EXCEPT" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_FE_ALL_EXCEPT $ac_have_decl
+_ACEOF
+ac_fn_c_check_decl "$LINENO" "FE_INEXACT" "ac_cv_have_decl_FE_INEXACT" "#include <fenv.h>
+"
+if test "x$ac_cv_have_decl_FE_INEXACT" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_FE_INEXACT $ac_have_decl
+_ACEOF
+
+if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
+ for ac_header in pthread.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
+if test "x$ac_cv_header_pthread_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PTHREAD_H 1
+_ACEOF
+ HAVE_PTHREAD=1
+
+else
+ HAVE_PTHREAD=0
+
+fi
+
+done
+
+else
+ HAVE_PTHREAD=0
+
+fi
+if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
+ for ac_header in zlib.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_zlib_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_ZLIB_H 1
+_ACEOF
+ HAVE_LIBZ=1
+
+else
+ HAVE_LIBZ=0
+
+fi
+
+done
+
+else
+ HAVE_LIBZ=0
+
+fi
+
+if test "$llvm_cv_enable_libffi" = "yes" ; then
+ for ac_header in ffi.h ffi/ffi.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+fi
+
+for ac_header in CrashReporterClient.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default"
+if test "x$ac_cv_header_CrashReporterClient_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_CRASHREPORTERCLIENT_H 1
+_ACEOF
+
+fi
+
+done
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __crashreporter_info__" >&5
+$as_echo_n "checking __crashreporter_info__... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+ extern const char *__crashreporter_info__;
+ int main() {
+ __crashreporter_info__ = "test";
+ return 0;
+ }
+
+
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+$as_echo "#define HAVE_CRASHREPORTER_INFO 1" >>confdefs.h
+
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+$as_echo "#define HAVE_CRASHREPORTER_INFO 0" >>confdefs.h
+
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+
+$as_echo "#define HAVE_DIA_SDK 0" >>confdefs.h
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
+$as_echo_n "checking for HUGE_VAL sanity... " >&6; }
+if ${ac_cv_huge_val_sanity+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ ac_save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ if test "$cross_compiling" = yes; then :
+ ac_cv_huge_val_sanity=yes
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <math.h>
+int
+main ()
+{
+double x = HUGE_VAL; return x != x;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_run "$LINENO"; then :
+ ac_cv_huge_val_sanity=yes
+else
+ ac_cv_huge_val_sanity=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ CXXFLAGS=$ac_save_CXXFLAGS
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
+$as_echo "$ac_cv_huge_val_sanity" >&6; }
+ HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
+
+
+ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
+if test "x$ac_cv_type_pid_t" = xyes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define pid_t int
+_ACEOF
+
+fi
+
+ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
+if test "x$ac_cv_type_size_t" = xyes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define size_t unsigned int
+_ACEOF
+
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define RETSIGTYPE void
+_ACEOF
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
+$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
+if ${ac_cv_struct_tm+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <time.h>
+
+int
+main ()
+{
+struct tm tm;
+ int *p = &tm.tm_sec;
+ return !p;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_struct_tm=time.h
+else
+ ac_cv_struct_tm=sys/time.h
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
+$as_echo "$ac_cv_struct_tm" >&6; }
+if test $ac_cv_struct_tm = sys/time.h; then
+
+$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
+
+fi
+
+ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
+if test "x$ac_cv_type_int64_t" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_INT64_T 1
+_ACEOF
+
+
+else
+ as_fn_error $? "Type int64_t required but not found" "$LINENO" 5
+fi
+
+ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
+if test "x$ac_cv_type_uint64_t" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_UINT64_T 1
+_ACEOF
+
+
+else
+ ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
+if test "x$ac_cv_type_u_int64_t" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_U_INT64_T 1
+_ACEOF
+
+
+else
+ as_fn_error $? "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
+fi
+
+fi
+
+
+ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec.tv_nsec" "ac_cv_member_struct_stat_st_mtimensec_tv_nsec" "#include <sys/stat.h>
+"
+if test "x$ac_cv_member_struct_stat_st_mtimensec_tv_nsec" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
+"
+if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
+_ACEOF
+
+
+fi
+
+
+
+for ac_func in _Unwind_Backtrace backtrace getcwd
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in isatty mkdtemp mkstemp
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in strerror strerror_r setenv
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in strtoll sysconf malloc_zone_statistics
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in sigaltstack writev posix_fallocate
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in futimes futimens _chsize_s
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
+if test "x$ac_cv_have_decl_arc4random" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_ARC4RANDOM $ac_have_decl
+_ACEOF
+
+
+ac_fn_c_check_decl "$LINENO" "strerror_s" "ac_cv_have_decl_strerror_s" "$ac_includes_default"
+if test "x$ac_cv_have_decl_strerror_s" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_STRERROR_S $ac_have_decl
+_ACEOF
+
+
+if test "$llvm_cv_os_type" = "MingW" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _alloca in -lgcc" >&5
+$as_echo_n "checking for _alloca in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc__alloca+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char _alloca ();
+int
+main ()
+{
+return _alloca ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc__alloca=yes
+else
+ ac_cv_lib_gcc__alloca=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__alloca" >&5
+$as_echo "$ac_cv_lib_gcc__alloca" >&6; }
+if test "x$ac_cv_lib_gcc__alloca" = xyes; then :
+
+$as_echo "#define HAVE__ALLOCA 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alloca in -lgcc" >&5
+$as_echo_n "checking for __alloca in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___alloca+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __alloca ();
+int
+main ()
+{
+return __alloca ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___alloca=yes
+else
+ ac_cv_lib_gcc___alloca=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___alloca" >&5
+$as_echo "$ac_cv_lib_gcc___alloca" >&6; }
+if test "x$ac_cv_lib_gcc___alloca" = xyes; then :
+
+$as_echo "#define HAVE___ALLOCA 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk in -lgcc" >&5
+$as_echo_n "checking for __chkstk in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___chkstk+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __chkstk ();
+int
+main ()
+{
+return __chkstk ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___chkstk=yes
+else
+ ac_cv_lib_gcc___chkstk=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk" >&5
+$as_echo "$ac_cv_lib_gcc___chkstk" >&6; }
+if test "x$ac_cv_lib_gcc___chkstk" = xyes; then :
+
+$as_echo "#define HAVE___CHKSTK 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk_ms in -lgcc" >&5
+$as_echo_n "checking for __chkstk_ms in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___chkstk_ms+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __chkstk_ms ();
+int
+main ()
+{
+return __chkstk_ms ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___chkstk_ms=yes
+else
+ ac_cv_lib_gcc___chkstk_ms=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk_ms" >&5
+$as_echo "$ac_cv_lib_gcc___chkstk_ms" >&6; }
+if test "x$ac_cv_lib_gcc___chkstk_ms" = xyes; then :
+
+$as_echo "#define HAVE___CHKSTK_MS 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk in -lgcc" >&5
+$as_echo_n "checking for ___chkstk in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc____chkstk+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ___chkstk ();
+int
+main ()
+{
+return ___chkstk ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc____chkstk=yes
+else
+ ac_cv_lib_gcc____chkstk=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk" >&5
+$as_echo "$ac_cv_lib_gcc____chkstk" >&6; }
+if test "x$ac_cv_lib_gcc____chkstk" = xyes; then :
+
+$as_echo "#define HAVE____CHKSTK 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk_ms in -lgcc" >&5
+$as_echo_n "checking for ___chkstk_ms in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc____chkstk_ms+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ___chkstk_ms ();
+int
+main ()
+{
+return ___chkstk_ms ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc____chkstk_ms=yes
+else
+ ac_cv_lib_gcc____chkstk_ms=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk_ms" >&5
+$as_echo "$ac_cv_lib_gcc____chkstk_ms" >&6; }
+if test "x$ac_cv_lib_gcc____chkstk_ms" = xyes; then :
+
+$as_echo "#define HAVE____CHKSTK_MS 1" >>confdefs.h
+
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashldi3 in -lgcc" >&5
+$as_echo_n "checking for __ashldi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___ashldi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __ashldi3 ();
+int
+main ()
+{
+return __ashldi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___ashldi3=yes
+else
+ ac_cv_lib_gcc___ashldi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashldi3" >&5
+$as_echo "$ac_cv_lib_gcc___ashldi3" >&6; }
+if test "x$ac_cv_lib_gcc___ashldi3" = xyes; then :
+
+$as_echo "#define HAVE___ASHLDI3 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashrdi3 in -lgcc" >&5
+$as_echo_n "checking for __ashrdi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___ashrdi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __ashrdi3 ();
+int
+main ()
+{
+return __ashrdi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___ashrdi3=yes
+else
+ ac_cv_lib_gcc___ashrdi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashrdi3" >&5
+$as_echo "$ac_cv_lib_gcc___ashrdi3" >&6; }
+if test "x$ac_cv_lib_gcc___ashrdi3" = xyes; then :
+
+$as_echo "#define HAVE___ASHRDI3 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __divdi3 in -lgcc" >&5
+$as_echo_n "checking for __divdi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___divdi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __divdi3 ();
+int
+main ()
+{
+return __divdi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___divdi3=yes
+else
+ ac_cv_lib_gcc___divdi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___divdi3" >&5
+$as_echo "$ac_cv_lib_gcc___divdi3" >&6; }
+if test "x$ac_cv_lib_gcc___divdi3" = xyes; then :
+
+$as_echo "#define HAVE___DIVDI3 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixdfdi in -lgcc" >&5
+$as_echo_n "checking for __fixdfdi in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___fixdfdi+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __fixdfdi ();
+int
+main ()
+{
+return __fixdfdi ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___fixdfdi=yes
+else
+ ac_cv_lib_gcc___fixdfdi=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixdfdi" >&5
+$as_echo "$ac_cv_lib_gcc___fixdfdi" >&6; }
+if test "x$ac_cv_lib_gcc___fixdfdi" = xyes; then :
+
+$as_echo "#define HAVE___FIXDFDI 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixsfdi in -lgcc" >&5
+$as_echo_n "checking for __fixsfdi in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___fixsfdi+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __fixsfdi ();
+int
+main ()
+{
+return __fixsfdi ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___fixsfdi=yes
+else
+ ac_cv_lib_gcc___fixsfdi=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixsfdi" >&5
+$as_echo "$ac_cv_lib_gcc___fixsfdi" >&6; }
+if test "x$ac_cv_lib_gcc___fixsfdi" = xyes; then :
+
+$as_echo "#define HAVE___FIXSFDI 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __floatdidf in -lgcc" >&5
+$as_echo_n "checking for __floatdidf in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___floatdidf+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __floatdidf ();
+int
+main ()
+{
+return __floatdidf ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___floatdidf=yes
+else
+ ac_cv_lib_gcc___floatdidf=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___floatdidf" >&5
+$as_echo "$ac_cv_lib_gcc___floatdidf" >&6; }
+if test "x$ac_cv_lib_gcc___floatdidf" = xyes; then :
+
+$as_echo "#define HAVE___FLOATDIDF 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __lshrdi3 in -lgcc" >&5
+$as_echo_n "checking for __lshrdi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___lshrdi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __lshrdi3 ();
+int
+main ()
+{
+return __lshrdi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___lshrdi3=yes
+else
+ ac_cv_lib_gcc___lshrdi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___lshrdi3" >&5
+$as_echo "$ac_cv_lib_gcc___lshrdi3" >&6; }
+if test "x$ac_cv_lib_gcc___lshrdi3" = xyes; then :
+
+$as_echo "#define HAVE___LSHRDI3 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __moddi3 in -lgcc" >&5
+$as_echo_n "checking for __moddi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___moddi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __moddi3 ();
+int
+main ()
+{
+return __moddi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___moddi3=yes
+else
+ ac_cv_lib_gcc___moddi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___moddi3" >&5
+$as_echo "$ac_cv_lib_gcc___moddi3" >&6; }
+if test "x$ac_cv_lib_gcc___moddi3" = xyes; then :
+
+$as_echo "#define HAVE___MODDI3 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __udivdi3 in -lgcc" >&5
+$as_echo_n "checking for __udivdi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___udivdi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __udivdi3 ();
+int
+main ()
+{
+return __udivdi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___udivdi3=yes
+else
+ ac_cv_lib_gcc___udivdi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___udivdi3" >&5
+$as_echo "$ac_cv_lib_gcc___udivdi3" >&6; }
+if test "x$ac_cv_lib_gcc___udivdi3" = xyes; then :
+
+$as_echo "#define HAVE___UDIVDI3 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __umoddi3 in -lgcc" >&5
+$as_echo_n "checking for __umoddi3 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___umoddi3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __umoddi3 ();
+int
+main ()
+{
+return __umoddi3 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___umoddi3=yes
+else
+ ac_cv_lib_gcc___umoddi3=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___umoddi3" >&5
+$as_echo "$ac_cv_lib_gcc___umoddi3" >&6; }
+if test "x$ac_cv_lib_gcc___umoddi3" = xyes; then :
+
+$as_echo "#define HAVE___UMODDI3 1" >>confdefs.h
+
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __main in -lgcc" >&5
+$as_echo_n "checking for __main in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __main ();
+int
+main ()
+{
+return __main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___main=yes
+else
+ ac_cv_lib_gcc___main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___main" >&5
+$as_echo "$ac_cv_lib_gcc___main" >&6; }
+if test "x$ac_cv_lib_gcc___main" = xyes; then :
+
+$as_echo "#define HAVE___MAIN 1" >>confdefs.h
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cmpdi2 in -lgcc" >&5
+$as_echo_n "checking for __cmpdi2 in -lgcc... " >&6; }
+if ${ac_cv_lib_gcc___cmpdi2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgcc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char __cmpdi2 ();
+int
+main ()
+{
+return __cmpdi2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gcc___cmpdi2=yes
+else
+ ac_cv_lib_gcc___cmpdi2=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___cmpdi2" >&5
+$as_echo "$ac_cv_lib_gcc___cmpdi2" >&6; }
+if test "x$ac_cv_lib_gcc___cmpdi2" = xyes; then :
+
+$as_echo "#define HAVE___CMPDI2 1" >>confdefs.h
+
+fi
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
+$as_echo_n "checking for GCC atomic builtins... " >&6; }
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+ int main() {
+ volatile unsigned long val = 1;
+ __sync_synchronize();
+ __sync_val_compare_and_swap(&val, 1, 0);
+ __sync_add_and_fetch(&val, 1);
+ __sync_sub_and_fetch(&val, 1);
+ return 0;
+ }
+
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+$as_echo "#define LLVM_HAS_ATOMICS 1" >>confdefs.h
+
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+$as_echo "#define LLVM_HAS_ATOMICS 0" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
+$as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+#include <type_traits>
+struct T { int val; };
+static_assert(std::is_trivially_copyable<T>::value, "ok");
+int main() { return 0; }
+
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1" >>confdefs.h
+
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 0" >>confdefs.h
+
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
+$as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
+if ${llvm_cv_linux_mixed+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __x86_64__
+ error: Not x86-64 even if uname says so!
+ #endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ llvm_cv_linux_mixed=no
+else
+ llvm_cv_linux_mixed=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
+$as_echo "$llvm_cv_linux_mixed" >&6; }
+
+ if test "$llvm_cv_linux_mixed" = "yes"; then
+ llvm_cv_target_arch="x86"
+ ARCH="x86"
+ fi
+fi
+
+SHLIBEXT=$llvm_shlib_ext
+
+
+if test "${prefix}" = "NONE" ; then
+ prefix="/usr/local"
+fi
+eval LLVM_PREFIX="${prefix}";
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_PREFIX "$LLVM_PREFIX"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_HOST_TRIPLE "$host"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
+_ACEOF
+
+
+if test "$BINDINGS_TO_BUILD" = auto ; then
+ BINDINGS_TO_BUILD=""
+ if test "x$OCAMLFIND" != x ; then
+ BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
+ fi
+ if test "x$GO" != x ; then
+ if $GO run ${srcdir}/bindings/go/conftest.go ; then
+ BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
+ fi
+ fi
+fi
+BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
+
+
+binding_prereqs_failed=0
+for a_binding in $BINDINGS_TO_BUILD ; do
+ case "$a_binding" in
+ ocaml)
+ if test "x$OCAMLFIND" = x ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
+$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
+ binding_prereqs_failed=1
+ fi
+
+ if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
+ HAVE_OCAMLOPT=1
+ else
+ HAVE_OCAMLOPT=0
+ fi
+
+
+ if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
+$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
+ binding_prereqs_failed=1
+ fi
+
+ if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
+ HAVE_OCAML_OUNIT=1
+ else
+ HAVE_OCAML_OUNIT=0
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
+$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
+ fi
+
+
+ if test "x$with_ocaml_libdir" != xauto ; then
+ OCAML_LIBDIR=$with_ocaml_libdir
+
+ else
+ ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
+ if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
+ then
+ # ocaml stdlib is beneath our prefix; use stdlib
+ OCAML_LIBDIR=$ocaml_stdlib
+
+ else
+ # ocaml stdlib is outside our prefix; use libdir/ocaml
+ OCAML_LIBDIR=${prefix}/lib/ocaml
+
+ fi
+ fi
+ ;;
+ go)
+ if test "x$GO" = x ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
+$as_echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
+ binding_prereqs_failed=1
+ else
+ if $GO run ${srcdir}/bindings/go/conftest.go ; then
+ :
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
+$as_echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
+ binding_prereqs_failed=1
+ fi
+ fi
+ ;;
+ esac
+done
+if test "$binding_prereqs_failed" = 1 ; then
+ as_fn_error $? "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
+$as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
+if ${llvm_cv_cxx_visibility_inlines_hidden+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+ oldcxxflags="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+template <typename T> struct X { void __attribute__((noinline)) f() {} };
+int
+main ()
+{
+X<int>().f();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ llvm_cv_cxx_visibility_inlines_hidden=yes
+else
+ llvm_cv_cxx_visibility_inlines_hidden=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CXXFLAGS="$oldcxxflags"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
+$as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
+if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
+ ENABLE_VISIBILITY_INLINES_HIDDEN=1
+
+else
+ ENABLE_VISIBILITY_INLINES_HIDDEN=0
+
+fi
+
+
+if test "$llvm_cv_link_use_r" = "yes" ; then
+ RPATH="-Wl,-R"
+else
+ RPATH="-Wl,-rpath"
+fi
+
+
+if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
+ RDYNAMIC="-rdynamic"
+else
+ RDYNAMIC=""
+fi
+
+
+
+$as_echo "#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0" >>confdefs.h
+
+
+cat >>confdefs.h <<_ACEOF
+#define BACKTRACE_HEADER <execinfo.h>
+_ACEOF
+
+
+
+$as_echo "#define LLVM_ENABLE_CRASH_DUMPS 0" >>confdefs.h
+
+
+$as_echo "#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0" >>confdefs.h
+
+
+
+ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h include/llvm/Config/abi-breaking.h"
+
+
+
+
+ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
+
+ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
+
+ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
+
+ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
+
+ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
+
+
+if test "${clang_src_root}" = ""; then
+ clang_src_root="$srcdir/tools/clang"
+fi
+if test -f ${clang_src_root}/README.txt; then
+ ac_config_headers="$ac_config_headers include/clang/Config/config.h"
+
+fi
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by LLVM $as_me 4.0.0svn, which was
+generated by GNU Autoconf 2.69. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Report bugs to <http://llvm.org/bugs/>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ac_cs_version="\\
+LLVM config.status 4.0.0svn
+configured by $0, generated by GNU Autoconf 2.69,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
+ "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
+ "include/llvm/Config/abi-breaking.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/abi-breaking.h" ;;
+ "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
+ "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
+ "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
+ "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
+ "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
+ "include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/clang/Config/config.h" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_tt"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+ } >"$ac_tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$ac_tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
+ fi
+ ;;
+
+
+ esac
+
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit 1
+fi
+
+#
+# CONFIG_SUBDIRS section.
+#
+if test "$no_recursion" != yes; then
+
+ # Remove --cache-file, --srcdir, and --disable-option-checking arguments
+ # so they do not pile up.
+ ac_sub_configure_args=
+ ac_prev=
+ eval "set x $ac_configure_args"
+ shift
+ for ac_arg
+ do
+ if test -n "$ac_prev"; then
+ ac_prev=
+ continue
+ fi
+ case $ac_arg in
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
+ | --c=*)
+ ;;
+ --config-cache | -C)
+ ;;
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ ;;
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ ;;
+ --disable-option-checking)
+ ;;
+ *)
+ case $ac_arg in
+ *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
+ esac
+ done
+
+ # Always prepend --prefix to ensure using the same prefix
+ # in subdir configurations.
+ ac_arg="--prefix=$prefix"
+ case $ac_arg in
+ *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
+
+ # Pass --silent
+ if test "$silent" = yes; then
+ ac_sub_configure_args="--silent $ac_sub_configure_args"
+ fi
+
+ # Always prepend --disable-option-checking to silence warnings, since
+ # different subdirs can have different --enable and --with options.
+ ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
+
+ ac_popdir=`pwd`
+ for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
+
+ # Do not complain, so a configure script can configure whichever
+ # parts of a large source tree are present.
+ test -d "$srcdir/$ac_dir" || continue
+
+ ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
+ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
+ $as_echo "$ac_msg" >&6
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ cd "$ac_dir"
+
+ # Check for guested configure; otherwise get Cygnus style configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ ac_sub_configure=$ac_srcdir/configure.gnu
+ elif test -f "$ac_srcdir/configure"; then
+ ac_sub_configure=$ac_srcdir/configure
+ elif test -f "$ac_srcdir/configure.in"; then
+ # This should be Cygnus configure.
+ ac_sub_configure=$ac_aux_dir/configure
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
+$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
+ ac_sub_configure=
+ fi
+
+ # The recursion is here.
+ if test -n "$ac_sub_configure"; then
+ # Make the cache file name correct relative to the subdirectory.
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
+ *) # Relative name.
+ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
+ esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
+$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
+ # The eval makes quoting arguments work.
+ eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
+ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
+ as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
+ fi
+
+ cd "$ac_popdir"
+ done
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
diff --git a/external/apache2/llvm/autoconf/include/clang/Config/config.h.in b/external/apache2/llvm/autoconf/include/clang/Config/config.h.in
new file mode 100644
index 00000000000..e3ad9bc92c6
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/clang/Config/config.h.in
@@ -0,0 +1,66 @@
+/* This generated file is for internal use. Do not include it from headers. */
+
+#ifdef CLANG_CONFIG_H
+#error config.h can only be included once
+#else
+#define CLANG_CONFIG_H
+
+/* Bug report URL. */
+#undef BUG_REPORT_URL
+
+/* Default C++ stdlib to use. */
+#undef CLANG_DEFAULT_CXX_STDLIB
+
+/* Default objcopy to use */
+#undef CLANG_DEFAULT_OBJCOPY
+
+/* Default runtime library to use. */
+#undef CLANG_DEFAULT_RTLIB
+
+/* Default unwind library to use. */
+#undef CLANG_DEFAULT_UNWINDLIB
+
+/* Default linker to use (linker name or absolute path, empty for platform
+ default) */
+#undef CLANG_DEFAULT_LINKER
+
+/* Default OpenMP runtime used by -fopenmp. */
+#undef CLANG_DEFAULT_OPENMP_RUNTIME
+
+/* Multilib suffix for libdir. */
+#undef CLANG_LIBDIR_SUFFIX
+
+/* Relative directory for resource files */
+#undef CLANG_RESOURCE_DIR
+
+/* Directories clang will search for headers */
+#undef C_INCLUDE_DIRS
+
+/* Default <path> to all compiler invocations for --sysroot=<path>. */
+#undef DEFAULT_SYSROOT
+
+/* Directory where gcc is installed. */
+#undef GCC_INSTALL_PREFIX
+
+/* Define if we have libxml2 */
+#undef CLANG_HAVE_LIBXML
+
+#undef PACKAGE_STRING
+
+/* The LLVM product name and version */
+#define BACKEND_PACKAGE_STRING PACKAGE_STRING
+
+/* Linker version detected at compile time. */
+#undef HOST_LINK_VERSION
+
+/* enable x86 relax relocations by default */
+#undef ENABLE_X86_RELAX_RELOCATIONS
+
+#undef CLANG_ENABLE_ARCMT
+#undef CLANG_ENABLE_OBJC_REWRITER
+#undef CLANG_ENABLE_STATIC_ANALYZER
+
+#undef ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER
+#undef CLANG_OPENMP_NVPTX_DEFAULT_ARCH
+
+#endif
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/AsmParsers.def.in b/external/apache2/llvm/autoconf/include/llvm/Config/AsmParsers.def.in
new file mode 100644
index 00000000000..d63675351c8
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/AsmParsers.def.in
@@ -0,0 +1,29 @@
+/*===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the assembly-language parsers *|
+|* supported by this build of LLVM. Clients of this file should define *|
+|* the LLVM_ASM_PARSER macro to be a function-like macro with a *|
+|* single parameter (the name of the target whose assembly can be *|
+|* generated); including this file will then enumerate all of the *|
+|* targets with assembly parsers. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_ASM_PARSER
+# error Please define the macro LLVM_ASM_PARSER(TargetName)
+#endif
+
+@LLVM_ENUM_ASM_PARSERS@
+
+#undef LLVM_ASM_PARSER
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/AsmPrinters.def.in b/external/apache2/llvm/autoconf/include/llvm/Config/AsmPrinters.def.in
new file mode 100644
index 00000000000..f0152a4aa97
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/AsmPrinters.def.in
@@ -0,0 +1,29 @@
+/*===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the assembly-language printers *|
+|* supported by this build of LLVM. Clients of this file should define *|
+|* the LLVM_ASM_PRINTER macro to be a function-like macro with a *|
+|* single parameter (the name of the target whose assembly can be *|
+|* generated); including this file will then enumerate all of the *|
+|* targets with assembly printers. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_ASM_PRINTER
+# error Please define the macro LLVM_ASM_PRINTER(TargetName)
+#endif
+
+@LLVM_ENUM_ASM_PRINTERS@
+
+#undef LLVM_ASM_PRINTER
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/Disassemblers.def.in b/external/apache2/llvm/autoconf/include/llvm/Config/Disassemblers.def.in
new file mode 100644
index 00000000000..d3a9bbdeaea
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/Disassemblers.def.in
@@ -0,0 +1,29 @@
+/*===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the assembly-language parsers *|
+|* supported by this build of LLVM. Clients of this file should define *|
+|* the LLVM_DISASSEMBLER macro to be a function-like macro with a *|
+|* single parameter (the name of the target whose assembly can be *|
+|* generated); including this file will then enumerate all of the *|
+|* targets with assembly parsers. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_DISASSEMBLER
+# error Please define the macro LLVM_DISASSEMBLER(TargetName)
+#endif
+
+@LLVM_ENUM_DISASSEMBLERS@
+
+#undef LLVM_DISASSEMBLER
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/Targets.def.in b/external/apache2/llvm/autoconf/include/llvm/Config/Targets.def.in
new file mode 100644
index 00000000000..d589ecee12c
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/Targets.def.in
@@ -0,0 +1,28 @@
+/*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the target architectures supported by *|
+|* this build of LLVM. Clients of this file should define the *|
+|* LLVM_TARGET macro to be a function-like macro with a single *|
+|* parameter (the name of the target); including this file will then *|
+|* enumerate all of the targets. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_TARGET
+# error Please define the macro LLVM_TARGET(TargetName)
+#endif
+
+@LLVM_ENUM_TARGETS@
+
+#undef LLVM_TARGET
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/abi-breaking.h.in b/external/apache2/llvm/autoconf/include/llvm/Config/abi-breaking.h.in
new file mode 100644
index 00000000000..2379aad23df
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/abi-breaking.h.in
@@ -0,0 +1,41 @@
+/*===------- llvm/Config/abi-breaking.h - llvm configuration -------*- C -*-===*/
+/* */
+/* The LLVM Compiler Infrastructure */
+/* */
+/* This file is distributed under the University of Illinois Open Source */
+/* License. See LICENSE.TXT for details. */
+/* */
+/*===----------------------------------------------------------------------===*/
+
+/* This file controls the C++ ABI break introduced in LLVM public header. */
+
+#ifndef LLVM_ABI_BREAKING_CHECKS_H
+#define LLVM_ABI_BREAKING_CHECKS_H
+
+/* Define to enable checks that alter the LLVM C++ ABI */
+#undef LLVM_ENABLE_ABI_BREAKING_CHECKS
+
+// ABI_BREAKING_CHECKS protection: provides link-time failure when clients build
+// mismatch with LLVM
+#if defined(_MSC_VER)
+// Use pragma with MSVC
+#define LLVM_XSTR(s) LLVM_STR(s)
+#define LLVM_STR(s) #s
+#pragma detect_mismatch("LLVM_ENABLE_ABI_BREAKING_CHECKS", LLVM_XSTR(LLVM_ENABLE_ABI_BREAKING_CHECKS))
+#undef LLVM_XSTR
+#undef LLVM_STR
+#elif defined(_WIN32) || defined(__CYGWIN__) // Win32 w/o #pragma detect_mismatch
+// FIXME: Implement checks without weak.
+#elif defined(__cplusplus)
+namespace llvm {
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
+extern int EnableABIBreakingChecks;
+__attribute__((weak, visibility ("hidden"))) int *VerifyEnableABIBreakingChecks = &EnableABIBreakingChecks;
+#else
+extern int DisableABIBreakingChecks;
+__attribute__((weak, visibility ("hidden"))) int *VerifyDisableABIBreakingChecks = &DisableABIBreakingChecks;
+#endif
+}
+#endif // _MSC_VER
+
+#endif
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in b/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in
new file mode 100644
index 00000000000..a84cb0812fc
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in
@@ -0,0 +1,521 @@
+/* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+/* Exported configuration */
+#include "llvm/Config/llvm-config.h"
+
+/* Header containing the backtrace function */
+#undef BACKTRACE_HEADER
+
+/* Bug report URL. */
+#undef BUG_REPORT_URL
+
+/* Default C++ stdlib to use. */
+#undef CLANG_DEFAULT_CXX_STDLIB
+
+/* Default linker to use (linker name or absolute path, empty for platform
+ default) */
+#undef CLANG_DEFAULT_LINKER
+
+/* Default objcopy to use. */
+#undef CLANG_DEFAULT_OBJCOPY
+
+/* Default OpenMP runtime used by -fopenmp. */
+#undef CLANG_DEFAULT_OPENMP_RUNTIME
+
+/* Default runtime library to use. */
+#undef CLANG_DEFAULT_RTLIB
+
+/* Default unwind library to use. */
+#undef CLANG_DEFAULT_UNWINDLIB
+
+/* Build ARCMT */
+#undef CLANG_ENABLE_ARCMT
+
+/* Build ObjC rewriter */
+#undef CLANG_ENABLE_OBJC_REWRITER
+
+/* Build Static analyzer */
+#undef CLANG_ENABLE_STATIC_ANALYZER
+
+/* Multilib suffix for libdir. */
+#undef CLANG_LIBDIR_SUFFIX
+
+/* Default architecture for OpenMP offloading to Nvidia GPUs. */
+#undef CLANG_OPENMP_NVPTX_DEFAULT_ARCH
+
+/* Relative directory for resource files */
+#undef CLANG_RESOURCE_DIR
+
+/* Directories clang will search for headers */
+#undef C_INCLUDE_DIRS
+
+/* Default <path> to all compiler invocations for --sysroot=<path>. */
+#undef DEFAULT_SYSROOT
+
+/* Define to 1 to enable backtraces, and to 0 otherwise. */
+#undef ENABLE_BACKTRACES
+
+/* Define to 1 to enable crash overrides, and to 0 otherwise. */
+#undef ENABLE_CRASH_OVERRIDES
+
+/* Enable the experimental new pass manager by default */
+#undef ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER
+
+/* enable x86 relax relocations by default */
+#undef ENABLE_X86_RELAX_RELOCATIONS
+
+/* Directory where gcc is installed. */
+#undef GCC_INSTALL_PREFIX
+
+/* Define to 1 if you have the `backtrace' function. */
+#undef HAVE_BACKTRACE
+
+/* Define to 1 if you have the <CrashReporterClient.h> header file. */
+#undef HAVE_CRASHREPORTERCLIENT_H
+
+/* can use __crashreporter_info__ */
+#undef HAVE_CRASHREPORTER_INFO
+
+/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
+ don't. */
+#undef HAVE_DECL_ARC4RANDOM
+
+/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you
+ don't. */
+#undef HAVE_DECL_FE_ALL_EXCEPT
+
+/* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you
+ don't. */
+#undef HAVE_DECL_FE_INEXACT
+
+/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
+ don't. */
+#undef HAVE_DECL_STRERROR_S
+
+/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */
+#undef HAVE_DIA_SDK
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_DIRENT_H
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define if dlopen() is available on this platform. */
+#undef HAVE_DLOPEN
+
+/* Define to 1 if you have the <errno.h> header file. */
+#undef HAVE_ERRNO_H
+
+/* Define to 1 if you have the <execinfo.h> header file. */
+#undef HAVE_EXECINFO_H
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define to 1 if you have the <fenv.h> header file. */
+#undef HAVE_FENV_H
+
+/* Define if libffi is available on this platform. */
+#undef HAVE_FFI_CALL
+
+/* Define to 1 if you have the <ffi/ffi.h> header file. */
+#undef HAVE_FFI_FFI_H
+
+/* Define to 1 if you have the <ffi.h> header file. */
+#undef HAVE_FFI_H
+
+/* Define to 1 if you have the `futimens' function. */
+#undef HAVE_FUTIMENS
+
+/* Define to 1 if you have the `futimes' function. */
+#undef HAVE_FUTIMES
+
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
+
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
+/* Define to 1 if you have the `getrlimit' function. */
+#undef HAVE_GETRLIMIT
+
+/* Define to 1 if you have the `getrusage' function. */
+#undef HAVE_GETRUSAGE
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#undef HAVE_GETTIMEOFDAY
+
+/* Define to 1 if the system has the type `int64_t'. */
+#undef HAVE_INT64_T
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `isatty' function. */
+#undef HAVE_ISATTY
+
+/* Define to 1 if you have the `edit' library (-ledit). */
+#undef HAVE_LIBEDIT
+
+/* Define to 1 if you have the `psapi' library (-lpsapi). */
+#undef HAVE_LIBPSAPI
+
+/* Define to 1 if you have the `pthread' library (-lpthread). */
+#undef HAVE_LIBPTHREAD
+
+/* Define to 1 if you have the `shell32' library (-lshell32). */
+#undef HAVE_LIBSHELL32
+
+/* Define to 1 if you have the `z' library (-lz). */
+#undef HAVE_LIBZ
+
+/* Define to 1 if you have the <link.h> header file. */
+#undef HAVE_LINK_H
+
+/* Define to 1 if you have the <mach/mach.h> header file. */
+#undef HAVE_MACH_MACH_H
+
+/* Define to 1 if you have the `mallctl' function. */
+#undef HAVE_MALLCTL
+
+/* Define to 1 if you have the `mallinfo' function. */
+#undef HAVE_MALLINFO
+
+/* Define to 1 if you have the <malloc/malloc.h> header file. */
+#undef HAVE_MALLOC_MALLOC_H
+
+/* Define to 1 if you have the `malloc_zone_statistics' function. */
+#undef HAVE_MALLOC_ZONE_STATISTICS
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `mkdtemp' function. */
+#undef HAVE_MKDTEMP
+
+/* Define to 1 if you have the `mkstemp' function. */
+#undef HAVE_MKSTEMP
+
+/* Define to 1 if you have the `mktemp' function. */
+#undef HAVE_MKTEMP
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+#undef HAVE_NDIR_H
+
+/* Define to 1 if you have the `posix_fallocate' function. */
+#undef HAVE_POSIX_FALLOCATE
+
+/* Define to 1 if you have the `posix_spawn' function. */
+#undef HAVE_POSIX_SPAWN
+
+/* Define to 1 if you have the `pread' function. */
+#undef HAVE_PREAD
+
+/* Have pthread_getspecific */
+#undef HAVE_PTHREAD_GETSPECIFIC
+
+/* Define to 1 if you have the <pthread.h> header file. */
+#undef HAVE_PTHREAD_H
+
+/* Have pthread_mutex_lock */
+#undef HAVE_PTHREAD_MUTEX_LOCK
+
+/* Have pthread_rwlock_init */
+#undef HAVE_PTHREAD_RWLOCK_INIT
+
+/* Define to 1 if you have the `realpath' function. */
+#undef HAVE_REALPATH
+
+/* Define to 1 if you have the `sbrk' function. */
+#undef HAVE_SBRK
+
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
+/* Define to 1 if you have the `setrlimit' function. */
+#undef HAVE_SETRLIMIT
+
+/* Define to 1 if you have the `sigaltstack' function. */
+#undef HAVE_SIGALTSTACK
+
+/* Define to 1 if you have the <signal.h> header file. */
+#undef HAVE_SIGNAL_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Has usable std::is_trivially_copyable */
+#undef HAVE_STD_IS_TRIVIALLY_COPYABLE
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the `strerror_r' function. */
+#undef HAVE_STRERROR_R
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strtoll' function. */
+#undef HAVE_STRTOLL
+
+/* Define to 1 if `st_mtimensec.tv_nsec' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC
+
+/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
+
+/* Define to 1 if you have the `sysconf' function. */
+#undef HAVE_SYSCONF
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_SYS_DIR_H
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#undef HAVE_SYS_IOCTL_H
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+#undef HAVE_SYS_MMAN_H
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_SYS_NDIR_H
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#undef HAVE_SYS_PARAM_H
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#undef HAVE_SYS_RESOURCE_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <sys/uio.h> header file. */
+#undef HAVE_SYS_UIO_H
+
+/* Define if the setupterm() function is supported this platform. */
+#undef HAVE_TERMINFO
+
+/* Define to 1 if you have the <termios.h> header file. */
+#undef HAVE_TERMIOS_H
+
+/* Define to 1 if the system has the type `uint64_t'. */
+#undef HAVE_UINT64_T
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if the system has the type `u_int64_t'. */
+#undef HAVE_U_INT64_T
+
+/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
+#undef HAVE_VALGRIND_VALGRIND_H
+
+/* Define to 1 if you have the `writev' function. */
+#undef HAVE_WRITEV
+
+/* Define to 1 if you have the <zlib.h> header file. */
+#undef HAVE_ZLIB_H
+
+/* Have host's _alloca */
+#undef HAVE__ALLOCA
+
+/* Define to 1 if you have the `_chsize_s' function. */
+#undef HAVE__CHSIZE_S
+
+/* Define to 1 if you have the `_Unwind_Backtrace' function. */
+#undef HAVE__UNWIND_BACKTRACE
+
+/* Have host's __alloca */
+#undef HAVE___ALLOCA
+
+/* Have host's __ashldi3 */
+#undef HAVE___ASHLDI3
+
+/* Have host's __ashrdi3 */
+#undef HAVE___ASHRDI3
+
+/* Have host's __chkstk */
+#undef HAVE___CHKSTK
+
+/* Have host's __chkstk_ms */
+#undef HAVE___CHKSTK_MS
+
+/* Have host's __cmpdi2 */
+#undef HAVE___CMPDI2
+
+/* Have host's __divdi3 */
+#undef HAVE___DIVDI3
+
+/* Have host's __fixdfdi */
+#undef HAVE___FIXDFDI
+
+/* Have host's __fixsfdi */
+#undef HAVE___FIXSFDI
+
+/* Have host's __floatdidf */
+#undef HAVE___FLOATDIDF
+
+/* Have host's __lshrdi3 */
+#undef HAVE___LSHRDI3
+
+/* Have host's __main */
+#undef HAVE___MAIN
+
+/* Have host's __moddi3 */
+#undef HAVE___MODDI3
+
+/* Have host's __udivdi3 */
+#undef HAVE___UDIVDI3
+
+/* Have host's __umoddi3 */
+#undef HAVE___UMODDI3
+
+/* Have host's ___chkstk */
+#undef HAVE____CHKSTK
+
+/* Have host's ___chkstk_ms */
+#undef HAVE____CHKSTK_MS
+
+/* Linker version detected at compile time. */
+#undef HOST_LINK_VERSION
+
+/* Define if we link Polly to the tools */
+#undef LINK_POLLY_INTO_TOOLS
+
+/* Target triple LLVM will generate code for by default */
+#undef LLVM_DEFAULT_TARGET_TRIPLE
+
+/* Define to 1 to checks for ABI changes, and to 0 otherwise. */
+#undef LLVM_ENABLE_ABI_BREAKING_CHECKS
+
+/* Enable crash memory dumps (Windows-only) */
+#undef LLVM_ENABLE_CRASH_DUMPS
+
+/* Define if threads enabled */
+#undef LLVM_ENABLE_THREADS
+
+/* Define if zlib compression is available */
+#undef LLVM_ENABLE_ZLIB
+
+/* Has gcc/MSVC atomic intrinsics */
+#undef LLVM_HAS_ATOMICS
+
+/* Host triple LLVM will be executed on */
+#undef LLVM_HOST_TRIPLE
+
+/* LLVM architecture name for the native architecture, if available */
+#undef LLVM_NATIVE_ARCH
+
+/* LLVM name for the native AsmParser init function, if available */
+#undef LLVM_NATIVE_ASMPARSER
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#undef LLVM_NATIVE_ASMPRINTER
+
+/* LLVM name for the native Disassembler init function, if available */
+#undef LLVM_NATIVE_DISASSEMBLER
+
+/* LLVM name for the native Target init function, if available */
+#undef LLVM_NATIVE_TARGET
+
+/* LLVM name for the native TargetInfo init function, if available */
+#undef LLVM_NATIVE_TARGETINFO
+
+/* LLVM name for the native target MC init function, if available */
+#undef LLVM_NATIVE_TARGETMC
+
+/* Define if this is Unixish platform */
+#undef LLVM_ON_UNIX
+
+/* Define if this is Win32ish platform */
+#undef LLVM_ON_WIN32
+
+/* Installation prefix directory */
+#undef LLVM_PREFIX
+
+/* Enable support for Xcode signposts (disabled) */
+#undef LLVM_SUPPORT_XCODE_SIGNPOSTS
+
+/* Define if we have the Intel JIT API runtime support library */
+#undef LLVM_USE_INTEL_JITEVENTS
+
+/* Define if we have the oprofile JIT-support library */
+#undef LLVM_USE_OPROFILE
+
+/* LLVM version information */
+#undef LLVM_VERSION_INFO
+
+/* Major version of the LLVM API */
+#undef LLVM_VERSION_MAJOR
+
+/* Minor version of the LLVM API */
+#undef LLVM_VERSION_MINOR
+
+/* Patch version of the LLVM API */
+#undef LLVM_VERSION_PATCH
+
+/* LLVM version string */
+#undef LLVM_VERSION_STRING
+
+/* Define to the extension used for shared libraries, say, ".so". */
+#undef LTDL_SHLIB_EXT
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#undef RETSIGTYPE
+
+/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
+#undef STAT_MACROS_BROKEN
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#undef TIME_WITH_SYS_TIME
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+#undef TM_IN_SYS_TIME
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
+
+#endif
diff --git a/external/apache2/llvm/autoconf/include/llvm/Config/llvm-config.h.in b/external/apache2/llvm/autoconf/include/llvm/Config/llvm-config.h.in
new file mode 100644
index 00000000000..0eda3bc4fe1
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/llvm-config.h.in
@@ -0,0 +1,83 @@
+/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
+/* */
+/* The LLVM Compiler Infrastructure */
+/* */
+/* This file is distributed under the University of Illinois Open Source */
+/* License. See LICENSE.TXT for details. */
+/* */
+/*===----------------------------------------------------------------------===*/
+
+/* This file enumerates variables from the LLVM configuration so that they
+ can be in exported headers and won't override package specific directives.
+ This is a C header that can be included in the llvm-c headers. */
+
+#ifndef LLVM_CONFIG_H
+#define LLVM_CONFIG_H
+
+/* Define if we link Polly to the tools */
+#undef LINK_POLLY_INTO_TOOLS
+
+/* Target triple LLVM will generate code for by default */
+#undef LLVM_DEFAULT_TARGET_TRIPLE
+
+/* Define to enable checks that alter the LLVM C++ ABI */
+#undef LLVM_ENABLE_ABI_BREAKING_CHECKS
+
+/* Define if threads enabled */
+#undef LLVM_ENABLE_THREADS
+
+/* Has gcc/MSVC atomic intrinsics */
+#undef LLVM_HAS_ATOMICS
+
+/* Host triple LLVM will be executed on */
+#undef LLVM_HOST_TRIPLE
+
+/* LLVM architecture name for the native architecture, if available */
+#undef LLVM_NATIVE_ARCH
+
+/* LLVM name for the native AsmParser init function, if available */
+#undef LLVM_NATIVE_ASMPARSER
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#undef LLVM_NATIVE_ASMPRINTER
+
+/* LLVM name for the native Disassembler init function, if available */
+#undef LLVM_NATIVE_DISASSEMBLER
+
+/* LLVM name for the native Target init function, if available */
+#undef LLVM_NATIVE_TARGET
+
+/* LLVM name for the native TargetInfo init function, if available */
+#undef LLVM_NATIVE_TARGETINFO
+
+/* LLVM name for the native target MC init function, if available */
+#undef LLVM_NATIVE_TARGETMC
+
+/* Define if this is Unixish platform */
+#undef LLVM_ON_UNIX
+
+/* Define if this is Win32ish platform */
+#undef LLVM_ON_WIN32
+
+/* Installation prefix directory */
+#undef LLVM_PREFIX
+
+/* Define if we have the Intel JIT API runtime support library */
+#undef LLVM_USE_INTEL_JITEVENTS
+
+/* Define if we have the oprofile JIT-support library */
+#undef LLVM_USE_OPROFILE
+
+/* Major version of the LLVM API */
+#undef LLVM_VERSION_MAJOR
+
+/* Minor version of the LLVM API */
+#undef LLVM_VERSION_MINOR
+
+/* Patch version of the LLVM API */
+#undef LLVM_VERSION_PATCH
+
+/* LLVM version string */
+#undef LLVM_VERSION_STRING
+
+#endif
diff --git a/external/apache2/llvm/autoconf/include/llvm/Support/DataTypes.h.in b/external/apache2/llvm/autoconf/include/llvm/Support/DataTypes.h.in
new file mode 100644
index 00000000000..a55e0b1f2c0
--- /dev/null
+++ b/external/apache2/llvm/autoconf/include/llvm/Support/DataTypes.h.in
@@ -0,0 +1,130 @@
+/*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file contains definitions to figure out the size of _HOST_ data types.*|
+|* This file is important because different host OS's define different macros,*|
+|* which makes portability tough. This file exports the following *|
+|* definitions: *|
+|* *|
+|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
+|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
+|* *|
+|* No library is required when using these functions. *|
+|* *|
+|*===----------------------------------------------------------------------===*/
+
+/* Please leave this file C-compatible. */
+
+/* Please keep this file in sync with DataTypes.h.cmake */
+
+#ifndef SUPPORT_DATATYPES_H
+#define SUPPORT_DATATYPES_H
+
+#undef HAVE_INTTYPES_H
+#undef HAVE_STDINT_H
+#undef HAVE_UINT64_T
+#undef HAVE_U_INT64_T
+
+#ifdef __cplusplus
+#include <cmath>
+#else
+#include <math.h>
+#endif
+
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+#error "Compiler must provide an implementation of stdint.h"
+#endif
+
+#ifndef _MSC_VER
+
+/* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
+ being defined. We would define it here, but in order to prevent Bad Things
+ happening when system headers or C++ STL headers include stdint.h before we
+ define it here, we define it on the g++ command line (in Makefile.rules). */
+#if !defined(__STDC_LIMIT_MACROS)
+# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
+#endif
+
+#if !defined(__STDC_CONSTANT_MACROS)
+# error "Must #define __STDC_CONSTANT_MACROS before " \
+ "#including Support/DataTypes.h"
+#endif
+
+/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
+#include <sys/types.h>
+
+#ifdef _AIX
+#include "llvm/Support/AIXDataTypesFix.h"
+#endif
+
+/* Handle incorrect definition of uint64_t as u_int64_t */
+#ifndef HAVE_UINT64_T
+#ifdef HAVE_U_INT64_T
+typedef u_int64_t uint64_t;
+#else
+# error "Don't have a definition for uint64_t on this platform"
+#endif
+#endif
+
+#else /* _MSC_VER */
+#include <stdlib.h>
+#include <stddef.h>
+#include <sys/types.h>
+#ifdef __cplusplus
+#include <cmath>
+#else
+#include <math.h>
+#endif
+
+#if defined(_WIN64)
+typedef signed __int64 ssize_t;
+#else
+typedef signed int ssize_t;
+#endif /* _WIN64 */
+
+#ifndef HAVE_INTTYPES_H
+#define PRId64 "I64d"
+#define PRIi64 "I64i"
+#define PRIo64 "I64o"
+#define PRIu64 "I64u"
+#define PRIx64 "I64x"
+#define PRIX64 "I64X"
+
+#define PRId32 "d"
+#define PRIi32 "i"
+#define PRIo32 "o"
+#define PRIu32 "u"
+#define PRIx32 "x"
+#define PRIX32 "X"
+#endif /* HAVE_INTTYPES_H */
+
+#endif /* _MSC_VER */
+
+/* Set defaults for constants which we cannot find. */
+#if !defined(INT64_MAX)
+# define INT64_MAX 9223372036854775807LL
+#endif
+#if !defined(INT64_MIN)
+# define INT64_MIN ((-INT64_MAX)-1)
+#endif
+#if !defined(UINT64_MAX)
+# define UINT64_MAX 0xffffffffffffffffULL
+#endif
+
+#ifndef HUGE_VALF
+#define HUGE_VALF (float)HUGE_VAL
+#endif
+
+#endif /* SUPPORT_DATATYPES_H */
diff --git a/external/apache2/llvm/autoconf/run-autoconf b/external/apache2/llvm/autoconf/run-autoconf
new file mode 100755
index 00000000000..e3d748fe153
--- /dev/null
+++ b/external/apache2/llvm/autoconf/run-autoconf
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+autoconf/AutoRegen.sh
+rm -rf autom4te.cache autoconf/autom4te.cache
diff --git a/external/apache2/llvm/bin/Makefile b/external/apache2/llvm/bin/Makefile
new file mode 100644
index 00000000000..360fd0a4e82
--- /dev/null
+++ b/external/apache2/llvm/bin/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+.include <bsd.own.mk>
+
+SUBDIR= clang \
+ clang-tblgen \
+ tblgen
+
+.if defined(LLVM_DEVELOPER)
+SUBDIR+= \
+ bugpoint \
+ clang-format \
+ clang-rename \
+ llc \
+ lli \
+ llvm-ar \
+ llvm-as \
+ llvm-bcanalyzer \
+ llvm-cov \
+ llvm-cxxdump \
+ llvm-cxxfilt \
+ llvm-diff \
+ llvm-dis \
+ llvm-dwarfdump \
+ llvm-dwp \
+ llvm-extract \
+ llvm-link \
+ llvm-mc \
+ llvm-nm \
+ llvm-objdump \
+ llvm-profdata \
+ llvm-readobj \
+ llvm-size \
+ llvm-strings \
+ llvm-symbolizer \
+ llvm-xray \
+ opt \
+ sancov \
+ sanstats
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/external/apache2/llvm/bin/Makefile.inc b/external/apache2/llvm/bin/Makefile.inc
new file mode 100644
index 00000000000..9de8084b8ed
--- /dev/null
+++ b/external/apache2/llvm/bin/Makefile.inc
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile.inc,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+BINDIR= /usr/bin
+
+.include "${.PARSEDIR}/../Makefile.inc"
diff --git a/external/apache2/llvm/bin/bugpoint/Makefile b/external/apache2/llvm/bin/bugpoint/Makefile
new file mode 100644
index 00000000000..52584cbf118
--- /dev/null
+++ b/external/apache2/llvm/bin/bugpoint/Makefile
@@ -0,0 +1,96 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+PROG_CXX= bugpoint
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/bugpoint
+
+SRCS= BugDriver.cpp \
+ CrashDebugger.cpp \
+ ExecutionDriver.cpp \
+ ExtractFunction.cpp \
+ FindBugs.cpp \
+ Miscompilation.cpp \
+ OptimizerDriver.cpp \
+ ToolRunner.cpp \
+ bugpoint.cpp
+
+LLVM_LIBS+= \
+ TransformsAggressiveInstCombine \
+ ObjCARC \
+ ipo \
+ IRReader \
+ AsmParser \
+ BitReader \
+ BitstreamReader \
+ BitWriter \
+ AArch64CodeGen \
+ AArch64TargetInfo \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64Utils \
+ AMDGPUCodeGen \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ MIRParser \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMMCTargetDesc \
+ ARMAsmParser \
+ ARMUtils \
+ MipsCodeGen \
+ MipsTargetInfo \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ PowerPCCodeGen \
+ PowerPCTargetInfo \
+ PowerPCMCTargetDesc \
+ PowerPCAsmParser \
+ SparcCodeGen \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ SparcAsmParser \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86TargetInfo \
+ X86Utils \
+ X86AsmParser \
+ GlobalISel \
+ SelectionDAG \
+ AsmPrinter \
+ DebugInfoCodeView \
+ DebugInfoDWARF \
+ DebugInfoMSF \
+ Passes \
+ CodeGen \
+ Vectorize \
+ Target \
+ InstCombine \
+ Instrumentation \
+ ScalarOpts \
+ ProfileData \
+ MCDisassembler \
+ MCParser \
+ MC \
+ Analysis \
+ Object \
+ Linker \
+ TransformsUtils \
+ IR \
+ Option \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/clang-format/Makefile b/external/apache2/llvm/bin/clang-format/Makefile
new file mode 100644
index 00000000000..0bba66bb1f6
--- /dev/null
+++ b/external/apache2/llvm/bin/clang-format/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+PROG_CXX= clang-format
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/tools/clang-format
+
+SRCS= ClangFormat.cpp
+
+CLANG_LIBS+= \
+ clangFormat \
+ clangToolingCore \
+ clangToolingInclusions \
+ clangTooling \
+ clangFrontend \
+ clangSerialization \
+ clangDriver \
+ clangParse \
+ clangRewrite \
+ clangSema \
+ clangEdit \
+ clangAnalysis \
+ clangAST \
+ clangLex \
+ clangBasic
+
+LLVM_LIBS+= \
+ BitReader \
+ MCParser \
+ MC \
+ Option \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/clang-rename/Makefile b/external/apache2/llvm/bin/clang-rename/Makefile
new file mode 100644
index 00000000000..31c8d838c41
--- /dev/null
+++ b/external/apache2/llvm/bin/clang-rename/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+PROG_CXX= clang-rename
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/tools/clang-rename
+
+SRCS= ClangRename.cpp
+
+CLANG_LIBS+= \
+ clangToolingRefactoring \
+ clangToolingCore \
+ clangTooling \
+ clangFrontend \
+ clangIndex \
+ clangSerialization \
+ clangDriver \
+ clangParse \
+ clangRewrite \
+ clangSema \
+ clangEdit \
+ clangAnalysis \
+ clangASTMatchers \
+ clangAST \
+ clangLex \
+ clangBasic
+
+LLVM_LIBS+= \
+ ProfileData \
+ BitReader \
+ BitstreamReader \
+ IR \
+ MCParser \
+ MC \
+ Option \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/clang-tblgen/Makefile b/external/apache2/llvm/bin/clang-tblgen/Makefile
new file mode 100644
index 00000000000..2ce7356cbde
--- /dev/null
+++ b/external/apache2/llvm/bin/clang-tblgen/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+PROG_CXX= clang-tblgen
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/utils/TableGen
+
+SRCS= ClangASTNodesEmitter.cpp \
+ ClangAttrEmitter.cpp \
+ ClangCommentCommandInfoEmitter.cpp \
+ ClangCommentHTMLNamedCharacterReferenceEmitter.cpp \
+ ClangCommentHTMLTagsEmitter.cpp \
+ ClangDataCollectorsEmitter.cpp \
+ ClangDiagnosticsEmitter.cpp \
+ ClangOpenCLBuiltinEmitter.cpp \
+ ClangOpcodesEmitter.cpp \
+ ClangOptionDocEmitter.cpp \
+ ClangSACheckersEmitter.cpp \
+ ClangTypeNodesEmitter.cpp \
+ MveEmitter.cpp \
+ NeonEmitter.cpp \
+ TableGen.cpp
+
+LLVM_LIBS+= \
+ TableGen \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/clang/Makefile b/external/apache2/llvm/bin/clang/Makefile
new file mode 100644
index 00000000000..51dbcb0f1a9
--- /dev/null
+++ b/external/apache2/llvm/bin/clang/Makefile
@@ -0,0 +1,132 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+PROG_CXX= clang
+NOMAN= yes
+
+.if !defined(HOSTPROG)
+SYMLINKS+= clang ${BINDIR}/clang++
+SYMLINKS+= clang ${BINDIR}/clang-cpp
+.endif
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/tools/driver
+
+SRCS= driver.cpp \
+ cc1_main.cpp \
+ cc1as_main.cpp \
+ cc1gen_reproducer_main.cpp
+
+CLANG_LIBS+= \
+ clangFrontendTool \
+ clangFrontend \
+ clangARCMigrate \
+ clangStaticAnalyzerFrontend \
+ clangStaticAnalyzerCheckers \
+ clangStaticAnalyzerCore \
+ clangCrossTU \
+ clangIndex \
+ clangASTMatchers \
+ clangCodeGen \
+ clangFrontendRewrite \
+ clangFrontend \
+ clangSerialization \
+ clangParse \
+ clangSema \
+ clangAnalysis \
+ clangEdit \
+ clangDriver \
+ clangRewrite \
+ clangAST \
+ clangLex \
+ clangBasic
+
+LLVM_LIBS+= \
+ TransformsAggressiveInstCombine \
+ TransformsCoroutines \
+ ProfileDataCoverage \
+ LTO \
+ ObjCARC \
+ Passes \
+ ipo \
+ IRReader \
+ AsmParser \
+ BitstreamReader \
+ BitReader \
+ BitWriter
+
+.if !defined(HOSTPROG)
+LLVM_LIBS+= \
+ AMDGPUCodeGen \
+ AMDGPUTargetInfo \
+ AMDGPUAsmParser \
+ AMDGPUMCTargetDesc \
+ AMDGPUUtils \
+ MIRParser
+.endif
+
+LLVM_LIBS+= \
+ AArch64CodeGen \
+ AArch64TargetInfo \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64Utils \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMMCTargetDesc \
+ ARMAsmParser \
+ ARMUtils \
+ MipsCodeGen \
+ MipsTargetInfo \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ PowerPCCodeGen \
+ PowerPCTargetInfo \
+ PowerPCMCTargetDesc \
+ PowerPCAsmParser \
+ SparcCodeGen \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ SparcAsmParser \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86TargetInfo \
+ X86Utils \
+ X86AsmParser \
+ GlobalISel \
+ SelectionDAG \
+ AsmPrinter \
+ DebugInfoDWARF \
+ DebugInfoCodeView \
+ DebugInfoMSF \
+ CodeGen \
+ Vectorize \
+ Target \
+ InstCombine \
+ Instrumentation \
+ ScalarOpts \
+ ProfileData \
+ MCDisassembler \
+ MCParser \
+ MC \
+ Analysis \
+ Object \
+ TextAPI \
+ Linker \
+ TransformsCFGuard \
+ TransformsUtils \
+ IR \
+ Remarks \
+ Option \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llc/Makefile b/external/apache2/llvm/bin/llc/Makefile
new file mode 100644
index 00000000000..cd3a6f8579a
--- /dev/null
+++ b/external/apache2/llvm/bin/llc/Makefile
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:58 joerg Exp $
+
+PROG_CXX= llc
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llc
+
+SRCS= llc.cpp
+
+LLVM_LIBS+= \
+ Vectorize \
+ MIRParser \
+ AsmPrinter \
+ DebugInfoCodeView \
+ DebugInfoDWARF \
+ DebugInfoMSF \
+ IRReader \
+ AsmParser \
+ BitReader \
+ BitstreamReader \
+ AArch64CodeGen \
+ AArch64TargetInfo \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64Utils \
+ AMDGPUCodeGen \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ MIRParser \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMMCTargetDesc \
+ ARMAsmParser \
+ ARMUtils \
+ MipsCodeGen \
+ MipsTargetInfo \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ PowerPCCodeGen \
+ PowerPCTargetInfo \
+ PowerPCMCTargetDesc \
+ PowerPCAsmParser \
+ SparcCodeGen \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ SparcAsmParser \
+ X86CodeGen \
+ X86TargetInfo \
+ X86MCTargetDesc \
+ X86AsmParser \
+ X86Utils \
+ ipo \
+ GlobalISel \
+ MCDisassembler \
+ Object \
+ SelectionDAG \
+ CodeGen \
+ ProfileData \
+ Instrumentation \
+ ScalarOpts \
+ TransformsUtils \
+ Analysis \
+ Target \
+ MCParser \
+ MC \
+ IR \
+ Remarks \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/lli/Makefile b/external/apache2/llvm/bin/lli/Makefile
new file mode 100644
index 00000000000..f0b3536e5b0
--- /dev/null
+++ b/external/apache2/llvm/bin/lli/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= lli
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/lli
+
+SRCS= lli.cpp
+
+LLVM_LIBS+= \
+ Orc \
+ X86CodeGen \
+ X86TargetInfo \
+ X86MCTargetDesc \
+ X86AsmParser \
+ X86Utils \
+ AsmPrinter \
+ GlobalISel \
+ IRReader \
+ AsmParser \
+ DebugInfoCodeView \
+ DebugInfoDWARF \
+ Object \
+ MCParser \
+ BitWriter \
+ BitReader \
+ BitstreamReader \
+ MCDisassembler \
+ MCJIT \
+ RuntimeDyld \
+ Instrumentation \
+ Interpreter \
+ ExecutionEngine \
+ SelectionDAG \
+ CodeGen \
+ ProfileData \
+ ScalarOpts \
+ TransformsUtils \
+ Analysis \
+ Target \
+ MC \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-ar/Makefile b/external/apache2/llvm/bin/llvm-ar/Makefile
new file mode 100644
index 00000000000..0baf39685ee
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-ar/Makefile
@@ -0,0 +1,59 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-ar
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-ar
+
+SRCS= llvm-ar.cpp
+
+LLVM_LIBS+= \
+ ToolDriversDlltool \
+ ToolDrivers \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64TargetInfo \
+ AArch64Utils \
+ AMDGPUMCTargetDesc \
+ AMDGPUTargetInfo \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ ARMAsmParser \
+ ARMMCTargetDesc \
+ ARMTargetInfo \
+ ARMUtils \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ MipsTargetInfo \
+ PowerPCAsmParser \
+ PowerPCMCTargetDesc \
+ PowerPCTargetInfo \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ SparcAsmParser \
+ X86AsmParser \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86Utils \
+ X86TargetInfo \
+ CodeGen \
+ MCDisassembler \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Option \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-as/Makefile b/external/apache2/llvm/bin/llvm-as/Makefile
new file mode 100644
index 00000000000..323bc42d5e8
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-as/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-as
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-as
+
+SRCS= llvm-as.cpp
+
+LLVM_LIBS+= \
+ AsmParser \
+ BitWriter \
+ Analysis \
+ Object \
+ MCParser \
+ MC \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-bcanalyzer/Makefile b/external/apache2/llvm/bin/llvm-bcanalyzer/Makefile
new file mode 100644
index 00000000000..fb9109f9eff
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-bcanalyzer/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-bcanalyzer
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-bcanalyzer
+
+SRCS= llvm-bcanalyzer.cpp
+
+LLVM_LIBS+= \
+ BitReader \
+ BitstreamReader \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-cov/Makefile b/external/apache2/llvm/bin/llvm-cov/Makefile
new file mode 100644
index 00000000000..48925f6810f
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-cov/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-cov
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-cov
+
+SRCS= gcov.cpp \
+ llvm-cov.cpp \
+ CodeCoverage.cpp \
+ CoverageExporterJson.cpp \
+ CoverageExporterLcov.cpp \
+ CoverageFilters.cpp \
+ CoverageReport.cpp \
+ CoverageSummaryInfo.cpp \
+ SourceCoverageView.cpp \
+ SourceCoverageViewHTML.cpp \
+ SourceCoverageViewText.cpp \
+ TestingSupport.cpp
+
+LLVM_LIBS+= \
+ ProfileDataCoverage \
+ ProfileData \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-cxxdump/Makefile b/external/apache2/llvm/bin/llvm-cxxdump/Makefile
new file mode 100644
index 00000000000..20000ea1439
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-cxxdump/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-cxxdump
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-cxxdump
+
+SRCS= llvm-cxxdump.cpp \
+ Error.cpp
+
+LLVM_LIBS+= \
+ ARMTargetInfo \
+ AMDGPUTargetInfo \
+ AArch64TargetInfo \
+ MipsTargetInfo \
+ PowerPCTargetInfo \
+ SparcTargetInfo \
+ X86TargetInfo \
+ Object \
+ BitReader \
+ BitstreamReader \
+ MCParser \
+ MC \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+#LDADD+= -lz
+#DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-cxxfilt/Makefile b/external/apache2/llvm/bin/llvm-cxxfilt/Makefile
new file mode 100644
index 00000000000..e4c1b110fc8
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-cxxfilt/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-cxxfilt
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-cxxfilt
+
+SRCS= llvm-cxxfilt.cpp
+
+LLVM_LIBS+= \
+ Demangle \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-diff/Makefile b/external/apache2/llvm/bin/llvm-diff/Makefile
new file mode 100644
index 00000000000..48ef3861b65
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-diff/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-diff
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-diff
+
+SRCS= llvm-diff.cpp \
+ DiffConsumer.cpp \
+ DiffLog.cpp \
+ DifferenceEngine.cpp
+
+LLVM_LIBS+= \
+ IRReader \
+ AsmParser \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-dis/Makefile b/external/apache2/llvm/bin/llvm-dis/Makefile
new file mode 100644
index 00000000000..2ccb941d111
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-dis/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:44:59 joerg Exp $
+
+PROG_CXX= llvm-dis
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-dis
+
+SRCS= llvm-dis.cpp
+
+LLVM_LIBS+= \
+ Analysis \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-dwarfdump/Makefile b/external/apache2/llvm/bin/llvm-dwarfdump/Makefile
new file mode 100644
index 00000000000..1b4e521573e
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-dwarfdump/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-dwarfdump
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-dwarfdump
+
+SRCS= Statistics.cpp \
+ llvm-dwarfdump.cpp
+
+LLVM_LIBS+= \
+ AArch64TargetInfo \
+ AArch64MCTargetDesc \
+ AArch64Utils \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUUtils \
+ ARMTargetInfo \
+ ARMMCTargetDesc \
+ ARMUtils \
+ MipsTargetInfo \
+ MipsMCTargetDesc \
+ PowerPCTargetInfo \
+ PowerPCMCTargetDesc \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ X86TargetInfo \
+ X86MCTargetDesc \
+ X86Utils \
+ DebugInfoDWARF \
+ Object \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ MCDisassembler \
+ MCParser \
+ MC \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-dwp/Makefile b/external/apache2/llvm/bin/llvm-dwp/Makefile
new file mode 100644
index 00000000000..8f3caf1640a
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-dwp/Makefile
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-dwp
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-dwp
+
+SRCS= DWPError.cpp \
+ llvm-dwp.cpp
+
+LLVM_LIBS+= \
+ DebugInfoDWARF \
+ AArch64CodeGen \
+ AArch64TargetInfo \
+ AArch64MCTargetDesc \
+ AArch64Utils \
+ AMDGPUCodeGen \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUUtils \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMMCTargetDesc \
+ ARMUtils \
+ MipsCodeGen \
+ MipsTargetInfo \
+ MipsMCTargetDesc \
+ PowerPCCodeGen \
+ PowerPCTargetInfo \
+ PowerPCMCTargetDesc \
+ SparcCodeGen \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86TargetInfo \
+ X86Utils \
+ MIRParser \
+ Vectorize \
+ MCDisassembler \
+ ipo \
+ GlobalISel \
+ AsmPrinter \
+ DebugInfoCodeView \
+ DebugInfoMSF \
+ Object \
+ MCParser \
+ SelectionDAG \
+ CodeGen \
+ ProfileData \
+ Target \
+ InstCombine \
+ Instrumentation \
+ ScalarOpts \
+ MC \
+ TransformsUtils \
+ Analysis \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-extract/Makefile b/external/apache2/llvm/bin/llvm-extract/Makefile
new file mode 100644
index 00000000000..0d38fc5abee
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-extract/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-extract
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-extract
+
+SRCS= llvm-extract.cpp
+
+LLVM_LIBS+= \
+ IRReader \
+ AsmParser \
+ BitReader \
+ BitstreamReader \
+ BitWriter \
+ ipo \
+ TransformsUtils \
+ Analysis \
+ Object \
+ MCParser \
+ MC \
+ ProfileData \
+ Target \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-link/Makefile b/external/apache2/llvm/bin/llvm-link/Makefile
new file mode 100644
index 00000000000..a33993fda29
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-link/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-link
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-link
+
+SRCS= llvm-link.cpp
+
+LLVM_LIBS+= \
+ IRReader \
+ AsmParser \
+ BitReader \
+ BitstreamReader \
+ BitWriter \
+ Object \
+ MCParser \
+ MC \
+ ipo \
+ Linker \
+ TransformsUtils \
+ Analysis \
+ Target \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-mc/Makefile b/external/apache2/llvm/bin/llvm-mc/Makefile
new file mode 100644
index 00000000000..029f99213f7
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-mc/Makefile
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-mc
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-mc
+
+SRCS= llvm-mc.cpp \
+ Disassembler.cpp
+
+LLVM_LIBS+= \
+ MCDisassembler \
+ AArch64CodeGen \
+ AArch64TargetInfo \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64Disassembler \
+ AArch64Utils \
+ AMDGPUCodeGen \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUDisassembler \
+ AMDGPUUtils \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMAsmParser \
+ ARMMCTargetDesc \
+ ARMDisassembler \
+ ARMUtils \
+ MipsCodeGen \
+ MipsTargetInfo \
+ MipsAsmParser \
+ MipsDisassembler \
+ MipsMCTargetDesc \
+ PowerPCCodeGen \
+ PowerPCAsmParser \
+ PowerPCDisassembler \
+ PowerPCTargetInfo \
+ PowerPCMCTargetDesc \
+ SparcAsmParser \
+ SparcCodeGen \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ SparcDisassembler \
+ X86AsmParser \
+ X86CodeGen \
+ X86TargetInfo \
+ X86MCTargetDesc \
+ X86Disassembler \
+ X86Utils \
+ MCDisassembler \
+ Object \
+ SelectionDAG \
+ CodeGen \
+ Target \
+ ScalarOpts \
+ TransformsUtils \
+ Analysis \
+ AsmPrinter \
+ MCParser \
+ MC \
+ BinaryFormat \
+ IR \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-nm/Makefile b/external/apache2/llvm/bin/llvm-nm/Makefile
new file mode 100644
index 00000000000..ef1895caf8d
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-nm/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-nm
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-nm
+
+SRCS= llvm-nm.cpp
+
+LLVM_LIBS+= \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64TargetInfo \
+ AArch64Utils \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ ARMAsmParser \
+ ARMMCTargetDesc \
+ ARMTargetInfo \
+ ARMUtils \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ MipsTargetInfo \
+ PowerPCAsmParser \
+ PowerPCMCTargetDesc \
+ PowerPCTargetInfo \
+ SparcTargetInfo \
+ SparcMCTargetDesc \
+ SparcAsmParser \
+ X86AsmParser \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86Utils \
+ X86TargetInfo \
+ CodeGen \
+ MCDisassembler \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-objcopy/Makefile b/external/apache2/llvm/bin/llvm-objcopy/Makefile
new file mode 100644
index 00000000000..aa07b1343e2
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-objcopy/Makefile
@@ -0,0 +1,73 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-objcopy
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-objcopy
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/tools/llvm-objcopy
+
+SRCS= Buffer.cpp \
+ CopyConfig.cpp \
+ llvm-objcopy.cpp
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-objcopy/COFF
+SRCS+= COFFObjcopy.cpp \
+ Object.cpp \
+ Reader.cpp \
+ Writer.cpp
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-objcopy/ELF
+SRCS+= ELFConfig.cpp \
+ ELFObjcopy.cpp \
+ ELFObject.cpp
+
+ELFObject.cpp: ${LLVM_SRCDIR}/tools/llvm-objcopy/ELF/Object.cpp
+ cat ${LLVM_SRCDIR}/tools/llvm-objcopy/ELF/Object.cpp > ELFObject.cpp
+
+CPPFLAGS.ELFObject.cpp+= -I${LLVM_SRCDIR}/tools/llvm-objcopy/ELF
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-objcopy/MachO
+SRCS+= MachOLayoutBuilder.cpp \
+ MachOObjcopy.cpp \
+ MachOObject.cpp \
+ MachOReader.cpp \
+ MachOWriter.cpp
+
+MachOObject.cpp: ${LLVM_SRCDIR}/tools/llvm-objcopy/MachO/Object.cpp
+ cat ${LLVM_SRCDIR}/tools/llvm-objcopy/MachO/Object.cpp > MachOObject.cpp
+
+CPPFLAGS.MachOObject.cpp+= -I${LLVM_SRCDIR}/tools/llvm-objcopy/MachO
+
+TABLEGEN_SRC= CommonOpts.td ObjcopyOpts.td StripOpts.td
+
+TABLEGEN_OUTPUT.CommonOpts.td= \
+ CommonOpts.inc|-gen-opt-parser-defs
+
+TABLEGEN_OUTPUT.ObjcopyOpts.td= \
+ ObjcopyOpts.inc|-gen-opt-parser-defs
+
+TABLEGEN_OUTPUT.StripOpts.td= \
+ StripOpts.inc|-gen-opt-parser-defs
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+LLVM_LIBS+= \
+ Object \
+ BitReader \
+ BitstreamReader \
+ MCParser \
+ MC \
+ IR \
+ BinaryFormat \
+ Option \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-objdump/Makefile b/external/apache2/llvm/bin/llvm-objdump/Makefile
new file mode 100644
index 00000000000..c0f7b24e9c1
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-objdump/Makefile
@@ -0,0 +1,71 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-objdump
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-objdump
+
+SRCS= llvm-objdump.cpp \
+ COFFDump.cpp \
+ ELFDump.cpp \
+ MachODump.cpp \
+ WasmDump.cpp
+
+LLVM_LIBS+= \
+ AArch64Disassembler \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64TargetInfo \
+ AArch64Utils \
+ AMDGPUDisassembler \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ ARMDisassembler \
+ ARMAsmParser \
+ ARMMCTargetDesc \
+ ARMTargetInfo \
+ ARMUtils \
+ MipsDisassembler \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ MipsTargetInfo \
+ PowerPCDisassembler \
+ PowerPCAsmParser \
+ PowerPCMCTargetDesc \
+ PowerPCTargetInfo \
+ SparcDisassembler \
+ SparcAsmParser \
+ SparcMCTargetDesc \
+ SparcTargetInfo \
+ X86Disassembler \
+ X86AsmParser \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86TargetInfo \
+ X86Utils \
+ CodeGen \
+ MCDisassembler \
+ DebugInfoDWARF \
+ DebugInfoSymbolize \
+ DebugInfoPDB \
+ DebugInfoPDBNative \
+ Object \
+ BitReader \
+ BitstreamReader \
+ MCParser \
+ MC \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-profdata/Makefile b/external/apache2/llvm/bin/llvm-profdata/Makefile
new file mode 100644
index 00000000000..ecb094acfe5
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-profdata/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $
+
+PROG_CXX= llvm-profdata
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-profdata
+
+SRCS= llvm-profdata.cpp
+
+LLVM_LIBS+= \
+ ProfileData \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-readobj/Makefile b/external/apache2/llvm/bin/llvm-readobj/Makefile
new file mode 100644
index 00000000000..5a878e87bb7
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-readobj/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= llvm-readobj
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-readobj
+
+SRCS= llvm-readobj.cpp \
+ ARMWinEHPrinter.cpp \
+ COFFDumper.cpp \
+ COFFImportDumper.cpp \
+ ELFDumper.cpp \
+ Error.cpp \
+ MachODumper.cpp \
+ ObjDumper.cpp \
+ WasmDumper.cpp \
+ Win64EHDumper.cpp \
+ WindowsResourceDumper.cpp \
+ XCOFFDumper.cpp
+
+LLVM_LIBS+= \
+ DebugInfoDWARF \
+ AArch64TargetInfo \
+ ARMTargetInfo \
+ MipsTargetInfo \
+ PowerPCTargetInfo \
+ SparcTargetInfo \
+ X86TargetInfo \
+ DebugInfoCodeView \
+ DebugInfoMSF \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-size/Makefile b/external/apache2/llvm/bin/llvm-size/Makefile
new file mode 100644
index 00000000000..a4724e17a9f
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-size/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= llvm-size
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-size
+
+SRCS= llvm-size.cpp
+
+LLVM_LIBS+= \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-strings/Makefile b/external/apache2/llvm/bin/llvm-strings/Makefile
new file mode 100644
index 00000000000..4e8c21ef294
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-strings/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= llvm-strings
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-strings
+
+SRCS= llvm-strings.cpp
+
+LLVM_LIBS+= \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-symbolizer/Makefile b/external/apache2/llvm/bin/llvm-symbolizer/Makefile
new file mode 100644
index 00000000000..77f130794cb
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-symbolizer/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= llvm-symbolizer
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-symbolizer
+
+SRCS= llvm-symbolizer.cpp
+
+LLVM_LIBS+= \
+ DebugInfoSymbolize \
+ DebugInfoDWARF \
+ DebugInfoPDB \
+ DebugInfoPDBNative \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/llvm-xray/Makefile b/external/apache2/llvm/bin/llvm-xray/Makefile
new file mode 100644
index 00000000000..e15cee040ff
--- /dev/null
+++ b/external/apache2/llvm/bin/llvm-xray/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= llvm-xray
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-xray
+
+SRCS= func-id-helper.cpp \
+ llvm-xray.cpp \
+ xray-account.cpp \
+ xray-color-helper.cpp \
+ xray-converter.cpp \
+ xray-extract.cpp \
+ xray-fdr-dump.cpp \
+ xray-graph.cpp \
+ xray-graph-diff.cpp \
+ xray-registry.cpp \
+ xray-stacks.cpp
+
+LLVM_LIBS+= \
+ XRay \
+ DebugInfoSymbolize \
+ DebugInfoDWARF \
+ DebugInfoPDB \
+ DebugInfoPDBNative \
+ Object \
+ BitReader \
+ BitstreamReader \
+ MCParser \
+ IR \
+ MC \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/opt/Makefile b/external/apache2/llvm/bin/opt/Makefile
new file mode 100644
index 00000000000..04bed3a98a9
--- /dev/null
+++ b/external/apache2/llvm/bin/opt/Makefile
@@ -0,0 +1,95 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= opt
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/opt
+
+SRCS= AnalysisWrappers.cpp \
+ BreakpointPrinter.cpp \
+ Debugify.cpp \
+ GraphPrinters.cpp \
+ NewPMDriver.cpp \
+ PassPrinters.cpp \
+ PrintSCC.cpp \
+ opt.cpp
+
+LLVM_LIBS+= \
+ TransformsAggressiveInstCombine \
+ Passes \
+ ObjCARC \
+ ipo \
+ Linker \
+ Object \
+ IRReader \
+ AsmParser \
+ BitReader \
+ BitstreamReader \
+ BitWriter \
+ AArch64CodeGen \
+ AArch64TargetInfo \
+ AArch64AsmParser \
+ AArch64MCTargetDesc \
+ AArch64Utils \
+ AMDGPUCodeGen \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMAsmParser \
+ ARMMCTargetDesc \
+ ARMUtils \
+ MipsCodeGen \
+ MipsTargetInfo \
+ MipsAsmParser \
+ MipsMCTargetDesc \
+ PowerPCCodeGen \
+ PowerPCTargetInfo \
+ PowerPCAsmParser \
+ PowerPCMCTargetDesc \
+ SparcCodeGen \
+ SparcTargetInfo \
+ SparcAsmParser \
+ SparcMCTargetDesc \
+ X86CodeGen \
+ X86AsmParser \
+ X86MCTargetDesc \
+ X86TargetInfo \
+ X86Utils \
+ MIRParser \
+ GlobalISel \
+ TransformsCoroutines \
+ MCDisassembler \
+ AsmPrinter \
+ DebugInfoCodeView \
+ DebugInfoDWARF \
+ DebugInfoMSF \
+ Object \
+ MCParser \
+ SelectionDAG \
+ CodeGen \
+ Vectorize \
+ Target \
+ InstCombine \
+ Instrumentation \
+ ScalarOpts \
+ ProfileData \
+ MC \
+ TransformsUtils \
+ Analysis \
+ IR \
+ Remarks \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/sancov/Makefile b/external/apache2/llvm/bin/sancov/Makefile
new file mode 100644
index 00000000000..60a8dc9f89f
--- /dev/null
+++ b/external/apache2/llvm/bin/sancov/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= sancov
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/sancov
+
+SRCS= sancov.cc
+
+LLVM_LIBS+= \
+ AArch64Disassembler \
+ AArch64MCTargetDesc \
+ AArch64TargetInfo \
+ AArch64Utils \
+ AMDGPUDisassembler \
+ AMDGPUTargetInfo \
+ AMDGPUMCTargetDesc \
+ AMDGPUAsmParser \
+ AMDGPUUtils \
+ ARMDisassembler \
+ ARMMCTargetDesc \
+ ARMTargetInfo \
+ ARMUtils \
+ MipsDisassembler \
+ MipsMCTargetDesc \
+ MipsTargetInfo \
+ PowerPCDisassembler \
+ PowerPCMCTargetDesc \
+ PowerPCTargetInfo \
+ SparcDisassembler \
+ SparcMCTargetDesc \
+ SparcTargetInfo \
+ X86Disassembler \
+ X86CodeGen \
+ X86MCTargetDesc \
+ X86TargetInfo \
+ X86Utils \
+ MCDisassembler \
+ DebugInfoSymbolize \
+ DebugInfoDWARF \
+ DebugInfoPDB \
+ DebugInfoPDBNative \
+ Object \
+ BitReader \
+ BitstreamReader \
+ IR \
+ MCParser \
+ MC \
+ BinaryFormat \
+ Support \
+ Demangle
+
+LDADD+= -lz
+DPADD+= ${LIBZ}
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/sanstats/Makefile b/external/apache2/llvm/bin/sanstats/Makefile
new file mode 100644
index 00000000000..ad18b5a6df3
--- /dev/null
+++ b/external/apache2/llvm/bin/sanstats/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:01 joerg Exp $
+
+PROG_CXX= sanstats
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/sanstats
+
+SRCS= sanstats.cc
+
+LLVM_LIBS+= \
+ DebugInfoSymbolize \
+ DebugInfoDWARF \
+ DebugInfoPDB \
+ DebugInfoPDBNative \
+ Object \
+ MCParser \
+ MC \
+ BitReader \
+ BitstreamReader \
+ IR \
+ BinaryFormat \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/bin/tblgen/Makefile b/external/apache2/llvm/bin/tblgen/Makefile
new file mode 100644
index 00000000000..b707588e6b7
--- /dev/null
+++ b/external/apache2/llvm/bin/tblgen/Makefile
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+PROG_CXX= llvm-tblgen
+NOMAN= yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/utils/TableGen
+
+SRCS= AsmMatcherEmitter.cpp \
+ AsmWriterEmitter.cpp \
+ AsmWriterInst.cpp \
+ Attributes.cpp \
+ CallingConvEmitter.cpp \
+ CodeEmitterGen.cpp \
+ CodeGenDAGPatterns.cpp \
+ CodeGenHwModes.cpp \
+ CodeGenInstruction.cpp \
+ CodeGenMapTable.cpp \
+ CodeGenRegisters.cpp \
+ CodeGenSchedule.cpp \
+ CodeGenTarget.cpp \
+ CTagsEmitter.cpp \
+ DAGISelEmitter.cpp \
+ DAGISelMatcher.cpp \
+ DAGISelMatcherEmitter.cpp \
+ DAGISelMatcherGen.cpp \
+ DAGISelMatcherOpt.cpp \
+ DFAEmitter.cpp \
+ DFAPacketizerEmitter.cpp \
+ DisassemblerEmitter.cpp \
+ ExegesisEmitter.cpp \
+ FastISelEmitter.cpp \
+ FixedLenDecoderEmitter.cpp \
+ GICombinerEmitter.cpp \
+ GlobalISelEmitter.cpp \
+ InfoByHwMode.cpp \
+ InstrDocsEmitter.cpp \
+ InstrInfoEmitter.cpp \
+ IntrinsicEmitter.cpp \
+ OptParserEmitter.cpp \
+ PredicateExpander.cpp \
+ PseudoLoweringEmitter.cpp \
+ RegisterBankEmitter.cpp \
+ RegisterInfoEmitter.cpp \
+ RISCVCompressInstEmitter.cpp \
+ SDNodeProperties.cpp \
+ SearchableTableEmitter.cpp \
+ SubtargetEmitter.cpp \
+ SubtargetFeatureInfo.cpp \
+ TableGen.cpp \
+ Types.cpp \
+ WebAssemblyDisassemblerEmitter.cpp \
+ X86DisassemblerTables.cpp \
+ X86EVEX2VEXTablesEmitter.cpp \
+ X86FoldTablesEmitter.cpp \
+ X86ModRMFilters.cpp \
+ X86RecognizableInstr.cpp
+
+.PATH: ${LLVM_SRCDIR}/utils/TableGen/GlobalISel
+SRCS+= CodeExpander.cpp
+
+LLVM_LIBS+= \
+ TableGen \
+ Support \
+ Demangle
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/config/clang/Config/config.h b/external/apache2/llvm/config/clang/Config/config.h
new file mode 100644
index 00000000000..f31e2274d5b
--- /dev/null
+++ b/external/apache2/llvm/config/clang/Config/config.h
@@ -0,0 +1,67 @@
+/* include/clang/Config/config.h. Generated from config.h.in by configure. */
+/* This generated file is for internal use. Do not include it from headers. */
+
+#ifdef CLANG_CONFIG_H
+#error config.h can only be included once
+#else
+#define CLANG_CONFIG_H
+
+/* Bug report URL. */
+#define BUG_REPORT_URL "http://llvm.org/bugs/"
+
+/* Default C++ stdlib to use. */
+#define CLANG_DEFAULT_CXX_STDLIB ""
+
+/* Default objcopy to use */
+#define CLANG_DEFAULT_OBJCOPY "objcopy"
+
+/* Default runtime library to use. */
+#define CLANG_DEFAULT_RTLIB ""
+
+/* Default unwind library to use. */
+#define CLANG_DEFAULT_UNWINDLIB "none"
+
+/* Default linker to use (linker name or absolute path, empty for platform
+ default) */
+#define CLANG_DEFAULT_LINKER ""
+
+/* Default OpenMP runtime used by -fopenmp. */
+#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
+
+/* Multilib suffix for libdir. */
+#define CLANG_LIBDIR_SUFFIX ""
+
+/* Relative directory for resource files */
+#define CLANG_RESOURCE_DIR ""
+
+/* Directories clang will search for headers */
+#define C_INCLUDE_DIRS "/usr/include/clang-9.0:/usr/include"
+
+/* Default <path> to all compiler invocations for --sysroot=<path>. */
+#define DEFAULT_SYSROOT ""
+
+/* Directory where gcc is installed. */
+#define GCC_INSTALL_PREFIX ""
+
+/* Define if we have libxml2 */
+/* #undef CLANG_HAVE_LIBXML */
+
+#define PACKAGE_STRING "LLVM 4.0.0svn"
+
+/* The LLVM product name and version */
+#define BACKEND_PACKAGE_STRING PACKAGE_STRING
+
+/* Linker version detected at compile time. */
+#define HOST_LINK_VERSION "1"
+
+/* enable x86 relax relocations by default */
+#define ENABLE_X86_RELAX_RELOCATIONS 0
+
+#define CLANG_ENABLE_ARCMT 1
+#define CLANG_ENABLE_OBJC_REWRITER 1
+#define CLANG_ENABLE_STATIC_ANALYZER 1
+
+#define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0
+#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35"
+
+#endif
diff --git a/external/apache2/llvm/config/llvm/Config/AsmParsers.def b/external/apache2/llvm/config/llvm/Config/AsmParsers.def
new file mode 100644
index 00000000000..b058c6381dd
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/AsmParsers.def
@@ -0,0 +1,36 @@
+/*===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the assembly-language parsers *|
+|* supported by this build of LLVM. Clients of this file should define *|
+|* the LLVM_ASM_PARSER macro to be a function-like macro with a *|
+|* single parameter (the name of the target whose assembly can be *|
+|* generated); including this file will then enumerate all of the *|
+|* targets with assembly parsers. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_ASM_PARSER
+# error Please define the macro LLVM_ASM_PARSER(TargetName)
+#endif
+
+LLVM_ASM_PARSER(AMDGPU)
+LLVM_ASM_PARSER(Mips)
+LLVM_ASM_PARSER(ARM)
+LLVM_ASM_PARSER(AArch64)
+LLVM_ASM_PARSER(Sparc)
+LLVM_ASM_PARSER(PowerPC)
+LLVM_ASM_PARSER(X86)
+
+
+#undef LLVM_ASM_PARSER
diff --git a/external/apache2/llvm/config/llvm/Config/AsmPrinters.def b/external/apache2/llvm/config/llvm/Config/AsmPrinters.def
new file mode 100644
index 00000000000..24b437d243a
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/AsmPrinters.def
@@ -0,0 +1,36 @@
+/*===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the assembly-language printers *|
+|* supported by this build of LLVM. Clients of this file should define *|
+|* the LLVM_ASM_PRINTER macro to be a function-like macro with a *|
+|* single parameter (the name of the target whose assembly can be *|
+|* generated); including this file will then enumerate all of the *|
+|* targets with assembly printers. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_ASM_PRINTER
+# error Please define the macro LLVM_ASM_PRINTER(TargetName)
+#endif
+
+LLVM_ASM_PRINTER(AMDGPU)
+LLVM_ASM_PRINTER(Mips)
+LLVM_ASM_PRINTER(ARM)
+LLVM_ASM_PRINTER(AArch64)
+LLVM_ASM_PRINTER(Sparc)
+LLVM_ASM_PRINTER(PowerPC)
+LLVM_ASM_PRINTER(X86)
+
+
+#undef LLVM_ASM_PRINTER
diff --git a/external/apache2/llvm/config/llvm/Config/Disassemblers.def b/external/apache2/llvm/config/llvm/Config/Disassemblers.def
new file mode 100644
index 00000000000..620757a509a
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/Disassemblers.def
@@ -0,0 +1,36 @@
+/*===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the assembly-language parsers *|
+|* supported by this build of LLVM. Clients of this file should define *|
+|* the LLVM_DISASSEMBLER macro to be a function-like macro with a *|
+|* single parameter (the name of the target whose assembly can be *|
+|* generated); including this file will then enumerate all of the *|
+|* targets with assembly parsers. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_DISASSEMBLER
+# error Please define the macro LLVM_DISASSEMBLER(TargetName)
+#endif
+
+LLVM_DISASSEMBLER(AMDGPU)
+LLVM_DISASSEMBLER(Mips)
+LLVM_DISASSEMBLER(ARM)
+LLVM_DISASSEMBLER(AArch64)
+LLVM_DISASSEMBLER(Sparc)
+LLVM_DISASSEMBLER(PowerPC)
+LLVM_DISASSEMBLER(X86)
+
+
+#undef LLVM_DISASSEMBLER
diff --git a/external/apache2/llvm/config/llvm/Config/Targets.def b/external/apache2/llvm/config/llvm/Config/Targets.def
new file mode 100644
index 00000000000..95375f8eb3a
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/Targets.def
@@ -0,0 +1,35 @@
+/*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file enumerates all of the target architectures supported by *|
+|* this build of LLVM. Clients of this file should define the *|
+|* LLVM_TARGET macro to be a function-like macro with a single *|
+|* parameter (the name of the target); including this file will then *|
+|* enumerate all of the targets. *|
+|* *|
+|* The set of targets supported by LLVM is generated at configuration *|
+|* time, at which point this header is generated. Do not modify this *|
+|* header directly. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_TARGET
+# error Please define the macro LLVM_TARGET(TargetName)
+#endif
+
+LLVM_TARGET(AMDGPU)
+LLVM_TARGET(Mips)
+LLVM_TARGET(ARM)
+LLVM_TARGET(AArch64)
+LLVM_TARGET(Sparc)
+LLVM_TARGET(PowerPC)
+LLVM_TARGET(X86)
+
+
+#undef LLVM_TARGET
diff --git a/external/apache2/llvm/config/llvm/Config/abi-breaking.h b/external/apache2/llvm/config/llvm/Config/abi-breaking.h
new file mode 100644
index 00000000000..449230009cd
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/abi-breaking.h
@@ -0,0 +1,42 @@
+/* include/llvm/Config/abi-breaking.h. Generated from abi-breaking.h.in by configure. */
+/*===------- llvm/Config/abi-breaking.h - llvm configuration -------*- C -*-===*/
+/* */
+/* The LLVM Compiler Infrastructure */
+/* */
+/* This file is distributed under the University of Illinois Open Source */
+/* License. See LICENSE.TXT for details. */
+/* */
+/*===----------------------------------------------------------------------===*/
+
+/* This file controls the C++ ABI break introduced in LLVM public header. */
+
+#ifndef LLVM_ABI_BREAKING_CHECKS_H
+#define LLVM_ABI_BREAKING_CHECKS_H
+
+/* Define to enable checks that alter the LLVM C++ ABI */
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0
+
+// ABI_BREAKING_CHECKS protection: provides link-time failure when clients build
+// mismatch with LLVM
+#if defined(_MSC_VER)
+// Use pragma with MSVC
+#define LLVM_XSTR(s) LLVM_STR(s)
+#define LLVM_STR(s) #s
+#pragma detect_mismatch("LLVM_ENABLE_ABI_BREAKING_CHECKS", LLVM_XSTR(LLVM_ENABLE_ABI_BREAKING_CHECKS))
+/* #undef LLVM_XSTR */
+/* #undef LLVM_STR */
+#elif defined(_WIN32) || defined(__CYGWIN__) // Win32 w/o #pragma detect_mismatch
+// FIXME: Implement checks without weak.
+#elif defined(__cplusplus)
+namespace llvm {
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
+extern int EnableABIBreakingChecks;
+__attribute__((weak, visibility ("hidden"))) int *VerifyEnableABIBreakingChecks = &EnableABIBreakingChecks;
+#else
+extern int DisableABIBreakingChecks;
+__attribute__((weak, visibility ("hidden"))) int *VerifyDisableABIBreakingChecks = &DisableABIBreakingChecks;
+#endif
+}
+#endif // _MSC_VER
+
+#endif
diff --git a/external/apache2/llvm/config/llvm/Config/config.h.in b/external/apache2/llvm/config/llvm/Config/config.h.in
new file mode 100644
index 00000000000..2986d48efa0
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/config.h.in
@@ -0,0 +1,522 @@
+/* include/llvm/Config/config.h. Generated from config.h.in by configure. */
+/* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+/* Exported configuration */
+#include "llvm/Config/llvm-config.h"
+
+/* Header containing the backtrace function */
+#define BACKTRACE_HEADER <execinfo.h>
+
+/* Bug report URL. */
+#define BUG_REPORT_URL "http://llvm.org/bugs/"
+
+/* Default C++ stdlib to use. */
+#define CLANG_DEFAULT_CXX_STDLIB ""
+
+/* Default linker to use (linker name or absolute path, empty for platform
+ default) */
+#define CLANG_DEFAULT_LINKER ""
+
+/* Default objcopy to use. */
+#define CLANG_DEFAULT_OBJCOPY "objcopy"
+
+/* Default OpenMP runtime used by -fopenmp. */
+#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
+
+/* Default runtime library to use. */
+#define CLANG_DEFAULT_RTLIB ""
+
+/* Default unwind library to use. */
+#define CLANG_DEFAULT_UNWINDLIB "none"
+
+/* Build ARCMT */
+#define CLANG_ENABLE_ARCMT 1
+
+/* Build ObjC rewriter */
+#define CLANG_ENABLE_OBJC_REWRITER 1
+
+/* Build Static analyzer */
+#define CLANG_ENABLE_STATIC_ANALYZER 1
+
+/* Multilib suffix for libdir. */
+#define CLANG_LIBDIR_SUFFIX ""
+
+/* Default architecture for OpenMP offloading to Nvidia GPUs. */
+#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35"
+
+/* Relative directory for resource files */
+#define CLANG_RESOURCE_DIR ""
+
+/* Directories clang will search for headers */
+#define C_INCLUDE_DIRS "/usr/include/clang-9.0:/usr/include"
+
+/* Default <path> to all compiler invocations for --sysroot=<path>. */
+#define DEFAULT_SYSROOT ""
+
+/* Define to 1 to enable backtraces, and to 0 otherwise. */
+#define ENABLE_BACKTRACES 1
+
+/* Define to 1 to enable crash overrides, and to 0 otherwise. */
+#define ENABLE_CRASH_OVERRIDES 1
+
+/* Enable the experimental new pass manager by default */
+#define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0
+
+/* enable x86 relax relocations by default */
+#define ENABLE_X86_RELAX_RELOCATIONS 0
+
+/* Directory where gcc is installed. */
+#define GCC_INSTALL_PREFIX ""
+
+/* Define to 1 if you have the `backtrace' function. */
+#define HAVE_BACKTRACE 1
+
+/* Define to 1 if you have the <CrashReporterClient.h> header file. */
+/* #undef HAVE_CRASHREPORTERCLIENT_H */
+
+/* can use __crashreporter_info__ */
+#define HAVE_CRASHREPORTER_INFO 0
+
+/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
+ don't. */
+#define HAVE_DECL_ARC4RANDOM 1
+
+/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you
+ don't. */
+#define HAVE_DECL_FE_ALL_EXCEPT 1
+
+/* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you
+ don't. */
+#define HAVE_DECL_FE_INEXACT 1
+
+/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
+ don't. */
+#define HAVE_DECL_STRERROR_S 0
+
+/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */
+#define HAVE_DIA_SDK 0
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define if dlopen() is available on this platform. */
+#define HAVE_DLOPEN 1
+
+/* Define to 1 if you have the <errno.h> header file. */
+#define HAVE_ERRNO_H 1
+
+/* Define to 1 if you have the <execinfo.h> header file. */
+#define HAVE_EXECINFO_H 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the <fenv.h> header file. */
+#define HAVE_FENV_H 1
+
+/* Define if libffi is available on this platform. */
+/* #undef HAVE_FFI_CALL */
+
+/* Define to 1 if you have the <ffi/ffi.h> header file. */
+/* #undef HAVE_FFI_FFI_H */
+
+/* Define to 1 if you have the <ffi.h> header file. */
+/* #undef HAVE_FFI_H */
+
+/* Define to 1 if you have the `futimens' function. */
+#define HAVE_FUTIMENS 1
+
+/* Define to 1 if you have the `futimes' function. */
+#define HAVE_FUTIMES 1
+
+/* Define to 1 if you have the `getcwd' function. */
+#define HAVE_GETCWD 1
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the `getrlimit' function. */
+#define HAVE_GETRLIMIT 1
+
+/* Define to 1 if you have the `getrusage' function. */
+#define HAVE_GETRUSAGE 1
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#define HAVE_GETTIMEOFDAY 1
+
+/* Define to 1 if the system has the type `int64_t'. */
+#define HAVE_INT64_T 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `isatty' function. */
+#define HAVE_ISATTY 1
+
+/* Define to 1 if you have the `edit' library (-ledit). */
+#define HAVE_LIBEDIT 1
+
+/* Define to 1 if you have the `psapi' library (-lpsapi). */
+/* #undef HAVE_LIBPSAPI */
+
+/* Define to 1 if you have the `pthread' library (-lpthread). */
+#define HAVE_LIBPTHREAD 1
+
+/* Define to 1 if you have the `shell32' library (-lshell32). */
+/* #undef HAVE_LIBSHELL32 */
+
+/* Define to 1 if you have the `z' library (-lz). */
+#define HAVE_LIBZ 1
+
+/* Define to 1 if you have the <link.h> header file. */
+#define HAVE_LINK_H 1
+
+/* Define to 1 if you have the <mach/mach.h> header file. */
+/* #undef HAVE_MACH_MACH_H */
+
+/* Define to 1 if you have the `mallctl' function. */
+/* #undef HAVE_MALLCTL */
+
+/* Define to 1 if you have the `mallinfo' function. */
+/* #undef HAVE_MALLINFO */
+
+/* Define to 1 if you have the <malloc/malloc.h> header file. */
+/* #undef HAVE_MALLOC_MALLOC_H */
+
+/* Define to 1 if you have the `malloc_zone_statistics' function. */
+/* #undef HAVE_MALLOC_ZONE_STATISTICS */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `mkdtemp' function. */
+#define HAVE_MKDTEMP 1
+
+/* Define to 1 if you have the `mkstemp' function. */
+#define HAVE_MKSTEMP 1
+
+/* Define to 1 if you have the `mktemp' function. */
+#define HAVE_MKTEMP 1
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+/* #undef HAVE_NDIR_H */
+
+/* Define to 1 if you have the `posix_fallocate' function. */
+#define HAVE_POSIX_FALLOCATE 1
+
+/* Define to 1 if you have the `posix_spawn' function. */
+#define HAVE_POSIX_SPAWN 1
+
+/* Define to 1 if you have the `pread' function. */
+#define HAVE_PREAD 1
+
+/* Have pthread_getspecific */
+#define HAVE_PTHREAD_GETSPECIFIC 1
+
+/* Define to 1 if you have the <pthread.h> header file. */
+#define HAVE_PTHREAD_H 1
+
+/* Have pthread_mutex_lock */
+#define HAVE_PTHREAD_MUTEX_LOCK 1
+
+/* Have pthread_rwlock_init */
+#define HAVE_PTHREAD_RWLOCK_INIT 1
+
+/* Define to 1 if you have the `realpath' function. */
+#define HAVE_REALPATH 1
+
+/* Define to 1 if you have the `sbrk' function. */
+#define HAVE_SBRK 1
+
+/* Define to 1 if you have the `setenv' function. */
+#define HAVE_SETENV 1
+
+/* Define to 1 if you have the `setrlimit' function. */
+#define HAVE_SETRLIMIT 1
+
+/* Define to 1 if you have the `sigaltstack' function. */
+#define HAVE_SIGALTSTACK 1
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Has usable std::is_trivially_copyable */
+#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1
+
+/* Define to 1 if you have the `strerror' function. */
+#define HAVE_STRERROR 1
+
+/* Define to 1 if you have the `strerror_r' function. */
+#define HAVE_STRERROR_R 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strtoll' function. */
+#define HAVE_STRTOLL 1
+
+/* Define to 1 if `st_mtimensec.tv_nsec' is a member of `struct stat'. */
+/* #undef HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC */
+
+/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
+
+/* Define to 1 if you have the `sysconf' function. */
+#define HAVE_SYSCONF 1
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+ */
+/* #undef HAVE_SYS_DIR_H */
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+#define HAVE_SYS_MMAN_H 1
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+ */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#define HAVE_SYS_RESOURCE_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <sys/uio.h> header file. */
+#define HAVE_SYS_UIO_H 1
+
+/* Define if the setupterm() function is supported this platform. */
+#define HAVE_TERMINFO 1
+
+/* Define to 1 if you have the <termios.h> header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define to 1 if the system has the type `uint64_t'. */
+#define HAVE_UINT64_T 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if the system has the type `u_int64_t'. */
+/* #undef HAVE_U_INT64_T */
+
+/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
+/* #undef HAVE_VALGRIND_VALGRIND_H */
+
+/* Define to 1 if you have the `writev' function. */
+#define HAVE_WRITEV 1
+
+/* Define to 1 if you have the <zlib.h> header file. */
+#define HAVE_ZLIB_H 1
+
+/* Have host's _alloca */
+/* #undef HAVE__ALLOCA */
+
+/* Define to 1 if you have the `_chsize_s' function. */
+/* #undef HAVE__CHSIZE_S */
+
+/* Define to 1 if you have the `_Unwind_Backtrace' function. */
+#define HAVE__UNWIND_BACKTRACE 1
+
+/* Have host's __alloca */
+/* #undef HAVE___ALLOCA */
+
+/* Have host's __ashldi3 */
+/* #undef HAVE___ASHLDI3 */
+
+/* Have host's __ashrdi3 */
+/* #undef HAVE___ASHRDI3 */
+
+/* Have host's __chkstk */
+/* #undef HAVE___CHKSTK */
+
+/* Have host's __chkstk_ms */
+/* #undef HAVE___CHKSTK_MS */
+
+/* Have host's __cmpdi2 */
+/* #undef HAVE___CMPDI2 */
+
+/* Have host's __divdi3 */
+/* #undef HAVE___DIVDI3 */
+
+/* Have host's __fixdfdi */
+/* #undef HAVE___FIXDFDI */
+
+/* Have host's __fixsfdi */
+/* #undef HAVE___FIXSFDI */
+
+/* Have host's __floatdidf */
+/* #undef HAVE___FLOATDIDF */
+
+/* Have host's __lshrdi3 */
+/* #undef HAVE___LSHRDI3 */
+
+/* Have host's __main */
+/* #undef HAVE___MAIN */
+
+/* Have host's __moddi3 */
+/* #undef HAVE___MODDI3 */
+
+/* Have host's __udivdi3 */
+/* #undef HAVE___UDIVDI3 */
+
+/* Have host's __umoddi3 */
+/* #undef HAVE___UMODDI3 */
+
+/* Have host's ___chkstk */
+/* #undef HAVE____CHKSTK */
+
+/* Have host's ___chkstk_ms */
+/* #undef HAVE____CHKSTK_MS */
+
+/* Linker version detected at compile time. */
+#define HOST_LINK_VERSION "1"
+
+/* Define if we link Polly to the tools */
+/* #undef LINK_POLLY_INTO_TOOLS */
+
+/* Target triple LLVM will generate code for by default */
+#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd"
+
+/* Define to 1 to checks for ABI changes, and to 0 otherwise. */
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0
+
+/* Enable crash memory dumps (Windows-only) */
+#define LLVM_ENABLE_CRASH_DUMPS 0
+
+/* Define if threads enabled */
+#define LLVM_ENABLE_THREADS 1
+
+/* Define if zlib compression is available */
+#define LLVM_ENABLE_ZLIB 1
+
+/* Has gcc/MSVC atomic intrinsics */
+#define LLVM_HAS_ATOMICS 1
+
+/* Host triple LLVM will be executed on */
+#define LLVM_HOST_TRIPLE "x86_64--netbsd"
+
+/* LLVM architecture name for the native architecture, if available */
+#define LLVM_NATIVE_ARCH X86
+
+/* LLVM name for the native AsmParser init function, if available */
+#define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
+
+/* LLVM name for the native Disassembler init function, if available */
+#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler
+
+/* LLVM name for the native Target init function, if available */
+#define LLVM_NATIVE_TARGET LLVMInitializeX86Target
+
+/* LLVM name for the native TargetInfo init function, if available */
+#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
+
+/* LLVM name for the native target MC init function, if available */
+#define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC
+
+/* Define if this is Unixish platform */
+#define LLVM_ON_UNIX 1
+
+/* Define if this is Win32ish platform */
+/* #undef LLVM_ON_WIN32 */
+
+/* Installation prefix directory */
+#define LLVM_PREFIX "/usr"
+
+/* Enable support for Xcode signposts (disabled) */
+#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0
+
+/* Define if we have the Intel JIT API runtime support library */
+#define LLVM_USE_INTEL_JITEVENTS 0
+
+/* Define if we have the oprofile JIT-support library */
+#define LLVM_USE_OPROFILE 0
+
+/* LLVM version information */
+/* #undef LLVM_VERSION_INFO */
+
+/* Major version of the LLVM API */
+#define LLVM_VERSION_MAJOR 4
+
+/* Minor version of the LLVM API */
+#define LLVM_VERSION_MINOR 0
+
+/* Patch version of the LLVM API */
+#define LLVM_VERSION_PATCH 0
+
+/* LLVM version string */
+#define LLVM_VERSION_STRING "4.0.0svn"
+
+/* Define to the extension used for shared libraries, say, ".so". */
+#define LTDL_SHLIB_EXT ".so"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "http://llvm.org/bugs/"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "LLVM"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "LLVM 4.0.0svn"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "llvm"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "4.0.0svn"
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#define RETSIGTYPE void
+
+/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
+/* #undef STAT_MACROS_BROKEN */
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+/* #undef TM_IN_SYS_TIME */
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef pid_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+#endif
diff --git a/external/apache2/llvm/config/llvm/Config/llvm-config.h.in b/external/apache2/llvm/config/llvm/Config/llvm-config.h.in
new file mode 100644
index 00000000000..db07a9f68fa
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Config/llvm-config.h.in
@@ -0,0 +1,84 @@
+/* include/llvm/Config/llvm-config.h. Generated from llvm-config.h.in by configure. */
+/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
+/* */
+/* The LLVM Compiler Infrastructure */
+/* */
+/* This file is distributed under the University of Illinois Open Source */
+/* License. See LICENSE.TXT for details. */
+/* */
+/*===----------------------------------------------------------------------===*/
+
+/* This file enumerates variables from the LLVM configuration so that they
+ can be in exported headers and won't override package specific directives.
+ This is a C header that can be included in the llvm-c headers. */
+
+#ifndef LLVM_CONFIG_H
+#define LLVM_CONFIG_H
+
+/* Define if we link Polly to the tools */
+/* #undef LINK_POLLY_INTO_TOOLS */
+
+/* Target triple LLVM will generate code for by default */
+#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd"
+
+/* Define to enable checks that alter the LLVM C++ ABI */
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0
+
+/* Define if threads enabled */
+#define LLVM_ENABLE_THREADS 1
+
+/* Has gcc/MSVC atomic intrinsics */
+#define LLVM_HAS_ATOMICS 1
+
+/* Host triple LLVM will be executed on */
+#define LLVM_HOST_TRIPLE "x86_64--netbsd"
+
+/* LLVM architecture name for the native architecture, if available */
+#define LLVM_NATIVE_ARCH X86
+
+/* LLVM name for the native AsmParser init function, if available */
+#define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
+
+/* LLVM name for the native Disassembler init function, if available */
+#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler
+
+/* LLVM name for the native Target init function, if available */
+#define LLVM_NATIVE_TARGET LLVMInitializeX86Target
+
+/* LLVM name for the native TargetInfo init function, if available */
+#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
+
+/* LLVM name for the native target MC init function, if available */
+#define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC
+
+/* Define if this is Unixish platform */
+#define LLVM_ON_UNIX 1
+
+/* Define if this is Win32ish platform */
+/* #undef LLVM_ON_WIN32 */
+
+/* Installation prefix directory */
+#define LLVM_PREFIX "/usr"
+
+/* Define if we have the Intel JIT API runtime support library */
+#define LLVM_USE_INTEL_JITEVENTS 0
+
+/* Define if we have the oprofile JIT-support library */
+#define LLVM_USE_OPROFILE 0
+
+/* Major version of the LLVM API */
+#define LLVM_VERSION_MAJOR 4
+
+/* Minor version of the LLVM API */
+#define LLVM_VERSION_MINOR 0
+
+/* Patch version of the LLVM API */
+#define LLVM_VERSION_PATCH 0
+
+/* LLVM version string */
+#define LLVM_VERSION_STRING "4.0.0svn"
+
+#endif
diff --git a/external/apache2/llvm/config/llvm/Support/DataTypes.h b/external/apache2/llvm/config/llvm/Support/DataTypes.h
new file mode 100644
index 00000000000..5eeb2b26a59
--- /dev/null
+++ b/external/apache2/llvm/config/llvm/Support/DataTypes.h
@@ -0,0 +1,131 @@
+/* include/llvm/Support/DataTypes.h. Generated from DataTypes.h.in by configure. */
+/*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This file contains definitions to figure out the size of _HOST_ data types.*|
+|* This file is important because different host OS's define different macros,*|
+|* which makes portability tough. This file exports the following *|
+|* definitions: *|
+|* *|
+|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
+|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
+|* *|
+|* No library is required when using these functions. *|
+|* *|
+|*===----------------------------------------------------------------------===*/
+
+/* Please leave this file C-compatible. */
+
+/* Please keep this file in sync with DataTypes.h.cmake */
+
+#ifndef SUPPORT_DATATYPES_H
+#define SUPPORT_DATATYPES_H
+
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_UINT64_T 1
+/* #undef HAVE_U_INT64_T */
+
+#ifdef __cplusplus
+#include <cmath>
+#else
+#include <math.h>
+#endif
+
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+#error "Compiler must provide an implementation of stdint.h"
+#endif
+
+#ifndef _MSC_VER
+
+/* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
+ being defined. We would define it here, but in order to prevent Bad Things
+ happening when system headers or C++ STL headers include stdint.h before we
+ define it here, we define it on the g++ command line (in Makefile.rules). */
+#if !defined(__STDC_LIMIT_MACROS)
+# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
+#endif
+
+#if !defined(__STDC_CONSTANT_MACROS)
+# error "Must #define __STDC_CONSTANT_MACROS before " \
+ "#including Support/DataTypes.h"
+#endif
+
+/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
+#include <sys/types.h>
+
+#ifdef _AIX
+#include "llvm/Support/AIXDataTypesFix.h"
+#endif
+
+/* Handle incorrect definition of uint64_t as u_int64_t */
+#ifndef HAVE_UINT64_T
+#ifdef HAVE_U_INT64_T
+typedef u_int64_t uint64_t;
+#else
+# error "Don't have a definition for uint64_t on this platform"
+#endif
+#endif
+
+#else /* _MSC_VER */
+#include <stdlib.h>
+#include <stddef.h>
+#include <sys/types.h>
+#ifdef __cplusplus
+#include <cmath>
+#else
+#include <math.h>
+#endif
+
+#if defined(_WIN64)
+typedef signed __int64 ssize_t;
+#else
+typedef signed int ssize_t;
+#endif /* _WIN64 */
+
+#ifndef HAVE_INTTYPES_H
+#define PRId64 "I64d"
+#define PRIi64 "I64i"
+#define PRIo64 "I64o"
+#define PRIu64 "I64u"
+#define PRIx64 "I64x"
+#define PRIX64 "I64X"
+
+#define PRId32 "d"
+#define PRIi32 "i"
+#define PRIo32 "o"
+#define PRIu32 "u"
+#define PRIx32 "x"
+#define PRIX32 "X"
+#endif /* HAVE_INTTYPES_H */
+
+#endif /* _MSC_VER */
+
+/* Set defaults for constants which we cannot find. */
+#if !defined(INT64_MAX)
+# define INT64_MAX 9223372036854775807LL
+#endif
+#if !defined(INT64_MIN)
+# define INT64_MIN ((-INT64_MAX)-1)
+#endif
+#if !defined(UINT64_MAX)
+# define UINT64_MAX 0xffffffffffffffffULL
+#endif
+
+#ifndef HUGE_VALF
+#define HUGE_VALF (float)HUGE_VAL
+#endif
+
+#endif /* SUPPORT_DATATYPES_H */
diff --git a/external/apache2/llvm/include/Makefile b/external/apache2/llvm/include/Makefile
new file mode 100644
index 00000000000..217c2523fe4
--- /dev/null
+++ b/external/apache2/llvm/include/Makefile
@@ -0,0 +1,370 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+.include <bsd.init.mk>
+
+.if ${MKLLVM} != "no"
+.PATH: ${CLANG_SRCDIR}/lib/Headers
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+INCS= adxintrin.h \
+ ammintrin.h \
+ avx2intrin.h \
+ avx512bf16intrin.h \
+ avx512vlbf16intrin.h \
+ avx512vlvp2intersectintrin.h \
+ avx512vp2intersectintrin.h \
+ enqcmdintrin.h \
+ avx512bitalgintrin.h \
+ avx512bwintrin.h \
+ avx512cdintrin.h \
+ avx512dqintrin.h \
+ avx512erintrin.h \
+ avx512fintrin.h \
+ avx512ifmaintrin.h \
+ avx512ifmavlintrin.h \
+ avx512pfintrin.h \
+ avx512vbmi2intrin.h \
+ avx512vbmiintrin.h \
+ avx512vbmivlintrin.h \
+ avx512vlbitalgintrin.h \
+ avx512vlbwintrin.h \
+ avx512vlcdintrin.h \
+ avx512vldqintrin.h \
+ avx512vlintrin.h \
+ avx512vlvbmi2intrin.h \
+ avx512vlvnniintrin.h \
+ avx512vnniintrin.h \
+ avx512vpopcntdqintrin.h \
+ avx512vpopcntdqvlintrin.h \
+ avxintrin.h \
+ bmi2intrin.h \
+ bmiintrin.h \
+ cetintrin.h \
+ cldemoteintrin.h \
+ clflushoptintrin.h \
+ clwbintrin.h \
+ clzerointrin.h \
+ cpuid.h \
+ emmintrin.h \
+ f16cintrin.h \
+ fma4intrin.h \
+ fmaintrin.h \
+ fxsrintrin.h \
+ gfniintrin.h \
+ ia32intrin.h \
+ immintrin.h \
+ invpcidintrin.h \
+ lwpintrin.h \
+ lzcntintrin.h \
+ mm3dnow.h \
+ mmintrin.h \
+ mm_malloc.h \
+ movdirintrin.h \
+ mwaitxintrin.h \
+ nmmintrin.h \
+ pconfigintrin.h \
+ pkuintrin.h \
+ pmmintrin.h \
+ popcntintrin.h \
+ prfchwintrin.h \
+ ptwriteintrin.h \
+ rdseedintrin.h \
+ rtmintrin.h \
+ sgxintrin.h \
+ shaintrin.h \
+ smmintrin.h \
+ tbmintrin.h \
+ tmmintrin.h \
+ vaesintrin.h \
+ vpclmulqdqintrin.h \
+ waitpkgintrin.h \
+ wbnoinvdintrin.h \
+ wmmintrin.h \
+ __wmmintrin_aes.h \
+ __wmmintrin_pclmul.h \
+ x86intrin.h \
+ xmmintrin.h \
+ xopintrin.h \
+ xsavecintrin.h \
+ xsaveintrin.h \
+ xsaveoptintrin.h \
+ xsavesintrin.h \
+ xtestintrin.h
+
+.elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
+INCS= altivec.h \
+ htmintrin.h \
+ htmxlintrin.h
+.elif ${MACHINE_CPU} == "arm" || ${MACHINE_CPU} == "aarch64"
+INCS= arm_acle.h \
+ arm_neon.h
+. if ${MACHINE_CPU} == "aarch64"
+INCS+= arm64intr.h
+. endif
+.elif ${MACHINE_CPU} == "mips" || ${MACHINE_CPU} == "mips64"
+INCS= msa.h
+.endif
+INCS+= stdatomic.h
+INCSDIR= /usr/include/clang-${CLANG_VERSION:R}
+.endif # MKLLVM
+
+.PATH: ${LLVM_SRCDIR}/include/llvm/IR \
+
+TABLEGEN_SRC= Attributes.td Intrinsics.td Options.td
+
+TABLEGEN_OUTPUT.Attributes.td= \
+ llvm/IR/Attributes.inc|-gen-attrs
+
+TABLEGEN_OUTPUT.Intrinsics.td= \
+ llvm/IR/IntrinsicEnums.inc|-gen-intrinsic-enums \
+ llvm/IR/IntrinsicImpl.inc|-gen-intrinsic-impl
+
+.if ${MKLLVM} != "no"
+.PATH: ${CLANG_SRCDIR}/include/clang/AST \
+ ${CLANG_SRCDIR}/include/clang/Basic \
+ ${CLANG_SRCDIR}/include/clang/Driver \
+ ${CLANG_SRCDIR}/include/clang/StaticAnalyzer/Checkers
+CLANG_TABLEGEN_SRC= \
+ arm_fp16.td \
+ arm_neon.td \
+ arm_mve.td \
+ Attr.td \
+ Checkers.td \
+ CommentCommands.td \
+ CommentHTMLNamedCharacterReferences.td \
+ CommentHTMLTags.td \
+ CommentNodes.td \
+ DeclNodes.td \
+ Diagnostic.td \
+ StmtDataCollectors.td \
+ StmtNodes.td \
+ TypeNodes.td
+
+CLANG_TABLEGEN_INCLUDES.Attr.td= -I${CLANG_SRCDIR}/include
+CLANG_TABLEGEN_OUTPUT.Attr.td= \
+ clang/AST/AttrImpl.inc|-gen-clang-attr-impl \
+ clang/AST/AttrNodeTraverse.inc|-gen-clang-attr-node-traverse \
+ clang/AST/AttrTextNodeDump.inc|-gen-clang-attr-text-node-dump \
+ clang/AST/Attrs.inc|-gen-clang-attr-classes \
+ clang/AST/AttrVisitor.inc|-gen-clang-attr-ast-visitor \
+ clang/Basic/AttrHasAttributeImpl.inc|-gen-clang-attr-has-attribute-impl \
+ clang/Basic/AttrList.inc|-gen-clang-attr-list \
+ clang/Basic/AttrSubMatchRulesList.inc|-gen-clang-attr-subject-match-rule-list \
+ clang/Parse/AttrParserStringSwitches.inc|-gen-clang-attr-parser-string-switches \
+ clang/Parse/AttrSubMatchRulesParserStringSwitches.inc|-gen-clang-attr-subject-match-rules-parser-string-switches \
+ clang/Sema/AttrParsedAttrImpl.inc|-gen-clang-attr-parsed-attr-impl \
+ clang/Sema/AttrParsedAttrKinds.inc|-gen-clang-attr-parsed-attr-kinds \
+ clang/Sema/AttrParsedAttrList.inc|-gen-clang-attr-parsed-attr-list \
+ clang/Sema/AttrSpellingListIndex.inc|-gen-clang-attr-spelling-index \
+ clang/Sema/AttrTemplateInstantiate.inc|-gen-clang-attr-template-instantiate \
+ clang/Serialization/AttrPCHRead.inc|-gen-clang-attr-pch-read \
+ clang/Serialization/AttrPCHWrite.inc|-gen-clang-attr-pch-write
+
+CLANG_TABLEGEN_OUTPUT.StmtNodes.td= \
+ clang/AST/StmtNodes.inc|-gen-clang-stmt-nodes
+
+CLANG_TABLEGEN_OUTPUT.StmtDataCollectors.td= \
+ clang/AST/StmtDataCollectors.inc|-gen-clang-data-collectors
+
+CLANG_TABLEGEN_OUTPUT.DeclNodes.td= \
+ clang/AST/DeclNodes.inc|-gen-clang-decl-nodes
+
+CLANG_TABLEGEN_OUTPUT.CommentNodes.td= \
+ clang/AST/CommentNodes.inc|-gen-clang-comment-nodes
+
+CLANG_TABLEGEN_OUTPUT.CommentCommands.td= \
+ clang/AST/CommentCommandInfo.inc|-gen-clang-comment-command-info \
+ clang/AST/CommentCommandList.inc|-gen-clang-comment-command-list
+
+CLANG_TABLEGEN_OUTPUT.CommentHTMLTags.td= \
+ clang/AST/CommentHTMLTags.inc|-gen-clang-comment-html-tags \
+ clang/AST/CommentHTMLTagsProperties.inc|-gen-clang-comment-html-tags-properties
+
+CLANG_TABLEGEN_OUTPUT.CommentHTMLNamedCharacterReferences.td= \
+ clang/AST/CommentHTMLNamedCharacterReferences.inc|-gen-clang-comment-html-named-character-references
+
+CLANG_TABLEGEN_OUTPUT.TypeNodes.td= \
+ clang/AST/TypeNodes.inc|-gen-clang-type-nodes
+
+CLANG_TABLEGEN_INCLUDES.Diagnostic.td= -I${CLANG_SRCDIR}/include/clang/Basic
+CLANG_TABLEGEN_OUTPUT.Diagnostic.td= \
+ clang/Basic/DiagnosticAnalysisKinds.inc|-gen-clang-diags-defs^-clang-component=Analysis \
+ clang/Basic/DiagnosticASTKinds.inc|-gen-clang-diags-defs^-clang-component=AST \
+ clang/Basic/DiagnosticCommentKinds.inc|-gen-clang-diags-defs^-clang-component=Comment \
+ clang/Basic/DiagnosticCommonKinds.inc|-gen-clang-diags-defs^-clang-component=Common \
+ clang/Basic/DiagnosticCrossTUKinds.inc|-gen-clang-diags-defs^-clang-component=CrossTU \
+ clang/Basic/DiagnosticDriverKinds.inc|-gen-clang-diags-defs^-clang-component=Driver \
+ clang/Basic/DiagnosticFrontendKinds.inc|-gen-clang-diags-defs^-clang-component=Frontend \
+ clang/Basic/DiagnosticGroups.inc|-gen-clang-diag-groups \
+ clang/Basic/DiagnosticIndexName.inc|-gen-clang-diags-index-name \
+ clang/Basic/DiagnosticLexKinds.inc|-gen-clang-diags-defs^-clang-component=Lex \
+ clang/Basic/DiagnosticParseKinds.inc|-gen-clang-diags-defs^-clang-component=Parse \
+ clang/Basic/DiagnosticRefactoringKinds.inc|-gen-clang-diags-defs^-clang-component=Refactoring \
+ clang/Basic/DiagnosticSemaKinds.inc|-gen-clang-diags-defs^-clang-component=Sema \
+ clang/Basic/DiagnosticSerializationKinds.inc|-gen-clang-diags-defs^-clang-component=Serialization
+
+
+CLANG_TABLEGEN_INCLUDES.arm_neon.td= -I${CLANG_SRCDIR}/include/clang/Basic
+CLANG_TABLEGEN_OUTPUT.arm_neon.td= \
+ clang/Basic/arm_neon.inc|-gen-arm-neon-sema \
+ arm_neon.h|-gen-arm-neon
+
+CLANG_TABLEGEN_INCLUDES.arm_fp16.td= -I${CLANG_SRCDIR}/include/clang/Basic
+CLANG_TABLEGEN_OUTPUT.arm_fp16.td= \
+ clang/Basic/arm_fp16.inc|-gen-arm-neon-sema
+CLANG_TABLEGEN_INCLUDES.arm_mve.td= -I${CLANG_SRCDIR}/include/clang/Basic
+CLANG_TABLEGEN_OUTPUT.arm_mve.td= \
+ clang/Basic/arm_mve_builtins.inc|-gen-arm-mve-builtin-def \
+ clang/Basic/arm_mve_builtin_aliases.inc|-gen-arm-mve-builtin-aliases \
+ clang/Basic/arm_mve_builtin_cg.inc|-gen-arm-mve-builtin-codegen \
+ clang/Basic/arm_mve_builtin_sema.inc|-gen-arm-mve-builtin-sema \
+
+CLANG_TABLEGEN_INCLUDES.Checkers.td= \
+ -I${CLANG_SRCDIR}/include \
+ -I${CLANG_SRCDIR}/include/clang/StaticAnalyzer/Checkers
+CLANG_TABLEGEN_OUTPUT.Checkers.td= \
+ clang/StaticAnalyzer/Checkers/Checkers.inc|-gen-clang-sa-checkers
+
+TABLEGEN_INCLUDES.Options.td= -I${CLANG_SRCDIR}/include/clang/Driver
+TABLEGEN_OUTPUT.Options.td= \
+ clang/Driver/Options.inc|-gen-opt-parser-defs
+.endif # MKLLVM
+
+.include "${.PARSEDIR}/../tablegen.mk"
+
+DPSRCS+= llvm/Support/VCSRevision.h
+DPSRC+= llvm/Support/VCSRevision.h
+
+llvm/Support/VCSRevision.h: ${LLVM_TOPLEVEL}/Makefile.inc
+ mkdir -p ${.TARGET:H}
+ printf '#define LLVM_REVISION "git-${LLVM_REVISION}"\n' >> ${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
+
+.if ${MKLLVM} != "no"
+DPSRCS+= clang/Basic/Version.inc
+CLEANFILES+= clang/Basic/Version.inc
+
+clang/Basic/Version.inc: ${LLVM_TOPLEVEL}/Makefile.inc
+ mkdir -p ${.TARGET:H}
+ printf '#define CLANG_VERSION ${CLANG_VERSION}\n' > ${.TARGET}.tmp
+ printf '#define CLANG_VERSION_STRING "${CLANG_VERSION}"\n' >> ${.TARGET}.tmp
+ printf '#define CLANG_VERSION_MAJOR ${CLANG_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ printf '#define CLANG_VERSION_MINOR ${CLANG_VERSION:R:E}\n' >> ${.TARGET}.tmp
+ printf '#define CLANG_VERSION_PATCHLEVEL ${CLANG_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
+.endif # MKLLVM
+
+.ifndef HOST_BUILD
+
+DPSRCS+= llvm/Config/config.h llvm/Config/llvm-config.h
+CLEANFILES+= llvm/Config/config.h llvm/Config/llvm-config.h
+
+NATIVE_LIBS= -lm -lexecinfo
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+NATIVE_LLVM_ARCH= X86
+.endif
+
+.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
+NATIVE_LLVM_ARCH= AArch64
+.endif
+
+.if !empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*)
+NATIVE_LLVM_ARCH= ARM
+.endif
+
+.if !empty(MACHINE_ARCH:Mmips*)
+NATIVE_LLVM_ARCH= Mips
+.endif
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
+NATIVE_LLVM_ARCH= PowerPC
+.endif
+
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+NATIVE_LLVM_ARCH= Sparc
+.endif
+
+.if defined(NATIVE_LLVM_ARCH)
+NATIVE_LLVM_ASMPARSER= LLVMInitialize${NATIVE_LLVM_ARCH}AsmParser
+NATIVE_LLVM_ASMPRINTER= LLVMInitialize${NATIVE_LLVM_ARCH}AsmPrinter
+NATIVE_LLVM_DISASSEMBLER= LLVMInitialize${NATIVE_LLVM_ARCH}Disassembler
+NATIVE_LLVM_TARGET= LLVMInitialize${NATIVE_LLVM_ARCH}Target
+NATIVE_LLVM_TARGETINFO= LLVMInitialize${NATIVE_LLVM_ARCH}TargetInfo
+NATIVE_LLVM_TARGETMC= LLVMInitialize${NATIVE_LLVM_ARCH}TargetMC
+.endif
+
+llvm/Config/config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in
+ mkdir -p ${.TARGET:H}
+ ${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d \
+ -e /LLVM_HOST_TRIPLE/d \
+ -e /LLVM_NATIVE_/d \
+ -e /LLVM_VERSION_/d \
+ -e /PACKAGE_VERSION/d -e 'x' \
+ < ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in \
+ > ${.TARGET}.tmp
+ printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_HOST_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
+.if defined(NATIVE_LLVM_ARCH)
+ printf '#define LLVM_NATIVE_ARCH ${NATIVE_LLVM_ARCH}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_ASMPARSER ${NATIVE_LLVM_ASMPARSER}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_ASMPRINTER ${NATIVE_LLVM_ASMPRINTER}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_DISASSEMBLER ${NATIVE_LLVM_DISASSEMBLER}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_TARGET ${NATIVE_LLVM_TARGET}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_TARGETINFO ${NATIVE_LLVM_TARGETINFO}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_TARGETMC ${NATIVE_LLVM_TARGETMC}\n' >> ${.TARGET}.tmp
+.endif
+ printf '#define PACKAGE_VERSION "${LLVM_VERSION} (trunk ${LLVM_REVISION})"\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:R:E}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_PATCH ${LLVM_VERSION:E}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_STRING "${LLVM_VERSION}"\n' >> ${.TARGET}.tmp
+ printf '#endif\n' >> ${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
+
+llvm/Config/llvm-config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in
+ mkdir -p ${.TARGET:H}
+ ${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d \
+ -e /LLVM_HOST_TRIPLE/d \
+ -e /LLVM_NATIVE_/d \
+ -e /LLVM_VERSION_/d \
+ -e /PACKAGE_VERSION/d -e 'x' \
+ < ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in \
+ > ${.TARGET}.tmp
+ printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_HOST_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
+.if defined(NATIVE_LLVM_ARCH)
+ printf '#define LLVM_NATIVE_ARCH ${NATIVE_LLVM_ARCH}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_ASMPARSER ${NATIVE_LLVM_ASMPARSER}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_ASMPRINTER ${NATIVE_LLVM_ASMPRINTER}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_DISASSEMBLER ${NATIVE_LLVM_DISASSEMBLER}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_TARGET ${NATIVE_LLVM_TARGET}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_TARGETINFO ${NATIVE_LLVM_TARGETINFO}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_NATIVE_TARGETMC ${NATIVE_LLVM_TARGETMC}\n' >> ${.TARGET}.tmp
+.endif
+ printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:R:E}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_PATCH ${LLVM_VERSION:E}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_STRING "${LLVM_VERSION}"\n' >> ${.TARGET}.tmp
+ printf '#endif\n' >> ${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
+
+run-configure:
+ [ ! -d tmp ] || rm -r tmp
+ mkdir -p tmp
+ cd tmp && CONFIG_SITE= ${CONFIG_DIR}/configure ${LLVM_CONFIGURE_ARGS} \
+ CC=${CC:Q} CFLAGS=${CFLAGS:N-Werror:Q} CXX=${CXX:Q} CXXFLAGS=${CXXFLAGS:N-Werror:Q} \
+ CPPFLAGS=${CPPFLAGS:N-std=c++11:Q} LDFLAGS=${LDFLAGS:Q} LD=${LD:Q} LIBS=${NATIVE_LIBS:Q} \
+ BUILD_CC=${CC:Q} BUILD_CXX=${CXX:Q}
+ cp -r tmp/include/llvm/* ${LLVM_INCLUDE_CONFIG}/llvm/
+ mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/llvm-config.h \
+ ${LLVM_INCLUDE_CONFIG}/llvm/Config/llvm-config.h.in
+ cp -r tmp/include/clang/* ${CLANG_INCLUDE_CONFIG}/clang/
+ rm -r tmp
+ mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h \
+ ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h.in
+.endif
+
+includes depend dependall all: ${DPSRCS}
+
+.include <bsd.prog.mk>
diff --git a/external/apache2/llvm/include/Makefile.inc b/external/apache2/llvm/include/Makefile.inc
new file mode 100644
index 00000000000..782dd1bcabe
--- /dev/null
+++ b/external/apache2/llvm/include/Makefile.inc
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+.include "${.PARSEDIR}/../Makefile.inc"
diff --git a/external/apache2/llvm/lib/Makefile b/external/apache2/llvm/lib/Makefile
new file mode 100644
index 00000000000..e0a2d43ad7d
--- /dev/null
+++ b/external/apache2/llvm/lib/Makefile
@@ -0,0 +1,174 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+.include <bsd.own.mk>
+
+SUBDIR= \
+ libLLVMAnalysis \
+ libLLVMAsmParser \
+ libLLVMAsmPrinter \
+ libLLVMBinaryFormat \
+ libLLVMBitReader \
+ libLLVMBitWriter \
+ libLLVMBitstreamReader \
+ libLLVMCodeGen \
+ libLLVMDebugInfoCodeView \
+ libLLVMDebugInfoDWARF \
+ libLLVMDebugInfoMSF \
+ libLLVMDemangle \
+ libLLVMGlobalISel \
+ libLLVMIR \
+ libLLVMIRReader \
+ libLLVMInstCombine \
+ libLLVMInstrumentation \
+ libLLVMipo \
+ libLLVMLTO \
+ libLLVMLinker \
+ libLLVMMC \
+ libLLVMMCDisassembler \
+ libLLVMMCParser \
+ libLLVMObjCARC \
+ libLLVMObject \
+ libLLVMOption \
+ libLLVMPasses \
+ libLLVMProfileData \
+ libLLVMProfileDataCoverage \
+ libLLVMRemarks \
+ libLLVMScalarOpts \
+ libLLVMSelectionDAG \
+ libLLVMSupport \
+ libLLVMTableGen \
+ libLLVMTarget \
+ libLLVMTextAPI \
+ libLLVMTransformsAggressiveInstCombine \
+ libLLVMTransformsCFGuard \
+ libLLVMTransformsCoroutines \
+ libLLVMTransformsUtils \
+ libLLVMVectorize \
+ libLLVMAArch64CodeGen \
+ libLLVMARMCodeGen \
+ libLLVMMipsCodeGen \
+ libLLVMPowerPCCodeGen \
+ libLLVMSparcCodeGen \
+ libLLVMX86CodeGen
+
+.if !defined(HOSTLIB) && !defined(_BSD_HOSTINIT_MK_)
+SUBDIR+= \
+ libLLVMAMDGPUCodeGen
+.endif
+
+SUBDIR+= .WAIT
+
+.if !defined(HOSTLIB) && !defined(_BSD_HOSTINIT_MK_)
+SUBDIR+= \
+ libLLVMMIRParser \
+ libLLVMAMDGPUMCTargetDesc \
+ libLLVMAMDGPUTargetInfo \
+ libLLVMAMDGPUAsmParser \
+ libLLVMAMDGPUUtils
+.endif
+
+SUBDIR+= \
+ libLLVMAArch64AsmParser \
+ libLLVMAArch64Disassembler \
+ libLLVMAArch64MCTargetDesc \
+ libLLVMAArch64TargetInfo \
+ libLLVMAArch64Utils
+
+SUBDIR+= \
+ libLLVMARMAsmParser \
+ libLLVMARMDisassembler \
+ libLLVMARMMCTargetDesc \
+ libLLVMARMTargetInfo \
+ libLLVMARMUtils
+
+SUBDIR+= \
+ libLLVMMipsAsmParser \
+ libLLVMMipsDisassembler \
+ libLLVMMipsMCTargetDesc \
+ libLLVMMipsTargetInfo
+
+SUBDIR+= \
+ libLLVMPowerPCAsmParser \
+ libLLVMPowerPCDisassembler \
+ libLLVMPowerPCMCTargetDesc \
+ libLLVMPowerPCTargetInfo
+
+SUBDIR+= \
+ libLLVMSparcAsmParser \
+ libLLVMSparcDisassembler \
+ libLLVMSparcMCTargetDesc \
+ libLLVMSparcTargetInfo
+
+SUBDIR+= \
+ libLLVMX86AsmParser \
+ libLLVMX86Disassembler \
+ libLLVMX86MCTargetDesc \
+ libLLVMX86TargetInfo \
+ libLLVMX86Utils
+
+.if ${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes"
+SUBDIR+= \
+ libLLVMAMDGPUDisassembler \
+ libLLVMExecutionEngine \
+ libLLVMExecutionEngineJITLink \
+ libLLVMMCJIT \
+ libLLVMOrc \
+ libLLVMRuntimeDyld
+.endif
+
+.if ${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes
+SUBDIR+= \
+ libLLVMDebugInfoPDB \
+ libLLVMDebugInfoPDBNative \
+ libLLVMDebugInfoSymbolize
+.endif
+
+.if ${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes"
+SUBDIR+= \
+ libLLVMDebugInfoGSYM \
+ libLLVMHello \
+ libLLVMInterpreter \
+ libLLVMLineEditor \
+ libLLVMObjectYAML \
+ libLLVMToolDrivers \
+ libLLVMToolDriversDlltool \
+ libLLVMXRay
+.endif
+
+SUBDIR+= \
+ libclangAnalysis \
+ libclangARCMigrate \
+ libclangAST \
+ libclangASTMatchers \
+ libclangBasic \
+ libclangCodeGen \
+ libclangCrossTU \
+ libclangDriver \
+ libclangEdit \
+ libclangFrontend \
+ libclangFrontendRewrite \
+ libclangFrontendTool \
+ libclangIndex \
+ libclangLex \
+ libclangParse \
+ libclangRewrite \
+ libclangSema \
+ libclangSerialization \
+ libclangStaticAnalyzerCheckers \
+ libclangStaticAnalyzerCore \
+ .WAIT \
+ libclangStaticAnalyzerFrontend
+
+.if ${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes"
+SUBDIR+= \
+ libclangASTMatchersDynamic \
+ libclangFormat \
+ libclangTooling \
+ libclangToolingCore \
+ libclangToolingDependencyScanning \
+ libclangToolingInclusions \
+ libclangToolingRefactoring \
+ libclangToolingSyntax
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/external/apache2/llvm/lib/Makefile.inc b/external/apache2/llvm/lib/Makefile.inc
new file mode 100644
index 00000000000..cf098fc4746
--- /dev/null
+++ b/external/apache2/llvm/lib/Makefile.inc
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile.inc,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+LIBISPRIVATE= yes
+
+.include "${.PARSEDIR}/../Makefile.inc"
diff --git a/external/apache2/llvm/lib/libLLVMAArch64AsmParser/Makefile b/external/apache2/llvm/lib/libLLVMAArch64AsmParser/Makefile
new file mode 100644
index 00000000000..b54d978e442
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAArch64AsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+LIB= LLVMAArch64AsmParser
+
+.include <bsd.init.mk>
+
+AARCH64_OBJDIR!= cd ${.CURDIR}/../libLLVMAArch64CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AARCH64_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AArch64
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64/AsmParser
+
+SRCS+= AArch64AsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAArch64CodeGen/Makefile b/external/apache2/llvm/lib/libLLVMAArch64CodeGen/Makefile
new file mode 100644
index 00000000000..6c1665667e2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAArch64CodeGen/Makefile
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+LIB= LLVMAArch64CodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/AArch64
+
+SRCS+= AArch64A53Fix835769.cpp \
+ AArch64A57FPLoadBalancing.cpp \
+ AArch64AdvSIMDScalarPass.cpp \
+ AArch64AsmPrinter.cpp \
+ AArch64BranchTargets.cpp \
+ AArch64CallingConvention.cpp \
+ AArch64CallLowering.cpp \
+ AArch64CleanupLocalDynamicTLSPass.cpp \
+ AArch64CollectLOH.cpp \
+ AArch64CompressJumpTables.cpp \
+ AArch64CondBrTuning.cpp \
+ AArch64ConditionalCompares.cpp \
+ AArch64ConditionOptimizer.cpp \
+ AArch64DeadRegisterDefinitionsPass.cpp \
+ AArch64ExpandImm.cpp \
+ AArch64ExpandPseudoInsts.cpp \
+ AArch64FalkorHWPFFix.cpp \
+ AArch64FastISel.cpp \
+ AArch64FrameLowering.cpp \
+ AArch64InstrInfo.cpp \
+ AArch64InstructionSelector.cpp \
+ AArch64ISelDAGToDAG.cpp \
+ AArch64ISelLowering.cpp \
+ AArch64LegalizerInfo.cpp \
+ AArch64LoadStoreOptimizer.cpp \
+ AArch64MacroFusion.cpp \
+ AArch64MCInstLower.cpp \
+ AArch64PBQPRegAlloc.cpp \
+ AArch64PreLegalizerCombiner.cpp \
+ AArch64PromoteConstant.cpp \
+ AArch64RedundantCopyElimination.cpp \
+ AArch64RegisterBankInfo.cpp \
+ AArch64RegisterInfo.cpp \
+ AArch64SelectionDAGInfo.cpp \
+ AArch64SIMDInstrOpt.cpp \
+ AArch64SpeculationHardening.cpp \
+ AArch64StackTaggingPreRA.cpp \
+ AArch64StackTagging.cpp \
+ AArch64StorePairSuppress.cpp \
+ AArch64Subtarget.cpp \
+ AArch64TargetMachine.cpp \
+ AArch64TargetObjectFile.cpp \
+ AArch64TargetTransformInfo.cpp
+
+TABLEGEN_SRC= AArch64.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/AArch64
+TABLEGEN_OUTPUT= \
+ AArch64GenAsmMatcher.inc|-gen-asm-matcher \
+ AArch64GenAsmWriter1.inc|-gen-asm-writer^-asmwriternum=1 \
+ AArch64GenAsmWriter.inc|-gen-asm-writer \
+ AArch64GenCallingConv.inc|-gen-callingconv \
+ AArch64GenDAGISel.inc|-gen-dag-isel \
+ AArch64GenDisassemblerTables.inc|-gen-disassembler \
+ AArch64GenFastISel.inc|-gen-fast-isel \
+ AArch64GenGICombiner.inc|-gen-global-isel-combiner^-combiners=AArch64PreLegalizerCombinerHelper \
+ AArch64GenGlobalISel.inc|-gen-global-isel \
+ AArch64GenInstrInfo.inc|-gen-instr-info \
+ AArch64GenMCCodeEmitter.inc|-gen-emitter \
+ AArch64GenMCPseudoLowering.inc|-gen-pseudo-lowering \
+ AArch64GenRegisterBank.inc|-gen-register-bank \
+ AArch64GenRegisterInfo.inc|-gen-register-info \
+ AArch64GenSubtargetInfo.inc|-gen-subtarget \
+ AArch64GenSystemOperands.inc|-gen-searchable-tables \
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAArch64Disassembler/Makefile b/external/apache2/llvm/lib/libLLVMAArch64Disassembler/Makefile
new file mode 100644
index 00000000000..ba50345fb93
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAArch64Disassembler/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:02 joerg Exp $
+
+LIB= LLVMAArch64Disassembler
+
+.include <bsd.init.mk>
+
+AARCH64_OBJDIR!= cd ${.CURDIR}/../libLLVMAArch64CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AARCH64_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AArch64
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64/Disassembler
+
+SRCS+= AArch64Disassembler.cpp \
+ AArch64ExternalSymbolizer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile
new file mode 100644
index 00000000000..f88910e416d
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAArch64MCTargetDesc
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64/MCTargetDesc
+
+AARCH64_OBJDIR!= cd ${.CURDIR}/../libLLVMAArch64CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AARCH64_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AArch64
+
+SRCS+= AArch64AsmBackend.cpp \
+ AArch64ELFObjectWriter.cpp \
+ AArch64ELFStreamer.cpp \
+ AArch64InstPrinter.cpp \
+ AArch64MCAsmInfo.cpp \
+ AArch64MCCodeEmitter.cpp \
+ AArch64MCExpr.cpp \
+ AArch64MCTargetDesc.cpp \
+ AArch64MachObjectWriter.cpp \
+ AArch64TargetStreamer.cpp \
+ AArch64WinCOFFObjectWriter.cpp \
+ AArch64WinCOFFStreamer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAArch64TargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMAArch64TargetInfo/Makefile
new file mode 100644
index 00000000000..6c92a719b0e
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAArch64TargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAArch64TargetInfo
+
+.include <bsd.init.mk>
+
+AARCH64_OBJDIR!= cd ${.CURDIR}/../libLLVMAArch64CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AARCH64_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AArch64
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64/TargetInfo
+
+SRCS+= AArch64TargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAArch64Utils/Makefile b/external/apache2/llvm/lib/libLLVMAArch64Utils/Makefile
new file mode 100644
index 00000000000..6ecf13e53b9
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAArch64Utils/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAArch64Utils
+
+.include <bsd.init.mk>
+
+AARCH64_OBJDIR!= cd ${.CURDIR}/../libLLVMAArch64CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AARCH64_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AArch64
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64/Utils
+
+SRCS+= AArch64BaseInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAMDGPUAsmParser/Makefile b/external/apache2/llvm/lib/libLLVMAMDGPUAsmParser/Makefile
new file mode 100644
index 00000000000..2472cf9fe2e
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAMDGPUAsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAMDGPUAsmParser
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/AsmParser
+
+SRCS+= AMDGPUAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAMDGPUCodeGen/Makefile b/external/apache2/llvm/lib/libLLVMAMDGPUCodeGen/Makefile
new file mode 100644
index 00000000000..1bcaf4d05ba
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAMDGPUCodeGen/Makefile
@@ -0,0 +1,142 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAMDGPUCodeGen
+
+.include <bsd.init.mk>
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+SRCS+= AMDGPUAliasAnalysis.cpp \
+ AMDGPUAlwaysInlinePass.cpp \
+ AMDGPUAnnotateKernelFeatures.cpp \
+ AMDGPUAnnotateUniformValues.cpp \
+ AMDGPUArgumentUsageInfo.cpp \
+ AMDGPUAsmPrinter.cpp \
+ AMDGPUAtomicOptimizer.cpp \
+ AMDGPUCallLowering.cpp \
+ AMDGPUCodeGenPrepare.cpp \
+ AMDGPUFixFunctionBitcasts.cpp \
+ AMDGPUFrameLowering.cpp \
+ AMDGPUHSAMetadataStreamer.cpp \
+ AMDGPUInline.cpp \
+ AMDGPUInstrInfo.cpp \
+ AMDGPUInstructionSelector.cpp \
+ AMDGPUISelDAGToDAG.cpp \
+ AMDGPUISelLowering.cpp \
+ AMDGPULegalizerInfo.cpp \
+ AMDGPULibCalls.cpp \
+ AMDGPULibFunc.cpp \
+ AMDGPULowerIntrinsics.cpp \
+ AMDGPULowerKernelArguments.cpp \
+ AMDGPULowerKernelAttributes.cpp \
+ AMDGPUMachineCFGStructurizer.cpp \
+ AMDGPUMachineFunction.cpp \
+ AMDGPUMachineModuleInfo.cpp \
+ AMDGPUMacroFusion.cpp \
+ AMDGPUMCInstLower.cpp \
+ AMDGPUOpenCLEnqueuedBlockLowering.cpp \
+ AMDGPUPerfHintAnalysis.cpp \
+ AMDGPUPrintfRuntimeBinding.cpp \
+ AMDGPUPromoteAlloca.cpp \
+ AMDGPUPropagateAttributes.cpp \
+ AMDGPURegisterBankInfo.cpp \
+ AMDGPURegisterInfo.cpp \
+ AMDGPURewriteOutArguments.cpp \
+ AMDGPUSubtarget.cpp \
+ AMDGPUTargetMachine.cpp \
+ AMDGPUTargetObjectFile.cpp \
+ AMDGPUTargetTransformInfo.cpp \
+ AMDGPUUnifyDivergentExitNodes.cpp \
+ AMDGPUUnifyMetadata.cpp \
+ AMDILCFGStructurizer.cpp \
+ GCNDPPCombine.cpp \
+ GCNHazardRecognizer.cpp \
+ GCNILPSched.cpp \
+ GCNIterativeScheduler.cpp \
+ GCNMinRegStrategy.cpp \
+ GCNNSAReassign.cpp \
+ GCNRegBankReassign.cpp \
+ GCNRegPressure.cpp \
+ GCNSchedStrategy.cpp \
+ R600AsmPrinter.cpp \
+ R600ClauseMergePass.cpp \
+ R600ControlFlowFinalizer.cpp \
+ R600EmitClauseMarkers.cpp \
+ R600ExpandSpecialInstrs.cpp \
+ R600FrameLowering.cpp \
+ R600InstrInfo.cpp \
+ R600ISelLowering.cpp \
+ R600MachineFunctionInfo.cpp \
+ R600MachineScheduler.cpp \
+ R600OpenCLImageTypeLoweringPass.cpp \
+ R600OptimizeVectorRegisters.cpp \
+ R600Packetizer.cpp \
+ R600RegisterInfo.cpp \
+ SIAddIMGInit.cpp \
+ SIAnnotateControlFlow.cpp \
+ SIFixSGPRCopies.cpp \
+ SIFixupVectorISel.cpp \
+ SIFixVGPRCopies.cpp \
+ SIFoldOperands.cpp \
+ SIFormMemoryClauses.cpp \
+ SIFrameLowering.cpp \
+ SIInsertSkips.cpp \
+ SIInsertWaitcnts.cpp \
+ SIInstrInfo.cpp \
+ SIISelLowering.cpp \
+ SILoadStoreOptimizer.cpp \
+ SILowerControlFlow.cpp \
+ SILowerI1Copies.cpp \
+ SILowerSGPRSpills.cpp \
+ SIMachineFunctionInfo.cpp \
+ SIMachineScheduler.cpp \
+ SIMemoryLegalizer.cpp \
+ SIModeRegister.cpp \
+ SIOptimizeExecMasking.cpp \
+ SIOptimizeExecMaskingPreRA.cpp \
+ SIPeepholeSDWA.cpp \
+ SIPreAllocateWWMRegs.cpp \
+ SIRegisterInfo.cpp \
+ SIShrinkInstructions.cpp \
+ SIWholeQuadMode.cpp
+
+TABLEGEN_SRC= AMDGPU.td AMDGPUGISel.td R600.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+TABLEGEN_OUTPUT.AMDGPU.td= \
+ AMDGPUGenAsmMatcher.inc|-gen-asm-matcher \
+ AMDGPUGenAsmWriter.inc|-gen-asm-writer \
+ AMDGPUGenCallingConv.inc|-gen-callingconv \
+ AMDGPUGenDAGISel.inc|-gen-dag-isel \
+ AMDGPUGenDisassemblerTables.inc|-gen-disassembler \
+ AMDGPUGenInstrInfo.inc|-gen-instr-info \
+ AMDGPUGenIntrinsicEnums.inc|-gen-tgt-intrinsic-enums \
+ AMDGPUGenIntrinsicImpl.inc|-gen-tgt-intrinsic-impl \
+ AMDGPUGenMCCodeEmitter.inc|-gen-emitter \
+ AMDGPUGenMCPseudoLowering.inc|-gen-pseudo-lowering \
+ AMDGPUGenRegisterBank.inc|-gen-register-bank \
+ AMDGPUGenRegisterInfo.inc|-gen-register-info \
+ AMDGPUGenSearchableTables.inc|-gen-searchable-tables \
+ AMDGPUGenSubtargetInfo.inc|-gen-subtarget
+
+TABLEGEN_OUTPUT.AMDGPUGISel.td= \
+ AMDGPUGenGlobalISel.inc|-gen-global-isel
+
+TABLEGEN_OUTPUT.R600.td= \
+ R600GenAsmWriter.inc|-gen-asm-writer \
+ R600GenCallingConv.inc|-gen-callingconv \
+ R600GenDAGISel.inc|-gen-dag-isel \
+ R600GenDFAPacketizer.inc|-gen-dfa-packetizer \
+ R600GenInstrInfo.inc|-gen-instr-info \
+ R600GenMCCodeEmitter.inc|-gen-emitter \
+ R600GenRegisterInfo.inc|-gen-register-info \
+ R600GenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAMDGPUDisassembler/Makefile b/external/apache2/llvm/lib/libLLVMAMDGPUDisassembler/Makefile
new file mode 100644
index 00000000000..873e391d7ca
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAMDGPUDisassembler/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAMDGPUDisassembler
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/Disassembler
+
+SRCS+= AMDGPUDisassembler.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile
new file mode 100644
index 00000000000..526e2aca186
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAMDGPUMCTargetDesc
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/MCTargetDesc
+
+SRCS+= AMDGPUAsmBackend.cpp \
+ AMDGPUELFObjectWriter.cpp \
+ AMDGPUELFStreamer.cpp \
+ AMDGPUInstPrinter.cpp \
+ AMDGPUMCAsmInfo.cpp \
+ AMDGPUMCCodeEmitter.cpp \
+ AMDGPUMCTargetDesc.cpp \
+ AMDGPUTargetStreamer.cpp \
+ R600MCCodeEmitter.cpp \
+ R600MCTargetDesc.cpp \
+ SIMCCodeEmitter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile
new file mode 100644
index 00000000000..b083d043577
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAMDGPUTargetInfo
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/TargetInfo
+
+SRCS+= AMDGPUTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAMDGPUUtils/Makefile b/external/apache2/llvm/lib/libLLVMAMDGPUUtils/Makefile
new file mode 100644
index 00000000000..a250fd41ba2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAMDGPUUtils/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:03 joerg Exp $
+
+LIB= LLVMAMDGPUUtils
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/Utils
+
+SRCS+= AMDGPUAsmUtils.cpp \
+ AMDGPUBaseInfo.cpp \
+ AMDGPUPALMetadata.cpp \
+ AMDKernelCodeTUtils.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMARMAsmParser/Makefile b/external/apache2/llvm/lib/libLLVMARMAsmParser/Makefile
new file mode 100644
index 00000000000..3d9e1fba48a
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMARMAsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMARMAsmParser
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/AsmParser
+
+SRCS+= ARMAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMARMCodeGen/Makefile b/external/apache2/llvm/lib/libLLVMARMCodeGen/Makefile
new file mode 100644
index 00000000000..884563cbf24
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMARMCodeGen/Makefile
@@ -0,0 +1,80 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMARMCodeGen
+
+.include <bsd.init.mk>
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM
+
+SRCS+= A15SDOptimizer.cpp \
+ ARMAsmPrinter.cpp \
+ ARMBasicBlockInfo.cpp \
+ ARMBaseInstrInfo.cpp \
+ ARMBaseRegisterInfo.cpp \
+ ARMCallingConv.cpp \
+ ARMCallLowering.cpp \
+ ARMCodeGenPrepare.cpp \
+ ARMConstantIslandPass.cpp \
+ ARMConstantPoolValue.cpp \
+ ARMExpandPseudoInsts.cpp \
+ ARMFastISel.cpp \
+ ARMFrameLowering.cpp \
+ ARMHazardRecognizer.cpp \
+ ARMInstrInfo.cpp \
+ ARMInstructionSelector.cpp \
+ ARMISelDAGToDAG.cpp \
+ ARMISelLowering.cpp \
+ ARMLegalizerInfo.cpp \
+ ARMLoadStoreOptimizer.cpp \
+ ARMLowOverheadLoops.cpp \
+ ARMMachineFunctionInfo.cpp \
+ ARMMacroFusion.cpp \
+ ARMMCInstLower.cpp \
+ ARMOptimizeBarriersPass.cpp \
+ ARMParallelDSP.cpp \
+ ARMRegisterBankInfo.cpp \
+ ARMRegisterInfo.cpp \
+ ARMSelectionDAGInfo.cpp \
+ ARMSubtarget.cpp \
+ ARMTargetMachine.cpp \
+ ARMTargetObjectFile.cpp \
+ ARMTargetTransformInfo.cpp \
+ MLxExpansionPass.cpp \
+ MVETailPredication.cpp \
+ MVEVPTBlockPass.cpp \
+ Thumb1FrameLowering.cpp \
+ Thumb1InstrInfo.cpp \
+ Thumb2InstrInfo.cpp \
+ Thumb2ITBlockPass.cpp \
+ Thumb2SizeReduction.cpp \
+ ThumbRegisterInfo.cpp
+
+TABLEGEN_SRC= ARM.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/ARM
+TABLEGEN_OUTPUT= \
+ ARMGenAsmMatcher.inc|-gen-asm-matcher \
+ ARMGenAsmWriter.inc|-gen-asm-writer \
+ ARMGenCallingConv.inc|-gen-callingconv \
+ ARMGenCodeEmitter.inc|-gen-emitter \
+ ARMGenDAGISel.inc|-gen-dag-isel \
+ ARMGenDisassemblerTables.inc|-gen-disassembler \
+ ARMGenFastISel.inc|-gen-fast-isel \
+ ARMGenGlobalISel.inc|-gen-global-isel \
+ ARMGenInstrInfo.inc|-gen-instr-info \
+ ARMGenMCCodeEmitter.inc|-gen-emitter \
+ ARMGenMCPseudoLowering.inc|-gen-pseudo-lowering \
+ ARMGenRegisterBank.inc|-gen-register-bank \
+ ARMGenRegisterInfo.inc|-gen-register-info \
+ ARMGenSubtargetInfo.inc|-gen-subtarget \
+ ARMGenSystemRegister.inc|-gen-searchable-tables
+
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMARMDisassembler/Makefile b/external/apache2/llvm/lib/libLLVMARMDisassembler/Makefile
new file mode 100644
index 00000000000..c24599368c5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMARMDisassembler/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMARMDisassembler
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/Disassembler
+
+SRCS+= ARMDisassembler.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMARMMCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMARMMCTargetDesc/Makefile
new file mode 100644
index 00000000000..bf5341443d2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMARMMCTargetDesc/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMARMMCTargetDesc
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/MCTargetDesc
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+SRCS+= ARMAsmBackend.cpp \
+ ARMELFObjectWriter.cpp \
+ ARMELFStreamer.cpp \
+ ARMInstPrinter.cpp \
+ ARMMCAsmInfo.cpp \
+ ARMMCCodeEmitter.cpp \
+ ARMMCExpr.cpp \
+ ARMMCTargetDesc.cpp \
+ ARMTargetStreamer.cpp \
+ ARMMachORelocationInfo.cpp \
+ ARMMachObjectWriter.cpp \
+ ARMUnwindOpAsm.cpp \
+ ARMWinCOFFObjectWriter.cpp \
+ ARMWinCOFFStreamer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMARMTargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMARMTargetInfo/Makefile
new file mode 100644
index 00000000000..b8ab203bbba
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMARMTargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMARMTargetInfo
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/TargetInfo
+
+SRCS+= ARMTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMARMUtils/Makefile b/external/apache2/llvm/lib/libLLVMARMUtils/Makefile
new file mode 100644
index 00000000000..d3c1f1cb4a0
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMARMUtils/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMARMUtils
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/Utils
+
+SRCS+= ARMBaseInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAnalysis/Makefile b/external/apache2/llvm/lib/libLLVMAnalysis/Makefile
new file mode 100644
index 00000000000..68c96a03533
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAnalysis/Makefile
@@ -0,0 +1,113 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMAnalysis
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Analysis
+
+SRCS+= AliasAnalysis.cpp \
+ AliasAnalysisEvaluator.cpp \
+ AliasAnalysisSummary.cpp \
+ AliasSetTracker.cpp \
+ Analysis.cpp \
+ AssumptionCache.cpp \
+ BasicAliasAnalysis.cpp \
+ BlockFrequencyInfo.cpp \
+ BlockFrequencyInfoImpl.cpp \
+ BranchProbabilityInfo.cpp \
+ CallGraph.cpp \
+ CallGraphSCCPass.cpp \
+ CallPrinter.cpp \
+ CaptureTracking.cpp \
+ CFG.cpp \
+ CFGPrinter.cpp \
+ CFLAndersAliasAnalysis.cpp \
+ CFLSteensAliasAnalysis.cpp \
+ CGSCCPassManager.cpp \
+ CmpInstAnalysis.cpp \
+ CodeMetrics.cpp \
+ ConstantFolding.cpp \
+ CostModel.cpp \
+ DDG.cpp \
+ Delinearization.cpp \
+ DemandedBits.cpp \
+ DependenceAnalysis.cpp \
+ DependenceGraphBuilder.cpp \
+ DivergenceAnalysis.cpp \
+ DominanceFrontier.cpp \
+ DomPrinter.cpp \
+ DomTreeUpdater.cpp \
+ EHPersonalities.cpp \
+ GlobalsModRef.cpp \
+ GuardUtils.cpp \
+ IndirectCallPromotionAnalysis.cpp \
+ InlineCost.cpp \
+ InstCount.cpp \
+ InstructionPrecedenceTracking.cpp \
+ InstructionSimplify.cpp \
+ Interval.cpp \
+ IntervalPartition.cpp \
+ IVDescriptors.cpp \
+ IVUsers.cpp \
+ LazyBlockFrequencyInfo.cpp \
+ LazyBranchProbabilityInfo.cpp \
+ LazyCallGraph.cpp \
+ LazyValueInfo.cpp \
+ LegacyDivergenceAnalysis.cpp \
+ Lint.cpp \
+ Loads.cpp \
+ LoopAccessAnalysis.cpp \
+ LoopAnalysisManager.cpp \
+ LoopCacheAnalysis.cpp \
+ LoopInfo.cpp \
+ LoopPass.cpp \
+ LoopUnrollAnalyzer.cpp \
+ MemDepPrinter.cpp \
+ MemDerefPrinter.cpp \
+ MemoryBuiltins.cpp \
+ MemoryDependenceAnalysis.cpp \
+ MemoryLocation.cpp \
+ MemorySSA.cpp \
+ MemorySSAUpdater.cpp \
+ ModuleDebugInfoPrinter.cpp \
+ ModuleSummaryAnalysis.cpp \
+ MustExecute.cpp \
+ ObjCARCAliasAnalysis.cpp \
+ ObjCARCAnalysisUtils.cpp \
+ ObjCARCInstKind.cpp \
+ OptimizationRemarkEmitter.cpp \
+ OrderedBasicBlock.cpp \
+ OrderedInstructions.cpp \
+ PHITransAddr.cpp \
+ PhiValues.cpp \
+ PostDominators.cpp \
+ ProfileSummaryInfo.cpp \
+ PtrUseVisitor.cpp \
+ RegionInfo.cpp \
+ RegionPass.cpp \
+ RegionPrinter.cpp \
+ ScalarEvolutionAliasAnalysis.cpp \
+ ScalarEvolution.cpp \
+ ScalarEvolutionExpander.cpp \
+ ScalarEvolutionNormalization.cpp \
+ ScopedNoAliasAA.cpp \
+ StackSafetyAnalysis.cpp \
+ SyncDependenceAnalysis.cpp \
+ SyntheticCountsUtils.cpp \
+ TargetLibraryInfo.cpp \
+ TargetTransformInfo.cpp \
+ Trace.cpp \
+ TypeBasedAliasAnalysis.cpp \
+ TypeMetadataUtils.cpp \
+ VFABIDemangling.cpp \
+ ValueLattice.cpp \
+ ValueLatticeUtils.cpp \
+ ValueTracking.cpp \
+ VectorUtils.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMArchive/Makefile b/external/apache2/llvm/lib/libLLVMArchive/Makefile
new file mode 100644
index 00000000000..aa553d3a522
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMArchive/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMArchive
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Archive
+
+SRCS+= Archive.cpp \
+ ArchiveReader.cpp \
+ ArchiveWriter.cpp
+
+.include <bsd.lib.mk>
diff --git a/external/apache2/llvm/lib/libLLVMAsmParser/Makefile b/external/apache2/llvm/lib/libLLVMAsmParser/Makefile
new file mode 100644
index 00000000000..2077d14f6ff
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAsmParser/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:04 joerg Exp $
+
+LIB= LLVMAsmParser
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/AsmParser
+
+SRCS+= LLLexer.cpp \
+ LLParser.cpp \
+ Parser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMAsmPrinter/Makefile b/external/apache2/llvm/lib/libLLVMAsmPrinter/Makefile
new file mode 100644
index 00000000000..c1fa22e9c2e
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMAsmPrinter/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMAsmPrinter
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/CodeGen/AsmPrinter
+
+SRCS+= AccelTable.cpp \
+ AddressPool.cpp \
+ ARMException.cpp \
+ AsmPrinter.cpp \
+ AsmPrinterDwarf.cpp \
+ AsmPrinterInlineAsm.cpp \
+ CodeViewDebug.cpp \
+ DbgEntityHistoryCalculator.cpp \
+ DebugHandlerBase.cpp \
+ DebugLocStream.cpp \
+ DIE.cpp \
+ DIEHash.cpp \
+ DwarfCFIException.cpp \
+ DwarfCompileUnit.cpp \
+ DwarfDebug.cpp \
+ DwarfExpression.cpp \
+ DwarfFile.cpp \
+ DwarfStringPool.cpp \
+ DwarfUnit.cpp \
+ EHStreamer.cpp \
+ ErlangGCPrinter.cpp \
+ OcamlGCPrinter.cpp \
+ WasmException.cpp \
+ WinCFGuard.cpp \
+ WinException.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMBinaryFormat/Makefile b/external/apache2/llvm/lib/libLLVMBinaryFormat/Makefile
new file mode 100644
index 00000000000..7f352359151
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMBinaryFormat/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMBinaryFormat
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/BinaryFormat
+
+SRCS+= AMDGPUMetadataVerifier.cpp \
+ Dwarf.cpp \
+ Magic.cpp \
+ Minidump.cpp \
+ MsgPackDocument.cpp \
+ MsgPackDocumentYAML.cpp \
+ MsgPackReader.cpp \
+ MsgPackWriter.cpp \
+ Wasm.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMBitReader/Makefile b/external/apache2/llvm/lib/libLLVMBitReader/Makefile
new file mode 100644
index 00000000000..4b616915e92
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMBitReader/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMBitReader
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Bitcode/Reader
+
+SRCS+= BitcodeAnalyzer.cpp \
+ BitReader.cpp \
+ BitcodeReader.cpp \
+ MetadataLoader.cpp \
+ ValueList.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMBitWriter/Makefile b/external/apache2/llvm/lib/libLLVMBitWriter/Makefile
new file mode 100644
index 00000000000..4b7166ee927
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMBitWriter/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMBitWriter
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Bitcode/Writer
+
+SRCS+= BitWriter.cpp \
+ BitcodeWriter.cpp \
+ BitcodeWriterPass.cpp \
+ ValueEnumerator.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMBitstreamReader/Makefile b/external/apache2/llvm/lib/libLLVMBitstreamReader/Makefile
new file mode 100644
index 00000000000..d1fb08d1af5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMBitstreamReader/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMBitstreamReader
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Bitstream/Reader
+
+SRCS+= BitstreamReader.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMCodeGen/Makefile b/external/apache2/llvm/lib/libLLVMCodeGen/Makefile
new file mode 100644
index 00000000000..df6397a85ac
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMCodeGen/Makefile
@@ -0,0 +1,186 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/CodeGen
+
+
+SRCS+= AggressiveAntiDepBreaker.cpp \
+ AllocationOrder.cpp \
+ Analysis.cpp \
+ AtomicExpandPass.cpp \
+ BasicTargetTransformInfo.cpp \
+ BranchFolding.cpp \
+ BranchRelaxation.cpp \
+ BreakFalseDeps.cpp \
+ BuiltinGCs.cpp \
+ CalcSpillWeights.cpp \
+ CallingConvLower.cpp \
+ CFGuardLongjmp.cpp \
+ CFIInstrInserter.cpp \
+ CodeGen.cpp \
+ CodeGenPrepare.cpp \
+ CriticalAntiDepBreaker.cpp \
+ DeadMachineInstructionElim.cpp \
+ DetectDeadLanes.cpp \
+ DFAPacketizer.cpp \
+ DwarfEHPrepare.cpp \
+ EarlyIfConversion.cpp \
+ EdgeBundles.cpp \
+ ExecutionDomainFix.cpp \
+ ExpandMemCmp.cpp \
+ ExpandPostRAPseudos.cpp \
+ ExpandReductions.cpp \
+ FaultMaps.cpp \
+ FEntryInserter.cpp \
+ FinalizeISel.cpp \
+ FuncletLayout.cpp \
+ GCMetadata.cpp \
+ GCMetadataPrinter.cpp \
+ GCRootLowering.cpp \
+ GCStrategy.cpp \
+ GlobalMerge.cpp \
+ HardwareLoops.cpp \
+ IfConversion.cpp \
+ ImplicitNullChecks.cpp \
+ IndirectBrExpandPass.cpp \
+ InlineSpiller.cpp \
+ InterferenceCache.cpp \
+ InterleavedAccessPass.cpp \
+ InterleavedLoadCombinePass.cpp \
+ IntrinsicLowering.cpp \
+ LatencyPriorityQueue.cpp \
+ LazyMachineBlockFrequencyInfo.cpp \
+ LexicalScopes.cpp \
+ LiveDebugValues.cpp \
+ LiveDebugVariables.cpp \
+ LiveInterval.cpp \
+ LiveIntervals.cpp \
+ LiveIntervalUnion.cpp \
+ LivePhysRegs.cpp \
+ LiveRangeCalc.cpp \
+ LiveRangeEdit.cpp \
+ LiveRangeShrink.cpp \
+ LiveRegMatrix.cpp \
+ LiveRegUnits.cpp \
+ LiveStacks.cpp \
+ LiveVariables.cpp \
+ LLVMTargetMachine.cpp \
+ LocalStackSlotAllocation.cpp \
+ LoopTraversal.cpp \
+ LowerEmuTLS.cpp \
+ LowLevelType.cpp \
+ MachineBasicBlock.cpp \
+ MachineBlockFrequencyInfo.cpp \
+ MachineBlockPlacement.cpp \
+ MachineBranchProbabilityInfo.cpp \
+ MachineCombiner.cpp \
+ MachineCopyPropagation.cpp \
+ MachineCSE.cpp \
+ MachineDominanceFrontier.cpp \
+ MachineDominators.cpp \
+ MachineFrameInfo.cpp \
+ MachineFunction.cpp \
+ MachineFunctionPass.cpp \
+ MachineFunctionPrinterPass.cpp \
+ MachineInstrBundle.cpp \
+ MachineInstr.cpp \
+ MachineLICM.cpp \
+ MachineLoopInfo.cpp \
+ MachineLoopUtils.cpp \
+ MachineModuleInfo.cpp \
+ MachineModuleInfoImpls.cpp \
+ MachineOperand.cpp \
+ MachineOptimizationRemarkEmitter.cpp \
+ MachineOutliner.cpp \
+ MachinePipeliner.cpp \
+ MachinePostDominators.cpp \
+ MachineRegionInfo.cpp \
+ MachineRegisterInfo.cpp \
+ MachineScheduler.cpp \
+ MachineSink.cpp \
+ MachineSizeOpts.cpp \
+ MachineSSAUpdater.cpp \
+ MachineTraceMetrics.cpp \
+ MachineVerifier.cpp \
+ MacroFusion.cpp \
+ MIRCanonicalizerPass.cpp \
+ MIRNamerPass.cpp \
+ MIRPrinter.cpp \
+ MIRPrintingPass.cpp \
+ MIRVRegNamerUtils.cpp \
+ ModuloSchedule.cpp \
+ OptimizePHIs.cpp \
+ ParallelCG.cpp \
+ PatchableFunction.cpp \
+ PeepholeOptimizer.cpp \
+ PHIElimination.cpp \
+ PHIEliminationUtils.cpp \
+ PostRAHazardRecognizer.cpp \
+ PostRASchedulerList.cpp \
+ PreISelIntrinsicLowering.cpp \
+ ProcessImplicitDefs.cpp \
+ PrologEpilogInserter.cpp \
+ PseudoSourceValue.cpp \
+ ReachingDefAnalysis.cpp \
+ RegAllocBase.cpp \
+ RegAllocBasic.cpp \
+ RegAllocFast.cpp \
+ RegAllocGreedy.cpp \
+ RegAllocPBQP.cpp \
+ RegisterClassInfo.cpp \
+ RegisterCoalescer.cpp \
+ RegisterPressure.cpp \
+ RegisterScavenging.cpp \
+ RegisterUsageInfo.cpp \
+ RegUsageInfoCollector.cpp \
+ RegUsageInfoPropagate.cpp \
+ RenameIndependentSubregs.cpp \
+ ResetMachineFunctionPass.cpp \
+ SafeStackColoring.cpp \
+ SafeStack.cpp \
+ SafeStackLayout.cpp \
+ ScalarizeMaskedMemIntrin.cpp \
+ ScheduleDAG.cpp \
+ ScheduleDAGInstrs.cpp \
+ ScheduleDAGPrinter.cpp \
+ ScoreboardHazardRecognizer.cpp \
+ ShadowStackGCLowering.cpp \
+ ShrinkWrap.cpp \
+ SjLjEHPrepare.cpp \
+ SlotIndexes.cpp \
+ SpillPlacement.cpp \
+ SplitKit.cpp \
+ StackColoring.cpp \
+ StackMapLivenessAnalysis.cpp \
+ StackMaps.cpp \
+ StackProtector.cpp \
+ StackSlotColoring.cpp \
+ SwiftErrorValueTracking.cpp \
+ SwitchLoweringUtils.cpp \
+ TailDuplication.cpp \
+ TailDuplicator.cpp \
+ TargetFrameLoweringImpl.cpp \
+ TargetInstrInfo.cpp \
+ TargetLoweringBase.cpp \
+ TargetLoweringObjectFileImpl.cpp \
+ TargetOptionsImpl.cpp \
+ TargetPassConfig.cpp \
+ TargetRegisterInfo.cpp \
+ TargetSchedule.cpp \
+ TargetSubtargetInfo.cpp \
+ TwoAddressInstructionPass.cpp \
+ UnreachableBlockElim.cpp \
+ ValueTypes.cpp \
+ VirtRegMap.cpp \
+ WasmEHPrepare.cpp \
+ WinEHPrepare.cpp \
+ XRayInstrumentation.cpp \
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoCodeView/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoCodeView/Makefile
new file mode 100644
index 00000000000..71a3546a813
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoCodeView/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMDebugInfoCodeView
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/CodeView
+
+SRCS+= AppendingTypeTableBuilder.cpp \
+ CodeViewError.cpp \
+ CodeViewRecordIO.cpp \
+ ContinuationRecordBuilder.cpp \
+ CVSymbolVisitor.cpp \
+ CVTypeVisitor.cpp \
+ DebugChecksumsSubsection.cpp \
+ DebugCrossExSubsection.cpp \
+ DebugCrossImpSubsection.cpp \
+ DebugFrameDataSubsection.cpp \
+ DebugInlineeLinesSubsection.cpp \
+ DebugLinesSubsection.cpp \
+ DebugStringTableSubsection.cpp \
+ DebugSubsection.cpp \
+ DebugSubsectionRecord.cpp \
+ DebugSubsectionVisitor.cpp \
+ DebugSymbolsSubsection.cpp \
+ EnumTables.cpp \
+ Formatters.cpp \
+ GlobalTypeTableBuilder.cpp \
+ LazyRandomTypeCollection.cpp \
+ Line.cpp \
+ MergingTypeTableBuilder.cpp \
+ RecordName.cpp \
+ RecordSerialization.cpp \
+ SimpleTypeSerializer.cpp \
+ StringsAndChecksums.cpp \
+ SymbolDumper.cpp \
+ SymbolRecordHelpers.cpp \
+ SymbolRecordMapping.cpp \
+ SymbolSerializer.cpp \
+ TypeDumpVisitor.cpp \
+ TypeHashing.cpp \
+ TypeIndex.cpp \
+ TypeIndexDiscovery.cpp \
+ TypeRecordHelpers.cpp \
+ TypeRecordMapping.cpp \
+ TypeStreamMerger.cpp \
+ TypeTableCollection.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoDWARF/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoDWARF/Makefile
new file mode 100644
index 00000000000..5aac540e637
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoDWARF/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMDebugInfoDWARF
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/DWARF
+
+SRCS+= DWARFAbbreviationDeclaration.cpp \
+ DWARFAcceleratorTable.cpp \
+ DWARFAddressRange.cpp \
+ DWARFCompileUnit.cpp \
+ DWARFContext.cpp \
+ DWARFDataExtractor.cpp \
+ DWARFDebugAbbrev.cpp \
+ DWARFDebugAddr.cpp \
+ DWARFDebugAranges.cpp \
+ DWARFDebugArangeSet.cpp \
+ DWARFDebugFrame.cpp \
+ DWARFDebugInfoEntry.cpp \
+ DWARFDebugLine.cpp \
+ DWARFDebugLoc.cpp \
+ DWARFDebugMacro.cpp \
+ DWARFDebugPubTable.cpp \
+ DWARFDebugRangeList.cpp \
+ DWARFDebugRnglists.cpp \
+ DWARFDie.cpp \
+ DWARFExpression.cpp \
+ DWARFFormValue.cpp \
+ DWARFGdbIndex.cpp \
+ DWARFListTable.cpp \
+ DWARFTypeUnit.cpp \
+ DWARFUnit.cpp \
+ DWARFUnitIndex.cpp \
+ DWARFVerifier.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoGSYM/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoGSYM/Makefile
new file mode 100644
index 00000000000..5f4012cea5e
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoGSYM/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:05 joerg Exp $
+
+LIB= LLVMDebugInfoGSYM
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/GSYM
+
+SRCS+= FileWriter.cpp \
+ FunctionInfo.cpp \
+ GsymCreator.cpp \
+ GsymReader.cpp \
+ Header.cpp \
+ InlineInfo.cpp \
+ LineTable.cpp \
+ Range.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoMSF/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoMSF/Makefile
new file mode 100644
index 00000000000..35100c77770
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoMSF/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMDebugInfoMSF
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/MSF
+
+SRCS+= MappedBlockStream.cpp \
+ MSFBuilder.cpp \
+ MSFCommon.cpp \
+ MSFError.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoPDB/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoPDB/Makefile
new file mode 100644
index 00000000000..9cf2d97f060
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoPDB/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMDebugInfoPDB
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/PDB
+
+SRCS+= GenericError.cpp \
+ IPDBSourceFile.cpp \
+ PDB.cpp \
+ PDBContext.cpp \
+ PDBExtras.cpp \
+ PDBInterfaceAnchors.cpp \
+ PDBSymbol.cpp \
+ PDBSymbolAnnotation.cpp \
+ PDBSymbolBlock.cpp \
+ PDBSymbolCompiland.cpp \
+ PDBSymbolCompilandDetails.cpp \
+ PDBSymbolCompilandEnv.cpp \
+ PDBSymbolCustom.cpp \
+ PDBSymbolData.cpp \
+ PDBSymbolExe.cpp \
+ PDBSymbolFunc.cpp \
+ PDBSymbolFuncDebugEnd.cpp \
+ PDBSymbolFuncDebugStart.cpp \
+ PDBSymbolLabel.cpp \
+ PDBSymbolPublicSymbol.cpp \
+ PDBSymbolThunk.cpp \
+ PDBSymbolTypeArray.cpp \
+ PDBSymbolTypeBaseClass.cpp \
+ PDBSymbolTypeBuiltin.cpp \
+ PDBSymbolTypeCustom.cpp \
+ PDBSymbolTypeDimension.cpp \
+ PDBSymbolTypeEnum.cpp \
+ PDBSymbolTypeFriend.cpp \
+ PDBSymbolTypeFunctionArg.cpp \
+ PDBSymbolTypeFunctionSig.cpp \
+ PDBSymbolTypeManaged.cpp \
+ PDBSymbolTypePointer.cpp \
+ PDBSymbolTypeTypedef.cpp \
+ PDBSymbolTypeUDT.cpp \
+ PDBSymbolTypeVTable.cpp \
+ PDBSymbolTypeVTableShape.cpp \
+ PDBSymbolUnknown.cpp \
+ PDBSymbolUsingNamespace.cpp \
+ PDBSymDumper.cpp \
+ UDTLayout.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoPDBDIA/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoPDBDIA/Makefile
new file mode 100644
index 00000000000..c5981214545
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoPDBDIA/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMDebugInfoPDBDIA
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/PDB/DIA
+
+SRCS+= DIAEnumFrameData.cpp \
+ DIAEnumInjectedSources.cpp \
+ DIAEnumSectionContribs.cpp \
+ DIAEnumTables.cpp \
+ DIAFrameData.cpp \
+ DIAInjectedSource.cpp \
+ DIASectionContrib.cpp \
+ DIATable.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoPDBNative/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoPDBNative/Makefile
new file mode 100644
index 00000000000..4d0f98456af
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoPDBNative/Makefile
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMDebugInfoPDBNative
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/PDB/Native
+
+SRCS+= DbiModuleDescriptorBuilder.cpp \
+ DbiModuleDescriptor.cpp \
+ DbiModuleList.cpp \
+ DbiStreamBuilder.cpp \
+ DbiStream.cpp \
+ EnumTables.cpp \
+ GlobalsStream.cpp \
+ GSIStreamBuilder.cpp \
+ Hash.cpp \
+ HashTable.cpp \
+ InfoStreamBuilder.cpp \
+ InfoStream.cpp \
+ InjectedSourceStream.cpp \
+ ModuleDebugStream.cpp \
+ NamedStreamMap.cpp \
+ NativeCompilandSymbol.cpp \
+ NativeEnumGlobals.cpp \
+ NativeEnumInjectedSources.cpp \
+ NativeEnumModules.cpp \
+ NativeEnumTypes.cpp \
+ NativeExeSymbol.cpp \
+ NativeRawSymbol.cpp \
+ NativeSession.cpp \
+ NativeSymbolEnumerator.cpp \
+ NativeTypeArray.cpp \
+ NativeTypeBuiltin.cpp \
+ NativeTypeEnum.cpp \
+ NativeTypeFunctionSig.cpp \
+ NativeTypePointer.cpp \
+ NativeTypeTypedef.cpp \
+ NativeTypeUDT.cpp \
+ NativeTypeVTShape.cpp \
+ PDBFileBuilder.cpp \
+ PDBFile.cpp \
+ PDBStringTableBuilder.cpp \
+ PDBStringTable.cpp \
+ PublicsStream.cpp \
+ RawError.cpp \
+ SymbolCache.cpp \
+ SymbolStream.cpp \
+ TpiHashing.cpp \
+ TpiStreamBuilder.cpp \
+ TpiStream.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDebugInfoSymbolize/Makefile b/external/apache2/llvm/lib/libLLVMDebugInfoSymbolize/Makefile
new file mode 100644
index 00000000000..659f1b1d465
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDebugInfoSymbolize/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMDebugInfoSymbolize
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/DebugInfo/Symbolize
+
+SRCS+= DIPrinter.cpp \
+ Symbolize.cpp \
+ SymbolizableObjectFile.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMDemangle/Makefile b/external/apache2/llvm/lib/libLLVMDemangle/Makefile
new file mode 100644
index 00000000000..8f7d00ed1e4
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMDemangle/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMDemangle
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Demangle
+
+SRCS+= Demangle.cpp \
+ ItaniumDemangle.cpp \
+ MicrosoftDemangle.cpp \
+ MicrosoftDemangleNodes.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMExecutionEngine/Makefile b/external/apache2/llvm/lib/libLLVMExecutionEngine/Makefile
new file mode 100644
index 00000000000..4ba278d1bff
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMExecutionEngine/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMExecutionEngine
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine
+
+SRCS+= GDBRegistrationListener.cpp \
+ ExecutionEngine.cpp \
+ ExecutionEngineBindings.cpp \
+ SectionMemoryManager.cpp \
+ TargetSelect.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMExecutionEngineJITLink/Makefile b/external/apache2/llvm/lib/libLLVMExecutionEngineJITLink/Makefile
new file mode 100644
index 00000000000..08806d6550b
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMExecutionEngineJITLink/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMExecutionEngineJITLink
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/JITLink
+
+SRCS+= EHFrameSupport.cpp \
+ JITLink.cpp \
+ JITLinkGeneric.cpp \
+ JITLinkMemoryManager.cpp \
+ MachO_arm64.cpp \
+ MachOAtomGraphBuilder.cpp \
+ MachO.cpp \
+ MachOLinkGraphBuilder.cpp \
+ MachO_x86_64.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMGlobalISel/Makefile b/external/apache2/llvm/lib/libLLVMGlobalISel/Makefile
new file mode 100644
index 00000000000..e0475bd9498
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMGlobalISel/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:06 joerg Exp $
+
+LIB= LLVMGlobalISel
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/CodeGen/GlobalISel
+
+SRCS+= CallLowering.cpp \
+ Combiner.cpp \
+ CombinerHelper.cpp \
+ CSEInfo.cpp \
+ CSEMIRBuilder.cpp \
+ GISelChangeObserver.cpp \
+ GISelKnownBits.cpp \
+ GlobalISel.cpp \
+ InstructionSelect.cpp \
+ InstructionSelector.cpp \
+ IRTranslator.cpp \
+ LegalityPredicates.cpp \
+ LegalizeMutations.cpp \
+ Legalizer.cpp \
+ LegalizerHelper.cpp \
+ LegalizerInfo.cpp \
+ Localizer.cpp \
+ MachineIRBuilder.cpp \
+ RegBankSelect.cpp \
+ RegisterBank.cpp \
+ RegisterBankInfo.cpp \
+ Utils.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMHello/Makefile b/external/apache2/llvm/lib/libLLVMHello/Makefile
new file mode 100644
index 00000000000..06a3c3598db
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMHello/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMHello
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/Hello
+
+SRCS+= Hello.cpp
+
+.include <bsd.lib.mk>
diff --git a/external/apache2/llvm/lib/libLLVMIR/Makefile b/external/apache2/llvm/lib/libLLVMIR/Makefile
new file mode 100644
index 00000000000..96f64e79411
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMIR/Makefile
@@ -0,0 +1,74 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMIR
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/IR
+
+TABLEGEN_SRC= AttributesCompatFunc.td
+TABLEGEN_OUTPUT= \
+ AttributesCompatFunc.inc|-gen-attrs
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+SRCS+= AbstractCallSite.cpp \
+ AsmWriter.cpp \
+ Attributes.cpp \
+ AutoUpgrade.cpp \
+ BasicBlock.cpp \
+ Comdat.cpp \
+ ConstantFold.cpp \
+ ConstantRange.cpp \
+ Constants.cpp \
+ Core.cpp \
+ DataLayout.cpp \
+ DebugInfo.cpp \
+ DebugInfoMetadata.cpp \
+ DebugLoc.cpp \
+ DiagnosticHandler.cpp \
+ DiagnosticInfo.cpp \
+ DiagnosticPrinter.cpp \
+ DIBuilder.cpp \
+ Dominators.cpp \
+ Function.cpp \
+ Globals.cpp \
+ GVMaterializer.cpp \
+ InlineAsm.cpp \
+ Instruction.cpp \
+ Instructions.cpp \
+ IntrinsicInst.cpp \
+ IRBuilder.cpp \
+ IRPrintingPasses.cpp \
+ LegacyPassManager.cpp \
+ LLVMContext.cpp \
+ LLVMContextImpl.cpp \
+ Mangler.cpp \
+ MDBuilder.cpp \
+ Metadata.cpp \
+ Module.cpp \
+ ModuleSummaryIndex.cpp \
+ Operator.cpp \
+ OptBisect.cpp \
+ Pass.cpp \
+ PassInstrumentation.cpp \
+ PassManager.cpp \
+ PassRegistry.cpp \
+ PassTimingInfo.cpp \
+ ProfileSummary.cpp \
+ RemarkStreamer.cpp \
+ SafepointIRVerifier.cpp \
+ Statepoint.cpp \
+ Type.cpp \
+ TypeFinder.cpp \
+ Use.cpp \
+ User.cpp \
+ Value.cpp \
+ ValueSymbolTable.cpp \
+ Verifier.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMIRReader/Makefile b/external/apache2/llvm/lib/libLLVMIRReader/Makefile
new file mode 100644
index 00000000000..e7b01b3a71c
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMIRReader/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMIRReader
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/IRReader
+
+SRCS+= IRReader.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMInstCombine/Makefile b/external/apache2/llvm/lib/libLLVMInstCombine/Makefile
new file mode 100644
index 00000000000..65383f2d84c
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMInstCombine/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMInstCombine
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/InstCombine
+
+TABLEGEN_SRC= InstCombineTables.td
+TABLEGEN_OUTPUT= \
+ InstCombineTables.inc|-gen-searchable-tables
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+SRCS+= InstCombineAddSub.cpp \
+ InstCombineAndOrXor.cpp \
+ InstCombineAtomicRMW.cpp \
+ InstCombineCalls.cpp \
+ InstCombineCasts.cpp \
+ InstCombineCompares.cpp \
+ InstCombineLoadStoreAlloca.cpp \
+ InstCombineMulDivRem.cpp \
+ InstCombinePHI.cpp \
+ InstCombineSelect.cpp \
+ InstCombineShifts.cpp \
+ InstCombineSimplifyDemanded.cpp \
+ InstCombineVectorOps.cpp \
+ InstructionCombining.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMInstrumentation/Makefile b/external/apache2/llvm/lib/libLLVMInstrumentation/Makefile
new file mode 100644
index 00000000000..f0a419114f4
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMInstrumentation/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMInstrumentation
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/Instrumentation
+
+SRCS+= AddressSanitizer.cpp \
+ BoundsChecking.cpp \
+ CGProfile.cpp \
+ ControlHeightReduction.cpp \
+ DataFlowSanitizer.cpp \
+ GCOVProfiling.cpp \
+ HWAddressSanitizer.cpp \
+ IndirectCallPromotion.cpp \
+ InstrOrderFile.cpp \
+ InstrProfiling.cpp \
+ Instrumentation.cpp \
+ MemorySanitizer.cpp \
+ PGOInstrumentation.cpp \
+ PGOMemOPSizeOpt.cpp \
+ PoisonChecking.cpp \
+ SanitizerCoverage.cpp \
+ ThreadSanitizer.cpp \
+ ValueProfileCollector.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMInterpreter/Makefile b/external/apache2/llvm/lib/libLLVMInterpreter/Makefile
new file mode 100644
index 00000000000..33db908a2f2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMInterpreter/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMInterpreter
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/Interpreter
+
+SRCS+= Execution.cpp \
+ ExternalFunctions.cpp \
+ Interpreter.cpp
+
+.include <bsd.lib.mk>
diff --git a/external/apache2/llvm/lib/libLLVMLTO/Makefile b/external/apache2/llvm/lib/libLLVMLTO/Makefile
new file mode 100644
index 00000000000..ae836698a7a
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMLTO/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMLTO
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/LTO
+
+SRCS+= Caching.cpp \
+ LTOBackend.cpp \
+ LTOCodeGenerator.cpp \
+ LTO.cpp \
+ LTOModule.cpp \
+ SummaryBasedOptimizations.cpp \
+ ThinLTOCodeGenerator.cpp \
+ UpdateCompilerUsed.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMLibDriver/Makefile b/external/apache2/llvm/lib/libLLVMLibDriver/Makefile
new file mode 100644
index 00000000000..43ae21098d4
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMLibDriver/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMLibDriver
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/LibDriver
+
+SRCS+= LibDriver.cpp
+
+TABLEGEN_SRC= Options.td
+TABLEGEN_OUTPUT= \
+ Options.inc|-gen-opt-parser-defs
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMLineEditor/Makefile b/external/apache2/llvm/lib/libLLVMLineEditor/Makefile
new file mode 100644
index 00000000000..b7681d936c2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMLineEditor/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:07 joerg Exp $
+
+LIB= LLVMLineEditor
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/LineEditor
+
+SRCS+= LineEditor.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMLinker/Makefile b/external/apache2/llvm/lib/libLLVMLinker/Makefile
new file mode 100644
index 00000000000..d629da22de5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMLinker/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:08 joerg Exp $
+
+LIB= LLVMLinker
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Linker
+
+SRCS+= IRMover.cpp \
+ LinkModules.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMC/Makefile b/external/apache2/llvm/lib/libLLVMMC/Makefile
new file mode 100644
index 00000000000..d01a4d9562a
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMC/Makefile
@@ -0,0 +1,74 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:08 joerg Exp $
+
+LIB= LLVMMC
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/MC
+
+SRCS+= ConstantPools.cpp \
+ ELFObjectWriter.cpp \
+ MachObjectWriter.cpp \
+ MCAsmBackend.cpp \
+ MCAsmInfoCOFF.cpp \
+ MCAsmInfo.cpp \
+ MCAsmInfoDarwin.cpp \
+ MCAsmInfoELF.cpp \
+ MCAsmInfoWasm.cpp \
+ MCAsmInfoXCOFF.cpp \
+ MCAsmMacro.cpp \
+ MCAsmStreamer.cpp \
+ MCAssembler.cpp \
+ MCCodeEmitter.cpp \
+ MCCodePadder.cpp \
+ MCCodeView.cpp \
+ MCContext.cpp \
+ MCDwarf.cpp \
+ MCELFObjectTargetWriter.cpp \
+ MCELFStreamer.cpp \
+ MCExpr.cpp \
+ MCFragment.cpp \
+ MCInst.cpp \
+ MCInstPrinter.cpp \
+ MCInstrAnalysis.cpp \
+ MCInstrDesc.cpp \
+ MCLabel.cpp \
+ MCLinkerOptimizationHint.cpp \
+ MCMachObjectTargetWriter.cpp \
+ MCMachOStreamer.cpp \
+ MCNullStreamer.cpp \
+ MCObjectFileInfo.cpp \
+ MCObjectStreamer.cpp \
+ MCObjectWriter.cpp \
+ MCRegisterInfo.cpp \
+ MCSchedule.cpp \
+ MCSectionCOFF.cpp \
+ MCSection.cpp \
+ MCSectionELF.cpp \
+ MCSectionMachO.cpp \
+ MCSectionWasm.cpp \
+ MCSectionXCOFF.cpp \
+ MCStreamer.cpp \
+ MCSubtargetInfo.cpp \
+ MCSymbol.cpp \
+ MCSymbolELF.cpp \
+ MCTargetOptions.cpp \
+ MCValue.cpp \
+ MCWasmObjectTargetWriter.cpp \
+ MCWasmStreamer.cpp \
+ MCWin64EH.cpp \
+ MCWinCOFFStreamer.cpp \
+ MCWinEH.cpp \
+ MCXCOFFObjectTargetWriter.cpp \
+ MCXCOFFStreamer.cpp \
+ StringTableBuilder.cpp \
+ SubtargetFeature.cpp \
+ WasmObjectWriter.cpp \
+ WinCOFFObjectWriter.cpp \
+ XCOFFObjectWriter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMCA/Makefile b/external/apache2/llvm/lib/libLLVMMCA/Makefile
new file mode 100644
index 00000000000..9f411b805d2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMCA/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:08 joerg Exp $
+
+LIB= LLVMMCA
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/MCA
+
+SRCS+= CodeEmitter.cpp \
+ Context.cpp \
+ HWEventListener.cpp \
+ InstrBuilder.cpp \
+ Instruction.cpp \
+ Pipeline.cpp \
+ Support.cpp
+
+.PATH: ${LLVM_SRCDIR}/lib/MCA/HardwareUnits
+
+SRCS+= HardwareUnit.cpp \
+ LSUnit.cpp \
+ RegisterFile.cpp \
+ ResourceManager.cpp \
+ RetireControlUnit.cpp \
+ Scheduler.cpp
+
+.PATH: ${LLVM_SRCDIR}/lib/MCA/Stages
+
+SRCS+= DispatchStage.cpp \
+ EntryStage.cpp \
+ ExecuteStage.cpp \
+ InstructionTables.cpp \
+ MicroOpQueueStage.cpp \
+ RetireStage.cpp \
+ Stage.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMCDisassembler/Makefile b/external/apache2/llvm/lib/libLLVMMCDisassembler/Makefile
new file mode 100644
index 00000000000..dcd8c68312b
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMCDisassembler/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:08 joerg Exp $
+
+LIB= LLVMMCDisassembler
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/MC/MCDisassembler
+
+SRCS+= Disassembler.cpp \
+ MCDisassembler.cpp \
+ MCExternalSymbolizer.cpp \
+ MCRelocationInfo.cpp \
+ MCSymbolizer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMCJIT/Makefile b/external/apache2/llvm/lib/libLLVMMCJIT/Makefile
new file mode 100644
index 00000000000..e6617f43321
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMCJIT/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:08 joerg Exp $
+
+LIB= LLVMMCJIT
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/MCJIT
+
+SRCS+= MCJIT.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMCParser/Makefile b/external/apache2/llvm/lib/libLLVMMCParser/Makefile
new file mode 100644
index 00000000000..2157d2c0b57
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMCParser/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMCParser
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/MC/MCParser
+
+SRCS+= AsmLexer.cpp \
+ AsmParser.cpp \
+ COFFAsmParser.cpp \
+ DarwinAsmParser.cpp \
+ ELFAsmParser.cpp \
+ MCAsmLexer.cpp \
+ MCAsmParser.cpp \
+ MCAsmParserExtension.cpp \
+ MCTargetAsmParser.cpp \
+ WasmAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMIRParser/Makefile b/external/apache2/llvm/lib/libLLVMMIRParser/Makefile
new file mode 100644
index 00000000000..5446105929b
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMIRParser/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMIRParser
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/CodeGen/MIRParser
+
+SRCS+= MILexer.cpp \
+ MIParser.cpp \
+ MIRParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMipsAsmParser/Makefile b/external/apache2/llvm/lib/libLLVMMipsAsmParser/Makefile
new file mode 100644
index 00000000000..c6fc0b652b7
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMipsAsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMipsAsmParser
+
+.include <bsd.init.mk>
+
+MIPS_OBJDIR!= cd ${.CURDIR}/../libLLVMMipsCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/AsmParser
+
+SRCS+= MipsAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMipsCodeGen/Makefile b/external/apache2/llvm/lib/libLLVMMipsCodeGen/Makefile
new file mode 100644
index 00000000000..57afcd9ffe2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMipsCodeGen/Makefile
@@ -0,0 +1,73 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMipsCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips
+
+SRCS+= MicroMipsSizeReduction.cpp \
+ Mips16FrameLowering.cpp \
+ Mips16HardFloat.cpp \
+ Mips16HardFloatInfo.cpp \
+ Mips16InstrInfo.cpp \
+ Mips16ISelDAGToDAG.cpp \
+ Mips16ISelLowering.cpp \
+ Mips16RegisterInfo.cpp \
+ MipsAnalyzeImmediate.cpp \
+ MipsAsmPrinter.cpp \
+ MipsBranchExpansion.cpp \
+ MipsCallLowering.cpp \
+ MipsCCState.cpp \
+ MipsConstantIslandPass.cpp \
+ MipsDelaySlotFiller.cpp \
+ MipsExpandPseudo.cpp \
+ MipsFastISel.cpp \
+ MipsFrameLowering.cpp \
+ MipsInstrInfo.cpp \
+ MipsInstructionSelector.cpp \
+ MipsISelDAGToDAG.cpp \
+ MipsISelLowering.cpp \
+ MipsLegalizerInfo.cpp \
+ MipsMachineFunction.cpp \
+ MipsMCInstLower.cpp \
+ MipsModuleISelDAGToDAG.cpp \
+ MipsOptimizePICCall.cpp \
+ MipsOs16.cpp \
+ MipsPreLegalizerCombiner.cpp \
+ MipsRegisterBankInfo.cpp \
+ MipsRegisterInfo.cpp \
+ MipsSEFrameLowering.cpp \
+ MipsSEInstrInfo.cpp \
+ MipsSEISelDAGToDAG.cpp \
+ MipsSEISelLowering.cpp \
+ MipsSERegisterInfo.cpp \
+ MipsSubtarget.cpp \
+ MipsTargetMachine.cpp \
+ MipsTargetObjectFile.cpp
+
+TABLEGEN_SRC= Mips.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/Mips
+TABLEGEN_OUTPUT= \
+ MipsGenAsmMatcher.inc|-gen-asm-matcher \
+ MipsGenAsmWriter.inc|-gen-asm-writer \
+ MipsGenCallingConv.inc|-gen-callingconv \
+ MipsGenCodeEmitter.inc|-gen-emitter \
+ MipsGenDAGISel.inc|-gen-dag-isel \
+ MipsGenDisassemblerTables.inc|-gen-disassembler \
+ MipsGenFastISel.inc|-gen-fast-isel \
+ MipsGenGlobalISel.inc|-gen-global-isel \
+ MipsGenInstrInfo.inc|-gen-instr-info \
+ MipsGenMCCodeEmitter.inc|-gen-emitter \
+ MipsGenMCPseudoLowering.inc|-gen-pseudo-lowering \
+ MipsGenRegisterBank.inc|-gen-register-bank \
+ MipsGenRegisterInfo.inc|-gen-register-info \
+ MipsGenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMipsDisassembler/Makefile b/external/apache2/llvm/lib/libLLVMMipsDisassembler/Makefile
new file mode 100644
index 00000000000..bfd76038ba2
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMipsDisassembler/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMipsDisassembler
+
+.include <bsd.init.mk>
+
+MIPS_OBJDIR!= cd ${.CURDIR}/../libLLVMMipsCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/Disassembler
+
+SRCS+= MipsDisassembler.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMipsMCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMMipsMCTargetDesc/Makefile
new file mode 100644
index 00000000000..a822af6176f
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMipsMCTargetDesc/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMipsMCTargetDesc
+
+.include <bsd.init.mk>
+
+MIPS_OBJDIR!= cd ${.CURDIR}/../libLLVMMipsCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/MCTargetDesc
+
+SRCS+= MipsABIFlagsSection.cpp \
+ MipsABIInfo.cpp \
+ MipsAsmBackend.cpp \
+ MipsELFObjectWriter.cpp \
+ MipsELFStreamer.cpp \
+ MipsInstPrinter.cpp \
+ MipsMCAsmInfo.cpp \
+ MipsMCCodeEmitter.cpp \
+ MipsMCExpr.cpp \
+ MipsMCTargetDesc.cpp \
+ MipsNaClELFStreamer.cpp \
+ MipsOptionRecord.cpp \
+ MipsTargetStreamer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMMipsTargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMMipsTargetInfo/Makefile
new file mode 100644
index 00000000000..a8e6b1d85e8
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMMipsTargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMMipsTargetInfo
+
+.include <bsd.init.mk>
+
+MIPS_OBJDIR!= cd ${.CURDIR}/../libLLVMMipsCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/TargetInfo
+
+SRCS+= MipsTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMObjCARC/Makefile b/external/apache2/llvm/lib/libLLVMObjCARC/Makefile
new file mode 100644
index 00000000000..b0690da686d
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMObjCARC/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMObjCARC
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/ObjCARC
+
+SRCS+= DependencyAnalysis.cpp \
+ ObjCARC.cpp \
+ ObjCARCAPElim.cpp \
+ ObjCARCContract.cpp \
+ ObjCARCExpand.cpp \
+ ObjCARCOpts.cpp \
+ ProvenanceAnalysis.cpp \
+ ProvenanceAnalysisEvaluator.cpp \
+ PtrState.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMObject/Makefile b/external/apache2/llvm/lib/libLLVMObject/Makefile
new file mode 100644
index 00000000000..4d7a91e237b
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMObject/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:09 joerg Exp $
+
+LIB= LLVMObject
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Object
+
+SRCS+= Archive.cpp \
+ ArchiveWriter.cpp \
+ Binary.cpp \
+ COFFImportFile.cpp \
+ COFFModuleDefinition.cpp \
+ COFFObjectFile.cpp \
+ Decompressor.cpp \
+ ELF.cpp \
+ ELFObjectFile.cpp \
+ Error.cpp \
+ IRObjectFile.cpp \
+ IRSymtab.cpp \
+ MachOObjectFile.cpp \
+ MachOUniversal.cpp \
+ Minidump.cpp \
+ ModuleSymbolTable.cpp \
+ Object.cpp \
+ ObjectFile.cpp \
+ RecordStreamer.cpp \
+ RelocationResolver.cpp \
+ SymbolSize.cpp \
+ SymbolicFile.cpp \
+ TapiFile.cpp \
+ TapiUniversal.cpp \
+ WasmObjectFile.cpp \
+ WindowsMachineFlag.cpp \
+ WindowsResource.cpp \
+ XCOFFObjectFile.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMObjectYAML/Makefile b/external/apache2/llvm/lib/libLLVMObjectYAML/Makefile
new file mode 100644
index 00000000000..fd934127300
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMObjectYAML/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMObjectYAML
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ObjectYAML
+
+SRCS+= CodeViewYAMLDebugSections.cpp \
+ CodeViewYAMLSymbols.cpp \
+ CodeViewYAMLTypeHashing.cpp \
+ CodeViewYAMLTypes.cpp \
+ COFFEmitter.cpp \
+ COFFYAML.cpp \
+ DWARFEmitter.cpp \
+ DWARFVisitor.cpp \
+ DWARFYAML.cpp \
+ ELFEmitter.cpp \
+ ELFYAML.cpp \
+ MachOEmitter.cpp \
+ MachOYAML.cpp \
+ MinidumpEmitter.cpp \
+ MinidumpYAML.cpp \
+ ObjectYAML.cpp \
+ WasmEmitter.cpp \
+ WasmYAML.cpp \
+ XCOFFYAML.cpp \
+ yaml2obj.cpp \
+ YAML.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMOption/Makefile b/external/apache2/llvm/lib/libLLVMOption/Makefile
new file mode 100644
index 00000000000..b301f56ff55
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMOption/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMOption
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Option
+
+SRCS+= ArgList.cpp \
+ Arg.cpp \
+ OptTable.cpp \
+ Option.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMOrc/Makefile b/external/apache2/llvm/lib/libLLVMOrc/Makefile
new file mode 100644
index 00000000000..671bfa15ea3
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMOrc/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMOrc
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/Orc
+
+SRCS+= CompileOnDemandLayer.cpp \
+ CompileUtils.cpp \
+ Core.cpp \
+ ExecutionUtils.cpp \
+ IndirectionUtils.cpp \
+ IRCompileLayer.cpp \
+ IRTransformLayer.cpp \
+ JITTargetMachineBuilder.cpp \
+ Layer.cpp \
+ LazyReexports.cpp \
+ Legacy.cpp \
+ LLJIT.cpp \
+ NullResolver.cpp \
+ ObjectLinkingLayer.cpp \
+ ObjectTransformLayer.cpp \
+ OrcABISupport.cpp \
+ OrcCBindings.cpp \
+ OrcError.cpp \
+ OrcMCJITReplacement.cpp \
+ RPCUtils.cpp \
+ RTDyldObjectLinkingLayer.cpp \
+ SpeculateAnalyses.cpp \
+ Speculation.cpp \
+ ThreadSafeModule.cpp
+
+.include <bsd.lib.mk>
diff --git a/external/apache2/llvm/lib/libLLVMPasses/Makefile b/external/apache2/llvm/lib/libLLVMPasses/Makefile
new file mode 100644
index 00000000000..a3599ff7a9d
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMPasses/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMPasses
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Passes
+
+SRCS+= PassBuilder.cpp \
+ PassPlugin.cpp \
+ StandardInstrumentations.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMPowerPCAsmParser/Makefile b/external/apache2/llvm/lib/libLLVMPowerPCAsmParser/Makefile
new file mode 100644
index 00000000000..1c4061741da
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMPowerPCAsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMPowerPCAsmParser
+
+.include <bsd.init.mk>
+
+PPC_OBJDIR!= cd ${.CURDIR}/../libLLVMPowerPCCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/AsmParser
+
+SRCS+= PPCAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMPowerPCCodeGen/Makefile b/external/apache2/llvm/lib/libLLVMPowerPCCodeGen/Makefile
new file mode 100644
index 00000000000..da273fc1219
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMPowerPCCodeGen/Makefile
@@ -0,0 +1,64 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMPowerPCCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC
+
+SRCS+= PPCAsmPrinter.cpp \
+ PPCBoolRetToInt.cpp \
+ PPCBranchCoalescing.cpp \
+ PPCBranchSelector.cpp \
+ PPCCallingConv.cpp \
+ PPCCCState.cpp \
+ PPCCTRLoops.cpp \
+ PPCEarlyReturn.cpp \
+ PPCExpandISEL.cpp \
+ PPCFastISel.cpp \
+ PPCFrameLowering.cpp \
+ PPCHazardRecognizers.cpp \
+ PPCInstrInfo.cpp \
+ PPCISelDAGToDAG.cpp \
+ PPCISelLowering.cpp \
+ PPCLoopPreIncPrep.cpp \
+ PPCMachineFunctionInfo.cpp \
+ PPCMachineScheduler.cpp \
+ PPCMCInstLower.cpp \
+ PPCMIPeephole.cpp \
+ PPCPreEmitPeephole.cpp \
+ PPCQPXLoadSplat.cpp \
+ PPCReduceCRLogicals.cpp \
+ PPCRegisterInfo.cpp \
+ PPCSubtarget.cpp \
+ PPCTargetMachine.cpp \
+ PPCTargetObjectFile.cpp \
+ PPCTargetTransformInfo.cpp \
+ PPCTLSDynamicCall.cpp \
+ PPCTOCRegDeps.cpp \
+ PPCVSXCopy.cpp \
+ PPCVSXFMAMutate.cpp \
+ PPCVSXSwapRemoval.cpp
+
+TABLEGEN_SRC= PPC.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/PowerPC
+TABLEGEN_OUTPUT= \
+ PPCGenAsmMatcher.inc|-gen-asm-matcher \
+ PPCGenAsmWriter.inc|-gen-asm-writer \
+ PPCGenCallingConv.inc|-gen-callingconv \
+ PPCGenCodeEmitter.inc|-gen-emitter \
+ PPCGenDAGISel.inc|-gen-dag-isel \
+ PPCGenDisassemblerTables.inc|-gen-disassembler \
+ PPCGenFastISel.inc|-gen-fast-isel \
+ PPCGenInstrInfo.inc|-gen-instr-info \
+ PPCGenMCCodeEmitter.inc|-gen-emitter \
+ PPCGenRegisterInfo.inc|-gen-register-info \
+ PPCGenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMPowerPCDisassembler/Makefile b/external/apache2/llvm/lib/libLLVMPowerPCDisassembler/Makefile
new file mode 100644
index 00000000000..c754f8719c7
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMPowerPCDisassembler/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMPowerPCDisassembler
+
+.include <bsd.init.mk>
+
+PPC_OBJDIR!= cd ${.CURDIR}/../libLLVMPowerPCCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/Disassembler
+
+SRCS+= PPCDisassembler.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile
new file mode 100644
index 00000000000..dc358fb5933
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:10 joerg Exp $
+
+LIB= LLVMPowerPCMCTargetDesc
+
+.include <bsd.init.mk>
+
+PPC_OBJDIR!= cd ${.CURDIR}/../libLLVMPowerPCCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/MCTargetDesc
+
+SRCS+= PPCAsmBackend.cpp \
+ PPCMCAsmInfo.cpp \
+ PPCELFObjectWriter.cpp \
+ PPCInstPrinter.cpp \
+ PPCMCCodeEmitter.cpp \
+ PPCMCExpr.cpp \
+ PPCMCTargetDesc.cpp \
+ PPCMachObjectWriter.cpp \
+ PPCPredicates.cpp \
+ PPCXCOFFObjectWriter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMPowerPCTargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMPowerPCTargetInfo/Makefile
new file mode 100644
index 00000000000..6f47e93d3ac
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMPowerPCTargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMPowerPCTargetInfo
+
+.include <bsd.init.mk>
+
+PPC_OBJDIR!= cd ${.CURDIR}/../libLLVMPowerPCCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/TargetInfo
+
+SRCS+= PowerPCTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMProfileData/Makefile b/external/apache2/llvm/lib/libLLVMProfileData/Makefile
new file mode 100644
index 00000000000..fed7b1127bf
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMProfileData/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMProfileData
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ProfileData
+
+SRCS+= GCOV.cpp \
+ InstrProf.cpp \
+ InstrProfReader.cpp \
+ InstrProfWriter.cpp \
+ ProfileSummaryBuilder.cpp \
+ SampleProf.cpp \
+ SampleProfReader.cpp \
+ SampleProfWriter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMProfileDataCoverage/Makefile b/external/apache2/llvm/lib/libLLVMProfileDataCoverage/Makefile
new file mode 100644
index 00000000000..6dd0125e5d5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMProfileDataCoverage/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMProfileDataCoverage
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ProfileData/Coverage
+
+SRCS+= CoverageMapping.cpp \
+ CoverageMappingReader.cpp \
+ CoverageMappingWriter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMRemarks/Makefile b/external/apache2/llvm/lib/libLLVMRemarks/Makefile
new file mode 100644
index 00000000000..813e24658d5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMRemarks/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMRemarks
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Remarks
+
+SRCS+= BitstreamRemarkParser.cpp \
+ BitstreamRemarkSerializer.cpp \
+ Remark.cpp \
+ RemarkFormat.cpp \
+ RemarkParser.cpp \
+ RemarkSerializer.cpp \
+ RemarkStringTable.cpp \
+ YAMLRemarkParser.cpp \
+ YAMLRemarkSerializer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMRuntimeDyld/Makefile b/external/apache2/llvm/lib/libLLVMRuntimeDyld/Makefile
new file mode 100644
index 00000000000..225e8ded6fe
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMRuntimeDyld/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMRuntimeDyld
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/RuntimeDyld
+.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/RuntimeDyld/Targets
+
+SRCS+= JITSymbol.cpp \
+ RTDyldMemoryManager.cpp \
+ RuntimeDyld.cpp \
+ RuntimeDyldCOFF.cpp \
+ RuntimeDyldChecker.cpp \
+ RuntimeDyldELF.cpp \
+ RuntimeDyldMachO.cpp
+
+SRCS+= RuntimeDyldELFMips.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMScalarOpts/Makefile b/external/apache2/llvm/lib/libLLVMScalarOpts/Makefile
new file mode 100644
index 00000000000..a015fa60a90
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMScalarOpts/Makefile
@@ -0,0 +1,88 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMScalarOpts
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/Scalar
+
+SRCS+= ADCE.cpp \
+ AlignmentFromAssumptions.cpp \
+ BDCE.cpp \
+ CallSiteSplitting.cpp \
+ ConstantHoisting.cpp \
+ ConstantProp.cpp \
+ CorrelatedValuePropagation.cpp \
+ DCE.cpp \
+ DeadStoreElimination.cpp \
+ DivRemPairs.cpp \
+ EarlyCSE.cpp \
+ FlattenCFGPass.cpp \
+ Float2Int.cpp \
+ GuardWidening.cpp \
+ GVN.cpp \
+ GVNHoist.cpp \
+ GVNSink.cpp \
+ InductiveRangeCheckElimination.cpp \
+ IndVarSimplify.cpp \
+ InferAddressSpaces.cpp \
+ InstSimplifyPass.cpp \
+ IVUsersPrinter.cpp \
+ JumpThreading.cpp \
+ LICM.cpp \
+ LoopAccessAnalysisPrinter.cpp \
+ LoopDataPrefetch.cpp \
+ LoopDeletion.cpp \
+ LoopDistribute.cpp \
+ LoopFuse.cpp \
+ LoopIdiomRecognize.cpp \
+ LoopInstSimplify.cpp \
+ LoopInterchange.cpp \
+ LoopLoadElimination.cpp \
+ LoopPassManager.cpp \
+ LoopPredication.cpp \
+ LoopRerollPass.cpp \
+ LoopRotation.cpp \
+ LoopSimplifyCFG.cpp \
+ LoopSink.cpp \
+ LoopStrengthReduce.cpp \
+ LoopUnrollAndJamPass.cpp \
+ LoopUnrollPass.cpp \
+ LoopUnswitch.cpp \
+ LoopVersioningLICM.cpp \
+ LowerAtomic.cpp \
+ LowerConstantIntrinsics.cpp \
+ LowerExpectIntrinsic.cpp \
+ LowerGuardIntrinsic.cpp \
+ LowerWidenableCondition.cpp \
+ MakeGuardsExplicit.cpp \
+ MemCpyOptimizer.cpp \
+ MergedLoadStoreMotion.cpp \
+ MergeICmps.cpp \
+ NaryReassociate.cpp \
+ NewGVN.cpp \
+ PartiallyInlineLibCalls.cpp \
+ PlaceSafepoints.cpp \
+ Reassociate.cpp \
+ Reg2Mem.cpp \
+ RewriteStatepointsForGC.cpp \
+ Scalar.cpp \
+ Scalarizer.cpp \
+ SCCP.cpp \
+ SeparateConstOffsetFromGEP.cpp \
+ SimpleLoopUnswitch.cpp \
+ SimplifyCFGPass.cpp \
+ Sink.cpp \
+ SpeculateAroundPHIs.cpp \
+ SpeculativeExecution.cpp \
+ SROA.cpp \
+ StraightLineStrengthReduce.cpp \
+ StructurizeCFG.cpp \
+ TailRecursionElimination.cpp \
+ WarnMissedTransforms.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSelectionDAG/Makefile b/external/apache2/llvm/lib/libLLVMSelectionDAG/Makefile
new file mode 100644
index 00000000000..081fd2c9bbf
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSelectionDAG/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMSelectionDAG
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/CodeGen/SelectionDAG
+
+SRCS+= DAGCombiner.cpp \
+ FastISel.cpp \
+ FunctionLoweringInfo.cpp \
+ InstrEmitter.cpp \
+ LegalizeDAG.cpp \
+ LegalizeFloatTypes.cpp \
+ LegalizeIntegerTypes.cpp \
+ LegalizeTypes.cpp \
+ LegalizeTypesGeneric.cpp \
+ LegalizeVectorOps.cpp \
+ LegalizeVectorTypes.cpp \
+ ResourcePriorityQueue.cpp \
+ ScheduleDAGFast.cpp \
+ ScheduleDAGRRList.cpp \
+ ScheduleDAGSDNodes.cpp \
+ ScheduleDAGVLIW.cpp \
+ SelectionDAG.cpp \
+ SelectionDAGAddressAnalysis.cpp \
+ SelectionDAGBuilder.cpp \
+ SelectionDAGDumper.cpp \
+ SelectionDAGISel.cpp \
+ SelectionDAGPrinter.cpp \
+ SelectionDAGTargetInfo.cpp \
+ StatepointLowering.cpp \
+ TargetLowering.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSparcAsmParser/Makefile b/external/apache2/llvm/lib/libLLVMSparcAsmParser/Makefile
new file mode 100644
index 00000000000..6ee29f77559
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSparcAsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMSparcAsmParser
+
+.include <bsd.init.mk>
+
+SPARC_OBJDIR!= cd ${.CURDIR}/../libLLVMSparcCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${SPARC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Sparc
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc/AsmParser
+
+SRCS+= SparcAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSparcCodeGen/Makefile b/external/apache2/llvm/lib/libLLVMSparcCodeGen/Makefile
new file mode 100644
index 00000000000..acb0169786a
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSparcCodeGen/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:11 joerg Exp $
+
+LIB= LLVMSparcCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc
+
+SRCS+= DelaySlotFiller.cpp \
+ LeonPasses.cpp \
+ SparcAsmPrinter.cpp \
+ SparcInstrInfo.cpp \
+ SparcISelDAGToDAG.cpp \
+ SparcISelLowering.cpp \
+ SparcFrameLowering.cpp \
+ SparcMCInstLower.cpp \
+ SparcMachineFunctionInfo.cpp \
+ SparcRegisterInfo.cpp \
+ SparcSubtarget.cpp \
+ SparcTargetMachine.cpp \
+ SparcTargetObjectFile.cpp
+
+TABLEGEN_SRC= Sparc.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/Sparc
+TABLEGEN_OUTPUT= \
+ SparcGenDAGISel.inc|-gen-dag-isel \
+ SparcGenAsmMatcher.inc|-gen-asm-matcher \
+ SparcGenAsmWriter.inc|-gen-asm-writer \
+ SparcGenCallingConv.inc|-gen-callingconv \
+ SparcGenCodeEmitter.inc|-gen-emitter \
+ SparcGenDisassemblerTables.inc|-gen-disassembler \
+ SparcGenInstrInfo.inc|-gen-instr-info \
+ SparcGenMCCodeEmitter.inc|-gen-emitter \
+ SparcGenRegisterInfo.inc|-gen-register-info \
+ SparcGenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSparcDisassembler/Makefile b/external/apache2/llvm/lib/libLLVMSparcDisassembler/Makefile
new file mode 100644
index 00000000000..e86caac552f
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSparcDisassembler/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMSparcDisassembler
+
+.include <bsd.init.mk>
+
+SPARC_OBJDIR!= cd ${.CURDIR}/../libLLVMSparcCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${SPARC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Sparc
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc/Disassembler
+
+SRCS+= SparcDisassembler.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSparcMCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMSparcMCTargetDesc/Makefile
new file mode 100644
index 00000000000..5c80aba2ef6
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSparcMCTargetDesc/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMSparcMCTargetDesc
+
+.include <bsd.init.mk>
+
+SPARC_OBJDIR!= cd ${.CURDIR}/../libLLVMSparcCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${SPARC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Sparc
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc/MCTargetDesc
+
+SRCS+= SparcAsmBackend.cpp \
+ SparcELFObjectWriter.cpp \
+ SparcInstPrinter.cpp \
+ SparcMCAsmInfo.cpp \
+ SparcMCCodeEmitter.cpp \
+ SparcMCExpr.cpp \
+ SparcMCTargetDesc.cpp \
+ SparcTargetStreamer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSparcTargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMSparcTargetInfo/Makefile
new file mode 100644
index 00000000000..aaf553f37b4
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSparcTargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMSparcTargetInfo
+
+.include <bsd.init.mk>
+
+SPARC_OBJDIR!= cd ${.CURDIR}/../libLLVMSparcCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${SPARC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Sparc
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc/TargetInfo
+
+SRCS+= SparcTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMSupport/Makefile b/external/apache2/llvm/lib/libLLVMSupport/Makefile
new file mode 100644
index 00000000000..74350acb913
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMSupport/Makefile
@@ -0,0 +1,156 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMSupport
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Support
+
+SRCS+= AArch64TargetParser.cpp \
+ ABIBreak.cpp \
+ Allocator.cpp \
+ AMDGPUMetadata.cpp \
+ APFloat.cpp \
+ APInt.cpp \
+ APSInt.cpp \
+ ARMAttributeParser.cpp \
+ ARMBuildAttrs.cpp \
+ ARMTargetParser.cpp \
+ ARMWinEH.cpp \
+ BinaryStreamError.cpp \
+ BinaryStreamReader.cpp \
+ BinaryStreamRef.cpp \
+ BinaryStreamWriter.cpp \
+ BlockFrequency.cpp \
+ BranchProbability.cpp \
+ BuryPointer.cpp \
+ CachePruning.cpp \
+ Chrono.cpp \
+ circular_raw_ostream.cpp \
+ CodeGenCoverage.cpp \
+ COM.cpp \
+ CommandLine.cpp \
+ Compression.cpp \
+ ConvertUTF.cpp \
+ ConvertUTFWrapper.cpp \
+ CrashRecoveryContext.cpp \
+ CRC.cpp \
+ DAGDeltaAlgorithm.cpp \
+ DataExtractor.cpp \
+ DebugCounter.cpp \
+ Debug.cpp \
+ DeltaAlgorithm.cpp \
+ DJB.cpp \
+ Error.cpp \
+ ErrorHandling.cpp \
+ FileCheck.cpp \
+ FileCollector.cpp \
+ FileOutputBuffer.cpp \
+ FileUtilities.cpp \
+ FoldingSet.cpp \
+ FormattedStream.cpp \
+ GlobPattern.cpp \
+ GraphWriter.cpp \
+ Hashing.cpp \
+ InitLLVM.cpp \
+ IntEqClasses.cpp \
+ IntervalMap.cpp \
+ ItaniumManglingCanonicalizer.cpp \
+ JSON.cpp \
+ KnownBits.cpp \
+ LEB128.cpp \
+ LineIterator.cpp \
+ Locale.cpp \
+ LockFileManager.cpp \
+ LowLevelType.cpp \
+ ManagedStatic.cpp \
+ MathExtras.cpp \
+ MD5.cpp \
+ MemoryBuffer.cpp \
+ NativeFormatting.cpp \
+ Optional.cpp \
+ Options.cpp \
+ Parallel.cpp \
+ PluginLoader.cpp \
+ PrettyStackTrace.cpp \
+ raw_os_ostream.cpp \
+ raw_ostream.cpp \
+ regcomp.c \
+ regerror.c \
+ Regex.cpp \
+ regexec.c \
+ regfree.c \
+ regstrlcpy.c \
+ ScopedPrinter.cpp \
+ SHA1.cpp \
+ Signposts.cpp \
+ SmallPtrSet.cpp \
+ SmallVector.cpp \
+ SourceMgr.cpp \
+ SpecialCaseList.cpp \
+ Statistic.cpp \
+ StringExtras.cpp \
+ StringMap.cpp \
+ StringPool.cpp \
+ StringRef.cpp \
+ StringSaver.cpp \
+ SymbolRemappingReader.cpp \
+ SystemUtils.cpp \
+ TargetParser.cpp \
+ TargetRegistry.cpp \
+ TarWriter.cpp \
+ TimeProfiler.cpp \
+ Timer.cpp \
+ ToolOutputFile.cpp \
+ TrigramIndex.cpp \
+ Triple.cpp \
+ Twine.cpp \
+ UnicodeCaseFold.cpp \
+ Unicode.cpp \
+ VersionTuple.cpp \
+ VirtualFileSystem.cpp \
+ Watchdog.cpp \
+ WithColor.cpp \
+ xxhash.cpp \
+ YAMLParser.cpp \
+ YAMLTraits.cpp \
+ Z3Solver.cpp
+
+SRCS+= Atomic.cpp \
+ DynamicLibrary.cpp \
+ Errno.cpp \
+ FormatVariadic.cpp \
+ Host.cpp \
+ Memory.cpp \
+ Path.cpp \
+ Process.cpp \
+ Program.cpp \
+ RWMutex.cpp \
+ RandomNumberGenerator.cpp \
+ ScaledNumber.cpp \
+ Signals.cpp \
+ ThreadLocal.cpp \
+ ThreadPool.cpp \
+ Threading.cpp \
+ Valgrind.cpp
+
+.PATH: ${LLVM_SRCDIR}/lib/Support/Unix
+
+SRCS+= Host.inc \
+ Memory.inc \
+ Path.inc \
+ Process.inc \
+ Program.inc \
+ Signals.inc \
+ Watchdog.inc \
+ ThreadLocal.inc
+
+.for src in ${SRCS:M*.c}
+CPPFLAGS.${src}+= -std=gnu99
+.endfor
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTableGen/Makefile b/external/apache2/llvm/lib/libLLVMTableGen/Makefile
new file mode 100644
index 00000000000..45283804563
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTableGen/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMTableGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/TableGen
+
+SRCS+= Error.cpp \
+ JSONBackend.cpp \
+ Main.cpp \
+ Record.cpp \
+ SetTheory.cpp \
+ StringMatcher.cpp \
+ TableGenBackend.cpp \
+ TGLexer.cpp \
+ TGParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTarget/Makefile b/external/apache2/llvm/lib/libLLVMTarget/Makefile
new file mode 100644
index 00000000000..944ca097ea5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTarget/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMTarget
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target
+
+SRCS+= Target.cpp \
+ TargetIntrinsicInfo.cpp \
+ TargetLoweringObjectFile.cpp \
+ TargetMachine.cpp \
+ TargetMachineC.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTextAPI/Makefile b/external/apache2/llvm/lib/libLLVMTextAPI/Makefile
new file mode 100644
index 00000000000..d2c9182fa68
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTextAPI/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMTextAPI
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/TextAPI/ELF
+
+SRCS+= ELFStub.cpp \
+ TBEHandler.cpp
+
+.PATH: ${LLVM_SRCDIR}/lib/TextAPI/MachO
+SRCS+= Architecture.cpp \
+ ArchitectureSet.cpp \
+ InterfaceFile.cpp \
+ PackedVersion.cpp \
+ Platform.cpp \
+ Symbol.cpp \
+ Target.cpp \
+ TextStub.cpp \
+ TextStubCommon.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMToolDrivers/Makefile b/external/apache2/llvm/lib/libLLVMToolDrivers/Makefile
new file mode 100644
index 00000000000..f0b29ea015f
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMToolDrivers/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMToolDrivers
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ToolDrivers/llvm-lib
+
+SRCS+= LibDriver.cpp
+
+TABLEGEN_SRC= Options.td
+TABLEGEN_OUTPUT= \
+ Options.inc|-gen-opt-parser-defs
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMToolDriversDlltool/Makefile b/external/apache2/llvm/lib/libLLVMToolDriversDlltool/Makefile
new file mode 100644
index 00000000000..87b2316e56e
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMToolDriversDlltool/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:12 joerg Exp $
+
+LIB= LLVMToolDriversDlltool
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ToolDrivers/llvm-dlltool
+
+SRCS+= DlltoolDriver.cpp
+
+TABLEGEN_SRC= Options.td
+TABLEGEN_OUTPUT= \
+ Options.inc|-gen-opt-parser-defs
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTransformsAggressiveInstCombine/Makefile b/external/apache2/llvm/lib/libLLVMTransformsAggressiveInstCombine/Makefile
new file mode 100644
index 00000000000..9ea600bfb08
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTransformsAggressiveInstCombine/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMTransformsAggressiveInstCombine
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/AggressiveInstCombine
+
+SRCS+= AggressiveInstCombine.cpp \
+ TruncInstCombine.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTransformsCFGuard/Makefile b/external/apache2/llvm/lib/libLLVMTransformsCFGuard/Makefile
new file mode 100644
index 00000000000..a3e667b4158
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTransformsCFGuard/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMTransformsCFGuard
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/CFGuard
+
+SRCS+= CFGuard.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTransformsCoroutines/Makefile b/external/apache2/llvm/lib/libLLVMTransformsCoroutines/Makefile
new file mode 100644
index 00000000000..3feb787e802
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTransformsCoroutines/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMTransformsCoroutines
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/Coroutines
+
+SRCS+= CoroCleanup.cpp \
+ CoroEarly.cpp \
+ CoroElide.cpp \
+ CoroFrame.cpp \
+ CoroSplit.cpp \
+ Coroutines.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMTransformsUtils/Makefile b/external/apache2/llvm/lib/libLLVMTransformsUtils/Makefile
new file mode 100644
index 00000000000..19d276d49be
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMTransformsUtils/Makefile
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMTransformsUtils
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/Utils
+
+SRCS+= AddDiscriminators.cpp \
+ ASanStackFrameLayout.cpp \
+ BasicBlockUtils.cpp \
+ BreakCriticalEdges.cpp \
+ BuildLibCalls.cpp \
+ BypassSlowDivision.cpp \
+ CallPromotionUtils.cpp \
+ CanonicalizeAliases.cpp \
+ CloneFunction.cpp \
+ CloneModule.cpp \
+ CodeExtractor.cpp \
+ CtorUtils.cpp \
+ DemoteRegToStack.cpp \
+ EntryExitInstrumenter.cpp \
+ EscapeEnumerator.cpp \
+ Evaluator.cpp \
+ FlattenCFG.cpp \
+ FunctionComparator.cpp \
+ FunctionImportUtils.cpp \
+ GlobalStatus.cpp \
+ GuardUtils.cpp \
+ ImportedFunctionsInliningStatistics.cpp \
+ InlineFunction.cpp \
+ InstructionNamer.cpp \
+ IntegerDivision.cpp \
+ LCSSA.cpp \
+ LibCallsShrinkWrap.cpp \
+ Local.cpp \
+ LoopRotationUtils.cpp \
+ LoopSimplify.cpp \
+ LoopUnrollAndJam.cpp \
+ LoopUnroll.cpp \
+ LoopUnrollPeel.cpp \
+ LoopUnrollRuntime.cpp \
+ LoopUtils.cpp \
+ LoopVersioning.cpp \
+ LowerInvoke.cpp \
+ LowerMemIntrinsics.cpp \
+ LowerSwitch.cpp \
+ Mem2Reg.cpp \
+ MetaRenamer.cpp \
+ MisExpect.cpp \
+ ModuleUtils.cpp \
+ NameAnonGlobals.cpp \
+ PredicateInfo.cpp \
+ PromoteMemoryToRegister.cpp \
+ SanitizerStats.cpp \
+ SimplifyCFG.cpp \
+ SimplifyIndVar.cpp \
+ SimplifyLibCalls.cpp \
+ SizeOpts.cpp \
+ SplitModule.cpp \
+ SSAUpdaterBulk.cpp \
+ SSAUpdater.cpp \
+ StripGCRelocates.cpp \
+ StripNonLineTableDebugInfo.cpp \
+ SymbolRewriter.cpp \
+ UnifyFunctionExitNodes.cpp \
+ Utils.cpp \
+ ValueMapper.cpp \
+ VNCoercion.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMVectorize/Makefile b/external/apache2/llvm/lib/libLLVMVectorize/Makefile
new file mode 100644
index 00000000000..fc1c6c6aae5
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMVectorize/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMVectorize
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/Vectorize
+
+SRCS+= LoadStoreVectorizer.cpp \
+ LoopVectorizationLegality.cpp \
+ LoopVectorize.cpp \
+ SLPVectorizer.cpp \
+ Vectorize.cpp \
+ VPlan.cpp \
+ VPlanHCFGBuilder.cpp \
+ VPlanHCFGTransforms.cpp \
+ VPlanPredicator.cpp \
+ VPlanSLP.cpp \
+ VPlanVerifier.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMX86AsmParser/Makefile b/external/apache2/llvm/lib/libLLVMX86AsmParser/Makefile
new file mode 100644
index 00000000000..ef260244bbb
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMX86AsmParser/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMX86AsmParser
+
+.include <bsd.init.mk>
+
+X86_OBJDIR!= cd ${.CURDIR}/../libLLVMX86CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/X86
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/X86/AsmParser
+
+SRCS+= X86AsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMX86CodeGen/Makefile b/external/apache2/llvm/lib/libLLVMX86CodeGen/Makefile
new file mode 100644
index 00000000000..e75f4a70950
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMX86CodeGen/Makefile
@@ -0,0 +1,80 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMX86CodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/X86
+
+SRCS+= X86AsmPrinter.cpp \
+ X86AvoidStoreForwardingBlocks.cpp \
+ X86AvoidTrailingCall.cpp \
+ X86CallFrameOptimization.cpp \
+ X86CallingConv.cpp \
+ X86CallLowering.cpp \
+ X86CmovConversion.cpp \
+ X86CondBrFolding.cpp \
+ X86DiscriminateMemOps.cpp \
+ X86DomainReassignment.cpp \
+ X86EvexToVex.cpp\
+ X86ExpandPseudo.cpp \
+ X86FastISel.cpp \
+ X86FixupBWInsts.cpp \
+ X86FixupLEAs.cpp \
+ X86FixupSetCC.cpp \
+ X86FlagsCopyLowering.cpp \
+ X86FloatingPoint.cpp \
+ X86FrameLowering.cpp \
+ X86IndirectBranchTracking.cpp \
+ X86InsertPrefetch.cpp \
+ X86InstrFMA3Info.cpp \
+ X86InstrFoldTables.cpp \
+ X86InstrInfo.cpp \
+ X86InstructionSelector.cpp \
+ X86InterleavedAccess.cpp \
+ X86ISelDAGToDAG.cpp \
+ X86ISelLowering.cpp \
+ X86LegalizerInfo.cpp \
+ X86MachineFunctionInfo.cpp \
+ X86MacroFusion.cpp \
+ X86MCInstLower.cpp \
+ X86OptimizeLEAs.cpp \
+ X86PadShortFunction.cpp \
+ X86RegisterBankInfo.cpp \
+ X86RegisterInfo.cpp \
+ X86RetpolineThunks.cpp \
+ X86SelectionDAGInfo.cpp \
+ X86ShuffleDecodeConstantPool.cpp \
+ X86SpeculativeLoadHardening.cpp \
+ X86Subtarget.cpp \
+ X86TargetMachine.cpp \
+ X86TargetObjectFile.cpp \
+ X86TargetTransformInfo.cpp \
+ X86VZeroUpper.cpp \
+ X86WinAllocaExpander.cpp \
+ X86WinEHState.cpp
+
+TABLEGEN_SRC= X86.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/X86
+TABLEGEN_OUTPUT= \
+ X86GenAsmMatcher.inc|-gen-asm-matcher \
+ X86GenAsmWriter.inc|-gen-asm-writer \
+ X86GenAsmWriter1.inc|-gen-asm-writer^-asmwriternum=1 \
+ X86GenCallingConv.inc|-gen-callingconv \
+ X86GenDAGISel.inc|-gen-dag-isel \
+ X86GenDisassemblerTables.inc|-gen-disassembler \
+ X86GenEVEX2VEXTables.inc|-gen-x86-EVEX2VEX-tables \
+ X86GenFastISel.inc|-gen-fast-isel \
+ X86GenGlobalISel.inc|-gen-global-isel \
+ X86GenInstrInfo.inc|-gen-instr-info \
+ X86GenRegisterBank.inc|-gen-register-bank \
+ X86GenRegisterInfo.inc|-gen-register-info \
+ X86GenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMX86Disassembler/Makefile b/external/apache2/llvm/lib/libLLVMX86Disassembler/Makefile
new file mode 100644
index 00000000000..826f73891ab
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMX86Disassembler/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMX86Disassembler
+
+.include <bsd.init.mk>
+
+X86_OBJDIR!= cd ${.CURDIR}/../libLLVMX86CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/X86
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/X86/Disassembler
+
+SRCS+= X86Disassembler.cpp \
+ X86DisassemblerDecoder.cpp
+
+.for src in ${SRCS:M*.c}
+CPPFLAGS.${src}+= -std=gnu99
+.endfor
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMX86MCTargetDesc/Makefile b/external/apache2/llvm/lib/libLLVMX86MCTargetDesc/Makefile
new file mode 100644
index 00000000000..07194b65db3
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMX86MCTargetDesc/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:13 joerg Exp $
+
+LIB= LLVMX86MCTargetDesc
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/X86/MCTargetDesc
+
+X86_OBJDIR!= cd ${.CURDIR}/../libLLVMX86CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/X86
+
+SRCS+= X86AsmBackend.cpp \
+ X86ATTInstPrinter.cpp \
+ X86ELFObjectWriter.cpp \
+ X86InstComments.cpp \
+ X86InstPrinterCommon.cpp \
+ X86IntelInstPrinter.cpp \
+ X86MachObjectWriter.cpp \
+ X86MCAsmInfo.cpp \
+ X86MCCodeEmitter.cpp \
+ X86MCTargetDesc.cpp \
+ X86WinCOFFObjectWriter.cpp \
+ X86WinCOFFStreamer.cpp \
+ X86WinCOFFTargetStreamer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMX86TargetInfo/Makefile b/external/apache2/llvm/lib/libLLVMX86TargetInfo/Makefile
new file mode 100644
index 00000000000..f443b6bef18
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMX86TargetInfo/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= LLVMX86TargetInfo
+
+.include <bsd.init.mk>
+
+X86_OBJDIR!= cd ${.CURDIR}/../libLLVMX86CodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/X86
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/X86/TargetInfo
+
+SRCS+= X86TargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMX86Utils/Makefile b/external/apache2/llvm/lib/libLLVMX86Utils/Makefile
new file mode 100644
index 00000000000..abbe7104695
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMX86Utils/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= LLVMX86Utils
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/X86/Utils
+
+SRCS+= X86ShuffleDecode.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMXRay/Makefile b/external/apache2/llvm/lib/libLLVMXRay/Makefile
new file mode 100644
index 00000000000..52e0b57e70b
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMXRay/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= LLVMXRay
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/XRay
+
+SRCS+= BlockIndexer.cpp \
+ BlockPrinter.cpp \
+ BlockVerifier.cpp \
+ FDRRecordProducer.cpp \
+ FDRRecords.cpp \
+ FDRTraceExpander.cpp \
+ FDRTraceWriter.cpp \
+ FileHeaderReader.cpp \
+ InstrumentationMap.cpp \
+ LogBuilderConsumer.cpp \
+ Profile.cpp \
+ RecordInitializer.cpp \
+ RecordPrinter.cpp \
+ Trace.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libLLVMipo/Makefile b/external/apache2/llvm/lib/libLLVMipo/Makefile
new file mode 100644
index 00000000000..adf9029edfa
--- /dev/null
+++ b/external/apache2/llvm/lib/libLLVMipo/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= LLVMipo
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Transforms/IPO
+
+SRCS+= AlwaysInliner.cpp \
+ ArgumentPromotion.cpp \
+ Attributor.cpp \
+ BarrierNoopPass.cpp \
+ BlockExtractor.cpp \
+ CalledValuePropagation.cpp \
+ ConstantMerge.cpp \
+ CrossDSOCFI.cpp \
+ DeadArgumentElimination.cpp \
+ ElimAvailExtern.cpp \
+ ExtractGV.cpp \
+ ForceFunctionAttrs.cpp \
+ FunctionAttrs.cpp \
+ FunctionImport.cpp \
+ GlobalDCE.cpp \
+ GlobalOpt.cpp \
+ GlobalSplit.cpp \
+ HotColdSplitting.cpp \
+ InferFunctionAttrs.cpp \
+ Inliner.cpp \
+ InlineSimple.cpp \
+ Internalize.cpp \
+ IPConstantPropagation.cpp \
+ IPO.cpp \
+ LoopExtractor.cpp \
+ LowerTypeTests.cpp \
+ MergeFunctions.cpp \
+ PartialInlining.cpp \
+ PassManagerBuilder.cpp \
+ PruneEH.cpp \
+ SampleProfile.cpp \
+ SCCP.cpp \
+ StripDeadPrototypes.cpp \
+ StripSymbols.cpp \
+ SyntheticCountsPropagation.cpp \
+ ThinLTOBitcodeWriter.cpp \
+ WholeProgramDevirt.cpp
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangARCMigrate/Makefile b/external/apache2/llvm/lib/libclangARCMigrate/Makefile
new file mode 100644
index 00000000000..89acf37721d
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangARCMigrate/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= clangARCMigrate
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/ARCMigrate
+
+SRCS+= ARCMT.cpp \
+ ARCMTActions.cpp \
+ ObjCMT.cpp \
+ FileRemapper.cpp \
+ PlistReporter.cpp \
+ TransAPIUses.cpp \
+ TransARCAssign.cpp \
+ TransAutoreleasePool.cpp \
+ TransBlockObjCVariable.cpp \
+ TransEmptyStatementsAndDealloc.cpp \
+ TransGCAttrs.cpp \
+ TransGCCalls.cpp \
+ TransProperties.cpp \
+ TransProtectedScope.cpp \
+ TransRetainReleaseDealloc.cpp \
+ TransUnbridgedCasts.cpp \
+ TransUnusedInitDelegate.cpp \
+ TransZeroOutPropsInDealloc.cpp \
+ Transforms.cpp \
+ TransformActions.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangAST/Makefile b/external/apache2/llvm/lib/libclangAST/Makefile
new file mode 100644
index 00000000000..764fcf88a93
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangAST/Makefile
@@ -0,0 +1,117 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= clangAST
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/AST
+
+SRCS+= APValue.cpp \
+ ASTConsumer.cpp \
+ ASTContext.cpp \
+ ASTDiagnostic.cpp \
+ ASTDumper.cpp \
+ ASTImporter.cpp \
+ ASTImporterLookupTable.cpp \
+ ASTStructuralEquivalence.cpp \
+ ASTTypeTraits.cpp \
+ AttrImpl.cpp \
+ CommentBriefParser.cpp \
+ CommentCommandTraits.cpp \
+ Comment.cpp \
+ CommentLexer.cpp \
+ CommentParser.cpp \
+ CommentSema.cpp \
+ ComparisonCategories.cpp \
+ CXXInheritance.cpp \
+ DataCollection.cpp \
+ DeclarationName.cpp \
+ DeclBase.cpp \
+ Decl.cpp \
+ DeclCXX.cpp \
+ DeclFriend.cpp \
+ DeclGroup.cpp \
+ DeclObjC.cpp \
+ DeclOpenMP.cpp \
+ DeclPrinter.cpp \
+ DeclTemplate.cpp \
+ ExprClassification.cpp \
+ ExprConstant.cpp \
+ Expr.cpp \
+ ExprCXX.cpp \
+ ExprObjC.cpp \
+ ExternalASTMerger.cpp \
+ ExternalASTSource.cpp \
+ FormatString.cpp \
+ InheritViz.cpp \
+ ItaniumCXXABI.cpp \
+ ItaniumMangle.cpp \
+ JSONNodeDumper.cpp \
+ Mangle.cpp \
+ MicrosoftCXXABI.cpp \
+ MicrosoftMangle.cpp \
+ NestedNameSpecifier.cpp \
+ NSAPI.cpp \
+ ODRHash.cpp \
+ OpenMPClause.cpp \
+ OSLog.cpp \
+ ParentMap.cpp \
+ PrintfFormatString.cpp \
+ QualTypeNames.cpp \
+ RawCommentList.cpp \
+ RecordLayoutBuilder.cpp \
+ RecordLayout.cpp \
+ ScanfFormatString.cpp \
+ SelectorLocationsKind.cpp \
+ Stmt.cpp \
+ StmtCXX.cpp \
+ StmtIterator.cpp \
+ StmtObjC.cpp \
+ StmtOpenMP.cpp \
+ StmtPrinter.cpp \
+ StmtProfile.cpp \
+ StmtViz.cpp \
+ TemplateBase.cpp \
+ TemplateName.cpp \
+ TextNodeDumper.cpp \
+ Type.cpp \
+ TypeLoc.cpp \
+ TypePrinter.cpp \
+ VTableBuilder.cpp \
+ VTTBuilder.cpp
+
+.PATH: ${CLANG_SRCDIR}/lib/AST/Interp
+
+SRCS+= Block.cpp \
+ ByteCodeEmitter.cpp \
+ ByteCodeExprGen.cpp \
+ ByteCodeGenError.cpp \
+ ByteCodeStmtGen.cpp \
+ Context.cpp \
+ Descriptor.cpp \
+ Disasm.cpp \
+ EvalEmitter.cpp \
+ Frame.cpp \
+ Function.cpp \
+ Interp.cpp \
+ InterpFrame.cpp \
+ InterpStack.cpp \
+ InterpState.cpp \
+ Pointer.cpp \
+ PrimType.cpp \
+ Program.cpp \
+ Record.cpp \
+ Source.cpp \
+ State.cpp
+
+CLANG_TABLEGEN_SRC= Opcodes.td
+CLANG_TABLEGEN_OUTPUT= \
+ Opcodes.inc|-gen-clang-opcodes
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangASTMatchers/Makefile b/external/apache2/llvm/lib/libclangASTMatchers/Makefile
new file mode 100644
index 00000000000..245bc24cbdc
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangASTMatchers/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= clangASTMatchers
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/ASTMatchers
+
+SRCS+= ASTMatchFinder.cpp \
+ ASTMatchersInternal.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangASTMatchersDynamic/Makefile b/external/apache2/llvm/lib/libclangASTMatchersDynamic/Makefile
new file mode 100644
index 00000000000..63348c149f5
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangASTMatchersDynamic/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= clangASTMatchersDynamic
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/ASTMatchers/Dynamic
+
+SRCS+= Diagnostics.cpp \
+ Parser.cpp \
+ Registry.cpp \
+ VariantValue.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangAnalysis/Makefile b/external/apache2/llvm/lib/libclangAnalysis/Makefile
new file mode 100644
index 00000000000..f620bcedffb
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangAnalysis/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+
+LIB= clangAnalysis
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Analysis
+
+SRCS+= AnalysisDeclContext.cpp \
+ BodyFarm.cpp \
+ CallGraph.cpp \
+ CFG.cpp \
+ CFGReachabilityAnalysis.cpp \
+ CFGStmtMap.cpp \
+ CloneDetection.cpp \
+ CocoaConventions.cpp \
+ CodeInjector.cpp \
+ ConstructionContext.cpp \
+ Consumed.cpp \
+ Dominators.cpp \
+ ExprMutationAnalyzer.cpp \
+ LiveVariables.cpp \
+ ObjCNoReturn.cpp \
+ PathDiagnostic.cpp \
+ PostOrderCFGView.cpp \
+ ProgramPoint.cpp \
+ ReachableCode.cpp \
+ RetainSummaryManager.cpp \
+ ThreadSafetyCommon.cpp \
+ ThreadSafety.cpp \
+ ThreadSafetyLogical.cpp \
+ ThreadSafetyTIL.cpp \
+ UninitializedValues.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangBasic/Makefile b/external/apache2/llvm/lib/libclangBasic/Makefile
new file mode 100644
index 00000000000..32867bd771f
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangBasic/Makefile
@@ -0,0 +1,76 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangBasic
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Basic
+
+SRCS+= Attributes.cpp \
+ Builtins.cpp \
+ CharInfo.cpp \
+ CodeGenOptions.cpp \
+ Cuda.cpp \
+ Diagnostic.cpp \
+ DiagnosticIDs.cpp \
+ DiagnosticOptions.cpp \
+ FileManager.cpp \
+ FileSystemStatCache.cpp \
+ FixedPoint.cpp \
+ IdentifierTable.cpp \
+ LangOptions.cpp \
+ LangStandards.cpp \
+ Module.cpp \
+ ObjCRuntime.cpp \
+ OpenMPKinds.cpp \
+ OperatorPrecedence.cpp \
+ SanitizerBlacklist.cpp \
+ Sanitizers.cpp \
+ SanitizerSpecialCaseList.cpp \
+ SourceLocation.cpp \
+ SourceManager.cpp \
+ Stack.cpp \
+ TargetInfo.cpp \
+ Targets.cpp \
+ TokenKinds.cpp \
+ Version.cpp \
+ Warnings.cpp \
+ XRayInstr.cpp \
+ XRayLists.cpp
+
+.PATH: ${CLANG_SRCDIR}/lib/Basic/Targets
+
+SRCS+= AArch64.cpp \
+ AMDGPU.cpp \
+ ARC.cpp \
+ ARM.cpp \
+ AVR.cpp \
+ BPF.cpp \
+ Hexagon.cpp \
+ Lanai.cpp \
+ Le64.cpp \
+ MSP430.cpp \
+ Mips.cpp \
+ NVPTX.cpp \
+ OSTargets.cpp \
+ PNaCl.cpp \
+ PPC.cpp \
+ RISCV.cpp \
+ SPIR.cpp \
+ Sparc.cpp \
+ SystemZ.cpp \
+ TCE.cpp \
+ WebAssembly.cpp \
+ X86.cpp \
+ XCore.cpp
+
+CPPFLAGS+= -I${CLANG_SRCDIR}/lib/Basic
+
+CPPFLAGS.Version.cpp= -DSVN_REVISION=\"${CLANG_REVISION}\" \
+ -DLLVM_REVISION=\"${LLVM_REVISION}\"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangCodeGen/Makefile b/external/apache2/llvm/lib/libclangCodeGen/Makefile
new file mode 100644
index 00000000000..1f35fd40ba8
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangCodeGen/Makefile
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/CodeGen
+
+SRCS+= BackendUtil.cpp \
+ CGAtomic.cpp \
+ CGBlocks.cpp \
+ CGBuiltin.cpp \
+ CGCUDANV.cpp \
+ CGCUDARuntime.cpp \
+ CGCXX.cpp \
+ CGCXXABI.cpp \
+ CGCall.cpp \
+ CGClass.cpp \
+ CGCleanup.cpp \
+ CGCoroutine.cpp \
+ CGDebugInfo.cpp \
+ CGDecl.cpp \
+ CGDeclCXX.cpp \
+ CGException.cpp \
+ CGExpr.cpp \
+ CGExprAgg.cpp \
+ CGExprComplex.cpp \
+ CGExprConstant.cpp \
+ CGExprCXX.cpp \
+ CGExprScalar.cpp \
+ CGGPUBuiltin.cpp \
+ CGLoopInfo.cpp \
+ CGNonTrivialStruct.cpp \
+ CGObjC.cpp \
+ CGObjCGNU.cpp \
+ CGObjCMac.cpp \
+ CGObjCRuntime.cpp \
+ CGOpenCLRuntime.cpp \
+ CGOpenMPRuntime.cpp \
+ CGOpenMPRuntimeNVPTX.cpp \
+ CGRecordLayoutBuilder.cpp \
+ CGStmt.cpp \
+ CGStmtOpenMP.cpp \
+ CGVTables.cpp \
+ CGVTT.cpp \
+ CodeGenABITypes.cpp \
+ CodeGenAction.cpp \
+ CodeGenFunction.cpp \
+ CodeGenModule.cpp \
+ CodeGenPGO.cpp \
+ CodeGenTBAA.cpp \
+ CodeGenTypes.cpp \
+ ConstantInitBuilder.cpp \
+ CoverageMappingGen.cpp \
+ ItaniumCXXABI.cpp \
+ MacroPPCallbacks.cpp \
+ MicrosoftCXXABI.cpp \
+ ModuleBuilder.cpp \
+ ObjectFilePCHContainerOperations.cpp \
+ PatternInit.cpp \
+ SanitizerMetadata.cpp \
+ SwiftCallingConv.cpp \
+ TargetInfo.cpp \
+ VarBypassDetector.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangCrossTU/Makefile b/external/apache2/llvm/lib/libclangCrossTU/Makefile
new file mode 100644
index 00000000000..2e7e00b50f1
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangCrossTU/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangCrossTU
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/CrossTU
+
+SRCS+= CrossTranslationUnit.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangDriver/Makefile b/external/apache2/llvm/lib/libclangDriver/Makefile
new file mode 100644
index 00000000000..22f513aa3cb
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangDriver/Makefile
@@ -0,0 +1,83 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangDriver
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Driver
+
+CPPFLAGS+= -I${CLANG_SRCDIR}/lib/Driver
+
+SRCS+= Action.cpp \
+ Compilation.cpp \
+ DarwinSDKInfo.cpp \
+ Distro.cpp \
+ Driver.cpp \
+ DriverOptions.cpp \
+ Job.cpp \
+ Multilib.cpp \
+ Phases.cpp \
+ SanitizerArgs.cpp \
+ Tool.cpp \
+ ToolChain.cpp \
+ Types.cpp \
+ XRayArgs.cpp
+
+.PATH: ${CLANG_SRCDIR}/lib/Driver/ToolChains
+
+SRCS+= AMDGPU.cpp \
+ Ananas.cpp \
+ AIX.cpp \
+ AVR.cpp \
+ BareMetal.cpp \
+ Clang.cpp \
+ CloudABI.cpp \
+ CommonArgs.cpp \
+ Contiki.cpp \
+ CrossWindows.cpp \
+ Cuda.cpp \
+ Darwin.cpp \
+ DragonFly.cpp \
+ FreeBSD.cpp \
+ Fuchsia.cpp \
+ Gnu.cpp \
+ Haiku.cpp \
+ Hexagon.cpp \
+ HIP.cpp \
+ Hurd.cpp \
+ InterfaceStubs.cpp \
+ Linux.cpp \
+ MinGW.cpp \
+ Minix.cpp \
+ MipsLinux.cpp \
+ MSP430.cpp \
+ MSVC.cpp \
+ Myriad.cpp \
+ NaCl.cpp \
+ NetBSD.cpp \
+ OpenBSD.cpp \
+ PPCLinux.cpp \
+ PS4CPU.cpp \
+ RISCVToolchain.cpp \
+ Solaris.cpp \
+ TCE.cpp \
+ WebAssembly.cpp \
+ XCore.cpp
+
+.PATH: ${CLANG_SRCDIR}/lib/Driver/ToolChains/Arch
+
+SRCS+= AArch64.cpp \
+ ARM.cpp \
+ Mips.cpp \
+ PPC.cpp \
+ RISCV.cpp \
+ Sparc.cpp \
+ SystemZ.cpp \
+ X86.cpp
+
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangEdit/Makefile b/external/apache2/llvm/lib/libclangEdit/Makefile
new file mode 100644
index 00000000000..24adcd3b32e
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangEdit/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangEdit
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Edit
+
+SRCS+= Commit.cpp \
+ EditedSource.cpp \
+ RewriteObjCFoundationAPI.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangFormat/Makefile b/external/apache2/llvm/lib/libclangFormat/Makefile
new file mode 100644
index 00000000000..1af9fd0577c
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangFormat/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangFormat
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Format
+
+SRCS+= AffectedRangeManager.cpp \
+ BreakableToken.cpp \
+ ContinuationIndenter.cpp \
+ Format.cpp \
+ FormatToken.cpp \
+ FormatTokenLexer.cpp \
+ NamespaceEndCommentsFixer.cpp \
+ SortJavaScriptImports.cpp \
+ TokenAnalyzer.cpp \
+ TokenAnnotator.cpp \
+ UnwrappedLineFormatter.cpp \
+ UnwrappedLineParser.cpp \
+ UsingDeclarationsSorter.cpp \
+ WhitespaceManager.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangFrontend/Makefile b/external/apache2/llvm/lib/libclangFrontend/Makefile
new file mode 100644
index 00000000000..97bfef79093
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangFrontend/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangFrontend
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Frontend
+
+SRCS+= ASTConsumers.cpp \
+ ASTMerge.cpp \
+ ASTUnit.cpp \
+ ChainedDiagnosticConsumer.cpp \
+ ChainedIncludesSource.cpp \
+ CompilerInstance.cpp \
+ CompilerInvocation.cpp \
+ CreateInvocationFromCommandLine.cpp \
+ DependencyFile.cpp \
+ DependencyGraph.cpp \
+ DiagnosticRenderer.cpp \
+ FrontendAction.cpp \
+ FrontendActions.cpp \
+ FrontendOptions.cpp \
+ FrontendTiming.cpp \
+ HeaderIncludeGen.cpp \
+ InitHeaderSearch.cpp \
+ InitPreprocessor.cpp \
+ InterfaceStubFunctionsConsumer.cpp \
+ LayoutOverrideSource.cpp \
+ LogDiagnosticPrinter.cpp \
+ ModuleDependencyCollector.cpp \
+ MultiplexConsumer.cpp \
+ PrecompiledPreamble.cpp \
+ PrintPreprocessedOutput.cpp \
+ SerializedDiagnosticPrinter.cpp \
+ SerializedDiagnosticReader.cpp \
+ TestModuleFileExtension.cpp \
+ TextDiagnostic.cpp \
+ TextDiagnosticBuffer.cpp \
+ TextDiagnosticPrinter.cpp \
+ VerifyDiagnosticConsumer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangFrontendRewrite/Makefile b/external/apache2/llvm/lib/libclangFrontendRewrite/Makefile
new file mode 100644
index 00000000000..70fa04f239f
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangFrontendRewrite/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangFrontendRewrite
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Frontend/Rewrite
+
+SRCS+= FixItRewriter.cpp \
+ FrontendActions.cpp \
+ HTMLPrint.cpp \
+ InclusionRewriter.cpp \
+ RewriteMacros.cpp \
+ RewriteModernObjC.cpp \
+ RewriteObjC.cpp \
+ RewriteTest.cpp
+
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangFrontendTool/Makefile b/external/apache2/llvm/lib/libclangFrontendTool/Makefile
new file mode 100644
index 00000000000..15a6b348813
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangFrontendTool/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $
+
+LIB= clangFrontendTool
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/FrontendTool
+
+SRCS+= ExecuteCompilerInvocation.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangIndex/Makefile b/external/apache2/llvm/lib/libclangIndex/Makefile
new file mode 100644
index 00000000000..c714969c743
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangIndex/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangIndex
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Index
+
+SRCS+= CommentToXML.cpp \
+ FileIndexRecord.cpp \
+ IndexBody.cpp \
+ IndexDecl.cpp \
+ IndexingAction.cpp \
+ IndexingContext.cpp \
+ IndexSymbol.cpp \
+ IndexTypeSourceInfo.cpp \
+ USRGeneration.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangLex/Makefile b/external/apache2/llvm/lib/libclangLex/Makefile
new file mode 100644
index 00000000000..38eeec0f6f9
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangLex/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangLex
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Lex
+
+SRCS+= DependencyDirectivesSourceMinimizer.cpp \
+ HeaderMap.cpp \
+ HeaderSearch.cpp \
+ Lexer.cpp \
+ LiteralSupport.cpp \
+ MacroArgs.cpp \
+ MacroInfo.cpp \
+ ModuleMap.cpp \
+ PPCaching.cpp \
+ PPCallbacks.cpp \
+ PPConditionalDirectiveRecord.cpp \
+ PPDirectives.cpp \
+ PPExpressions.cpp \
+ PPLexerChange.cpp \
+ PPMacroExpansion.cpp \
+ Pragma.cpp \
+ PreprocessingRecord.cpp \
+ Preprocessor.cpp \
+ PreprocessorLexer.cpp \
+ ScratchBuffer.cpp \
+ TokenConcatenation.cpp \
+ TokenLexer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangParse/Makefile b/external/apache2/llvm/lib/libclangParse/Makefile
new file mode 100644
index 00000000000..3e98604a810
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangParse/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangParse
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Parse
+
+SRCS+= ParseAST.cpp \
+ ParseCXXInlineMethods.cpp \
+ ParseDecl.cpp \
+ ParseDeclCXX.cpp \
+ ParseExpr.cpp \
+ ParseExprCXX.cpp \
+ ParseInit.cpp \
+ ParseObjc.cpp \
+ ParseOpenMP.cpp \
+ ParsePragma.cpp \
+ ParseStmt.cpp \
+ ParseStmtAsm.cpp \
+ ParseTemplate.cpp \
+ ParseTentative.cpp \
+ Parser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangRewrite/Makefile b/external/apache2/llvm/lib/libclangRewrite/Makefile
new file mode 100644
index 00000000000..6506a8cd781
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangRewrite/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangRewrite
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Rewrite
+
+SRCS+= DeltaTree.cpp \
+ HTMLRewrite.cpp \
+ RewriteRope.cpp \
+ Rewriter.cpp \
+ TokenRewriter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangSema/Makefile b/external/apache2/llvm/lib/libclangSema/Makefile
new file mode 100644
index 00000000000..655a4729c4f
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangSema/Makefile
@@ -0,0 +1,69 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangSema
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Sema
+
+SRCS+= AnalysisBasedWarnings.cpp \
+ CodeCompleteConsumer.cpp \
+ DeclSpec.cpp \
+ DelayedDiagnostic.cpp \
+ IdentifierResolver.cpp \
+ JumpDiagnostics.cpp \
+ MultiplexExternalSemaSource.cpp \
+ ParsedAttr.cpp \
+ Scope.cpp \
+ ScopeInfo.cpp \
+ Sema.cpp \
+ SemaAccess.cpp \
+ SemaAttr.cpp \
+ SemaCUDA.cpp \
+ SemaCXXScopeSpec.cpp \
+ SemaCast.cpp \
+ SemaChecking.cpp \
+ SemaCodeComplete.cpp \
+ SemaConcept.cpp \
+ SemaConsumer.cpp \
+ SemaCoroutine.cpp \
+ SemaDecl.cpp \
+ SemaDeclAttr.cpp \
+ SemaDeclCXX.cpp \
+ SemaDeclObjC.cpp \
+ SemaExceptionSpec.cpp \
+ SemaExpr.cpp \
+ SemaExprCXX.cpp \
+ SemaExprObjC.cpp \
+ SemaExprMember.cpp \
+ SemaFixItUtils.cpp \
+ SemaInit.cpp \
+ SemaLambda.cpp \
+ SemaLookup.cpp \
+ SemaModule.cpp \
+ SemaObjCProperty.cpp \
+ SemaOpenMP.cpp \
+ SemaOverload.cpp \
+ SemaPseudoObject.cpp \
+ SemaStmt.cpp \
+ SemaStmtAsm.cpp \
+ SemaStmtAttr.cpp \
+ SemaTemplate.cpp \
+ SemaTemplateDeduction.cpp \
+ SemaTemplateInstantiate.cpp \
+ SemaTemplateInstantiateDecl.cpp \
+ SemaTemplateVariadic.cpp \
+ SemaType.cpp \
+ TypeLocBuilder.cpp
+
+CLANG_TABLEGEN_SRC= OpenCLBuiltins.td
+CLANG_TABLEGEN_OUTPUT= \
+ OpenCLBuiltins.inc|-gen-clang-opencl-builtins
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangSerialization/Makefile b/external/apache2/llvm/lib/libclangSerialization/Makefile
new file mode 100644
index 00000000000..f1c602ce900
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangSerialization/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangSerialization
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Serialization
+
+SRCS+= ASTCommon.cpp \
+ ASTReader.cpp \
+ ASTReaderDecl.cpp \
+ ASTReaderStmt.cpp \
+ ASTWriter.cpp \
+ ASTWriterDecl.cpp \
+ ASTWriterStmt.cpp \
+ GeneratePCH.cpp \
+ GlobalModuleIndex.cpp \
+ InMemoryModuleCache.cpp \
+ Module.cpp \
+ ModuleFileExtension.cpp \
+ ModuleManager.cpp \
+ PCHContainerOperations.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangStaticAnalyzerCheckers/Makefile b/external/apache2/llvm/lib/libclangStaticAnalyzerCheckers/Makefile
new file mode 100644
index 00000000000..85963e48153
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangStaticAnalyzerCheckers/Makefile
@@ -0,0 +1,123 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangStaticAnalyzerCheckers
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Checkers
+.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Checkers/MPI-Checker
+.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Checkers/RetainCountChecker
+.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Checkers/UninitializedObject
+
+SRCS+= AnalysisOrderChecker.cpp \
+ AnalyzerStatsChecker.cpp \
+ ArrayBoundChecker.cpp \
+ ArrayBoundCheckerV2.cpp \
+ BasicObjCFoundationChecks.cpp \
+ BlockInCriticalSectionChecker.cpp \
+ BoolAssignmentChecker.cpp \
+ BuiltinFunctionChecker.cpp \
+ CallAndMessageChecker.cpp \
+ CastSizeChecker.cpp \
+ CastToStructChecker.cpp \
+ CastValueChecker.cpp \
+ CheckerDocumentation.cpp \
+ CheckObjCDealloc.cpp \
+ CheckObjCInstMethSignature.cpp \
+ CheckSecuritySyntaxOnly.cpp \
+ CheckSizeofPointer.cpp \
+ ChrootChecker.cpp \
+ CloneChecker.cpp \
+ ConversionChecker.cpp \
+ CStringChecker.cpp \
+ CStringSyntaxChecker.cpp \
+ CXXSelfAssignmentChecker.cpp \
+ DeadStoresChecker.cpp \
+ DebugCheckers.cpp \
+ DeleteWithNonVirtualDtorChecker.cpp \
+ DereferenceChecker.cpp \
+ DirectIvarAssignment.cpp \
+ DivZeroChecker.cpp \
+ DynamicTypeChecker.cpp \
+ DynamicTypePropagation.cpp \
+ EnumCastOutOfRangeChecker.cpp \
+ ExprInspectionChecker.cpp \
+ FixedAddressChecker.cpp \
+ GCDAntipatternChecker.cpp \
+ GenericTaintChecker.cpp \
+ GTestChecker.cpp \
+ IdenticalExprChecker.cpp \
+ InnerPointerChecker.cpp \
+ IteratorChecker.cpp \
+ IvarInvalidationChecker.cpp \
+ LLVMConventionsChecker.cpp \
+ LocalizationChecker.cpp \
+ MacOSKeychainAPIChecker.cpp \
+ MacOSXAPIChecker.cpp \
+ MallocChecker.cpp \
+ MallocOverflowSecurityChecker.cpp \
+ MallocSizeofChecker.cpp \
+ MIGChecker.cpp \
+ MmapWriteExecChecker.cpp \
+ MoveChecker.cpp \
+ MPIBugReporter.cpp \
+ MPIChecker.cpp \
+ MPIFunctionClassifier.cpp \
+ NonnullGlobalConstantsChecker.cpp \
+ NonNullParamChecker.cpp \
+ NoReturnFunctionChecker.cpp \
+ NSAutoreleasePoolChecker.cpp \
+ NSErrorChecker.cpp \
+ NullabilityChecker.cpp \
+ NumberObjectConversionChecker.cpp \
+ ObjCAtSyncChecker.cpp \
+ ObjCAutoreleaseWriteChecker.cpp \
+ ObjCContainersASTChecker.cpp \
+ ObjCContainersChecker.cpp \
+ ObjCMissingSuperCallChecker.cpp \
+ ObjCPropertyChecker.cpp \
+ ObjCSelfInitChecker.cpp \
+ ObjCSuperDeallocChecker.cpp \
+ ObjCUnusedIVarsChecker.cpp \
+ OSObjectCStyleCast.cpp \
+ PaddingChecker.cpp \
+ PointerArithChecker.cpp \
+ PointerIterationChecker.cpp \
+ PointerSortingChecker.cpp \
+ PointerSubChecker.cpp \
+ PthreadLockChecker.cpp \
+ RetainCountChecker.cpp \
+ RetainCountDiagnostics.cpp \
+ ReturnPointerRangeChecker.cpp \
+ ReturnValueChecker.cpp \
+ ReturnUndefChecker.cpp \
+ RunLoopAutoreleaseLeakChecker.cpp \
+ SmartPtrModeling.cpp \
+ SimpleStreamChecker.cpp \
+ StackAddrEscapeChecker.cpp \
+ StdLibraryFunctionsChecker.cpp \
+ StreamChecker.cpp \
+ Taint.cpp \
+ TaintTesterChecker.cpp \
+ TestAfterDivZeroChecker.cpp \
+ TraversalChecker.cpp \
+ TrustNonnullChecker.cpp \
+ UndefBranchChecker.cpp \
+ UndefCapturedBlockVarChecker.cpp \
+ UndefinedArraySubscriptChecker.cpp \
+ UndefinedAssignmentChecker.cpp \
+ UndefResultChecker.cpp \
+ UninitializedObjectChecker.cpp \
+ UninitializedPointee.cpp \
+ UnixAPIChecker.cpp \
+ UnreachableCodeChecker.cpp \
+ ValistChecker.cpp \
+ VforkChecker.cpp \
+ VirtualCallChecker.cpp \
+ VLASizeChecker.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangStaticAnalyzerCore/Makefile b/external/apache2/llvm/lib/libclangStaticAnalyzerCore/Makefile
new file mode 100644
index 00000000000..a9e650ff02d
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangStaticAnalyzerCore/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangStaticAnalyzerCore
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Core
+
+SRCS+= AnalysisManager.cpp \
+ AnalyzerOptions.cpp \
+ APSIntType.cpp \
+ BasicValueFactory.cpp \
+ BlockCounter.cpp \
+ BugReporter.cpp \
+ BugReporterVisitors.cpp \
+ CallEvent.cpp \
+ CheckerContext.cpp \
+ Checker.cpp \
+ CheckerHelpers.cpp \
+ CheckerManager.cpp \
+ CommonBugCategories.cpp \
+ ConstraintManager.cpp \
+ CoreEngine.cpp \
+ DynamicType.cpp \
+ Environment.cpp \
+ ExplodedGraph.cpp \
+ ExprEngineCallAndReturn.cpp \
+ ExprEngineC.cpp \
+ ExprEngine.cpp \
+ ExprEngineCXX.cpp \
+ ExprEngineObjC.cpp \
+ FunctionSummary.cpp \
+ HTMLDiagnostics.cpp \
+ IssueHash.cpp \
+ LoopUnrolling.cpp \
+ LoopWidening.cpp \
+ MemRegion.cpp \
+ PlistDiagnostics.cpp \
+ ProgramState.cpp \
+ RangeConstraintManager.cpp \
+ RangedConstraintManager.cpp \
+ RegionStore.cpp \
+ SarifDiagnostics.cpp \
+ SimpleConstraintManager.cpp \
+ SimpleSValBuilder.cpp \
+ SMTConstraintManager.cpp \
+ Store.cpp \
+ SubEngine.cpp \
+ SValBuilder.cpp \
+ SVals.cpp \
+ SymbolManager.cpp \
+ WorkList.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangStaticAnalyzerFrontend/Makefile b/external/apache2/llvm/lib/libclangStaticAnalyzerFrontend/Makefile
new file mode 100644
index 00000000000..f810cde7f09
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangStaticAnalyzerFrontend/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:16 joerg Exp $
+
+LIB= clangStaticAnalyzerFrontend
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Frontend
+
+SRCS+= AnalysisConsumer.cpp \
+ CheckerRegistration.cpp \
+ CheckerRegistry.cpp \
+ FrontendActions.cpp \
+ ModelConsumer.cpp \
+ ModelInjector.cpp
+
+CHECKERS_OBJDIR!= cd ${.CURDIR}/../libclangStaticAnalyzerCheckers && ${PRINTOBJDIR}
+CPPFLAGS+= -I${CHECKERS_OBJDIR}
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangTooling/Makefile b/external/apache2/llvm/lib/libclangTooling/Makefile
new file mode 100644
index 00000000000..8018bf69c88
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangTooling/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangTooling
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling
+
+SRCS+= ArgumentsAdjusters.cpp \
+ AllTUsExecution.cpp \
+ CommonOptionsParser.cpp \
+ CompilationDatabase.cpp \
+ Execution.cpp \
+ FileMatchTrie.cpp \
+ FixIt.cpp \
+ GuessTargetAndModeCompilationDatabase.cpp \
+ InterpolatingCompilationDatabase.cpp \
+ JSONCompilationDatabase.cpp \
+ RefactoringCallbacks.cpp \
+ Refactoring.cpp \
+ StandaloneExecution.cpp \
+ Tooling.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingASTDiff/Makefile b/external/apache2/llvm/lib/libclangToolingASTDiff/Makefile
new file mode 100644
index 00000000000..19590bb5774
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingASTDiff/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangASTDiff
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/ASTDiff
+
+SRCS+= ASTDiff.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingCore/Makefile b/external/apache2/llvm/lib/libclangToolingCore/Makefile
new file mode 100644
index 00000000000..196f6739ca0
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingCore/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangToolingCore
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Core
+
+SRCS+= Diagnostic.cpp \
+ Lookup.cpp \
+ Replacement.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingDependencyScanning/Makefile b/external/apache2/llvm/lib/libclangToolingDependencyScanning/Makefile
new file mode 100644
index 00000000000..2258df731e7
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingDependencyScanning/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangToolingDependencyScanning
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/DependencyScanning/
+
+SRCS+= DependencyScanningFilesystem.cpp \
+ DependencyScanningService.cpp \
+ DependencyScanningTool.cpp \
+ DependencyScanningWorker.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingInclusions/Makefile b/external/apache2/llvm/lib/libclangToolingInclusions/Makefile
new file mode 100644
index 00000000000..f9d3ed2785d
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingInclusions/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangToolingInclusions
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Inclusions
+
+SRCS+= HeaderIncludes.cpp \
+ IncludeStyle.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingRefactoring/Makefile b/external/apache2/llvm/lib/libclangToolingRefactoring/Makefile
new file mode 100644
index 00000000000..af628fec527
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingRefactoring/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangToolingRefactoring
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Refactoring
+
+SRCS+= ASTSelection.cpp \
+ ASTSelectionRequirements.cpp \
+ AtomicChange.cpp \
+ RefactoringActions.cpp
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Refactoring/Extract
+
+SRCS+= Extract.cpp \
+ SourceExtraction.cpp
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Refactoring/Rename
+
+SRCS+= RenamingAction.cpp \
+ SymbolOccurrences.cpp \
+ USRFinder.cpp \
+ USRFindingAction.cpp \
+ USRLocFinder.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingSyntax/Makefile b/external/apache2/llvm/lib/libclangToolingSyntax/Makefile
new file mode 100644
index 00000000000..847644e363f
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingSyntax/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangToolingSyntax
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Syntax
+
+SRCS+= BuildTree.cpp \
+ Nodes.cpp \
+ Tokens.cpp \
+ Tree.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/lib/libclangToolingTransformer/Makefile b/external/apache2/llvm/lib/libclangToolingTransformer/Makefile
new file mode 100644
index 00000000000..b587739a470
--- /dev/null
+++ b/external/apache2/llvm/lib/libclangToolingTransformer/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:17 joerg Exp $
+
+LIB= clangToolingTransformer
+
+.include <bsd.init.mk>
+
+.PATH: ${CLANG_SRCDIR}/lib/Tooling/Transformer
+
+SRCS+= RangeSelector.cpp \
+ RewriteRule.cpp \
+ SourceCodeBuilders.cpp \
+ SourceCode.cpp \
+ Stencil.cpp \
+ Transformer.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/apache2/llvm/librt/Makefile b/external/apache2/llvm/librt/Makefile
new file mode 100644
index 00000000000..aed5ef4e61b
--- /dev/null
+++ b/external/apache2/llvm/librt/Makefile
@@ -0,0 +1,135 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.own.mk>
+
+BUILD_RADEON=0
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+BUILD_RADEON=1
+.endif
+
+SUBDIR= libLLVMAnalysis \
+ libLLVMAsmParser \
+ libLLVMAsmPrinter \
+ libLLVMBinaryFormat \
+ libLLVMBitReader \
+ libLLVMCodeGen \
+ libLLVMDebugInfoCodeView \
+ libLLVMExecutionEngine \
+ libLLVMGlobalISel \
+ libLLVMInstCombine \
+ libLLVMInstrumentation \
+ libLLVMipo \
+ libLLVMIR \
+ libLLVMIRReader \
+ libLLVMLinker \
+ libLLVMMC \
+ libLLVMMCDisassembler \
+ libLLVMMCJIT \
+ libLLVMMCParser \
+ libLLVMObject \
+ libLLVMPasses \
+ libLLVMProfileData \
+ libLLVMRuntimeDyld \
+ libLLVMScalarOpts \
+ libLLVMSelectionDAG \
+ libLLVMSupport \
+ libLLVMTarget \
+ libLLVMTransformsAggressiveInstCombine \
+ libLLVMTransformsCoroutines \
+ libLLVMTransformsUtils \
+ libLLVMVectorize
+
+.if ${BUILD_RADEON} == 1
+SUBDIR+= \
+ libLLVMAMDGPUCodeGen
+.endif
+
+.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
+SUBDIR+= \
+ libLLVMAArch64CodeGen
+.endif
+.if !empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*)
+SUBDIR+= \
+ libLLVMARMCodeGen
+.endif
+.if !empty(MACHINE_ARCH:Mmips*)
+SUBDIR+= \
+ libLLVMMipsCodeGen
+.endif
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
+SUBDIR+= \
+ libLLVMPowerPCCodeGen
+.endif
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+SUBDIR+= \
+ libLLVMSparcCodeGen
+.endif
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+SUBDIR+= \
+ libLLVMX86CodeGen
+.endif
+
+# All subdirs below here can build together, and all are optional.
+SUBDIR+= .WAIT
+
+.if ${BUILD_RADEON} == 1
+SUBDIR+= \
+ libLLVMAMDGPUMCTargetDesc \
+ libLLVMAMDGPUTargetInfo \
+ libLLVMAMDGPUAsmParser \
+ libLLVMAMDGPUUtils
+.endif
+
+.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
+SUBDIR+= \
+ libLLVMAArch64AsmParser \
+ libLLVMAArch64Disassembler \
+ libLLVMAArch64MCTargetDesc \
+ libLLVMAArch64TargetInfo \
+ libLLVMAArch64Utils
+.endif
+
+.if !empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*)
+SUBDIR+= \
+ libLLVMARMAsmParser \
+ libLLVMARMDisassembler \
+ libLLVMARMMCTargetDesc \
+ libLLVMARMTargetInfo \
+ libLLVMARMUtils
+.endif
+
+.if !empty(MACHINE_ARCH:Mmips*)
+SUBDIR+= \
+ libLLVMMipsAsmParser \
+ libLLVMMipsDisassembler \
+ libLLVMMipsMCTargetDesc \
+ libLLVMMipsTargetInfo
+.endif
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
+SUBDIR+= \
+ libLLVMPowerPCAsmParser \
+ libLLVMPowerPCDisassembler \
+ libLLVMPowerPCMCTargetDesc \
+ libLLVMPowerPCTargetInfo
+.endif
+
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+SUBDIR+= \
+ libLLVMSparcAsmParser \
+ libLLVMSparcDisassembler \
+ libLLVMSparcMCTargetDesc \
+ libLLVMSparcTargetInfo
+.endif
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+SUBDIR+= \
+ libLLVMX86AsmParser \
+ libLLVMX86Disassembler \
+ libLLVMX86MCTargetDesc \
+ libLLVMX86TargetInfo \
+ libLLVMX86Utils
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/external/apache2/llvm/librt/Makefile.inc b/external/apache2/llvm/librt/Makefile.inc
new file mode 100644
index 00000000000..0d0f67b9df8
--- /dev/null
+++ b/external/apache2/llvm/librt/Makefile.inc
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile.inc,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+LLVM_TOPLEVEL:= ${.PARSEDIR}/..
+NOSTATICLIB= yes
+
+.include "${LLVM_TOPLEVEL}/lib/Makefile.inc"
+.include "${LLVM_TOPLEVEL}/lib/${.CURDIR:T}/Makefile"
diff --git a/external/apache2/llvm/librt/libLLVMAArch64AsmParser/Makefile b/external/apache2/llvm/librt/libLLVMAArch64AsmParser/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAArch64AsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAArch64CodeGen/Makefile b/external/apache2/llvm/librt/libLLVMAArch64CodeGen/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAArch64CodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAArch64Disassembler/Makefile b/external/apache2/llvm/librt/libLLVMAArch64Disassembler/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAArch64Disassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAArch64MCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMAArch64MCTargetDesc/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAArch64MCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAArch64TargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMAArch64TargetInfo/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAArch64TargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAArch64Utils/Makefile b/external/apache2/llvm/librt/libLLVMAArch64Utils/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAArch64Utils/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAMDGPUAsmParser/Makefile b/external/apache2/llvm/librt/libLLVMAMDGPUAsmParser/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAMDGPUAsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAMDGPUCodeGen/Makefile b/external/apache2/llvm/librt/libLLVMAMDGPUCodeGen/Makefile
new file mode 100644
index 00000000000..a2a1c73f10b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAMDGPUCodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:18 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAMDGPUMCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMAMDGPUMCTargetDesc/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAMDGPUMCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAMDGPUTargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMAMDGPUTargetInfo/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAMDGPUTargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAMDGPUUtils/Makefile b/external/apache2/llvm/librt/libLLVMAMDGPUUtils/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAMDGPUUtils/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMARMAsmParser/Makefile b/external/apache2/llvm/librt/libLLVMARMAsmParser/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMARMAsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMARMCodeGen/Makefile b/external/apache2/llvm/librt/libLLVMARMCodeGen/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMARMCodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMARMDisassembler/Makefile b/external/apache2/llvm/librt/libLLVMARMDisassembler/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMARMDisassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMARMMCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMARMMCTargetDesc/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMARMMCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMARMTargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMARMTargetInfo/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMARMTargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMARMUtils/Makefile b/external/apache2/llvm/librt/libLLVMARMUtils/Makefile
new file mode 100644
index 00000000000..14f2c5c5c86
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMARMUtils/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:19 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAnalysis/Makefile b/external/apache2/llvm/librt/libLLVMAnalysis/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAnalysis/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAsmParser/Makefile b/external/apache2/llvm/librt/libLLVMAsmParser/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMAsmPrinter/Makefile b/external/apache2/llvm/librt/libLLVMAsmPrinter/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMAsmPrinter/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMBinaryFormat/Makefile b/external/apache2/llvm/librt/libLLVMBinaryFormat/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMBinaryFormat/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMBitReader/Makefile b/external/apache2/llvm/librt/libLLVMBitReader/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMBitReader/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMCodeGen/Makefile b/external/apache2/llvm/librt/libLLVMCodeGen/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMCodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMDebugInfoCodeView/Makefile b/external/apache2/llvm/librt/libLLVMDebugInfoCodeView/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMDebugInfoCodeView/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMExecutionEngine/Makefile b/external/apache2/llvm/librt/libLLVMExecutionEngine/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMExecutionEngine/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMGlobalISel/Makefile b/external/apache2/llvm/librt/libLLVMGlobalISel/Makefile
new file mode 100644
index 00000000000..178336951f2
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMGlobalISel/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:20 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMIR/Makefile b/external/apache2/llvm/librt/libLLVMIR/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMIR/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMIRReader/Makefile b/external/apache2/llvm/librt/libLLVMIRReader/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMIRReader/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMInstCombine/Makefile b/external/apache2/llvm/librt/libLLVMInstCombine/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMInstCombine/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMInstrumentation/Makefile b/external/apache2/llvm/librt/libLLVMInstrumentation/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMInstrumentation/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMLinker/Makefile b/external/apache2/llvm/librt/libLLVMLinker/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMLinker/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMC/Makefile b/external/apache2/llvm/librt/libLLVMMC/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMC/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMCDisassembler/Makefile b/external/apache2/llvm/librt/libLLVMMCDisassembler/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMCDisassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMCJIT/Makefile b/external/apache2/llvm/librt/libLLVMMCJIT/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMCJIT/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMCParser/Makefile b/external/apache2/llvm/librt/libLLVMMCParser/Makefile
new file mode 100644
index 00000000000..04e6a364b7c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMCParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:21 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMipsAsmParser/Makefile b/external/apache2/llvm/librt/libLLVMMipsAsmParser/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMipsAsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMipsCodeGen/Makefile b/external/apache2/llvm/librt/libLLVMMipsCodeGen/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMipsCodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMipsDisassembler/Makefile b/external/apache2/llvm/librt/libLLVMMipsDisassembler/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMipsDisassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMipsMCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMMipsMCTargetDesc/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMipsMCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMMipsTargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMMipsTargetInfo/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMMipsTargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMObject/Makefile b/external/apache2/llvm/librt/libLLVMObject/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMObject/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMPasses/Makefile b/external/apache2/llvm/librt/libLLVMPasses/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMPasses/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMPowerPCAsmParser/Makefile b/external/apache2/llvm/librt/libLLVMPowerPCAsmParser/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMPowerPCAsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMPowerPCCodeGen/Makefile b/external/apache2/llvm/librt/libLLVMPowerPCCodeGen/Makefile
new file mode 100644
index 00000000000..601dd5c6a3e
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMPowerPCCodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:22 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMPowerPCDisassembler/Makefile b/external/apache2/llvm/librt/libLLVMPowerPCDisassembler/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMPowerPCDisassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMPowerPCMCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMPowerPCMCTargetDesc/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMPowerPCMCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMPowerPCTargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMPowerPCTargetInfo/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMPowerPCTargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMProfileData/Makefile b/external/apache2/llvm/librt/libLLVMProfileData/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMProfileData/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMRuntimeDyld/Makefile b/external/apache2/llvm/librt/libLLVMRuntimeDyld/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMRuntimeDyld/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMScalarOpts/Makefile b/external/apache2/llvm/librt/libLLVMScalarOpts/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMScalarOpts/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSelectionDAG/Makefile b/external/apache2/llvm/librt/libLLVMSelectionDAG/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSelectionDAG/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSparcAsmParser/Makefile b/external/apache2/llvm/librt/libLLVMSparcAsmParser/Makefile
new file mode 100644
index 00000000000..91060661e3b
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSparcAsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:23 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSparcCodeGen/Makefile b/external/apache2/llvm/librt/libLLVMSparcCodeGen/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSparcCodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSparcDisassembler/Makefile b/external/apache2/llvm/librt/libLLVMSparcDisassembler/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSparcDisassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSparcMCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMSparcMCTargetDesc/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSparcMCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSparcTargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMSparcTargetInfo/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSparcTargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMSupport/Makefile b/external/apache2/llvm/librt/libLLVMSupport/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMSupport/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMTarget/Makefile b/external/apache2/llvm/librt/libLLVMTarget/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMTarget/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMTransformsAggressiveInstCombine/Makefile b/external/apache2/llvm/librt/libLLVMTransformsAggressiveInstCombine/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMTransformsAggressiveInstCombine/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMTransformsCoroutines/Makefile b/external/apache2/llvm/librt/libLLVMTransformsCoroutines/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMTransformsCoroutines/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMTransformsUtils/Makefile b/external/apache2/llvm/librt/libLLVMTransformsUtils/Makefile
new file mode 100644
index 00000000000..f72d938160a
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMTransformsUtils/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:24 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMVectorize/Makefile b/external/apache2/llvm/librt/libLLVMVectorize/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMVectorize/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMX86AsmParser/Makefile b/external/apache2/llvm/librt/libLLVMX86AsmParser/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMX86AsmParser/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMX86CodeGen/Makefile b/external/apache2/llvm/librt/libLLVMX86CodeGen/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMX86CodeGen/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMX86Disassembler/Makefile b/external/apache2/llvm/librt/libLLVMX86Disassembler/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMX86Disassembler/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMX86MCTargetDesc/Makefile b/external/apache2/llvm/librt/libLLVMX86MCTargetDesc/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMX86MCTargetDesc/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMX86TargetInfo/Makefile b/external/apache2/llvm/librt/libLLVMX86TargetInfo/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMX86TargetInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMX86Utils/Makefile b/external/apache2/llvm/librt/libLLVMX86Utils/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMX86Utils/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/librt/libLLVMipo/Makefile b/external/apache2/llvm/librt/libLLVMipo/Makefile
new file mode 100644
index 00000000000..96fb9e45e8c
--- /dev/null
+++ b/external/apache2/llvm/librt/libLLVMipo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:25 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/external/apache2/llvm/link.mk b/external/apache2/llvm/link.mk
new file mode 100644
index 00000000000..85b9ed77111
--- /dev/null
+++ b/external/apache2/llvm/link.mk
@@ -0,0 +1,40 @@
+# $NetBSD: link.mk,v 1.1 2019/11/11 22:44:57 joerg Exp $
+
+.include <bsd.own.mk>
+
+LLVM_TOPLEVEL:= ${.PARSEDIR}
+
+.if defined(HOSTPROG)
+LIB_BASE= ${NETBSDSRCDIR}/tools/llvm-lib
+.else
+LIB_BASE= ${LLVM_TOPLEVEL}/lib
+.endif
+
+.for l in ${CLANG_LIBS}
+CLANG_OBJDIR.${l}!= cd ${LIB_BASE}/lib${l} && ${PRINTOBJDIR}
+LDADD+= -L${CLANG_OBJDIR.${l}} -l${l}
+DPADD+= ${CLANG_OBJDIR.${l}}/lib${l}.a
+.endfor
+
+.for l in ${LLVM_LIBS}
+LLVM_OBJDIR.${l}!= cd ${LIB_BASE}/libLLVM${l} && ${PRINTOBJDIR}
+LDADD+= -L${LLVM_OBJDIR.${l}} -lLLVM${l}
+DPADD+= ${LLVM_OBJDIR.${l}}/libLLVM${l}.a
+.endfor
+
+.for l in ${LLVMRT_LIBS}
+LLVMRT_OBJDIR.${l}!= cd ${LLVM_TOPLEVEL}/librt/libLLVM${l} && ${PRINTOBJDIR}
+LDADD+= ${LLVMRT_OBJDIR.${l}}/libLLVM${l}_pic.a
+DPADD+= ${LLVMRT_OBJDIR.${l}}/libLLVM${l}_pic.a
+.endfor
+
+.if defined(HOSTPROG)
+LDADD_NEED_DL= cat ${LLVM_TOOLCONF_OBJDIR}/need-dl 2> /dev/null
+LDADD_NEED_TERMINFO= cat ${LLVM_TOOLCONF_OBJDIR}/need-terminfo 2> /dev/null
+LDADD+= ${LDADD_NEED_DL:sh} ${LDADD_NEED_TERMINFO:sh}
+.else
+LDADD+= -lterminfo
+DPADD+= ${LIBTERMINFO}
+.endif
+
+LDADD+= -lpthread
diff --git a/external/apache2/llvm/tablegen.mk b/external/apache2/llvm/tablegen.mk
new file mode 100644
index 00000000000..775b2c1f946
--- /dev/null
+++ b/external/apache2/llvm/tablegen.mk
@@ -0,0 +1,32 @@
+# $NetBSD: tablegen.mk,v 1.1 2019/11/11 22:44:57 joerg Exp $
+
+.include <bsd.own.mk>
+
+.for t in ${TABLEGEN_SRC}
+.for f in ${TABLEGEN_OUTPUT} ${TABLEGEN_OUTPUT.${t}}
+${f:C,\|.*$,,}: ${t} ${TOOL_LLVM_TBLGEN}
+ [ -z "${f:C,\|.*$,,}" ] || mkdir -p ${f:C,\|.*$,,:H}
+ ${TOOL_LLVM_TBLGEN} -I${LLVM_SRCDIR}/include ${TABLEGEN_INCLUDES} \
+ ${TABLEGEN_INCLUDES.${t}} ${f:C,^.*\|,,:C,\^, ,} \
+ ${.ALLSRC:M*/${t}} -d ${.TARGET}.d -o ${.TARGET}
+DPSRCS+= ${f:C,\|.*$,,}
+CLEANFILES+= ${f:C,\|.*$,,} ${f:C,\|.*$,,:C,$,.d,}
+
+.sinclude "${f:C,\|.*$,,:C,$,.d,}"
+.endfor
+.endfor
+
+.for t in ${CLANG_TABLEGEN_SRC}
+.for f in ${CLANG_TABLEGEN_OUTPUT} ${CLANG_TABLEGEN_OUTPUT.${t}}
+${f:C,\|.*$,,}: ${t} ${TOOL_CLANG_TBLGEN}
+ [ -z "${f:C,\|.*$,,}" ] || mkdir -p ${f:C,\|.*$,,:H}
+ ${TOOL_CLANG_TBLGEN} -I${LLVM_SRCDIR}/include \
+ ${CLANG_TABLEGEN_INCLUDES} ${CLANG_TABLEGEN_INCLUDES.${t}} \
+ ${f:C,^.*\|,,:C,\^, ,} \
+ ${.ALLSRC:M*/${t}} -d ${.TARGET}.d -o ${.TARGET}
+DPSRCS+= ${f:C,\|.*$,,}
+CLEANFILES+= ${f:C,\|.*$,,} ${f:C,\|.*$,,:C,$,.d,}
+
+.sinclude "${f:C,\|.*$,,:C,$,.d,}"
+.endfor
+.endfor
diff --git a/external/bsd/Makefile b/external/bsd/Makefile
index 9863550b204..e65165b934d 100644
--- a/external/bsd/Makefile
+++ b/external/bsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2019/08/23 06:38:27 kamil Exp $
+# $NetBSD: Makefile,v 1.66 2019/11/11 22:45:25 joerg Exp $
.include <bsd.own.mk>
@@ -27,9 +27,6 @@ SUBDIR+= openldap
.if (${MKLIBCXX} != "no")
SUBDIR+= libc++
.endif
-.if (${MKLLVM} != "no" || ${MKLLVMRT} != "no")
-SUBDIR+= llvm
-.endif
.if (${MKNSD} != "no")
SUBDIR+= nsd
.endif
diff --git a/external/gpl2/diffutils/bin/diff/Makefile b/external/gpl2/diffutils/bin/diff/Makefile
index 70c414e4f95..8e89269bef9 100644
--- a/external/gpl2/diffutils/bin/diff/Makefile
+++ b/external/gpl2/diffutils/bin/diff/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/01/13 03:39:28 christos Exp $
+# $NetBSD: Makefile,v 1.2 2019/11/11 22:45:26 joerg Exp $
.include <bsd.init.mk>
@@ -14,7 +14,7 @@ TEXINFO= diff.texi
COPTS.ifdef.c = -Wno-stack-protector
-CWARNFLAGS.clang+= -Wno-unused-value -Wno-string-plus-int
+CWARNFLAGS.clang+= -Wno-unused-value -Wno-string-plus-int -Wno-error=bool-operation
.include <bsd.info.mk>
.include <bsd.prog.mk>
diff --git a/external/gpl2/diffutils/bin/diff3/Makefile b/external/gpl2/diffutils/bin/diff3/Makefile
index 0ad339b4b43..eff61ab27bb 100644
--- a/external/gpl2/diffutils/bin/diff3/Makefile
+++ b/external/gpl2/diffutils/bin/diff3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/01/13 03:39:28 christos Exp $
+# $NetBSD: Makefile,v 1.2 2019/11/11 22:45:26 joerg Exp $
.include <bsd.init.mk>
@@ -8,6 +8,6 @@ DIST= ${IDIST}/src
PROG= diff3
SRCS= diff3.c version.c
-CWARNFLAGS.clang+= -Wno-unused-value
+CWARNFLAGS.clang+= -Wno-unused-value -Wno-error=bool-operation
.include <bsd.prog.mk>
diff --git a/external/ibm-public/postfix/Makefile.inc b/external/ibm-public/postfix/Makefile.inc
index 4d62637aec6..b8815060181 100644
--- a/external/ibm-public/postfix/Makefile.inc
+++ b/external/ibm-public/postfix/Makefile.inc
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile.inc,v 1.20 2017/05/21 15:28:39 riastradh Exp $
+# $NetBSD: Makefile.inc,v 1.21 2019/11/11 22:45:26 joerg Exp $
.include <bsd.own.mk>
USE_FORT?= yes # network client and server
-CWARNFLAGS.clang+= -Wno-empty-body -Wno-format-extra-args
-
+CWARNFLAGS.clang+= -Wno-empty-body -Wno-format-extra-args -Wno-string-plus-int
WARNS?= 0
PFIX_DISTDIR= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist
diff --git a/external/mit/lua/lib/liblua/Makefile b/external/mit/lua/lib/liblua/Makefile
index 93c8e305491..8f4ced9d713 100644
--- a/external/mit/lua/lib/liblua/Makefile
+++ b/external/mit/lua/lib/liblua/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2015/02/09 20:41:01 christos Exp $
+# $NetBSD: Makefile,v 1.9 2019/11/11 22:45:26 joerg Exp $
LIB= lua
LUA_CORE= lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c \
@@ -15,7 +15,7 @@ INCS= lauxlib.h lua.h lua.hpp luaconf.h lualib.h
INCSDIR= /usr/include
CPPFLAGS+= -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_C89_NUMBERS
-CWARNFLAGS.clang+= -Wno-empty-body
+CWARNFLAGS.clang+= -Wno-empty-body -Wno-error=string-plus-int
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/mit/xorg/bin/xedit/lisp/Makefile b/external/mit/xorg/bin/xedit/lisp/Makefile
index 28ed7a15bfb..d1c301a57e8 100644
--- a/external/mit/xorg/bin/xedit/lisp/Makefile
+++ b/external/mit/xorg/bin/xedit/lisp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2015/07/23 08:03:25 mrg Exp $
+# $NetBSD: Makefile,v 1.7 2019/11/11 22:45:26 joerg Exp $
LIBISPRIVATE= yes
@@ -22,7 +22,7 @@ CPPFLAGS+= -DANSI_SOURCE
.PATH: ${X11SRCDIR.xedit}/lisp
-CWARNFLAGS.clang+= -Wno-format
+CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion
# Ugh. writes to const char *
COPTS.format.c+= -Wno-error
diff --git a/external/mit/xorg/lib/dri/Makefile b/external/mit/xorg/lib/dri/Makefile
index ba1df9af905..177a869aab0 100644
--- a/external/mit/xorg/lib/dri/Makefile
+++ b/external/mit/xorg/lib/dri/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2019/09/24 19:29:41 maya Exp $
+# $NetBSD: Makefile,v 1.34 2019/11/11 22:45:26 joerg Exp $
# Link the mesa_dri_drivers mega driver.
@@ -474,7 +474,10 @@ LIBDIR= ${X11USRLIBDIR}/modules/dri
CWARNFLAGS.clang+= -Wno-error=initializer-overrides -Wno-error=switch \
-Wno-error=tautological-constant-out-of-range-compare \
- -Wno-error=enum-conversion
+ -Wno-error=enum-conversion \
+ -Wno-error=implicit-int-float-conversion \
+ -Wno-error=tautological-constant-compare \
+ -Wno-c99-designator -Wno-xor-used-as-pow
COPTS+= -Wno-error=stack-protector
diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile
index 228b8ec4874..0b26ec492ff 100644
--- a/external/mit/xorg/lib/gallium/Makefile
+++ b/external/mit/xorg/lib/gallium/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2019/10/28 18:38:54 christos Exp $
+# $NetBSD: Makefile,v 1.37 2019/11/11 22:45:26 joerg Exp $
# Link the gallium mega driver.
@@ -13,15 +13,15 @@ LIB= gallium_dri
DRIDIR= ${X11USRLIBDIR}/modules/dri
DRIDEBUGDIR= ${DEBUGDIR}${X11USRLIBDIR}/modules/dri
-LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/external/bsd/llvm/include && ${PRINTOBJDIR}
+LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/external/apache2/llvm/include && ${PRINTOBJDIR}
-CWARNFLAGS.clang += -Wno-atomic-alignment -Wno-unknown-warning-option
+CWARNFLAGS.clang += -Wno-atomic-alignment -Wno-unknown-warning-option -Wno-implicit-int-float-conversion
-CXXFLAGS+= -std=c++11
+CXXFLAGS+= -std=c++14
CFLAGS+= -std=gnu11
CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm \
- -I${NETBSDSRCDIR}/external/bsd/llvm/dist/llvm/include \
- -I${LLVM_INCLUDE_OBJDIR} -I${NETBSDSRCDIR}/external/bsd/llvm/config
+ -I${NETBSDSRCDIR}/external/apache2/llvm/dist/llvm/include \
+ -I${LLVM_INCLUDE_OBJDIR} -I${NETBSDSRCDIR}/external/apache2/llvm/config
GALLIUM_SUBDIRS= \
auxiliary \
@@ -988,7 +988,6 @@ LLVMRT_LIBS= \
LLVMRT_LIBS+= \
AMDGPUCodeGen \
AMDGPUMCTargetDesc \
- AMDGPUAsmPrinter \
AMDGPUTargetInfo \
AMDGPUAsmParser \
AMDGPUUtils
@@ -1002,7 +1001,6 @@ LLVMRT_LIBS+= \
X86MCTargetDesc \
X86Disassembler \
X86MCTargetDesc \
- X86AsmPrinter \
X86TargetInfo \
X86Utils
.endif
@@ -1013,7 +1011,6 @@ LLVMRT_LIBS+= \
AArch64CodeGen \
AArch64MCTargetDesc \
AArch64Utils \
- AArch64AsmPrinter \
AArch64Disassembler \
AArch64TargetInfo
.endif
@@ -1025,7 +1022,6 @@ LLVMRT_LIBS+= \
ARMTargetInfo \
ARMMCTargetDesc \
ARMAsmParser \
- ARMAsmPrinter \
ARMUtils
.endif
@@ -1035,7 +1031,6 @@ LLVMRT_LIBS+= \
MipsDisassembler \
MipsAsmParser \
MipsMCTargetDesc \
- MipsAsmPrinter \
MipsTargetInfo
.endif
@@ -1045,8 +1040,7 @@ LLVMRT_LIBS+= \
PowerPCDisassembler \
PowerPCTargetInfo \
PowerPCMCTargetDesc \
- PowerPCAsmParser \
- PowerPCAsmPrinter
+ PowerPCAsmParser
.endif
LLVMRT_LIBS+= \
@@ -1077,7 +1071,7 @@ LLVMRT_LIBS+= \
TransformsUtils \
Support
-.include "${NETBSDSRCDIR}/external/bsd/llvm/link.mk"
+.include "${NETBSDSRCDIR}/external/apache2/llvm/link.mk"
.endif # ${BUILD_LLVM_PIPE} == 1 || ${BUILD_RADEON} == 1
diff --git a/external/mpl/bind/lib/libdns/Makefile b/external/mpl/bind/lib/libdns/Makefile
index 2fd3164bcb7..f99bea49b48 100644
--- a/external/mpl/bind/lib/libdns/Makefile
+++ b/external/mpl/bind/lib/libdns/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2019/02/24 20:01:33 christos Exp $
+# $NetBSD: Makefile,v 1.4 2019/11/11 22:45:26 joerg Exp $
LIB=dns
#USE_SHLIBDIR= yes
@@ -30,6 +30,8 @@ DNSSEC_SRCS= dst_api.c dst_parse.c dst_result.c \
opensslecdsa_link.c openssleddsa_link.c
.if ${MKKERBEROS} != "no"
DNSSEC_SRCS+= gssapi_link.c spnego.c
+
+CWARNFLAGS.clang+= -Wno-error=tautological-constant-compare
.endif
diff --git a/external/public-domain/sqlite/lib/Makefile b/external/public-domain/sqlite/lib/Makefile
index 4b17edd7987..f518037a320 100644
--- a/external/public-domain/sqlite/lib/Makefile
+++ b/external/public-domain/sqlite/lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2019/06/01 10:58:12 mrg Exp $
+# $NetBSD: Makefile,v 1.10 2019/11/11 22:45:26 joerg Exp $
LIB= sqlite3
INCS= sqlite3.h sqlite3ext.h
@@ -16,6 +16,8 @@ FILESDIR_sqlite3.pc= /usr/lib/pkgconfig
CLEANFILES+=sqlite3.pc
+CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion
+
.include <bsd.own.mk>
.if ${MACHINE_CPU} == "m68k"
diff --git a/lib/Makefile b/lib/Makefile
index dac1c372c17..d99cbf1e8f7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.272 2019/08/23 08:17:26 mrg Exp $
+# $NetBSD: Makefile,v 1.273 2019/11/11 22:45:27 joerg Exp $
# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
.include <bsd.own.mk>
@@ -171,7 +171,7 @@ SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
.endif
.if (${MKLLVMRT} != "no" && (!defined(MLIBDIR) || ${MKCOMPATX11} != "no"))
-SUBDIR+= ../external/bsd/llvm/include
+SUBDIR+= ../external/apache2/llvm/include
.endif
#==================== 2nd library dependency barrier ====================
@@ -186,7 +186,7 @@ SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer}
.endif
.if (${MKLLVMRT} != "no" && (!defined(MLIBDIR) || ${MKCOMPATX11} != "no"))
-SUBDIR+= ../external/bsd/llvm/librt
+SUBDIR+= ../external/apache2/llvm/librt
.endif
SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
diff --git a/lib/libm/Makefile b/lib/libm/Makefile
index e71a7a8ea9a..57be969e64f 100644
--- a/lib/libm/Makefile
+++ b/lib/libm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.211 2019/10/11 18:36:22 nros Exp $
+# $NetBSD: Makefile,v 1.212 2019/11/11 22:45:27 joerg Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -465,6 +465,7 @@ MLINKS+=frexp.3 frexpf.3 \
COPTS.compat_cabs.c+= ${${ACTIVE_CC} == "clang":? -Wno-incompatible-library-redeclaration :}
COPTS.compat_cabsf.c+= ${${ACTIVE_CC} == "clang":? -Wno-incompatible-library-redeclaration :}
+CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion
.include "${.CURDIR}/compiler_rt/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index 54d64cf9612..73ffbf552c4 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2019/09/22 18:45:20 brad Exp $
+# $NetBSD: Makefile,v 1.96 2019/11/11 22:45:27 joerg Exp $
#
NOSANITIZER= # defined
@@ -36,6 +36,10 @@ CPPFLAGS+= -I${ARCHDIR} -I${.CURDIR} -I${.OBJDIR} -D_LIBC -D_REENTRANT
CPPFLAGS+= -I${.CURDIR}/../libc/include
CPPFLAGS+= -D__LIBPTHREAD_SOURCE__ -D__LIBC_THREAD_STUBS
+# Since <pthread.h> is not used, allow declaring pthread_create and
+# friends locally.
+CWARNFLAGS.clang+= -Wno-builtin-requires-header
+
# XXX: This crappy poke at libc's internals needs to be fixed.
CPPFLAGS+=-I${NETBSDSRCDIR}/sys -I${.CURDIR}/../libc
diff --git a/sys/arch/arm/conf/Makefile.arm b/sys/arch/arm/conf/Makefile.arm
index d09a57e16c6..a82c72e6647 100644
--- a/sys/arch/arm/conf/Makefile.arm
+++ b/sys/arch/arm/conf/Makefile.arm
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.arm,v 1.50 2019/08/26 17:18:42 rin Exp $
+# $NetBSD: Makefile.arm,v 1.51 2019/11/11 22:45:27 joerg Exp $
# Makefile for NetBSD
#
@@ -36,15 +36,18 @@ GENASSYM_CONF= ${ARM}/arm32/genassym.cf
AFLAGS+= -x assembler-with-cpp
COPTS.arm32_kvminit.c+= -fno-stack-protector
COPTS.vfp_init.c= -mfpu=vfp
-AFLAGS.bcopyinout.S+=-marm
-AFLAGS.cpuswitch.S+=-marm -mfpu=vfp
-AFLAGS.locore.S+=-marm
-AFLAGS.fusu.S+=-marm
-AFLAGS.exception.S+=-marm
-AFLAGS.irq_dispatch.S+=-marm
-AFLAGS.blockio.S+=-marm
-AFLAGS.copystr.S+=-marm
-CFLAGS+= -mfloat-abi=soft
+CLANG_OBSOLETE_MULTI_ST= ${${ACTIVE_CC} == "clang":? -Wa,-W :}
+AFLAGS.bcopyinout.S+= -marm
+AFLAGS.blockio.S+= -marm ${CLANG_OBSOLETE_MULTI_ST}
+AFLAGS.copystr.S+= -marm
+AFLAGS.cpufunc_asm.S+= ${CLANG_OBSOLETE_MULTI_ST}
+AFLAGS.cpuswitch.S+= -marm -mfpu=vfp
+AFLAGS.exception.S+= -marm ${CLANG_OBSOLETE_MULTI_ST}
+AFLAGS.fiq_subr.S+= ${CLANG_OBSOLETE_MULTI_ST}
+AFLAGS.fusu.S+= -marm
+AFLAGS.irq_dispatch.S+= -marm ${CLANG_OBSOLETE_MULTI_ST}
+AFLAGS.locore.S+= -marm ${CLANG_OBSOLETE_MULTI_ST}
+CFLAGS+= -mfloat-abi=soft
# This files use instructions deprecated for ARMv7+, but still
# included in kernel that build with higher -mcpu=... settings.
diff --git a/sys/modules/lua/Makefile b/sys/modules/lua/Makefile
index 715c2169e5a..654f8f1c7b9 100644
--- a/sys/modules/lua/Makefile
+++ b/sys/modules/lua/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/07/19 20:21:52 christos Exp $
+# $NetBSD: Makefile,v 1.11 2019/11/11 22:45:27 joerg Exp $
.include "../Makefile.inc"
@@ -22,4 +22,6 @@ SRCS+= lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c \
CPPFLAGS+= -I${S}/../external/mit/lua/dist/src \
-I${S}/sys
+CWARNFLAGS.clang+= -Wno-error=string-plus-int
+
.include <bsd.kmodule.mk>
diff --git a/sys/modules/radeondrm/Makefile b/sys/modules/radeondrm/Makefile
index 01a3760252e..94d1211c5b0 100644
--- a/sys/modules/radeondrm/Makefile
+++ b/sys/modules/radeondrm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2019/09/29 23:45:00 mrg Exp $
+# $NetBSD: Makefile,v 1.14 2019/11/11 22:45:27 joerg Exp $
.include "../Makefile.inc"
@@ -27,4 +27,6 @@ WARNS= 3
COPTS.radeon_cs.c+= -Wno-error=implicit-fallthrough
.endif
+CWARNFLAGS.clang+= -Wno-error=bool-operation
+
.include <bsd.kmodule.mk>
diff --git a/tools/Makefile b/tools/Makefile
index 73426be2f8b..641690ea603 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.204 2019/09/26 09:21:34 bad Exp $
+# $NetBSD: Makefile,v 1.205 2019/11/11 22:45:27 joerg Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@@ -138,12 +138,6 @@ SUBDIR+= \
.WAIT llvm-include .WAIT \
llvm-lib .WAIT \
llvm-clang
-. if ${MKLLD} != "no"
-SUBDIR+= llvm-lld
-. endif
-. if ${MKMCLINKER} != "no"
-SUBDIR+= llvm-mcld
-. endif
.endif
.if ${MKMAN} != "no" || ${MKDOC} != "no" || ${MKHTML} != "no"
diff --git a/tools/llvm-clang-tblgen/Makefile b/tools/llvm-clang-tblgen/Makefile
index c822330a5e8..efc372c90cf 100644
--- a/tools/llvm-clang-tblgen/Makefile
+++ b/tools/llvm-clang-tblgen/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2019/05/17 13:44:55 nakayama Exp $
+# $NetBSD: Makefile,v 1.4 2019/11/11 22:45:28 joerg Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}clang-tblgen
HOSTPROG_CXX= ${_TOOL_PREFIX}clang-tblgen
-HOST_SRCDIR= external/bsd/llvm/bin/clang-tblgen
+HOST_SRCDIR= external/apache2/llvm/bin/clang-tblgen
.include "${.CURDIR}/../Makefile.host"
diff --git a/tools/llvm-clang/Makefile b/tools/llvm-clang/Makefile
index 6d0025b4eb5..a38dd4582c4 100644
--- a/tools/llvm-clang/Makefile
+++ b/tools/llvm-clang/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:04 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2019/11/11 22:45:27 joerg Exp $
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-clang
HOSTPROG_CXX= ${MACHINE_GNU_PLATFORM}-clang
-HOST_SRCDIR= external/bsd/llvm/bin/clang
+HOST_SRCDIR= external/apache2/llvm/bin/clang
.include "${.CURDIR}/../Makefile.host"
diff --git a/tools/llvm-lib/libLLVMBitstreamReader/Makefile b/tools/llvm-lib/libLLVMBitstreamReader/Makefile
new file mode 100644
index 00000000000..a9fbf453ae4
--- /dev/null
+++ b/tools/llvm-lib/libLLVMBitstreamReader/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:28 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libLLVMDebugInfoDWARF/Makefile b/tools/llvm-lib/libLLVMDebugInfoDWARF/Makefile
new file mode 100644
index 00000000000..a9fbf453ae4
--- /dev/null
+++ b/tools/llvm-lib/libLLVMDebugInfoDWARF/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:28 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libLLVMRemarks/Makefile b/tools/llvm-lib/libLLVMRemarks/Makefile
new file mode 100644
index 00000000000..a9fbf453ae4
--- /dev/null
+++ b/tools/llvm-lib/libLLVMRemarks/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:28 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libLLVMTextAPI/Makefile b/tools/llvm-lib/libLLVMTextAPI/Makefile
new file mode 100644
index 00000000000..a9fbf453ae4
--- /dev/null
+++ b/tools/llvm-lib/libLLVMTextAPI/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:28 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libLLVMTransformsCFGuard/Makefile b/tools/llvm-lib/libLLVMTransformsCFGuard/Makefile
new file mode 100644
index 00000000000..a9fbf453ae4
--- /dev/null
+++ b/tools/llvm-lib/libLLVMTransformsCFGuard/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:28 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerADT/Makefile b/tools/llvm-lib/libMCLinkerADT/Makefile
deleted file mode 100644
index c6a09e4ec4a..00000000000
--- a/tools/llvm-lib/libMCLinkerADT/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:11 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerARMCodeGen/Makefile b/tools/llvm-lib/libMCLinkerARMCodeGen/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerARMCodeGen/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile b/tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerCodeGen/Makefile b/tools/llvm-lib/libMCLinkerCodeGen/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerCodeGen/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerCore/Makefile b/tools/llvm-lib/libMCLinkerCore/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerCore/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerFragment/Makefile b/tools/llvm-lib/libMCLinkerFragment/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerFragment/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerLD/Makefile b/tools/llvm-lib/libMCLinkerLD/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerLD/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerMC/Makefile b/tools/llvm-lib/libMCLinkerMC/Makefile
deleted file mode 100644
index 874d47b315d..00000000000
--- a/tools/llvm-lib/libMCLinkerMC/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile b/tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile b/tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerObject/Makefile b/tools/llvm-lib/libMCLinkerObject/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerObject/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerSupport/Makefile b/tools/llvm-lib/libMCLinkerSupport/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerSupport/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerTarget/Makefile b/tools/llvm-lib/libMCLinkerTarget/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerTarget/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerX86CodeGen/Makefile b/tools/llvm-lib/libMCLinkerX86CodeGen/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerX86CodeGen/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile b/tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile
deleted file mode 100644
index 38fbac4db74..00000000000
--- a/tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldConfig/Makefile b/tools/llvm-lib/liblldConfig/Makefile
deleted file mode 100644
index 3316dd4a921..00000000000
--- a/tools/llvm-lib/liblldConfig/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2015/01/29 20:41:39 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldCore/Makefile b/tools/llvm-lib/liblldCore/Makefile
deleted file mode 100644
index 63aa0c3a0d0..00000000000
--- a/tools/llvm-lib/liblldCore/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldDriver/Makefile b/tools/llvm-lib/liblldDriver/Makefile
deleted file mode 100644
index 63aa0c3a0d0..00000000000
--- a/tools/llvm-lib/liblldDriver/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldPasses/Makefile b/tools/llvm-lib/liblldPasses/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldPasses/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriter/Makefile b/tools/llvm-lib/liblldReaderWriter/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriter/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELF/Makefile b/tools/llvm-lib/liblldReaderWriterELF/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELF/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile b/tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile
deleted file mode 100644
index 3316dd4a921..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2015/01/29 20:41:39 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile b/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELFMips/Makefile b/tools/llvm-lib/liblldReaderWriterELFMips/Makefile
deleted file mode 100644
index 82cc2443dd5..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELFMips/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2014/01/05 16:38:08 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile b/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELFX86/Makefile b/tools/llvm-lib/liblldReaderWriterELFX86/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELFX86/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile b/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterMachO/Makefile b/tools/llvm-lib/liblldReaderWriterMachO/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterMachO/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterNative/Makefile b/tools/llvm-lib/liblldReaderWriterNative/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterNative/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile b/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lib/liblldReaderWriterYAML/Makefile b/tools/llvm-lib/liblldReaderWriterYAML/Makefile
deleted file mode 100644
index 46b859b9781..00000000000
--- a/tools/llvm-lib/liblldReaderWriterYAML/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-.include <bsd.init.mk>
diff --git a/tools/llvm-lld/Makefile b/tools/llvm-lld/Makefile
deleted file mode 100644
index 6d180255b01..00000000000
--- a/tools/llvm-lld/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $
-
-HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-lld
-HOSTPROG_CXX= ${MACHINE_GNU_PLATFORM}-lld
-HOST_SRCDIR= external/bsd/llvm/bin/lld
-
-.include "${.CURDIR}/../Makefile.host"
diff --git a/tools/llvm-mcld/Makefile b/tools/llvm-mcld/Makefile
deleted file mode 100644
index b817f0e0883..00000000000
--- a/tools/llvm-mcld/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:14 joerg Exp $
-
-HOSTPROGNAME= ld.mcld
-HOSTPROG_CXX= ld.mcld
-HOST_SRCDIR= external/bsd/llvm/bin/llvm-mcld
-
-.include "${.CURDIR}/../Makefile.host"
diff --git a/tools/llvm-tblgen/Makefile b/tools/llvm-tblgen/Makefile
index 92420d3a597..df569ec206d 100644
--- a/tools/llvm-tblgen/Makefile
+++ b/tools/llvm-tblgen/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2019/05/17 13:44:55 nakayama Exp $
+# $NetBSD: Makefile,v 1.5 2019/11/11 22:45:32 joerg Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}llvm-tblgen
HOSTPROG_CXX= ${_TOOL_PREFIX}llvm-tblgen
-HOST_SRCDIR= external/bsd/llvm/bin/tblgen
+HOST_SRCDIR= external/apache2/llvm/bin/tblgen
.include "${.CURDIR}/../Makefile.host"
diff --git a/tools/llvm/Makefile.inc b/tools/llvm/Makefile.inc
index d5b15d06b8d..742499a3bee 100644
--- a/tools/llvm/Makefile.inc
+++ b/tools/llvm/Makefile.inc
@@ -1,3 +1,3 @@
-# $NetBSD: Makefile.inc,v 1.3 2013/02/19 18:02:41 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.4 2019/11/11 22:45:27 joerg Exp $
-LLVM_TOPLEVEL:= ${.PARSEDIR}/../../external/bsd/llvm
+LLVM_TOPLEVEL:= ${.PARSEDIR}/../../external/apache2/llvm
diff --git a/usr.bin/xlint/lint1/Makefile b/usr.bin/xlint/lint1/Makefile
index c5af1aec3cb..f177d56d46a 100644
--- a/usr.bin/xlint/lint1/Makefile
+++ b/usr.bin/xlint/lint1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2015/04/04 19:32:06 christos Exp $
+# $NetBSD: Makefile,v 1.53 2019/11/11 22:45:32 joerg Exp $
.include <bsd.own.mk>
@@ -13,6 +13,8 @@ YHEADER=
#YFLAGS+=-v
#LFLAGS+=-d
+CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion
+
CPPFLAGS+= -I${.CURDIR} -I. -DPASS=\"${PROG}.h\"
LINTFLAGS= -aehpz
diff --git a/usr.sbin/timed/timed/Makefile b/usr.sbin/timed/timed/Makefile
index e8bf1cb190e..340ea7fbc14 100644
--- a/usr.sbin/timed/timed/Makefile
+++ b/usr.sbin/timed/timed/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/01/25 23:51:11 christos Exp $
+# $NetBSD: Makefile,v 1.13 2019/11/11 22:45:32 joerg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
#
# optional flags are: MEASURE TESTING DEBUG
@@ -11,4 +11,6 @@ LDADD= -lutil
CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX
MAN= timed.8
+CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/zdump/Makefile b/usr.sbin/zdump/Makefile
index d98c4b1fe0c..65d8cbc863d 100644
--- a/usr.sbin/zdump/Makefile
+++ b/usr.sbin/zdump/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2016/10/20 17:39:08 christos Exp $
+# $NetBSD: Makefile,v 1.13 2019/11/11 22:45:32 joerg Exp $
.include "${.PARSEDIR}/../zic/Makefile.inc"
.include <bsd.own.mk>
@@ -11,6 +11,7 @@ TZVERSION!= ${TOOL_CAT} ${NETBSDSRCDIR}/lib/libc/time/version
CPPFLAGS+=-DPKGVERSION='"(tzcode) "' -DTZVERSION='"${TZVERSION}"'
COPTS.zdump.c += -Wno-format-nonliteral
+CWARNFLAGS.clang+= -Wno-error=bitwise-conditional-parentheses
.PATH: ${NETBSDSRCDIR}/lib/libc/time
.include <bsd.prog.mk>