Merge ~ahasenack/ubuntu/+source/clamav:cosmic-freshclam-apparmor-1778812 into ubuntu/+source/clamav:ubuntu/devel

Proposed by Andreas Hasenack
Status: Merged
Merge reported by: Andreas Hasenack
Merged at revision: 85d62b6961b505cb59ad73ed36ec3eaab563f3aa
Proposed branch: ~ahasenack/ubuntu/+source/clamav:cosmic-freshclam-apparmor-1778812
Merge into: ubuntu/+source/clamav:ubuntu/devel
Diff against target: 711880 lines (+700439/-1)
1841 files modified
debian/changelog (+8/-0)
debian/usr.bin.freshclam (+1/-1)
libclamav/c++/llvm/build-for-llvm-top.sh (+68/-0)
libclamav/c++/llvm/cmake/README (+1/-0)
libclamav/c++/llvm/cmake/config-ix.cmake (+281/-0)
libclamav/c++/llvm/cmake/modules/AddLLVM.cmake (+109/-0)
libclamav/c++/llvm/cmake/modules/AddLLVMDefinitions.cmake (+11/-0)
libclamav/c++/llvm/cmake/modules/CMakeLists.txt (+12/-0)
libclamav/c++/llvm/cmake/modules/CheckAtomic.cmake (+29/-0)
libclamav/c++/llvm/cmake/modules/ChooseMSVCCRT.cmake (+106/-0)
libclamav/c++/llvm/cmake/modules/CrossCompileLLVM.cmake (+26/-0)
libclamav/c++/llvm/cmake/modules/FindBison.cmake (+52/-0)
libclamav/c++/llvm/cmake/modules/GetTargetTriple.cmake (+26/-0)
libclamav/c++/llvm/cmake/modules/LLVM.cmake (+29/-0)
libclamav/c++/llvm/cmake/modules/LLVMConfig.cmake (+165/-0)
libclamav/c++/llvm/cmake/modules/LLVMLibDeps.cmake (+71/-0)
libclamav/c++/llvm/cmake/modules/LLVMProcessSources.cmake (+54/-0)
libclamav/c++/llvm/cmake/modules/TableGen.cmake (+26/-0)
libclamav/c++/llvm/cmake/modules/VersionFromVCS.cmake (+33/-0)
libclamav/c++/llvm/configure (+14543/-0)
libclamav/c++/llvm/docs/doxygen.cfg.in (+0/-0)
libclamav/c++/llvm/include/llvm-c/Analysis.h (+55/-0)
libclamav/c++/llvm/include/llvm-c/BitReader.h (+66/-0)
libclamav/c++/llvm/include/llvm-c/BitWriter.h (+46/-0)
libclamav/c++/llvm/include/llvm-c/Core.h (+1157/-0)
libclamav/c++/llvm/include/llvm-c/EnhancedDisassembly.h (+513/-0)
libclamav/c++/llvm/include/llvm-c/ExecutionEngine.h (+152/-0)
libclamav/c++/llvm/include/llvm-c/LinkTimeOptimizer.h (+58/-0)
libclamav/c++/llvm/include/llvm-c/Target.h (+172/-0)
libclamav/c++/llvm/include/llvm-c/Transforms/IPO.h (+76/-0)
libclamav/c++/llvm/include/llvm-c/Transforms/Scalar.h (+105/-0)
libclamav/c++/llvm/include/llvm-c/lto.h (+270/-0)
libclamav/c++/llvm/include/llvm/ADT/APFloat.h (+445/-0)
libclamav/c++/llvm/include/llvm/ADT/APInt.h (+1708/-0)
libclamav/c++/llvm/include/llvm/ADT/APSInt.h (+264/-0)
libclamav/c++/llvm/include/llvm/ADT/BitVector.h (+435/-0)
libclamav/c++/llvm/include/llvm/ADT/DAGDeltaAlgorithm.h (+75/-0)
libclamav/c++/llvm/include/llvm/ADT/DeltaAlgorithm.h (+91/-0)
libclamav/c++/llvm/include/llvm/ADT/DenseMap.h (+508/-0)
libclamav/c++/llvm/include/llvm/ADT/DenseMapInfo.h (+151/-0)
libclamav/c++/llvm/include/llvm/ADT/DenseSet.h (+126/-0)
libclamav/c++/llvm/include/llvm/ADT/DepthFirstIterator.h (+269/-0)
libclamav/c++/llvm/include/llvm/ADT/EquivalenceClasses.h (+281/-0)
libclamav/c++/llvm/include/llvm/ADT/FoldingSet.h (+684/-0)
libclamav/c++/llvm/include/llvm/ADT/GraphTraits.h (+103/-0)
libclamav/c++/llvm/include/llvm/ADT/ImmutableIntervalMap.h (+242/-0)
libclamav/c++/llvm/include/llvm/ADT/ImmutableList.h (+222/-0)
libclamav/c++/llvm/include/llvm/ADT/ImmutableMap.h (+230/-0)
libclamav/c++/llvm/include/llvm/ADT/ImmutableSet.h (+1057/-0)
libclamav/c++/llvm/include/llvm/ADT/IndexedMap.h (+75/-0)
libclamav/c++/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h (+230/-0)
libclamav/c++/llvm/include/llvm/ADT/NullablePtr.h (+52/-0)
libclamav/c++/llvm/include/llvm/ADT/Optional.h (+66/-0)
libclamav/c++/llvm/include/llvm/ADT/OwningPtr.h (+133/-0)
libclamav/c++/llvm/include/llvm/ADT/PointerIntPair.h (+156/-0)
libclamav/c++/llvm/include/llvm/ADT/PointerUnion.h (+371/-0)
libclamav/c++/llvm/include/llvm/ADT/PostOrderIterator.h (+232/-0)
libclamav/c++/llvm/include/llvm/ADT/PriorityQueue.h (+84/-0)
libclamav/c++/llvm/include/llvm/ADT/SCCIterator.h (+220/-0)
libclamav/c++/llvm/include/llvm/ADT/STLExtras.h (+306/-0)
libclamav/c++/llvm/include/llvm/ADT/ScopedHashTable.h (+211/-0)
libclamav/c++/llvm/include/llvm/ADT/SetOperations.h (+71/-0)
libclamav/c++/llvm/include/llvm/ADT/SetVector.h (+176/-0)
libclamav/c++/llvm/include/llvm/ADT/SmallBitVector.h (+454/-0)
libclamav/c++/llvm/include/llvm/ADT/SmallPtrSet.h (+293/-0)
libclamav/c++/llvm/include/llvm/ADT/SmallSet.h (+118/-0)
libclamav/c++/llvm/include/llvm/ADT/SmallString.h (+68/-0)
libclamav/c++/llvm/include/llvm/ADT/SmallVector.h (+757/-0)
libclamav/c++/llvm/include/llvm/ADT/SparseBitVector.h (+906/-0)
libclamav/c++/llvm/include/llvm/ADT/Statistic.h (+132/-0)
libclamav/c++/llvm/include/llvm/ADT/StringExtras.h (+170/-0)
libclamav/c++/llvm/include/llvm/ADT/StringMap.h (+490/-0)
libclamav/c++/llvm/include/llvm/ADT/StringRef.h (+437/-0)
libclamav/c++/llvm/include/llvm/ADT/StringSet.h (+38/-0)
libclamav/c++/llvm/include/llvm/ADT/StringSwitch.h (+126/-0)
libclamav/c++/llvm/include/llvm/ADT/Trie.h (+336/-0)
libclamav/c++/llvm/include/llvm/ADT/Triple.h (+296/-0)
libclamav/c++/llvm/include/llvm/ADT/Twine.h (+457/-0)
libclamav/c++/llvm/include/llvm/ADT/UniqueVector.h (+89/-0)
libclamav/c++/llvm/include/llvm/ADT/ValueMap.h (+368/-0)
libclamav/c++/llvm/include/llvm/ADT/VectorExtras.h (+41/-0)
libclamav/c++/llvm/include/llvm/ADT/ilist.h (+707/-0)
libclamav/c++/llvm/include/llvm/ADT/ilist_node.h (+106/-0)
libclamav/c++/llvm/include/llvm/AbstractTypeUser.h (+205/-0)
libclamav/c++/llvm/include/llvm/Analysis/AliasAnalysis.h (+333/-0)
libclamav/c++/llvm/include/llvm/Analysis/AliasSetTracker.h (+412/-0)
libclamav/c++/llvm/include/llvm/Analysis/CFGPrinter.h (+111/-0)
libclamav/c++/llvm/include/llvm/Analysis/CallGraph.h (+366/-0)
libclamav/c++/llvm/include/llvm/Analysis/CaptureTracking.h (+33/-0)
libclamav/c++/llvm/include/llvm/Analysis/CodeMetrics.h (+72/-0)
libclamav/c++/llvm/include/llvm/Analysis/ConstantFolding.h (+81/-0)
libclamav/c++/llvm/include/llvm/Analysis/ConstantsScanner.h (+93/-0)
libclamav/c++/llvm/include/llvm/Analysis/DOTGraphTraitsPass.h (+83/-0)
libclamav/c++/llvm/include/llvm/Analysis/DebugInfo.h (+840/-0)
libclamav/c++/llvm/include/llvm/Analysis/DomPrinter.h (+30/-0)
libclamav/c++/llvm/include/llvm/Analysis/DominatorInternals.h (+348/-0)
libclamav/c++/llvm/include/llvm/Analysis/Dominators.h (+1069/-0)
libclamav/c++/llvm/include/llvm/Analysis/FindUsedTypes.h (+64/-0)
libclamav/c++/llvm/include/llvm/Analysis/IVUsers.h (+175/-0)
libclamav/c++/llvm/include/llvm/Analysis/InlineCost.h (+176/-0)
libclamav/c++/llvm/include/llvm/Analysis/InstructionSimplify.h (+88/-0)
libclamav/c++/llvm/include/llvm/Analysis/Interval.h (+153/-0)
libclamav/c++/llvm/include/llvm/Analysis/IntervalIterator.h (+259/-0)
libclamav/c++/llvm/include/llvm/Analysis/IntervalPartition.h (+109/-0)
libclamav/c++/llvm/include/llvm/Analysis/LazyValueInfo.h (+79/-0)
libclamav/c++/llvm/include/llvm/Analysis/LibCallAliasAnalysis.h (+71/-0)
libclamav/c++/llvm/include/llvm/Analysis/LibCallSemantics.h (+167/-0)
libclamav/c++/llvm/include/llvm/Analysis/Lint.h (+51/-0)
libclamav/c++/llvm/include/llvm/Analysis/LiveValues.h (+99/-0)
libclamav/c++/llvm/include/llvm/Analysis/Loads.h (+51/-0)
libclamav/c++/llvm/include/llvm/Analysis/LoopDependenceAnalysis.h (+122/-0)
libclamav/c++/llvm/include/llvm/Analysis/LoopInfo.h (+1079/-0)
libclamav/c++/llvm/include/llvm/Analysis/LoopPass.h (+158/-0)
libclamav/c++/llvm/include/llvm/Analysis/MemoryBuiltins.h (+80/-0)
libclamav/c++/llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h (+349/-0)
libclamav/c++/llvm/include/llvm/Analysis/PHITransAddr.h (+117/-0)
libclamav/c++/llvm/include/llvm/Analysis/Passes.h (+175/-0)
libclamav/c++/llvm/include/llvm/Analysis/PointerTracking.h (+132/-0)
libclamav/c++/llvm/include/llvm/Analysis/PostDominators.h (+134/-0)
libclamav/c++/llvm/include/llvm/Analysis/ProfileInfo.h (+248/-0)
libclamav/c++/llvm/include/llvm/Analysis/ProfileInfoLoader.h (+84/-0)
libclamav/c++/llvm/include/llvm/Analysis/ProfileInfoTypes.h (+29/-0)
libclamav/c++/llvm/include/llvm/Analysis/RegionInfo.h (+630/-0)
libclamav/c++/llvm/include/llvm/Analysis/RegionIterator.h (+342/-0)
libclamav/c++/llvm/include/llvm/Analysis/RegionPrinter.h (+26/-0)
libclamav/c++/llvm/include/llvm/Analysis/ScalarEvolution.h (+694/-0)
libclamav/c++/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h (+209/-0)
libclamav/c++/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h (+603/-0)
libclamav/c++/llvm/include/llvm/Analysis/ScalarEvolutionNormalization.h (+78/-0)
libclamav/c++/llvm/include/llvm/Analysis/SparsePropagation.h (+206/-0)
libclamav/c++/llvm/include/llvm/Analysis/Trace.h (+119/-0)
libclamav/c++/llvm/include/llvm/Analysis/ValueTracking.h (+115/-0)
libclamav/c++/llvm/include/llvm/Analysis/Verifier.h (+75/-0)
libclamav/c++/llvm/include/llvm/Argument.h (+88/-0)
libclamav/c++/llvm/include/llvm/Assembly/AssemblyAnnotationWriter.h (+63/-0)
libclamav/c++/llvm/include/llvm/Assembly/Parser.h (+65/-0)
libclamav/c++/llvm/include/llvm/Assembly/PrintModulePass.h (+42/-0)
libclamav/c++/llvm/include/llvm/Assembly/Writer.h (+78/-0)
libclamav/c++/llvm/include/llvm/Attributes.h (+287/-0)
libclamav/c++/llvm/include/llvm/AutoUpgrade.h (+48/-0)
libclamav/c++/llvm/include/llvm/BasicBlock.h (+269/-0)
libclamav/c++/llvm/include/llvm/Bitcode/Archive.h (+546/-0)
libclamav/c++/llvm/include/llvm/Bitcode/BitCodes.h (+185/-0)
libclamav/c++/llvm/include/llvm/Bitcode/BitstreamReader.h (+642/-0)
libclamav/c++/llvm/include/llvm/Bitcode/BitstreamWriter.h (+533/-0)
libclamav/c++/llvm/include/llvm/Bitcode/LLVMBitCodes.h (+264/-0)
libclamav/c++/llvm/include/llvm/Bitcode/ReaderWriter.h (+136/-0)
libclamav/c++/llvm/include/llvm/CMakeLists.txt (+19/-0)
libclamav/c++/llvm/include/llvm/CallGraphSCCPass.h (+104/-0)
libclamav/c++/llvm/include/llvm/CallingConv.h (+88/-0)
libclamav/c++/llvm/include/llvm/CodeGen/Analysis.h (+80/-0)
libclamav/c++/llvm/include/llvm/CodeGen/AsmPrinter.h (+460/-0)
libclamav/c++/llvm/include/llvm/CodeGen/BinaryObject.h (+353/-0)
libclamav/c++/llvm/include/llvm/CodeGen/CalcSpillWeights.h (+64/-0)
libclamav/c++/llvm/include/llvm/CodeGen/CallingConvLower.h (+300/-0)
libclamav/c++/llvm/include/llvm/CodeGen/FastISel.h (+341/-0)
libclamav/c++/llvm/include/llvm/CodeGen/FunctionLoweringInfo.h (+164/-0)
libclamav/c++/llvm/include/llvm/CodeGen/GCMetadata.h (+190/-0)
libclamav/c++/llvm/include/llvm/CodeGen/GCMetadataPrinter.h (+73/-0)
libclamav/c++/llvm/include/llvm/CodeGen/GCStrategy.h (+142/-0)
libclamav/c++/llvm/include/llvm/CodeGen/GCs.h (+35/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ISDOpcodes.h (+775/-0)
libclamav/c++/llvm/include/llvm/CodeGen/IntrinsicLowering.h (+54/-0)
libclamav/c++/llvm/include/llvm/CodeGen/JITCodeEmitter.h (+344/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LatencyPriorityQueue.h (+96/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LinkAllAsmWriterComponents.h (+37/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LinkAllCodegenComponents.h (+57/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LiveInterval.h (+574/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h (+456/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LiveStackAnalysis.h (+107/-0)
libclamav/c++/llvm/include/llvm/CodeGen/LiveVariables.h (+313/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachORelocation.h (+56/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineBasicBlock.h (+467/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineCodeEmitter.h (+332/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineCodeInfo.h (+53/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineConstantPool.h (+167/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineDominators.h (+202/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineFrameInfo.h (+556/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineFunction.h (+468/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h (+50/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineFunctionPass.h (+59/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineInstr.h (+516/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineInstrBuilder.h (+227/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h (+125/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineLocation.h (+93/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineLoopInfo.h (+176/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineMemOperand.h (+113/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineModuleInfo.h (+353/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineModuleInfoImpls.h (+97/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineOperand.h (+542/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachinePassRegistry.h (+156/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineRegisterInfo.h (+406/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineRelocation.h (+342/-0)
libclamav/c++/llvm/include/llvm/CodeGen/MachineSSAUpdater.h (+115/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ObjectCodeEmitter.h (+171/-0)
libclamav/c++/llvm/include/llvm/CodeGen/Passes.h (+210/-0)
libclamav/c++/llvm/include/llvm/CodeGen/PostRAHazardRecognizer.h (+94/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ProcessImplicitDefs.h (+43/-0)
libclamav/c++/llvm/include/llvm/CodeGen/PseudoSourceValue.h (+112/-0)
libclamav/c++/llvm/include/llvm/CodeGen/RegAllocRegistry.h (+66/-0)
libclamav/c++/llvm/include/llvm/CodeGen/RegisterCoalescer.h (+244/-0)
libclamav/c++/llvm/include/llvm/CodeGen/RegisterScavenging.h (+168/-0)
libclamav/c++/llvm/include/llvm/CodeGen/RuntimeLibcalls.h (+313/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ScheduleDAG.h (+681/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ScheduleHazardRecognizer.h (+71/-0)
libclamav/c++/llvm/include/llvm/CodeGen/SchedulerRegistry.h (+111/-0)
libclamav/c++/llvm/include/llvm/CodeGen/SelectionDAG.h (+1036/-0)
libclamav/c++/llvm/include/llvm/CodeGen/SelectionDAGISel.h (+314/-0)
libclamav/c++/llvm/include/llvm/CodeGen/SelectionDAGNodes.h (+1772/-0)
libclamav/c++/llvm/include/llvm/CodeGen/SlotIndexes.h (+833/-0)
libclamav/c++/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h (+200/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ValueTypes.h (+667/-0)
libclamav/c++/llvm/include/llvm/CodeGen/ValueTypes.td (+77/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/Action.h (+54/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/AutoGenerated.h (+40/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/BuiltinOptions.h (+39/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/Common.td (+124/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/CompilationGraph.h (+330/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/Error.h (+29/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/Main.h (+21/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/Main.inc (+23/-0)
libclamav/c++/llvm/include/llvm/CompilerDriver/Tool.h (+100/-0)
libclamav/c++/llvm/include/llvm/Config/.gitignore (+1/-0)
libclamav/c++/llvm/include/llvm/Config/AsmParsers.def.in (+29/-0)
libclamav/c++/llvm/include/llvm/Config/AsmPrinters.def.in (+29/-0)
libclamav/c++/llvm/include/llvm/Config/Disassemblers.def.in (+29/-0)
libclamav/c++/llvm/include/llvm/Config/Targets.def.in (+28/-0)
libclamav/c++/llvm/include/llvm/Config/config.h.cmake (+641/-0)
libclamav/c++/llvm/include/llvm/Config/config.h.in (+638/-0)
libclamav/c++/llvm/include/llvm/Config/llvm-config.h.cmake (+97/-0)
libclamav/c++/llvm/include/llvm/Config/llvm-config.h.in (+97/-0)
libclamav/c++/llvm/include/llvm/Constant.h (+159/-0)
libclamav/c++/llvm/include/llvm/Constants.h (+920/-0)
libclamav/c++/llvm/include/llvm/DerivedTypes.h (+512/-0)
libclamav/c++/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h (+520/-0)
libclamav/c++/llvm/include/llvm/ExecutionEngine/GenericValue.h (+44/-0)
libclamav/c++/llvm/include/llvm/ExecutionEngine/Interpreter.h (+38/-0)
libclamav/c++/llvm/include/llvm/ExecutionEngine/JIT.h (+38/-0)
libclamav/c++/llvm/include/llvm/ExecutionEngine/JITEventListener.h (+78/-0)
libclamav/c++/llvm/include/llvm/ExecutionEngine/JITMemoryManager.h (+185/-0)
libclamav/c++/llvm/include/llvm/Function.h (+437/-0)
libclamav/c++/llvm/include/llvm/GVMaterializer.h (+66/-0)
libclamav/c++/llvm/include/llvm/GlobalAlias.h (+99/-0)
libclamav/c++/llvm/include/llvm/GlobalValue.h (+295/-0)
libclamav/c++/llvm/include/llvm/GlobalVariable.h (+152/-0)
libclamav/c++/llvm/include/llvm/InlineAsm.h (+213/-0)
libclamav/c++/llvm/include/llvm/InstrTypes.h (+913/-0)
libclamav/c++/llvm/include/llvm/Instruction.def (+196/-0)
libclamav/c++/llvm/include/llvm/Instruction.h (+391/-0)
libclamav/c++/llvm/include/llvm/Instructions.h (+3162/-0)
libclamav/c++/llvm/include/llvm/IntrinsicInst.h (+325/-0)
libclamav/c++/llvm/include/llvm/Intrinsics.gen (+14652/-0)
libclamav/c++/llvm/include/llvm/Intrinsics.h (+80/-0)
libclamav/c++/llvm/include/llvm/Intrinsics.td (+488/-0)
libclamav/c++/llvm/include/llvm/IntrinsicsARM.td (+385/-0)
libclamav/c++/llvm/include/llvm/IntrinsicsAlpha.td (+18/-0)
libclamav/c++/llvm/include/llvm/IntrinsicsCellSPU.td (+242/-0)
libclamav/c++/llvm/include/llvm/IntrinsicsPowerPC.td (+465/-0)
libclamav/c++/llvm/include/llvm/IntrinsicsX86.td (+1608/-0)
libclamav/c++/llvm/include/llvm/IntrinsicsXCore.td (+14/-0)
libclamav/c++/llvm/include/llvm/LLVMContext.h (+88/-0)
libclamav/c++/llvm/include/llvm/LinkAllPasses.h (+162/-0)
libclamav/c++/llvm/include/llvm/LinkAllVMCore.h (+54/-0)
libclamav/c++/llvm/include/llvm/Linker.h (+299/-0)
libclamav/c++/llvm/include/llvm/MC/EDInstInfo.h (+29/-0)
libclamav/c++/llvm/include/llvm/MC/ELFObjectWriter.h (+46/-0)
libclamav/c++/llvm/include/llvm/MC/MCAsmInfo.h (+440/-0)
libclamav/c++/llvm/include/llvm/MC/MCAsmInfoCOFF.h (+24/-0)
libclamav/c++/llvm/include/llvm/MC/MCAsmInfoDarwin.h (+32/-0)
libclamav/c++/llvm/include/llvm/MC/MCAsmLayout.h (+135/-0)
libclamav/c++/llvm/include/llvm/MC/MCAssembler.h (+805/-0)
libclamav/c++/llvm/include/llvm/MC/MCCodeEmitter.h (+80/-0)
libclamav/c++/llvm/include/llvm/MC/MCContext.h (+286/-0)
libclamav/c++/llvm/include/llvm/MC/MCDirectives.h (+51/-0)
libclamav/c++/llvm/include/llvm/MC/MCDisassembler.h (+60/-0)
libclamav/c++/llvm/include/llvm/MC/MCDwarf.h (+156/-0)
libclamav/c++/llvm/include/llvm/MC/MCELFSymbolFlags.h (+54/-0)
libclamav/c++/llvm/include/llvm/MC/MCExpr.h (+404/-0)
libclamav/c++/llvm/include/llvm/MC/MCFixup.h (+93/-0)
libclamav/c++/llvm/include/llvm/MC/MCInst.h (+142/-0)
libclamav/c++/llvm/include/llvm/MC/MCInstPrinter.h (+48/-0)
libclamav/c++/llvm/include/llvm/MC/MCLabel.h (+56/-0)
libclamav/c++/llvm/include/llvm/MC/MCMachOSymbolFlags.h (+44/-0)
libclamav/c++/llvm/include/llvm/MC/MCObjectStreamer.h (+67/-0)
libclamav/c++/llvm/include/llvm/MC/MCObjectWriter.h (+169/-0)
libclamav/c++/llvm/include/llvm/MC/MCParser/AsmCond.h (+40/-0)
libclamav/c++/llvm/include/llvm/MC/MCParser/AsmLexer.h (+68/-0)
libclamav/c++/llvm/include/llvm/MC/MCParser/MCAsmLexer.h (+178/-0)
libclamav/c++/llvm/include/llvm/MC/MCParser/MCAsmParser.h (+133/-0)
libclamav/c++/llvm/include/llvm/MC/MCParser/MCAsmParserExtension.h (+76/-0)
libclamav/c++/llvm/include/llvm/MC/MCParser/MCParsedAsmOperand.h (+37/-0)
libclamav/c++/llvm/include/llvm/MC/MCSection.h (+69/-0)
libclamav/c++/llvm/include/llvm/MC/MCSectionCOFF.h (+67/-0)
libclamav/c++/llvm/include/llvm/MC/MCSectionELF.h (+196/-0)
libclamav/c++/llvm/include/llvm/MC/MCSectionMachO.h (+177/-0)
libclamav/c++/llvm/include/llvm/MC/MCStreamer.h (+384/-0)
libclamav/c++/llvm/include/llvm/MC/MCSymbol.h (+158/-0)
libclamav/c++/llvm/include/llvm/MC/MCValue.h (+87/-0)
libclamav/c++/llvm/include/llvm/MC/MachObjectWriter.h (+44/-0)
libclamav/c++/llvm/include/llvm/MC/SectionKind.h (+240/-0)
libclamav/c++/llvm/include/llvm/Metadata.h (+237/-0)
libclamav/c++/llvm/include/llvm/Module.h (+551/-0)
libclamav/c++/llvm/include/llvm/OperandTraits.h (+207/-0)
libclamav/c++/llvm/include/llvm/Operator.h (+306/-0)
libclamav/c++/llvm/include/llvm/Pass.h (+369/-0)
libclamav/c++/llvm/include/llvm/PassAnalysisSupport.h (+250/-0)
libclamav/c++/llvm/include/llvm/PassManager.h (+111/-0)
libclamav/c++/llvm/include/llvm/PassManagers.h (+459/-0)
libclamav/c++/llvm/include/llvm/PassRegistry.h (+71/-0)
libclamav/c++/llvm/include/llvm/PassSupport.h (+251/-0)
libclamav/c++/llvm/include/llvm/Support/AlignOf.h (+61/-0)
libclamav/c++/llvm/include/llvm/Support/Allocator.h (+241/-0)
libclamav/c++/llvm/include/llvm/Support/CFG.h (+334/-0)
libclamav/c++/llvm/include/llvm/Support/COFF.h (+298/-0)
libclamav/c++/llvm/include/llvm/Support/CallSite.h (+316/-0)
libclamav/c++/llvm/include/llvm/Support/Casting.h (+241/-0)
libclamav/c++/llvm/include/llvm/Support/CommandLine.h (+1391/-0)
libclamav/c++/llvm/include/llvm/Support/Compiler.h (+111/-0)
libclamav/c++/llvm/include/llvm/Support/ConstantFolder.h (+246/-0)
libclamav/c++/llvm/include/llvm/Support/ConstantRange.h (+252/-0)
libclamav/c++/llvm/include/llvm/Support/CrashRecoveryContext.h (+84/-0)
libclamav/c++/llvm/include/llvm/Support/DOTGraphTraits.h (+160/-0)
libclamav/c++/llvm/include/llvm/Support/DataFlow.h (+103/-0)
libclamav/c++/llvm/include/llvm/Support/Debug.h (+101/-0)
libclamav/c++/llvm/include/llvm/Support/DebugLoc.h (+80/-0)
libclamav/c++/llvm/include/llvm/Support/Dwarf.h (+676/-0)
libclamav/c++/llvm/include/llvm/Support/DynamicLinker.h (+40/-0)
libclamav/c++/llvm/include/llvm/Support/ELF.h (+567/-0)
libclamav/c++/llvm/include/llvm/Support/ErrorHandling.h (+100/-0)
libclamav/c++/llvm/include/llvm/Support/FileUtilities.h (+72/-0)
libclamav/c++/llvm/include/llvm/Support/Format.h (+154/-0)
libclamav/c++/llvm/include/llvm/Support/FormattedStream.h (+154/-0)
libclamav/c++/llvm/include/llvm/Support/GetElementPtrTypeIterator.h (+113/-0)
libclamav/c++/llvm/include/llvm/Support/GraphWriter.h (+352/-0)
libclamav/c++/llvm/include/llvm/Support/IRBuilder.h (+1177/-0)
libclamav/c++/llvm/include/llvm/Support/IRReader.h (+110/-0)
libclamav/c++/llvm/include/llvm/Support/InstIterator.h (+147/-0)
libclamav/c++/llvm/include/llvm/Support/InstVisitor.h (+217/-0)
libclamav/c++/llvm/include/llvm/Support/LeakDetector.h (+92/-0)
libclamav/c++/llvm/include/llvm/Support/MachO.h (+694/-0)
libclamav/c++/llvm/include/llvm/Support/ManagedStatic.h (+116/-0)
libclamav/c++/llvm/include/llvm/Support/MathExtras.h (+476/-0)
libclamav/c++/llvm/include/llvm/Support/MemoryBuffer.h (+117/-0)
libclamav/c++/llvm/include/llvm/Support/MemoryObject.h (+70/-0)
libclamav/c++/llvm/include/llvm/Support/MutexGuard.h (+41/-0)
libclamav/c++/llvm/include/llvm/Support/NoFolder.h (+220/-0)
libclamav/c++/llvm/include/llvm/Support/OutputBuffer.h (+166/-0)
libclamav/c++/llvm/include/llvm/Support/PassNameParser.h (+137/-0)
libclamav/c++/llvm/include/llvm/Support/PatternMatch.h (+624/-0)
libclamav/c++/llvm/include/llvm/Support/PluginLoader.h (+37/-0)
libclamav/c++/llvm/include/llvm/Support/PointerLikeTypeTraits.h (+81/-0)
libclamav/c++/llvm/include/llvm/Support/PredIteratorCache.h (+70/-0)
libclamav/c++/llvm/include/llvm/Support/PrettyStackTrace.h (+71/-0)
libclamav/c++/llvm/include/llvm/Support/Recycler.h (+117/-0)
libclamav/c++/llvm/include/llvm/Support/RecyclingAllocator.h (+73/-0)
libclamav/c++/llvm/include/llvm/Support/Regex.h (+81/-0)
libclamav/c++/llvm/include/llvm/Support/Registry.h (+223/-0)
libclamav/c++/llvm/include/llvm/Support/RegistryParser.h (+55/-0)
libclamav/c++/llvm/include/llvm/Support/SMLoc.h (+44/-0)
libclamav/c++/llvm/include/llvm/Support/SourceMgr.h (+189/-0)
libclamav/c++/llvm/include/llvm/Support/StableBasicBlockNumbering.h (+59/-0)
libclamav/c++/llvm/include/llvm/Support/StandardPasses.h (+249/-0)
libclamav/c++/llvm/include/llvm/Support/StringPool.h (+139/-0)
libclamav/c++/llvm/include/llvm/Support/SystemUtils.h (+43/-0)
libclamav/c++/llvm/include/llvm/Support/TargetFolder.h (+264/-0)
libclamav/c++/llvm/include/llvm/Support/Timer.h (+194/-0)
libclamav/c++/llvm/include/llvm/Support/TypeBuilder.h (+393/-0)
libclamav/c++/llvm/include/llvm/Support/ValueHandle.h (+408/-0)
libclamav/c++/llvm/include/llvm/Support/circular_raw_ostream.h (+171/-0)
libclamav/c++/llvm/include/llvm/Support/raw_os_ostream.h (+42/-0)
libclamav/c++/llvm/include/llvm/Support/raw_ostream.h (+519/-0)
libclamav/c++/llvm/include/llvm/Support/type_traits.h (+126/-0)
libclamav/c++/llvm/include/llvm/SymbolTableListTraits.h (+79/-0)
libclamav/c++/llvm/include/llvm/System/AIXDataTypesFix.h (+25/-0)
libclamav/c++/llvm/include/llvm/System/Alarm.h (+51/-0)
libclamav/c++/llvm/include/llvm/System/Atomic.h (+39/-0)
libclamav/c++/llvm/include/llvm/System/DataTypes.h.cmake (+189/-0)
libclamav/c++/llvm/include/llvm/System/DataTypes.h.in (+111/-0)
libclamav/c++/llvm/include/llvm/System/Disassembler.h (+35/-0)
libclamav/c++/llvm/include/llvm/System/DynamicLibrary.h (+86/-0)
libclamav/c++/llvm/include/llvm/System/Errno.h (+34/-0)
libclamav/c++/llvm/include/llvm/System/Host.h (+66/-0)
libclamav/c++/llvm/include/llvm/System/IncludeFile.h (+79/-0)
libclamav/c++/llvm/include/llvm/System/LICENSE.TXT (+6/-0)
libclamav/c++/llvm/include/llvm/System/Memory.h (+96/-0)
libclamav/c++/llvm/include/llvm/System/Mutex.h (+154/-0)
libclamav/c++/llvm/include/llvm/System/Path.h (+716/-0)
libclamav/c++/llvm/include/llvm/System/Process.h (+146/-0)
libclamav/c++/llvm/include/llvm/System/Program.h (+155/-0)
libclamav/c++/llvm/include/llvm/System/RWMutex.h (+173/-0)
libclamav/c++/llvm/include/llvm/System/Signals.h (+59/-0)
libclamav/c++/llvm/include/llvm/System/Solaris.h (+40/-0)
libclamav/c++/llvm/include/llvm/System/ThreadLocal.h (+54/-0)
libclamav/c++/llvm/include/llvm/System/Threading.h (+45/-0)
libclamav/c++/llvm/include/llvm/System/TimeValue.h (+382/-0)
libclamav/c++/llvm/include/llvm/System/Valgrind.h (+32/-0)
libclamav/c++/llvm/include/llvm/Target/Mangler.h (+82/-0)
libclamav/c++/llvm/include/llvm/Target/SubtargetFeature.h (+119/-0)
libclamav/c++/llvm/include/llvm/Target/Target.td (+642/-0)
libclamav/c++/llvm/include/llvm/Target/TargetAsmBackend.h (+134/-0)
libclamav/c++/llvm/include/llvm/Target/TargetAsmLexer.h (+89/-0)
libclamav/c++/llvm/include/llvm/Target/TargetAsmParser.h (+88/-0)
libclamav/c++/llvm/include/llvm/Target/TargetCallingConv.h (+142/-0)
libclamav/c++/llvm/include/llvm/Target/TargetCallingConv.td (+135/-0)
libclamav/c++/llvm/include/llvm/Target/TargetData.h (+335/-0)
libclamav/c++/llvm/include/llvm/Target/TargetELFWriterInfo.h (+124/-0)
libclamav/c++/llvm/include/llvm/Target/TargetFrameInfo.h (+97/-0)
libclamav/c++/llvm/include/llvm/Target/TargetInstrDesc.h (+506/-0)
libclamav/c++/llvm/include/llvm/Target/TargetInstrInfo.h (+634/-0)
libclamav/c++/llvm/include/llvm/Target/TargetInstrItineraries.h (+188/-0)
libclamav/c++/llvm/include/llvm/Target/TargetIntrinsicInfo.h (+64/-0)
libclamav/c++/llvm/include/llvm/Target/TargetJITInfo.h (+142/-0)
libclamav/c++/llvm/include/llvm/Target/TargetLowering.h (+1777/-0)
libclamav/c++/llvm/include/llvm/Target/TargetLoweringObjectFile.h (+235/-0)
libclamav/c++/llvm/include/llvm/Target/TargetMachine.h (+374/-0)
libclamav/c++/llvm/include/llvm/Target/TargetOpcodes.h (+86/-0)
libclamav/c++/llvm/include/llvm/Target/TargetOptions.h (+162/-0)
libclamav/c++/llvm/include/llvm/Target/TargetRegisterInfo.h (+809/-0)
libclamav/c++/llvm/include/llvm/Target/TargetRegistry.h (+721/-0)
libclamav/c++/llvm/include/llvm/Target/TargetSchedule.td (+95/-0)
libclamav/c++/llvm/include/llvm/Target/TargetSelect.h (+125/-0)
libclamav/c++/llvm/include/llvm/Target/TargetSelectionDAG.td (+861/-0)
libclamav/c++/llvm/include/llvm/Target/TargetSelectionDAGInfo.h (+101/-0)
libclamav/c++/llvm/include/llvm/Target/TargetSubtarget.h (+67/-0)
libclamav/c++/llvm/include/llvm/Transforms/IPO.h (+216/-0)
libclamav/c++/llvm/include/llvm/Transforms/IPO/InlinerPass.h (+97/-0)
libclamav/c++/llvm/include/llvm/Transforms/Instrumentation.h (+30/-0)
libclamav/c++/llvm/include/llvm/Transforms/RSProfiling.h (+42/-0)
libclamav/c++/llvm/include/llvm/Transforms/Scalar.h (+334/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/AddrModeMatcher.h (+102/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h (+186/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/BasicInliner.h (+55/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h (+124/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/Cloning.h (+218/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/FunctionUtils.h (+41/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/Local.h (+146/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h (+46/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/SSAUpdater.h (+114/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/SSAUpdaterImpl.h (+469/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h (+49/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/UnrollLoop.h (+29/-0)
libclamav/c++/llvm/include/llvm/Transforms/Utils/ValueMapper.h (+31/-0)
libclamav/c++/llvm/include/llvm/Type.h (+558/-0)
libclamav/c++/llvm/include/llvm/TypeSymbolTable.h (+153/-0)
libclamav/c++/llvm/include/llvm/Use.h (+215/-0)
libclamav/c++/llvm/include/llvm/User.h (+204/-0)
libclamav/c++/llvm/include/llvm/Value.h (+409/-0)
libclamav/c++/llvm/include/llvm/ValueSymbolTable.h (+133/-0)
libclamav/c++/llvm/lib/Analysis/AliasAnalysis.cpp (+344/-0)
libclamav/c++/llvm/lib/Analysis/AliasAnalysisCounter.cpp (+170/-0)
libclamav/c++/llvm/lib/Analysis/AliasAnalysisEvaluator.cpp (+290/-0)
libclamav/c++/llvm/lib/Analysis/AliasDebugger.cpp (+135/-0)
libclamav/c++/llvm/lib/Analysis/AliasSetTracker.cpp (+611/-0)
libclamav/c++/llvm/lib/Analysis/Analysis.cpp (+43/-0)
libclamav/c++/llvm/lib/Analysis/BasicAliasAnalysis.cpp (+1084/-0)
libclamav/c++/llvm/lib/Analysis/CFGPrinter.cpp (+158/-0)
libclamav/c++/llvm/lib/Analysis/CMakeLists.txt (+53/-0)
libclamav/c++/llvm/lib/Analysis/CaptureTracking.cpp (+144/-0)
libclamav/c++/llvm/lib/Analysis/ConstantFolding.cpp (+1288/-0)
libclamav/c++/llvm/lib/Analysis/DbgInfoPrinter.cpp (+105/-0)
libclamav/c++/llvm/lib/Analysis/DebugInfo.cpp (+1579/-0)
libclamav/c++/llvm/lib/Analysis/DomPrinter.cpp (+218/-0)
libclamav/c++/llvm/lib/Analysis/IPA/CMakeLists.txt (+6/-0)
libclamav/c++/llvm/lib/Analysis/IPA/CallGraph.cpp (+324/-0)
libclamav/c++/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp (+609/-0)
libclamav/c++/llvm/lib/Analysis/IPA/FindUsedTypes.cpp (+103/-0)
libclamav/c++/llvm/lib/Analysis/IPA/GlobalsModRef.cpp (+586/-0)
libclamav/c++/llvm/lib/Analysis/IPA/Makefile (+15/-0)
libclamav/c++/llvm/lib/Analysis/IVUsers.cpp (+255/-0)
libclamav/c++/llvm/lib/Analysis/InlineCost.cpp (+482/-0)
libclamav/c++/llvm/lib/Analysis/InstCount.cpp (+85/-0)
libclamav/c++/llvm/lib/Analysis/InstructionSimplify.cpp (+486/-0)
libclamav/c++/llvm/lib/Analysis/Interval.cpp (+58/-0)
libclamav/c++/llvm/lib/Analysis/IntervalPartition.cpp (+114/-0)
libclamav/c++/llvm/lib/Analysis/LazyValueInfo.cpp (+941/-0)
libclamav/c++/llvm/lib/Analysis/LibCallAliasAnalysis.cpp (+137/-0)
libclamav/c++/llvm/lib/Analysis/LibCallSemantics.cpp (+63/-0)
libclamav/c++/llvm/lib/Analysis/Lint.cpp (+662/-0)
libclamav/c++/llvm/lib/Analysis/LiveValues.cpp (+193/-0)
libclamav/c++/llvm/lib/Analysis/Loads.cpp (+235/-0)
libclamav/c++/llvm/lib/Analysis/LoopDependenceAnalysis.cpp (+351/-0)
libclamav/c++/llvm/lib/Analysis/LoopInfo.cpp (+413/-0)
libclamav/c++/llvm/lib/Analysis/LoopPass.cpp (+404/-0)
libclamav/c++/llvm/lib/Analysis/Makefile (+16/-0)
libclamav/c++/llvm/lib/Analysis/MemoryBuiltins.cpp (+207/-0)
libclamav/c++/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp (+1239/-0)
libclamav/c++/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp (+85/-0)
libclamav/c++/llvm/lib/Analysis/PHITransAddr.cpp (+429/-0)
libclamav/c++/llvm/lib/Analysis/PointerTracking.cpp (+316/-0)
libclamav/c++/llvm/lib/Analysis/PostDominators.cpp (+98/-0)
libclamav/c++/llvm/lib/Analysis/ProfileEstimatorPass.cpp (+421/-0)
libclamav/c++/llvm/lib/Analysis/ProfileInfo.cpp (+1102/-0)
libclamav/c++/llvm/lib/Analysis/ProfileInfoLoader.cpp (+158/-0)
libclamav/c++/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp (+266/-0)
libclamav/c++/llvm/lib/Analysis/ProfileVerifierPass.cpp (+377/-0)
libclamav/c++/llvm/lib/Analysis/README.txt (+30/-0)
libclamav/c++/llvm/lib/Analysis/RegionInfo.cpp (+749/-0)
libclamav/c++/llvm/lib/Analysis/RegionPrinter.cpp (+186/-0)
libclamav/c++/llvm/lib/Analysis/ScalarEvolution.cpp (+5955/-0)
libclamav/c++/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp (+164/-0)
libclamav/c++/llvm/lib/Analysis/ScalarEvolutionExpander.cpp (+1364/-0)
libclamav/c++/llvm/lib/Analysis/ScalarEvolutionNormalization.cpp (+183/-0)
libclamav/c++/llvm/lib/Analysis/SparsePropagation.cpp (+347/-0)
libclamav/c++/llvm/lib/Analysis/Trace.cpp (+51/-0)
libclamav/c++/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp (+191/-0)
libclamav/c++/llvm/lib/Analysis/ValueTracking.cpp (+1388/-0)
libclamav/c++/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp (+980/-0)
libclamav/c++/llvm/lib/CodeGen/AggressiveAntiDepBreaker.h (+184/-0)
libclamav/c++/llvm/lib/CodeGen/Analysis.cpp (+285/-0)
libclamav/c++/llvm/lib/CodeGen/AntiDepBreaker.h (+59/-0)
libclamav/c++/llvm/lib/CodeGen/BranchFolding.cpp (+1339/-0)
libclamav/c++/llvm/lib/CodeGen/BranchFolding.h (+116/-0)
libclamav/c++/llvm/lib/CodeGen/CMakeLists.txt (+86/-0)
libclamav/c++/llvm/lib/CodeGen/CalcSpillWeights.cpp (+224/-0)
libclamav/c++/llvm/lib/CodeGen/CallingConvLower.cpp (+177/-0)
libclamav/c++/llvm/lib/CodeGen/CodePlacementOpt.cpp (+425/-0)
libclamav/c++/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp (+609/-0)
libclamav/c++/llvm/lib/CodeGen/CriticalAntiDepBreaker.h (+100/-0)
libclamav/c++/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp (+188/-0)
libclamav/c++/llvm/lib/CodeGen/DwarfEHPrepare.cpp (+664/-0)
libclamav/c++/llvm/lib/CodeGen/ELF.h (+227/-0)
libclamav/c++/llvm/lib/CodeGen/ELFCodeEmitter.cpp (+205/-0)
libclamav/c++/llvm/lib/CodeGen/ELFCodeEmitter.h (+78/-0)
libclamav/c++/llvm/lib/CodeGen/ELFWriter.cpp (+1090/-0)
libclamav/c++/llvm/lib/CodeGen/ELFWriter.h (+251/-0)
libclamav/c++/llvm/lib/CodeGen/GCMetadata.cpp (+212/-0)
libclamav/c++/llvm/lib/CodeGen/GCMetadataPrinter.cpp (+27/-0)
libclamav/c++/llvm/lib/CodeGen/GCStrategy.cpp (+398/-0)
libclamav/c++/llvm/lib/CodeGen/IfConversion.cpp (+1447/-0)
libclamav/c++/llvm/lib/CodeGen/InlineSpiller.cpp (+480/-0)
libclamav/c++/llvm/lib/CodeGen/IntrinsicLowering.cpp (+538/-0)
libclamav/c++/llvm/lib/CodeGen/LLVMTargetMachine.cpp (+443/-0)
libclamav/c++/llvm/lib/CodeGen/LatencyPriorityQueue.cpp (+138/-0)
libclamav/c++/llvm/lib/CodeGen/LiveInterval.cpp (+886/-0)
libclamav/c++/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp (+2008/-0)
libclamav/c++/llvm/lib/CodeGen/LiveStackAnalysis.cpp (+64/-0)
libclamav/c++/llvm/lib/CodeGen/LiveVariables.cpp (+784/-0)
libclamav/c++/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp (+354/-0)
libclamav/c++/llvm/lib/CodeGen/LowerSubregs.cpp (+223/-0)
libclamav/c++/llvm/lib/CodeGen/MachineBasicBlock.cpp (+651/-0)
libclamav/c++/llvm/lib/CodeGen/MachineCSE.cpp (+515/-0)
libclamav/c++/llvm/lib/CodeGen/MachineDominators.cpp (+58/-0)
libclamav/c++/llvm/lib/CodeGen/MachineFunction.cpp (+739/-0)
libclamav/c++/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp (+62/-0)
libclamav/c++/llvm/lib/CodeGen/MachineFunctionPass.cpp (+56/-0)
libclamav/c++/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp (+60/-0)
libclamav/c++/llvm/lib/CodeGen/MachineInstr.cpp (+1573/-0)
libclamav/c++/llvm/lib/CodeGen/MachineLICM.cpp (+842/-0)
libclamav/c++/llvm/lib/CodeGen/MachineLoopInfo.cpp (+80/-0)
libclamav/c++/llvm/lib/CodeGen/MachineModuleInfo.cpp (+581/-0)
libclamav/c++/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp (+45/-0)
libclamav/c++/llvm/lib/CodeGen/MachinePassRegistry.cpp (+41/-0)
libclamav/c++/llvm/lib/CodeGen/MachineRegisterInfo.cpp (+224/-0)
libclamav/c++/llvm/lib/CodeGen/MachineSSAUpdater.cpp (+372/-0)
libclamav/c++/llvm/lib/CodeGen/MachineSink.cpp (+445/-0)
libclamav/c++/llvm/lib/CodeGen/MachineVerifier.cpp (+933/-0)
libclamav/c++/llvm/lib/CodeGen/Makefile (+22/-0)
libclamav/c++/llvm/lib/CodeGen/ObjectCodeEmitter.cpp (+141/-0)
libclamav/c++/llvm/lib/CodeGen/OcamlGC.cpp (+37/-0)
libclamav/c++/llvm/lib/CodeGen/OptimizePHIs.cpp (+188/-0)
libclamav/c++/llvm/lib/CodeGen/PBQP/Graph.h (+425/-0)
libclamav/c++/llvm/lib/CodeGen/PBQP/HeuristicBase.h (+246/-0)
libclamav/c++/llvm/lib/CodeGen/PBQP/HeuristicSolver.h (+616/-0)
libclamav/c++/llvm/lib/CodeGen/PBQP/Heuristics/Briggs.h (+460/-0)
libclamav/c++/llvm/lib/CodeGen/PBQP/Math.h (+288/-0)
libclamav/c++/llvm/lib/CodeGen/PBQP/Solution.h (+89/-0)
libclamav/c++/llvm/lib/CodeGen/PHIElimination.cpp (+412/-0)
libclamav/c++/llvm/lib/CodeGen/PHIElimination.h (+115/-0)
libclamav/c++/llvm/lib/CodeGen/Passes.cpp (+68/-0)
libclamav/c++/llvm/lib/CodeGen/PeepholeOptimizer.cpp (+287/-0)
libclamav/c++/llvm/lib/CodeGen/PostRAHazardRecognizer.cpp (+180/-0)
libclamav/c++/llvm/lib/CodeGen/PostRASchedulerList.cpp (+694/-0)
libclamav/c++/llvm/lib/CodeGen/PreAllocSplitting.cpp (+1423/-0)
libclamav/c++/llvm/lib/CodeGen/ProcessImplicitDefs.cpp (+295/-0)
libclamav/c++/llvm/lib/CodeGen/PrologEpilogInserter.cpp (+841/-0)
libclamav/c++/llvm/lib/CodeGen/PrologEpilogInserter.h (+175/-0)
libclamav/c++/llvm/lib/CodeGen/PseudoSourceValue.cpp (+134/-0)
libclamav/c++/llvm/lib/CodeGen/README.txt (+199/-0)
libclamav/c++/llvm/lib/CodeGen/RegAllocFast.cpp (+1048/-0)
libclamav/c++/llvm/lib/CodeGen/RegAllocLinearScan.cpp (+1533/-0)
libclamav/c++/llvm/lib/CodeGen/RegAllocPBQP.cpp (+942/-0)
libclamav/c++/llvm/lib/CodeGen/RegisterCoalescer.cpp (+196/-0)
libclamav/c++/llvm/lib/CodeGen/RegisterScavenging.cpp (+384/-0)
libclamav/c++/llvm/lib/CodeGen/RenderMachineFunction.cpp (+1014/-0)
libclamav/c++/llvm/lib/CodeGen/RenderMachineFunction.h (+336/-0)
libclamav/c++/llvm/lib/CodeGen/ScheduleDAG.cpp (+586/-0)
libclamav/c++/llvm/lib/CodeGen/ScheduleDAGEmit.cpp (+67/-0)
libclamav/c++/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp (+620/-0)
libclamav/c++/llvm/lib/CodeGen/ScheduleDAGInstrs.h (+197/-0)
libclamav/c++/llvm/lib/CodeGen/ScheduleDAGPrinter.cpp (+98/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt (+25/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (+7222/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp (+1241/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp (+346/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp (+896/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h (+142/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (+3410/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp (+1427/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp (+2474/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp (+1114/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h (+742/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp (+482/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp (+290/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp (+2562/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/Makefile (+13/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h (+114/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h (+54/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp (+636/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp (+268/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (+2019/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp (+672/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h (+122/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (+6481/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (+6254/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h (+537/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (+2553/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp (+301/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp (+2927/-0)
libclamav/c++/llvm/lib/CodeGen/SelectionDAG/TargetSelectionDAGInfo.cpp (+23/-0)
libclamav/c++/llvm/lib/CodeGen/ShadowStackGC.cpp (+451/-0)
libclamav/c++/llvm/lib/CodeGen/ShrinkWrapping.cpp (+1152/-0)
libclamav/c++/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp (+1844/-0)
libclamav/c++/llvm/lib/CodeGen/SimpleRegisterCoalescing.h (+188/-0)
libclamav/c++/llvm/lib/CodeGen/SjLjEHPrepare.cpp (+582/-0)
libclamav/c++/llvm/lib/CodeGen/SlotIndexes.cpp (+229/-0)
libclamav/c++/llvm/lib/CodeGen/Spiller.cpp (+517/-0)
libclamav/c++/llvm/lib/CodeGen/Spiller.h (+50/-0)
libclamav/c++/llvm/lib/CodeGen/SplitKit.cpp (+1097/-0)
libclamav/c++/llvm/lib/CodeGen/SplitKit.h (+321/-0)
libclamav/c++/llvm/lib/CodeGen/Splitter.cpp (+817/-0)
libclamav/c++/llvm/lib/CodeGen/Splitter.h (+99/-0)
libclamav/c++/llvm/lib/CodeGen/StackProtector.cpp (+240/-0)
libclamav/c++/llvm/lib/CodeGen/StackSlotColoring.cpp (+758/-0)
libclamav/c++/llvm/lib/CodeGen/StrongPHIElimination.cpp (+1045/-0)
libclamav/c++/llvm/lib/CodeGen/TailDuplication.cpp (+653/-0)
libclamav/c++/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp (+421/-0)
libclamav/c++/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (+1005/-0)
libclamav/c++/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp (+1498/-0)
libclamav/c++/llvm/lib/CodeGen/UnreachableBlockElim.cpp (+205/-0)
libclamav/c++/llvm/lib/CodeGen/VirtRegMap.cpp (+283/-0)
libclamav/c++/llvm/lib/CodeGen/VirtRegMap.h (+500/-0)
libclamav/c++/llvm/lib/CodeGen/VirtRegRewriter.cpp (+2552/-0)
libclamav/c++/llvm/lib/CodeGen/VirtRegRewriter.h (+32/-0)
libclamav/c++/llvm/lib/ExecutionEngine/CMakeLists.txt (+4/-0)
libclamav/c++/llvm/lib/ExecutionEngine/ExecutionEngine.cpp (+1131/-0)
libclamav/c++/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp (+254/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/CMakeLists.txt (+13/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp (+164/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JIT.cpp (+833/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JIT.h (+237/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp (+212/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.h (+116/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp (+597/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.h (+71/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp (+1304/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp (+727/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/Makefile (+38/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp (+192/-0)
libclamav/c++/llvm/lib/ExecutionEngine/JIT/TargetSelect.cpp (+91/-0)
libclamav/c++/llvm/lib/ExecutionEngine/Makefile (+13/-0)
libclamav/c++/llvm/lib/MC/CMakeLists.txt (+33/-0)
libclamav/c++/llvm/lib/MC/ELFObjectWriter.cpp (+973/-0)
libclamav/c++/llvm/lib/MC/MCAsmInfo.cpp (+104/-0)
libclamav/c++/llvm/lib/MC/MCAsmInfoCOFF.cpp (+37/-0)
libclamav/c++/llvm/lib/MC/MCAsmInfoDarwin.cpp (+51/-0)
libclamav/c++/llvm/lib/MC/MCAsmStreamer.cpp (+707/-0)
libclamav/c++/llvm/lib/MC/MCAssembler.cpp (+1085/-0)
libclamav/c++/llvm/lib/MC/MCCodeEmitter.cpp (+30/-0)
libclamav/c++/llvm/lib/MC/MCContext.cpp (+265/-0)
libclamav/c++/llvm/lib/MC/MCDisassembler.cpp (+14/-0)
libclamav/c++/llvm/lib/MC/MCDwarf.cpp (+21/-0)
libclamav/c++/llvm/lib/MC/MCELFStreamer.cpp (+408/-0)
libclamav/c++/llvm/lib/MC/MCExpr.cpp (+382/-0)
libclamav/c++/llvm/lib/MC/MCInst.cpp (+66/-0)
libclamav/c++/llvm/lib/MC/MCInstPrinter.cpp (+21/-0)
libclamav/c++/llvm/lib/MC/MCLabel.cpp (+21/-0)
libclamav/c++/llvm/lib/MC/MCLoggingStreamer.cpp (+208/-0)
libclamav/c++/llvm/lib/MC/MCMachOStreamer.cpp (+678/-0)
libclamav/c++/llvm/lib/MC/MCNullStreamer.cpp (+89/-0)
libclamav/c++/llvm/lib/MC/MCObjectStreamer.cpp (+87/-0)
libclamav/c++/llvm/lib/MC/MCObjectWriter.cpp (+15/-0)
libclamav/c++/llvm/lib/MC/MCSection.cpp (+22/-0)
libclamav/c++/llvm/lib/MC/MCSectionCOFF.cpp (+76/-0)
libclamav/c++/llvm/lib/MC/MCSectionELF.cpp (+135/-0)
libclamav/c++/llvm/lib/MC/MCSectionMachO.cpp (+286/-0)
libclamav/c++/llvm/lib/MC/MCStreamer.cpp (+65/-0)
libclamav/c++/llvm/lib/MC/MCSymbol.cpp (+67/-0)
libclamav/c++/llvm/lib/MC/MCValue.cpp (+36/-0)
libclamav/c++/llvm/lib/MC/MachObjectWriter.cpp (+1229/-0)
libclamav/c++/llvm/lib/MC/Makefile (+16/-0)
libclamav/c++/llvm/lib/MC/TargetAsmBackend.cpp (+22/-0)
libclamav/c++/llvm/lib/MC/WinCOFFObjectWriter.cpp (+774/-0)
libclamav/c++/llvm/lib/MC/WinCOFFStreamer.cpp (+349/-0)
libclamav/c++/llvm/lib/Makefile (+17/-0)
libclamav/c++/llvm/lib/Support/APFloat.cpp (+3563/-0)
libclamav/c++/llvm/lib/Support/APInt.cpp (+2858/-0)
libclamav/c++/llvm/lib/Support/APSInt.cpp (+23/-0)
libclamav/c++/llvm/lib/Support/Allocator.cpp (+174/-0)
libclamav/c++/llvm/lib/Support/CMakeLists.txt (+49/-0)
libclamav/c++/llvm/lib/Support/COPYRIGHT.regex (+54/-0)
libclamav/c++/llvm/lib/Support/CommandLine.cpp (+1239/-0)
libclamav/c++/llvm/lib/Support/ConstantRange.cpp (+652/-0)
libclamav/c++/llvm/lib/Support/CrashRecoveryContext.cpp (+204/-0)
libclamav/c++/llvm/lib/Support/DAGDeltaAlgorithm.cpp (+357/-0)
libclamav/c++/llvm/lib/Support/Debug.cpp (+134/-0)
libclamav/c++/llvm/lib/Support/DeltaAlgorithm.cpp (+114/-0)
libclamav/c++/llvm/lib/Support/Dwarf.cpp (+648/-0)
libclamav/c++/llvm/lib/Support/ErrorHandling.cpp (+95/-0)
libclamav/c++/llvm/lib/Support/FileUtilities.cpp (+271/-0)
libclamav/c++/llvm/lib/Support/FoldingSet.cpp (+406/-0)
libclamav/c++/llvm/lib/Support/FormattedStream.cpp (+101/-0)
libclamav/c++/llvm/lib/Support/GraphWriter.cpp (+176/-0)
libclamav/c++/llvm/lib/Support/IsInf.cpp (+49/-0)
libclamav/c++/llvm/lib/Support/IsNAN.cpp (+33/-0)
libclamav/c++/llvm/lib/Support/Makefile (+17/-0)
libclamav/c++/llvm/lib/Support/ManagedStatic.cpp (+75/-0)
libclamav/c++/llvm/lib/Support/MemoryBuffer.cpp (+297/-0)
libclamav/c++/llvm/lib/Support/MemoryObject.cpp (+34/-0)
libclamav/c++/llvm/lib/Support/PluginLoader.cpp (+47/-0)
libclamav/c++/llvm/lib/Support/PrettyStackTrace.cpp (+134/-0)
libclamav/c++/llvm/lib/Support/Regex.cpp (+168/-0)
libclamav/c++/llvm/lib/Support/SmallPtrSet.cpp (+226/-0)
libclamav/c++/llvm/lib/Support/SmallVector.cpp (+40/-0)
libclamav/c++/llvm/lib/Support/SourceMgr.cpp (+229/-0)
libclamav/c++/llvm/lib/Support/Statistic.cpp (+148/-0)
libclamav/c++/llvm/lib/Support/StringExtras.cpp (+81/-0)
libclamav/c++/llvm/lib/Support/StringMap.cpp (+215/-0)
libclamav/c++/llvm/lib/Support/StringPool.cpp (+35/-0)
libclamav/c++/llvm/lib/Support/StringRef.cpp (+392/-0)
libclamav/c++/llvm/lib/Support/SystemUtils.cpp (+65/-0)
libclamav/c++/llvm/lib/Support/TargetRegistry.cpp (+92/-0)
libclamav/c++/llvm/lib/Support/Timer.cpp (+393/-0)
libclamav/c++/llvm/lib/Support/Triple.cpp (+594/-0)
libclamav/c++/llvm/lib/Support/Twine.cpp (+140/-0)
libclamav/c++/llvm/lib/Support/circular_raw_ostream.cpp (+45/-0)
libclamav/c++/llvm/lib/Support/raw_os_ostream.cpp (+30/-0)
libclamav/c++/llvm/lib/Support/raw_ostream.cpp (+698/-0)
libclamav/c++/llvm/lib/Support/regcclass.h (+70/-0)
libclamav/c++/llvm/lib/Support/regcname.h (+139/-0)
libclamav/c++/llvm/lib/Support/regcomp.c (+1525/-0)
libclamav/c++/llvm/lib/Support/regengine.inc (+1034/-0)
libclamav/c++/llvm/lib/Support/regerror.c (+135/-0)
libclamav/c++/llvm/lib/Support/regex2.h (+157/-0)
libclamav/c++/llvm/lib/Support/regex_impl.h (+108/-0)
libclamav/c++/llvm/lib/Support/regexec.c (+161/-0)
libclamav/c++/llvm/lib/Support/regfree.c (+72/-0)
libclamav/c++/llvm/lib/Support/regstrlcpy.c (+52/-0)
libclamav/c++/llvm/lib/Support/regutils.h (+53/-0)
libclamav/c++/llvm/lib/System/Alarm.cpp (+33/-0)
libclamav/c++/llvm/lib/System/Atomic.cpp (+112/-0)
libclamav/c++/llvm/lib/System/CMakeLists.txt (+48/-0)
libclamav/c++/llvm/lib/System/Disassembler.cpp (+75/-0)
libclamav/c++/llvm/lib/System/DynamicLibrary.cpp (+168/-0)
libclamav/c++/llvm/lib/System/Errno.cpp (+74/-0)
libclamav/c++/llvm/lib/System/Host.cpp (+305/-0)
libclamav/c++/llvm/lib/System/IncludeFile.cpp (+20/-0)
libclamav/c++/llvm/lib/System/Makefile (+25/-0)
libclamav/c++/llvm/lib/System/Memory.cpp (+74/-0)
libclamav/c++/llvm/lib/System/Mutex.cpp (+157/-0)
libclamav/c++/llvm/lib/System/Path.cpp (+264/-0)
libclamav/c++/llvm/lib/System/Process.cpp (+33/-0)
libclamav/c++/llvm/lib/System/Program.cpp (+56/-0)
libclamav/c++/llvm/lib/System/README.txt (+43/-0)
libclamav/c++/llvm/lib/System/RWMutex.cpp (+157/-0)
libclamav/c++/llvm/lib/System/SearchForAddressOfSpecialSymbol.cpp (+64/-0)
libclamav/c++/llvm/lib/System/Signals.cpp (+34/-0)
libclamav/c++/llvm/lib/System/ThreadLocal.cpp (+85/-0)
libclamav/c++/llvm/lib/System/Threading.cpp (+64/-0)
libclamav/c++/llvm/lib/System/TimeValue.cpp (+58/-0)
libclamav/c++/llvm/lib/System/Unix/Alarm.inc (+72/-0)
libclamav/c++/llvm/lib/System/Unix/Host.inc (+96/-0)
libclamav/c++/llvm/lib/System/Unix/Memory.inc (+151/-0)
libclamav/c++/llvm/lib/System/Unix/Mutex.inc (+43/-0)
libclamav/c++/llvm/lib/System/Unix/Path.inc (+923/-0)
libclamav/c++/llvm/lib/System/Unix/Process.inc (+297/-0)
libclamav/c++/llvm/lib/System/Unix/Program.inc (+402/-0)
libclamav/c++/llvm/lib/System/Unix/README.txt (+16/-0)
libclamav/c++/llvm/lib/System/Unix/RWMutex.inc (+43/-0)
libclamav/c++/llvm/lib/System/Unix/Signals.inc (+300/-0)
libclamav/c++/llvm/lib/System/Unix/ThreadLocal.inc (+26/-0)
libclamav/c++/llvm/lib/System/Unix/TimeValue.inc (+56/-0)
libclamav/c++/llvm/lib/System/Unix/Unix.h (+87/-0)
libclamav/c++/llvm/lib/System/Valgrind.cpp (+54/-0)
libclamav/c++/llvm/lib/System/Win32/Alarm.inc (+43/-0)
libclamav/c++/llvm/lib/System/Win32/DynamicLibrary.inc (+200/-0)
libclamav/c++/llvm/lib/System/Win32/Host.inc (+23/-0)
libclamav/c++/llvm/lib/System/Win32/Memory.inc (+73/-0)
libclamav/c++/llvm/lib/System/Win32/Mutex.inc (+58/-0)
libclamav/c++/llvm/lib/System/Win32/Path.inc (+872/-0)
libclamav/c++/llvm/lib/System/Win32/Process.inc (+221/-0)
libclamav/c++/llvm/lib/System/Win32/Program.inc (+409/-0)
libclamav/c++/llvm/lib/System/Win32/RWMutex.inc (+58/-0)
libclamav/c++/llvm/lib/System/Win32/Signals.inc (+332/-0)
libclamav/c++/llvm/lib/System/Win32/ThreadLocal.inc (+53/-0)
libclamav/c++/llvm/lib/System/Win32/TimeValue.inc (+51/-0)
libclamav/c++/llvm/lib/System/Win32/Win32.h (+57/-0)
libclamav/c++/llvm/lib/Target/CMakeLists.txt (+15/-0)
libclamav/c++/llvm/lib/Target/Makefile (+20/-0)
libclamav/c++/llvm/lib/Target/Mangler.cpp (+245/-0)
libclamav/c++/llvm/lib/Target/PowerPC/CMakeLists.txt (+30/-0)
libclamav/c++/llvm/lib/Target/PowerPC/Makefile (+23/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPC.h (+47/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPC.td (+106/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp (+174/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCCallingConv.td (+132/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp (+252/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCFrameInfo.h (+300/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp (+306/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCHazardRecognizers.h (+73/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (+1093/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCISelLowering.cpp (+5606/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCISelLowering.h (+482/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstr64Bit.td (+751/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstrAltivec.td (+695/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstrBuilder.h (+43/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstrFormats.td (+880/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp (+636/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstrInfo.h (+142/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCInstrInfo.td (+1490/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCJITInfo.cpp (+446/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCJITInfo.h (+49/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp (+57/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCMCAsmInfo.h (+31/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h (+132/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCPerfectShuffle.h (+6586/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCPredicates.cpp (+31/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCPredicates.h (+39/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp (+1625/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCRegisterInfo.h (+94/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCRegisterInfo.td (+386/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCRelocations.h (+56/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCSchedule.td (+505/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCScheduleG3.td (+64/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCScheduleG4.td (+74/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCScheduleG4Plus.td (+80/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCScheduleG5.td (+84/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.cpp (+23/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h (+31/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCSubtarget.cpp (+142/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCSubtarget.h (+151/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp (+118/-0)
libclamav/c++/llvm/lib/Target/PowerPC/PPCTargetMachine.h (+91/-0)
libclamav/c++/llvm/lib/Target/PowerPC/README.txt (+914/-0)
libclamav/c++/llvm/lib/Target/PowerPC/README_ALTIVEC.txt (+211/-0)
libclamav/c++/llvm/lib/Target/PowerPC/TargetInfo/CMakeLists.txt (+7/-0)
libclamav/c++/llvm/lib/Target/PowerPC/TargetInfo/Makefile (+15/-0)
libclamav/c++/llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp (+23/-0)
libclamav/c++/llvm/lib/Target/README.txt (+1939/-0)
libclamav/c++/llvm/lib/Target/SubtargetFeature.cpp (+384/-0)
libclamav/c++/llvm/lib/Target/Target.cpp (+95/-0)
libclamav/c++/llvm/lib/Target/TargetAsmLexer.cpp (+14/-0)
libclamav/c++/llvm/lib/Target/TargetData.cpp (+635/-0)
libclamav/c++/llvm/lib/Target/TargetELFWriterInfo.cpp (+26/-0)
libclamav/c++/llvm/lib/Target/TargetFrameInfo.cpp (+19/-0)
libclamav/c++/llvm/lib/Target/TargetInstrInfo.cpp (+99/-0)
libclamav/c++/llvm/lib/Target/TargetIntrinsicInfo.cpp (+30/-0)
libclamav/c++/llvm/lib/Target/TargetLoweringObjectFile.cpp (+343/-0)
libclamav/c++/llvm/lib/Target/TargetMachine.cpp (+304/-0)
libclamav/c++/llvm/lib/Target/TargetRegisterInfo.cpp (+149/-0)
libclamav/c++/llvm/lib/Target/TargetSubtarget.cpp (+33/-0)
libclamav/c++/llvm/lib/Target/X86/CMakeLists.txt (+52/-0)
libclamav/c++/llvm/lib/Target/X86/Makefile (+25/-0)
libclamav/c++/llvm/lib/Target/X86/README-FPStack.txt (+85/-0)
libclamav/c++/llvm/lib/Target/X86/README-MMX.txt (+71/-0)
libclamav/c++/llvm/lib/Target/X86/README-SSE.txt (+907/-0)
libclamav/c++/llvm/lib/Target/X86/README-UNIMPLEMENTED.txt (+14/-0)
libclamav/c++/llvm/lib/Target/X86/README-X86-64.txt (+273/-0)
libclamav/c++/llvm/lib/Target/X86/README.txt (+1962/-0)
libclamav/c++/llvm/lib/Target/X86/SSEDomainFix.cpp (+506/-0)
libclamav/c++/llvm/lib/Target/X86/TargetInfo/CMakeLists.txt (+7/-0)
libclamav/c++/llvm/lib/Target/X86/TargetInfo/Makefile (+16/-0)
libclamav/c++/llvm/lib/Target/X86/TargetInfo/X86TargetInfo.cpp (+23/-0)
libclamav/c++/llvm/lib/Target/X86/X86.h (+90/-0)
libclamav/c++/llvm/lib/Target/X86/X86.td (+212/-0)
libclamav/c++/llvm/lib/Target/X86/X86AsmBackend.cpp (+343/-0)
libclamav/c++/llvm/lib/Target/X86/X86AsmPrinter.cpp (+727/-0)
libclamav/c++/llvm/lib/Target/X86/X86AsmPrinter.h (+89/-0)
libclamav/c++/llvm/lib/Target/X86/X86COFFMachineModuleInfo.cpp (+20/-0)
libclamav/c++/llvm/lib/Target/X86/X86COFFMachineModuleInfo.h (+46/-0)
libclamav/c++/llvm/lib/Target/X86/X86CallingConv.td (+382/-0)
libclamav/c++/llvm/lib/Target/X86/X86CodeEmitter.cpp (+984/-0)
libclamav/c++/llvm/lib/Target/X86/X86CompilationCallback_Win64.asm (+68/-0)
libclamav/c++/llvm/lib/Target/X86/X86ELFWriterInfo.cpp (+152/-0)
libclamav/c++/llvm/lib/Target/X86/X86ELFWriterInfo.h (+76/-0)
libclamav/c++/llvm/lib/Target/X86/X86FastISel.cpp (+1948/-0)
libclamav/c++/llvm/lib/Target/X86/X86FixupKinds.h (+27/-0)
libclamav/c++/llvm/lib/Target/X86/X86FloatingPoint.cpp (+1584/-0)
libclamav/c++/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp (+1993/-0)
libclamav/c++/llvm/lib/Target/X86/X86ISelLowering.cpp (+11414/-0)
libclamav/c++/llvm/lib/Target/X86/X86ISelLowering.h (+873/-0)
libclamav/c++/llvm/lib/Target/X86/X86Instr64bit.td (+2250/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrBuilder.h (+159/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrFMA.td (+60/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrFPStack.td (+694/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrFormats.td (+514/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrFragmentsSIMD.td (+468/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrInfo.cpp (+3154/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrInfo.h (+868/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrInfo.td (+4992/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrMMX.td (+663/-0)
libclamav/c++/llvm/lib/Target/X86/X86InstrSSE.td (+5950/-0)
libclamav/c++/llvm/lib/Target/X86/X86JITInfo.cpp (+566/-0)
libclamav/c++/llvm/lib/Target/X86/X86JITInfo.h (+81/-0)
libclamav/c++/llvm/lib/Target/X86/X86MCAsmInfo.cpp (+113/-0)
libclamav/c++/llvm/lib/Target/X86/X86MCAsmInfo.h (+38/-0)
libclamav/c++/llvm/lib/Target/X86/X86MCCodeEmitter.cpp (+982/-0)
libclamav/c++/llvm/lib/Target/X86/X86MCInstLower.cpp (+609/-0)
libclamav/c++/llvm/lib/Target/X86/X86MCInstLower.h (+54/-0)
libclamav/c++/llvm/lib/Target/X86/X86MachineFunctionInfo.h (+135/-0)
libclamav/c++/llvm/lib/Target/X86/X86RegisterInfo.cpp (+1607/-0)
libclamav/c++/llvm/lib/Target/X86/X86RegisterInfo.h (+158/-0)
libclamav/c++/llvm/lib/Target/X86/X86RegisterInfo.td (+847/-0)
libclamav/c++/llvm/lib/Target/X86/X86Relocations.h (+52/-0)
libclamav/c++/llvm/lib/Target/X86/X86SelectionDAGInfo.cpp (+243/-0)
libclamav/c++/llvm/lib/Target/X86/X86SelectionDAGInfo.h (+59/-0)
libclamav/c++/llvm/lib/Target/X86/X86ShuffleDecode.h (+155/-0)
libclamav/c++/llvm/lib/Target/X86/X86Subtarget.cpp (+371/-0)
libclamav/c++/llvm/lib/Target/X86/X86Subtarget.h (+263/-0)
libclamav/c++/llvm/lib/Target/X86/X86TargetMachine.cpp (+250/-0)
libclamav/c++/llvm/lib/Target/X86/X86TargetMachine.h (+97/-0)
libclamav/c++/llvm/lib/Target/X86/X86TargetObjectFile.cpp (+118/-0)
libclamav/c++/llvm/lib/Target/X86/X86TargetObjectFile.h (+54/-0)
libclamav/c++/llvm/lib/Transforms/Hello/CMakeLists.txt (+3/-0)
libclamav/c++/llvm/lib/Transforms/Hello/Hello.cpp (+65/-0)
libclamav/c++/llvm/lib/Transforms/Hello/Hello.exports (+0/-0)
libclamav/c++/llvm/lib/Transforms/Hello/Makefile (+24/-0)
libclamav/c++/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp (+889/-0)
libclamav/c++/llvm/lib/Transforms/IPO/CMakeLists.txt (+27/-0)
libclamav/c++/llvm/lib/Transforms/IPO/ConstantMerge.cpp (+142/-0)
libclamav/c++/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp (+939/-0)
libclamav/c++/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp (+106/-0)
libclamav/c++/llvm/lib/Transforms/IPO/ExtractGV.cpp (+82/-0)
libclamav/c++/llvm/lib/Transforms/IPO/FunctionAttrs.cpp (+391/-0)
libclamav/c++/llvm/lib/Transforms/IPO/GlobalDCE.cpp (+209/-0)
libclamav/c++/llvm/lib/Transforms/IPO/GlobalOpt.cpp (+2576/-0)
libclamav/c++/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp (+277/-0)
libclamav/c++/llvm/lib/Transforms/IPO/IPO.cpp (+84/-0)
libclamav/c++/llvm/lib/Transforms/IPO/InlineAlways.cpp (+80/-0)
libclamav/c++/llvm/lib/Transforms/IPO/InlineSimple.cpp (+111/-0)
libclamav/c++/llvm/lib/Transforms/IPO/Inliner.cpp (+548/-0)
libclamav/c++/llvm/lib/Transforms/IPO/Internalize.cpp (+190/-0)
libclamav/c++/llvm/lib/Transforms/IPO/LoopExtractor.cpp (+241/-0)
libclamav/c++/llvm/lib/Transforms/IPO/LowerSetJmp.cpp (+545/-0)
libclamav/c++/llvm/lib/Transforms/IPO/Makefile (+15/-0)
libclamav/c++/llvm/lib/Transforms/IPO/MergeFunctions.cpp (+652/-0)
libclamav/c++/llvm/lib/Transforms/IPO/PartialInlining.cpp (+180/-0)
libclamav/c++/llvm/lib/Transforms/IPO/PartialSpecialization.cpp (+216/-0)
libclamav/c++/llvm/lib/Transforms/IPO/PruneEH.cpp (+252/-0)
libclamav/c++/llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp (+71/-0)
libclamav/c++/llvm/lib/Transforms/IPO/StripSymbols.cpp (+400/-0)
libclamav/c++/llvm/lib/Transforms/IPO/StructRetPromotion.cpp (+352/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/CMakeLists.txt (+5/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp (+114/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/Makefile (+15/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/MaximumSpanningTree.h (+108/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp (+218/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp (+131/-0)
libclamav/c++/llvm/lib/Transforms/Instrumentation/ProfilingUtils.h (+31/-0)
libclamav/c++/llvm/lib/Transforms/Makefile (+20/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/ADCE.cpp (+95/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp (+147/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/CMakeLists.txt (+35/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp (+981/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/ConstantProp.cpp (+89/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp (+200/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/DCE.cpp (+132/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp (+575/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/GEPSplitter.cpp (+81/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/GVN.cpp (+2319/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp (+1034/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/JumpThreading.cpp (+1706/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LICM.cpp (+917/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LoopDeletion.cpp (+233/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp (+1270/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LoopRotation.cpp (+423/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp (+3833/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp (+153/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp (+1051/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/LowerAtomic.cpp (+161/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/Makefile (+15/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp (+801/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/Reassociate.cpp (+1075/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/Reg2Mem.cpp (+130/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/SCCP.cpp (+1997/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/Scalar.cpp (+118/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp (+1835/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp (+327/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp (+157/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp (+2201/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/Sink.cpp (+266/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/TailDuplication.cpp (+371/-0)
libclamav/c++/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp (+535/-0)
libclamav/c++/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp (+598/-0)
libclamav/c++/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp (+551/-0)
libclamav/c++/llvm/lib/Transforms/Utils/BasicInliner.cpp (+182/-0)
libclamav/c++/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp (+443/-0)
libclamav/c++/llvm/lib/Transforms/Utils/BuildLibCalls.cpp (+527/-0)
libclamav/c++/llvm/lib/Transforms/Utils/CMakeLists.txt (+28/-0)
libclamav/c++/llvm/lib/Transforms/Utils/CloneFunction.cpp (+580/-0)
libclamav/c++/llvm/lib/Transforms/Utils/CloneLoop.cpp (+151/-0)
libclamav/c++/llvm/lib/Transforms/Utils/CloneModule.cpp (+137/-0)
libclamav/c++/llvm/lib/Transforms/Utils/CodeExtractor.cpp (+795/-0)
libclamav/c++/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp (+146/-0)
libclamav/c++/llvm/lib/Transforms/Utils/InlineFunction.cpp (+668/-0)
libclamav/c++/llvm/lib/Transforms/Utils/InstructionNamer.cpp (+63/-0)
libclamav/c++/llvm/lib/Transforms/Utils/LCSSA.cpp (+266/-0)
libclamav/c++/llvm/lib/Transforms/Utils/Local.cpp (+647/-0)
libclamav/c++/llvm/lib/Transforms/Utils/LoopSimplify.cpp (+762/-0)
libclamav/c++/llvm/lib/Transforms/Utils/LoopUnroll.cpp (+378/-0)
libclamav/c++/llvm/lib/Transforms/Utils/LowerInvoke.cpp (+608/-0)
libclamav/c++/llvm/lib/Transforms/Utils/LowerSwitch.cpp (+320/-0)
libclamav/c++/llvm/lib/Transforms/Utils/Makefile (+15/-0)
libclamav/c++/llvm/lib/Transforms/Utils/Mem2Reg.cpp (+89/-0)
libclamav/c++/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp (+1053/-0)
libclamav/c++/llvm/lib/Transforms/Utils/SSAUpdater.cpp (+344/-0)
libclamav/c++/llvm/lib/Transforms/Utils/SimplifyCFG.cpp (+2207/-0)
libclamav/c++/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp (+141/-0)
libclamav/c++/llvm/lib/Transforms/Utils/ValueMapper.cpp (+177/-0)
libclamav/c++/llvm/lib/VMCore/AsmWriter.cpp (+2160/-0)
libclamav/c++/llvm/lib/VMCore/Attributes.cpp (+334/-0)
libclamav/c++/llvm/lib/VMCore/AutoUpgrade.cpp (+951/-0)
libclamav/c++/llvm/lib/VMCore/BasicBlock.cpp (+309/-0)
libclamav/c++/llvm/lib/VMCore/CMakeLists.txt (+35/-0)
libclamav/c++/llvm/lib/VMCore/ConstantFold.cpp (+2259/-0)
libclamav/c++/llvm/lib/VMCore/ConstantFold.h (+54/-0)
libclamav/c++/llvm/lib/VMCore/Constants.cpp (+2209/-0)
libclamav/c++/llvm/lib/VMCore/ConstantsContext.h (+835/-0)
libclamav/c++/llvm/lib/VMCore/Core.cpp (+2249/-0)
libclamav/c++/llvm/lib/VMCore/DebugLoc.cpp (+288/-0)
libclamav/c++/llvm/lib/VMCore/Dominators.cpp (+360/-0)
libclamav/c++/llvm/lib/VMCore/Function.cpp (+418/-0)
libclamav/c++/llvm/lib/VMCore/GVMaterializer.cpp (+18/-0)
libclamav/c++/llvm/lib/VMCore/Globals.cpp (+310/-0)
libclamav/c++/llvm/lib/VMCore/IRBuilder.cpp (+38/-0)
libclamav/c++/llvm/lib/VMCore/InlineAsm.cpp (+238/-0)
libclamav/c++/llvm/lib/VMCore/Instruction.cpp (+454/-0)
libclamav/c++/llvm/lib/VMCore/Instructions.cpp (+3374/-0)
libclamav/c++/llvm/lib/VMCore/IntrinsicInst.cpp (+73/-0)
libclamav/c++/llvm/lib/VMCore/LLVMContext.cpp (+127/-0)
libclamav/c++/llvm/lib/VMCore/LLVMContextImpl.cpp (+104/-0)
libclamav/c++/llvm/lib/VMCore/LLVMContextImpl.h (+244/-0)
libclamav/c++/llvm/lib/VMCore/LeakDetector.cpp (+69/-0)
libclamav/c++/llvm/lib/VMCore/LeaksContext.h (+92/-0)
libclamav/c++/llvm/lib/VMCore/Makefile (+34/-0)
libclamav/c++/llvm/lib/VMCore/Metadata.cpp (+565/-0)
libclamav/c++/llvm/lib/VMCore/Module.cpp (+471/-0)
libclamav/c++/llvm/lib/VMCore/Pass.cpp (+294/-0)
libclamav/c++/llvm/lib/VMCore/PassManager.cpp (+1809/-0)
libclamav/c++/llvm/lib/VMCore/PassRegistry.cpp (+159/-0)
libclamav/c++/llvm/lib/VMCore/PrintModulePass.cpp (+101/-0)
libclamav/c++/llvm/lib/VMCore/SymbolTableListTraitsImpl.h (+118/-0)
libclamav/c++/llvm/lib/VMCore/Type.cpp (+1210/-0)
libclamav/c++/llvm/lib/VMCore/TypeSymbolTable.cpp (+169/-0)
libclamav/c++/llvm/lib/VMCore/TypesContext.h (+425/-0)
libclamav/c++/llvm/lib/VMCore/Use.cpp (+246/-0)
libclamav/c++/llvm/lib/VMCore/Value.cpp (+625/-0)
libclamav/c++/llvm/lib/VMCore/ValueSymbolTable.cpp (+117/-0)
libclamav/c++/llvm/lib/VMCore/ValueTypes.cpp (+208/-0)
libclamav/c++/llvm/lib/VMCore/Verifier.cpp (+1978/-0)
libclamav/c++/llvm/llvm.spec.in (+67/-0)
libclamav/c++/llvm/utils/DSAclean.py (+32/-0)
libclamav/c++/llvm/utils/DSAextract.py (+111/-0)
libclamav/c++/llvm/utils/GenLibDeps.pl (+388/-0)
libclamav/c++/llvm/utils/GetSourceVersion (+27/-0)
libclamav/c++/llvm/utils/Makefile (+22/-0)
libclamav/c++/llvm/utils/Misc/zkill (+276/-0)
libclamav/c++/llvm/utils/NLT.schema (+8/-0)
libclamav/c++/llvm/utils/NewNightlyTest.pl (+836/-0)
libclamav/c++/llvm/utils/NightlyTest.gnuplot (+214/-0)
libclamav/c++/llvm/utils/NightlyTestTemplate.html (+244/-0)
libclamav/c++/llvm/utils/OldenDataRecover.pl (+37/-0)
libclamav/c++/llvm/utils/TableGen/ARMDecoderEmitter.cpp (+1878/-0)
libclamav/c++/llvm/utils/TableGen/ARMDecoderEmitter.h (+50/-0)
libclamav/c++/llvm/utils/TableGen/AsmMatcherEmitter.cpp (+1811/-0)
libclamav/c++/llvm/utils/TableGen/AsmMatcherEmitter.h (+33/-0)
libclamav/c++/llvm/utils/TableGen/AsmWriterEmitter.cpp (+548/-0)
libclamav/c++/llvm/utils/TableGen/AsmWriterEmitter.h (+54/-0)
libclamav/c++/llvm/utils/TableGen/AsmWriterInst.cpp (+265/-0)
libclamav/c++/llvm/utils/TableGen/AsmWriterInst.h (+113/-0)
libclamav/c++/llvm/utils/TableGen/CMakeLists.txt (+46/-0)
libclamav/c++/llvm/utils/TableGen/CallingConvEmitter.cpp (+212/-0)
libclamav/c++/llvm/utils/TableGen/CallingConvEmitter.h (+38/-0)
libclamav/c++/llvm/utils/TableGen/ClangASTNodesEmitter.cpp (+165/-0)
libclamav/c++/llvm/utils/TableGen/ClangASTNodesEmitter.h (+84/-0)
libclamav/c++/llvm/utils/TableGen/ClangAttrEmitter.cpp (+638/-0)
libclamav/c++/llvm/utils/TableGen/ClangAttrEmitter.h (+88/-0)
libclamav/c++/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp (+286/-0)
libclamav/c++/llvm/utils/TableGen/ClangDiagnosticsEmitter.h (+46/-0)
libclamav/c++/llvm/utils/TableGen/CodeEmitterGen.cpp (+224/-0)
libclamav/c++/llvm/utils/TableGen/CodeEmitterGen.h (+43/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenDAGPatterns.cpp (+3021/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenDAGPatterns.h (+748/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenInstruction.cpp (+306/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenInstruction.h (+197/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenIntrinsics.h (+87/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenRegisters.h (+95/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenTarget.cpp (+568/-0)
libclamav/c++/llvm/utils/TableGen/CodeGenTarget.h (+262/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelEmitter.cpp (+155/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelEmitter.h (+38/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelMatcher.cpp (+401/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelMatcher.h (+1114/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp (+795/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelMatcherGen.cpp (+910/-0)
libclamav/c++/llvm/utils/TableGen/DAGISelMatcherOpt.cpp (+514/-0)
libclamav/c++/llvm/utils/TableGen/DisassemblerEmitter.cpp (+137/-0)
libclamav/c++/llvm/utils/TableGen/DisassemblerEmitter.h (+28/-0)
libclamav/c++/llvm/utils/TableGen/EDEmitter.cpp (+864/-0)
libclamav/c++/llvm/utils/TableGen/EDEmitter.h (+34/-0)
libclamav/c++/llvm/utils/TableGen/FastISelEmitter.cpp (+651/-0)
libclamav/c++/llvm/utils/TableGen/FastISelEmitter.h (+39/-0)
libclamav/c++/llvm/utils/TableGen/InstrEnumEmitter.cpp (+48/-0)
libclamav/c++/llvm/utils/TableGen/InstrEnumEmitter.h (+33/-0)
libclamav/c++/llvm/utils/TableGen/InstrInfoEmitter.cpp (+335/-0)
libclamav/c++/llvm/utils/TableGen/InstrInfoEmitter.h (+66/-0)
libclamav/c++/llvm/utils/TableGen/IntrinsicEmitter.cpp (+751/-0)
libclamav/c++/llvm/utils/TableGen/IntrinsicEmitter.h (+63/-0)
libclamav/c++/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp (+3110/-0)
libclamav/c++/llvm/utils/TableGen/LLVMCConfigurationEmitter.h (+32/-0)
libclamav/c++/llvm/utils/TableGen/Makefile (+20/-0)
libclamav/c++/llvm/utils/TableGen/NeonEmitter.cpp (+1207/-0)
libclamav/c++/llvm/utils/TableGen/NeonEmitter.h (+122/-0)
libclamav/c++/llvm/utils/TableGen/OptParserEmitter.cpp (+194/-0)
libclamav/c++/llvm/utils/TableGen/OptParserEmitter.h (+34/-0)
libclamav/c++/llvm/utils/TableGen/Record.cpp (+1588/-0)
libclamav/c++/llvm/utils/TableGen/Record.h (+1497/-0)
libclamav/c++/llvm/utils/TableGen/RegisterInfoEmitter.cpp (+1017/-0)
libclamav/c++/llvm/utils/TableGen/RegisterInfoEmitter.h (+40/-0)
libclamav/c++/llvm/utils/TableGen/StringToOffsetTable.h (+81/-0)
libclamav/c++/llvm/utils/TableGen/SubtargetEmitter.cpp (+605/-0)
libclamav/c++/llvm/utils/TableGen/SubtargetEmitter.h (+65/-0)
libclamav/c++/llvm/utils/TableGen/TGLexer.cpp (+450/-0)
libclamav/c++/llvm/utils/TableGen/TGLexer.h (+121/-0)
libclamav/c++/llvm/utils/TableGen/TGParser.cpp (+2123/-0)
libclamav/c++/llvm/utils/TableGen/TGParser.h (+112/-0)
libclamav/c++/llvm/utils/TableGen/TGValueTypes.cpp (+106/-0)
libclamav/c++/llvm/utils/TableGen/TableGen.cpp (+356/-0)
libclamav/c++/llvm/utils/TableGen/TableGenBackend.cpp (+25/-0)
libclamav/c++/llvm/utils/TableGen/TableGenBackend.h (+43/-0)
libclamav/c++/llvm/utils/TableGen/X86DisassemblerShared.h (+38/-0)
libclamav/c++/llvm/utils/TableGen/X86DisassemblerTables.cpp (+603/-0)
libclamav/c++/llvm/utils/TableGen/X86DisassemblerTables.h (+291/-0)
libclamav/c++/llvm/utils/TableGen/X86ModRMFilters.h (+197/-0)
libclamav/c++/llvm/utils/TableGen/X86RecognizableInstr.cpp (+983/-0)
libclamav/c++/llvm/utils/TableGen/X86RecognizableInstr.h (+239/-0)
libclamav/c++/llvm/utils/UpdateCMakeLists.pl (+119/-0)
libclamav/c++/llvm/utils/bugpoint/RemoteRunSafely.sh (+105/-0)
libclamav/c++/llvm/utils/buildit/GNUmakefile (+131/-0)
libclamav/c++/llvm/utils/buildit/build_llvm (+373/-0)
libclamav/c++/llvm/utils/cgiplotNLT.pl (+68/-0)
libclamav/c++/llvm/utils/check-each-file (+150/-0)
libclamav/c++/llvm/utils/codegen-diff (+135/-0)
libclamav/c++/llvm/utils/count/CMakeLists.txt (+3/-0)
libclamav/c++/llvm/utils/count/Makefile (+20/-0)
libclamav/c++/llvm/utils/count/count.c (+50/-0)
libclamav/c++/llvm/utils/countloc.sh (+40/-0)
libclamav/c++/llvm/utils/crosstool/ARM/README (+37/-0)
libclamav/c++/llvm/utils/crosstool/ARM/build-install-linux.sh (+200/-0)
libclamav/c++/llvm/utils/crosstool/create-snapshots.sh (+41/-0)
libclamav/c++/llvm/utils/emacs/README (+27/-0)
libclamav/c++/llvm/utils/emacs/emacs.el (+39/-0)
libclamav/c++/llvm/utils/emacs/llvm-mode.el (+128/-0)
libclamav/c++/llvm/utils/emacs/tablegen-mode.el (+124/-0)
libclamav/c++/llvm/utils/findmisopt (+178/-0)
libclamav/c++/llvm/utils/findoptdiff (+101/-0)
libclamav/c++/llvm/utils/findsym.pl (+33/-0)
libclamav/c++/llvm/utils/getsrcs.sh (+34/-0)
libclamav/c++/llvm/utils/git/find-rev (+50/-0)
libclamav/c++/llvm/utils/importNLT.pl (+86/-0)
libclamav/c++/llvm/utils/jedit/README (+14/-0)
libclamav/c++/llvm/utils/jedit/tablegen.xml (+39/-0)
libclamav/c++/llvm/utils/lint/common_lint.py (+97/-0)
libclamav/c++/llvm/utils/lint/cpp_lint.py (+94/-0)
libclamav/c++/llvm/utils/lint/generic_lint.py (+24/-0)
libclamav/c++/llvm/utils/lint/remove_trailing_whitespace.sh (+6/-0)
libclamav/c++/llvm/utils/lit/TODO (+19/-0)
libclamav/c++/llvm/utils/lit/lit.py (+5/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests.ObjDir/lit.site.cfg (+15/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/Clang/fsyntax-only.c (+4/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/Clang/lit.cfg (+47/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.InTree/test/Bar/bar-test.ll (+3/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.InTree/test/Bar/dg.exp (+6/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.InTree/test/lit.cfg (+151/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.InTree/test/lit.site.cfg (+10/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.InTree/test/site.exp (+28/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/lit.local.cfg (+1/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/obj/test/Foo/lit.local.cfg (+0/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/obj/test/lit.site.cfg (+11/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/obj/test/site.exp (+28/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/src/test/Foo/data.txt (+1/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/src/test/Foo/dg.exp (+6/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/src/test/Foo/pct-S.ll (+1/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/LLVM.OutOfTree/src/test/lit.cfg (+151/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/ShExternal/lit.local.cfg (+6/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/ShInternal/lit.local.cfg (+6/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/TclTest/lit.local.cfg (+5/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/TclTest/stderr-pipe.ll (+1/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/TclTest/tcl-redir-1.ll (+7/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/fail.c (+2/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/lit.cfg (+26/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/pass.c (+1/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/required-and-missing.c (+4/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/required-and-present.c (+2/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/xfail.c (+2/-0)
libclamav/c++/llvm/utils/lit/lit/ExampleTests/xpass.c (+2/-0)
libclamav/c++/llvm/utils/lit/lit/LitConfig.py (+112/-0)
libclamav/c++/llvm/utils/lit/lit/LitFormats.py (+2/-0)
libclamav/c++/llvm/utils/lit/lit/LitTestCase.py (+30/-0)
libclamav/c++/llvm/utils/lit/lit/ProgressBar.py (+267/-0)
libclamav/c++/llvm/utils/lit/lit/ShCommands.py (+85/-0)
libclamav/c++/llvm/utils/lit/lit/ShUtil.py (+353/-0)
libclamav/c++/llvm/utils/lit/lit/TclUtil.py (+322/-0)
libclamav/c++/llvm/utils/lit/lit/Test.py (+79/-0)
libclamav/c++/llvm/utils/lit/lit/TestFormats.py (+221/-0)
libclamav/c++/llvm/utils/lit/lit/TestRunner.py (+586/-0)
libclamav/c++/llvm/utils/lit/lit/TestingConfig.py (+101/-0)
libclamav/c++/llvm/utils/lit/lit/Util.py (+125/-0)
libclamav/c++/llvm/utils/lit/lit/__init__.py (+10/-0)
libclamav/c++/llvm/utils/lit/lit/lit.py (+648/-0)
libclamav/c++/llvm/utils/lit/setup.py (+69/-0)
libclamav/c++/llvm/utils/llvm-lit/Makefile (+21/-0)
libclamav/c++/llvm/utils/llvm-lit/llvm-lit.in (+21/-0)
libclamav/c++/llvm/utils/llvm-native-gcc (+249/-0)
libclamav/c++/llvm/utils/llvm-native-gxx (+249/-0)
libclamav/c++/llvm/utils/llvm.grm (+418/-0)
libclamav/c++/llvm/utils/llvmdo (+184/-0)
libclamav/c++/llvm/utils/llvmgrep (+39/-0)
libclamav/c++/llvm/utils/makellvm (+145/-0)
libclamav/c++/llvm/utils/parseNLT.pl (+34/-0)
libclamav/c++/llvm/utils/plotNLT.pl (+53/-0)
libclamav/c++/llvm/utils/profile.pl (+74/-0)
libclamav/c++/llvm/utils/valgrind/i386-pc-linux-gnu.supp (+41/-0)
libclamav/c++/llvm/utils/valgrind/x86_64-pc-linux-gnu.supp (+46/-0)
libclamav/c++/llvm/utils/vim/README (+43/-0)
libclamav/c++/llvm/utils/vim/llvm.vim (+109/-0)
libclamav/c++/llvm/utils/vim/tablegen.vim (+54/-0)
libclamav/c++/llvm/utils/vim/vimrc (+220/-0)
libclamav/c++/llvm/utils/webNLT.pl (+83/-0)
libclamav/c++/llvm30_compat.h (+25/-0)
libclamav/c++/llvmcheck.sh (+13/-0)
libclamav/c++/m4/check_gnu_make.m4 (+26/-0)
libclamav/c++/m4/cxx_flag_check.m4 (+2/-0)
libclamav/c++/m4/libtool.m4 (+8369/-0)
libclamav/c++/m4/llvm-flags.m4 (+137/-0)
libclamav/c++/m4/ltoptions.m4 (+437/-0)
libclamav/c++/m4/ltsugar.m4 (+124/-0)
libclamav/c++/m4/ltversion.m4 (+23/-0)
libclamav/c++/m4/lt~obsolete.m4 (+99/-0)
libclamav/cab.c (+685/-0)
libclamav/cab.h (+82/-0)
libclamav/cache.c (+959/-0)
libclamav/cache.h (+34/-0)
libclamav/chmunpack.c (+746/-0)
libclamav/chmunpack.h (+123/-0)
libclamav/clamav.h (+795/-0)
libclamav/clambc.h (+135/-0)
libclamav/cltypes.h (+115/-0)
libclamav/conv.c (+196/-0)
libclamav/conv.h (+27/-0)
libclamav/cpio.c (+331/-0)
libclamav/cpio.h (+31/-0)
libclamav/crtmgr.c (+363/-0)
libclamav/crtmgr.h (+75/-0)
libclamav/crypto.c (+1190/-0)
libclamav/cvd.c (+733/-0)
libclamav/cvd.h (+42/-0)
libclamav/dconf.c (+489/-0)
libclamav/dconf.h (+155/-0)
libclamav/default.h (+56/-0)
libclamav/disasm-common.h (+361/-0)
libclamav/disasm.c (+1753/-0)
libclamav/disasm.h (+34/-0)
libclamav/disasmpriv.h (+72/-0)
libclamav/dlp.c (+649/-0)
libclamav/dlp.h (+141/-0)
libclamav/dmg.c (+1171/-0)
libclamav/dmg.h (+132/-0)
libclamav/dsig.c (+223/-0)
libclamav/dsig.h (+32/-0)
libclamav/elf.c (+852/-0)
libclamav/elf.h (+147/-0)
libclamav/encoding_aliases.h (+93/-0)
libclamav/entconv.c (+804/-0)
libclamav/entconv.h (+60/-0)
libclamav/entitylist.h (+2075/-0)
libclamav/events.c (+502/-0)
libclamav/events.h (+125/-0)
libclamav/execs.h (+67/-0)
libclamav/explode.c (+317/-0)
libclamav/explode.h (+75/-0)
libclamav/filetypes.c (+475/-0)
libclamav/filetypes.h (+145/-0)
libclamav/filetypes_int.h (+199/-0)
libclamav/filtering.c (+753/-0)
libclamav/filtering.h (+43/-0)
libclamav/fmap.c (+795/-0)
libclamav/fmap.h (+186/-0)
libclamav/fpu.c (+52/-0)
libclamav/fpu.h (+39/-0)
libclamav/fsg.c (+124/-0)
libclamav/fsg.h (+34/-0)
libclamav/gpt.c (+677/-0)
libclamav/gpt.h (+100/-0)
libclamav/hashtab.c (+998/-0)
libclamav/hashtab.h (+180/-0)
libclamav/hfsplus.c (+809/-0)
libclamav/hfsplus.h (+292/-0)
libclamav/hostid.c (+299/-0)
libclamav/hostid.h (+35/-0)
libclamav/htmlnorm.c (+1929/-0)
libclamav/htmlnorm.h (+48/-0)
libclamav/hwp.c (+2094/-0)
libclamav/hwp.h (+60/-0)
libclamav/iana_cctld.h (+505/-0)
libclamav/iana_tld.h (+746/-0)
libclamav/inffixed64.h (+134/-0)
libclamav/inflate64.c (+1125/-0)
libclamav/inflate64.h (+98/-0)
libclamav/inflate64_priv.h (+196/-0)
libclamav/iowrap.c (+61/-0)
libclamav/iowrap.h (+50/-0)
libclamav/is_tar.c (+98/-0)
libclamav/is_tar.h (+47/-0)
libclamav/ishield.c (+789/-0)
libclamav/ishield.h (+30/-0)
libclamav/iso9660.c (+338/-0)
libclamav/iso9660.h (+29/-0)
libclamav/jpeg.c (+303/-0)
libclamav/jpeg.h (+30/-0)
libclamav/json_api.c (+522/-0)
libclamav/json_api.h (+92/-0)
libclamav/jsparse/future_reserved_words.list (+31/-0)
libclamav/jsparse/generated/keywords.h (+194/-0)
libclamav/jsparse/generated/operators.h (+186/-0)
libclamav/jsparse/js-norm.c (+1564/-0)
libclamav/jsparse/js-norm.h (+36/-0)
libclamav/jsparse/keywords.list (+25/-0)
libclamav/jsparse/lexglobal.h (+146/-0)
libclamav/jsparse/operators.gperf (+44/-0)
libclamav/jsparse/special_keywords.list (+3/-0)
libclamav/jsparse/textbuf.h (+46/-0)
libclamav/libclamav.map (+259/-0)
libclamav/line.c (+117/-0)
libclamav/line.h (+51/-0)
libclamav/lzma_iface.c (+135/-0)
libclamav/lzma_iface.h (+63/-0)
libclamav/macho.c (+564/-0)
libclamav/macho.h (+33/-0)
libclamav/matcher-ac.c (+2841/-0)
libclamav/matcher-ac.h (+144/-0)
libclamav/matcher-bm.c (+420/-0)
libclamav/matcher-bm.h (+55/-0)
libclamav/matcher-hash.c (+329/-0)
libclamav/matcher-hash.h (+69/-0)
libclamav/matcher-pcre.c (+882/-0)
libclamav/matcher-pcre.h (+97/-0)
libclamav/matcher.c (+1263/-0)
libclamav/matcher.h (+211/-0)
libclamav/mbox.c (+3830/-0)
libclamav/mbox.h (+56/-0)
libclamav/mbr.c (+621/-0)
libclamav/mbr.h (+93/-0)
libclamav/message.c (+2640/-0)
libclamav/message.h (+89/-0)
libclamav/mew.c (+922/-0)
libclamav/mew.h (+43/-0)
libclamav/mpool.c (+892/-0)
libclamav/mpool.h (+59/-0)
libclamav/msdoc.c (+998/-0)
libclamav/msdoc.h (+337/-0)
libclamav/msexpand.c (+177/-0)
libclamav/msexpand.h (+29/-0)
libclamav/mspack.c (+2032/-0)
libclamav/mspack.h (+294/-0)
libclamav/msxml.c (+268/-0)
libclamav/msxml.h (+54/-0)
libclamav/msxml_parser.c (+630/-0)
libclamav/msxml_parser.h (+91/-0)
libclamav/nsis/bzlib.c (+1122/-0)
libclamav/nsis/bzlib_private.h (+475/-0)
libclamav/nsis/infblock.c (+712/-0)
libclamav/nsis/nsis_bzlib.h (+264/-0)
libclamav/nsis/nsis_zconf.h (+2/-0)
libclamav/nsis/nsis_zlib.h (+238/-0)
libclamav/nsis/nsis_zutil.h (+74/-0)
libclamav/nsis/nulsft.c (+553/-0)
libclamav/nsis/nulsft.h (+26/-0)
libclamav/ole2_extract.c (+1594/-0)
libclamav/ole2_extract.h (+32/-0)
libclamav/ooxml.c (+504/-0)
libclamav/ooxml.h (+33/-0)
libclamav/openioc.c (+347/-0)
libclamav/openioc.h (+26/-0)
libclamav/others.c (+1410/-0)
libclamav/others.h (+764/-0)
libclamav/others_common.c (+930/-0)
libclamav/packlibs.c (+314/-0)
libclamav/packlibs.h (+36/-0)
libclamav/pdf.c (+3863/-0)
libclamav/pdf.h (+172/-0)
libclamav/pdfng.c (+1154/-0)
libclamav/pe.c (+3528/-0)
libclamav/pe.h (+174/-0)
libclamav/pe_icons.c (+1674/-0)
libclamav/pe_icons.h (+41/-0)
libclamav/perflogging.c (+149/-0)
libclamav/perflogging.h (+103/-0)
libclamav/petite.c (+523/-0)
libclamav/petite.h (+30/-0)
libclamav/phish_domaincheck_db.c (+80/-0)
libclamav/phish_domaincheck_db.h (+36/-0)
libclamav/phish_whitelist.c (+82/-0)
libclamav/phish_whitelist.h (+37/-0)
libclamav/phishcheck.c (+1589/-0)
libclamav/phishcheck.h (+81/-0)
libclamav/png.c (+1428/-0)
libclamav/png.h (+28/-0)
libclamav/prtn_intxn.c (+105/-0)
libclamav/prtn_intxn.h (+50/-0)
libclamav/qsort.c (+263/-0)
libclamav/readdb.c (+5294/-0)
libclamav/readdb.h (+129/-0)
libclamav/rebuildpe.c (+211/-0)
libclamav/rebuildpe.h (+31/-0)
libclamav/regex/cclass.h (+68/-0)
libclamav/regex/cname.h (+139/-0)
libclamav/regex/engine.c (+1022/-0)
libclamav/regex/regcomp.c (+1545/-0)
libclamav/regex/regerror.c (+134/-0)
libclamav/regex/regex.h (+103/-0)
libclamav/regex/regex2.h (+157/-0)
libclamav/regex/regexec.c (+164/-0)
libclamav/regex/regfree.c (+75/-0)
libclamav/regex/strlcpy.c (+60/-0)
libclamav/regex/utils.h (+63/-0)
libclamav/regex_list.c (+747/-0)
libclamav/regex_list.h (+72/-0)
libclamav/regex_pcre.c (+475/-0)
libclamav/regex_pcre.h (+90/-0)
libclamav/regex_suffix.c (+472/-0)
libclamav/regex_suffix.h (+34/-0)
libclamav/rijndael.c (+1211/-0)
libclamav/rijndael.h (+14/-0)
libclamav/rtf.c (+693/-0)
libclamav/rtf.h (+29/-0)
libclamav/scanners.c (+3769/-0)
libclamav/scanners.h (+37/-0)
libclamav/sf_base64decode.c (+129/-0)
libclamav/sf_base64decode.h (+32/-0)
libclamav/sis.c (+1187/-0)
libclamav/sis.h (+29/-0)
libclamav/special.c (+498/-0)
libclamav/special.h (+43/-0)
libclamav/spin.c (+515/-0)
libclamav/spin.h (+30/-0)
libclamav/stats.c (+703/-0)
libclamav/stats.h (+36/-0)
libclamav/stats_json.c (+228/-0)
libclamav/stats_json.h (+26/-0)
libclamav/str.c (+799/-0)
libclamav/str.h (+84/-0)
libclamav/strlcat.c (+67/-0)
libclamav/swf.c (+565/-0)
libclamav/swf.h (+224/-0)
libclamav/table.c (+216/-0)
libclamav/table.h (+45/-0)
libclamav/text.c (+467/-0)
libclamav/text.h (+62/-0)
libclamav/textdet.c (+205/-0)
libclamav/textdet.h (+27/-0)
libclamav/textnorm.c (+161/-0)
libclamav/textnorm.h (+46/-0)
libclamav/tiff.c (+166/-0)
libclamav/tiff.h (+28/-0)
libclamav/tnef.c (+396/-0)
libclamav/tnef.h (+29/-0)
libclamav/tomsfastmath/addsub/fp_add.c (+43/-0)
libclamav/tomsfastmath/addsub/fp_add_d.c (+22/-0)
libclamav/tomsfastmath/addsub/fp_addmod.c (+23/-0)
libclamav/tomsfastmath/addsub/fp_cmp.c (+31/-0)
libclamav/tomsfastmath/addsub/fp_cmp_d.c (+38/-0)
libclamav/tomsfastmath/addsub/fp_cmp_mag.c (+35/-0)
libclamav/tomsfastmath/addsub/fp_sub.c (+50/-0)
libclamav/tomsfastmath/addsub/fp_sub_d.c (+22/-0)
libclamav/tomsfastmath/addsub/fp_submod.c (+24/-0)
libclamav/tomsfastmath/addsub/s_fp_add.c (+42/-0)
libclamav/tomsfastmath/addsub/s_fp_sub.c (+40/-0)
libclamav/tomsfastmath/bin/fp_radix_size.c (+55/-0)
libclamav/tomsfastmath/bin/fp_read_radix.c (+70/-0)
libclamav/tomsfastmath/bin/fp_read_signed_bin.c (+27/-0)
libclamav/tomsfastmath/bin/fp_read_unsigned_bin.c (+66/-0)
libclamav/tomsfastmath/bin/fp_reverse.c (+31/-0)
libclamav/tomsfastmath/bin/fp_s_rmap.c (+17/-0)
libclamav/tomsfastmath/bin/fp_signed_bin_size.c (+19/-0)
libclamav/tomsfastmath/bin/fp_to_signed_bin.c (+20/-0)
libclamav/tomsfastmath/bin/fp_to_unsigned_bin.c (+29/-0)
libclamav/tomsfastmath/bin/fp_toradix.c (+59/-0)
libclamav/tomsfastmath/bin/fp_toradix_n.c (+58/-0)
libclamav/tomsfastmath/bin/fp_unsigned_bin_size.c (+20/-0)
libclamav/tomsfastmath/bit/fp_cnt_lsb.c (+46/-0)
libclamav/tomsfastmath/bit/fp_count_bits.c (+36/-0)
libclamav/tomsfastmath/bit/fp_div_2.c (+53/-0)
libclamav/tomsfastmath/bit/fp_div_2d.c (+79/-0)
libclamav/tomsfastmath/bit/fp_lshd.c (+38/-0)
libclamav/tomsfastmath/bit/fp_mod_2d.c (+42/-0)
libclamav/tomsfastmath/bit/fp_rshd.c (+40/-0)
libclamav/tomsfastmath/divide/fp_div.c (+157/-0)
libclamav/tomsfastmath/divide/fp_div_d.c (+98/-0)
libclamav/tomsfastmath/divide/fp_mod.c (+34/-0)
libclamav/tomsfastmath/divide/fp_mod_d.c (+20/-0)
libclamav/tomsfastmath/exptmod/fp_2expt.c (+39/-0)
libclamav/tomsfastmath/exptmod/fp_exptmod.c (+276/-0)
libclamav/tomsfastmath/misc/fp_ident.c (+95/-0)
libclamav/tomsfastmath/misc/fp_set.c (+21/-0)
libclamav/tomsfastmath/mont/fp_montgomery_calc_normalization.c (+43/-0)
libclamav/tomsfastmath/mont/fp_montgomery_reduce.c (+556/-0)
libclamav/tomsfastmath/mont/fp_montgomery_setup.c (+48/-0)
libclamav/tomsfastmath/mul/fp_mul.c (+128/-0)
libclamav/tomsfastmath/mul/fp_mul_2.c (+67/-0)
libclamav/tomsfastmath/mul/fp_mul_2d.c (+47/-0)
libclamav/tomsfastmath/mul/fp_mul_comba.c (+368/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_12.c (+111/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_17.c (+151/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_20.c (+175/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_24.c (+207/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_28.c (+239/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_3.c (+39/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_32.c (+285/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_4.c (+47/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_48.c (+399/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_6.c (+63/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_64.c (+527/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_7.c (+71/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_8.c (+79/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_9.c (+87/-0)
libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c (+1228/-0)
libclamav/tomsfastmath/mul/fp_mul_d.c (+40/-0)
libclamav/tomsfastmath/mul/fp_mulmod.c (+22/-0)
libclamav/tomsfastmath/numtheory/fp_invmod.c (+207/-0)
libclamav/tomsfastmath/sqr/fp_sqr.c (+120/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba.c (+677/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_12.c (+144/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_17.c (+194/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_20.c (+224/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_24.c (+264/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_28.c (+304/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_3.c (+54/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_32.c (+344/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_4.c (+64/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_48.c (+504/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_6.c (+84/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_64.c (+664/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_7.c (+94/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_8.c (+104/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_9.c (+114/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_generic.c (+95/-0)
libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c (+1522/-0)
libclamav/tomsfastmath/sqr/fp_sqrmod.c (+23/-0)
libclamav/type_desc.h (+95/-0)
libclamav/unarj.c (+1056/-0)
libclamav/unarj.h (+43/-0)
libclamav/uniq.c (+111/-0)
libclamav/uniq.h (+48/-0)
libclamav/unsp.c (+529/-0)
libclamav/unsp.h (+50/-0)
libclamav/untar.c (+368/-0)
libclamav/untar.h (+47/-0)
libclamav/unzip.c (+919/-0)
libclamav/unzip.h (+168/-0)
libclamav/upack.c (+707/-0)
libclamav/upack.h (+33/-0)
libclamav/upx.c (+571/-0)
libclamav/upx.h (+32/-0)
libclamav/uuencode.c (+132/-0)
libclamav/uuencode.h (+30/-0)
libclamav/vba_extract.c (+1340/-0)
libclamav/vba_extract.h (+49/-0)
libclamav/version.c (+15/-0)
libclamav/version.h (+1/-0)
libclamav/wwunpack.c (+257/-0)
libclamav/wwunpack.h (+30/-0)
libclamav/www.c (+311/-0)
libclamav/www.h (+29/-0)
libclamav/xar.c (+900/-0)
libclamav/xar.h (+71/-0)
libclamav/xdp.c (+187/-0)
libclamav/xdp.h (+40/-0)
libclamav/xz_iface.c (+82/-0)
libclamav/xz_iface.h (+49/-0)
libclamav/yara_arena.c (+1090/-0)
libclamav/yara_arena.h (+150/-0)
libclamav/yara_clam.h (+472/-0)
libclamav/yara_compiler.c (+810/-0)
libclamav/yara_compiler.h (+193/-0)
libclamav/yara_exec.c (+919/-0)
libclamav/yara_exec.h (+100/-0)
libclamav/yara_grammar.c (+4075/-0)
libclamav/yara_grammar.h (+176/-0)
libclamav/yara_grammar.y (+1780/-0)
libclamav/yara_hash.c (+232/-0)
libclamav/yara_hash.h (+66/-0)
libclamav/yara_lexer.c (+3089/-0)
libclamav/yara_lexer.h (+101/-0)
libclamav/yara_lexer.l (+754/-0)
libclamav/yara_parser.c (+1020/-0)
libclamav/yara_parser.h (+102/-0)
libclamav/yc.c (+312/-0)
libclamav/yc.h (+31/-0)
libclamunrar_iface/Makefile.am (+63/-0)
libclamunrar_iface/Makefile.in (+932/-0)
libclamunrar_iface/libclamunrar_iface.map (+9/-0)
libclamunrar_iface/unrar_iface.c (+541/-0)
libclamunrar_iface/unrar_iface.h (+134/-0)
libfreshclam/Makefile.am (+57/-0)
libfreshclam/Makefile.in (+888/-0)
libfreshclam/libfreshclam.c (+344/-0)
libfreshclam/libfreshclam.h (+15/-0)
libltdl/COPYING.LIB (+502/-0)
libltdl/Makefile.am (+159/-0)
libltdl/Makefile.in (+1093/-0)
libltdl/README (+20/-0)
libltdl/libltdl/lt__alloc.h (+58/-0)
libltdl/libltdl/lt__argz_.h (+69/-0)
libltdl/libltdl/lt__dirent.h (+88/-0)
libltdl/libltdl/lt__glibc.h (+89/-0)
libltdl/libltdl/lt__private.h (+149/-0)
libltdl/libltdl/lt__strl.h (+53/-0)
libltdl/libltdl/lt_dlloader.h (+91/-0)
libltdl/libltdl/lt_error.h (+86/-0)
libltdl/libltdl/lt_system.h (+166/-0)
libltdl/libltdl/slist.h (+97/-0)
libltdl/loaders/dld_link.c (+158/-0)
libltdl/loaders/dlopen.c (+275/-0)
libltdl/loaders/dyld.c (+511/-0)
libltdl/loaders/load_add_on.c (+167/-0)
libltdl/loaders/loadlibrary.c (+369/-0)
libltdl/loaders/preopen.c (+387/-0)
libltdl/loaders/shl_load.c (+222/-0)
libltdl/lt__alloc.c (+96/-0)
libltdl/lt__argz.c (+225/-0)
libltdl/lt__dirent.c (+106/-0)
libltdl/lt__strl.c (+127/-0)
libltdl/lt_dlloader.c (+211/-0)
libltdl/lt_error.c (+111/-0)
libltdl/ltdl.c (+2471/-0)
libltdl/ltdl.h (+163/-0)
libltdl/slist.c (+379/-0)
m4/acinclude.m4 (+841/-0)
m4/ax_check_uname_syscall.m4 (+39/-0)
m4/fdpassing.m4 (+211/-0)
m4/lib-ld.m4 (+110/-0)
m4/lib-link.m4 (+722/-0)
m4/lib-prefix.m4 (+161/-0)
m4/libtool.m4 (+8369/-0)
m4/llvm.m4 (+11/-0)
m4/ltargz.m4 (+74/-0)
m4/ltdl.m4 (+909/-0)
m4/ltoptions.m4 (+437/-0)
m4/ltsugar.m4 (+124/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+99/-0)
m4/mmap_private.m4 (+131/-0)
m4/reorganization/bigstack.m4 (+7/-0)
m4/reorganization/bsd.m4 (+5/-0)
m4/reorganization/build_tools.m4 (+9/-0)
m4/reorganization/c_options.m4 (+6/-0)
m4/reorganization/cfgdir.m4 (+17/-0)
m4/reorganization/clamav_user.m4 (+57/-0)
m4/reorganization/clamdtop.m4 (+47/-0)
m4/reorganization/code_checks/compiler_attribs.m4 (+126/-0)
m4/reorganization/code_checks/coverage.m4 (+22/-0)
m4/reorganization/code_checks/ctime.m4 (+18/-0)
m4/reorganization/code_checks/dns.m4 (+1/-0)
m4/reorganization/code_checks/fanotify.m4 (+3/-0)
m4/reorganization/code_checks/features.m4 (+1/-0)
m4/reorganization/code_checks/functions.m4 (+18/-0)
m4/reorganization/code_checks/iconv.m4 (+32/-0)
m4/reorganization/code_checks/in_addr_t.m4 (+12/-0)
m4/reorganization/code_checks/in_port_t.m4 (+12/-0)
m4/reorganization/code_checks/ipv6.m4 (+39/-0)
m4/reorganization/code_checks/mpool.m4 (+18/-0)
m4/reorganization/code_checks/pthread_02.m4 (+11/-0)
m4/reorganization/code_checks/pthreads.m4 (+6/-0)
m4/reorganization/code_checks/readdir.m4 (+46/-0)
m4/reorganization/code_checks/reentrant.m4 (+3/-0)
m4/reorganization/code_checks/select.m4 (+52/-0)
m4/reorganization/code_checks/setpgrp.m4 (+19/-0)
m4/reorganization/code_checks/shift.m4 (+10/-0)
m4/reorganization/code_checks/socklen_t.m4 (+41/-0)
m4/reorganization/code_checks/stat64.m4 (+29/-0)
m4/reorganization/code_checks/unit_tests.m4 (+44/-0)
m4/reorganization/compiler_checks.m4 (+285/-0)
m4/reorganization/customversion.m4 (+3/-0)
m4/reorganization/dbdir.m4 (+18/-0)
m4/reorganization/debug.m4 (+6/-0)
m4/reorganization/distcheck.m4 (+22/-0)
m4/reorganization/dns.m4 (+7/-0)
m4/reorganization/headers.m4 (+8/-0)
m4/reorganization/libfreshclam.m4 (+8/-0)
m4/reorganization/libs/bzip.m4 (+82/-0)
m4/reorganization/libs/curl.m4 (+46/-0)
m4/reorganization/libs/json.m4 (+88/-0)
m4/reorganization/libs/libz.m4 (+60/-0)
m4/reorganization/libs/openssl.m4 (+59/-0)
m4/reorganization/libs/pcre.m4 (+154/-0)
m4/reorganization/libs/systemd.m4 (+19/-0)
m4/reorganization/libs/unrar.m4 (+39/-0)
m4/reorganization/libs/xml.m4 (+97/-0)
m4/reorganization/linker_checks.m4 (+47/-0)
m4/reorganization/llvm.m4 (+58/-0)
m4/reorganization/milter/check.m4 (+29/-0)
m4/reorganization/milter/enable.m4 (+3/-0)
m4/reorganization/nocache.m4 (+8/-0)
m4/reorganization/os_checks.m4 (+168/-0)
m4/reorganization/sha_collect.m4 (+4/-0)
m4/reorganization/strni.m4 (+12/-0)
m4/reorganization/substitutions.m4 (+35/-0)
m4/reorganization/usergroup.m4 (+14/-0)
m4/reorganization/utility_checks/id.m4 (+3/-0)
m4/reorganization/utility_checks/yp.m4 (+3/-0)
m4/reorganization/version.m4 (+19/-0)
m4/reorganization/yara.m4 (+12/-0)
m4/resolv.m4 (+68/-0)
platform.h.in (+45/-0)
shared/Makefile.am (+27/-0)
shared/Makefile.in (+736/-0)
shared/actions.c (+144/-0)
shared/actions.h (+31/-0)
shared/cdiff.c (+1065/-0)
shared/cdiff.h (+26/-0)
shared/clamdcom.c (+125/-0)
shared/clamdcom.h (+47/-0)
shared/fdpassing.h (+54/-0)
shared/getopt.c (+290/-0)
shared/getopt.h (+65/-0)
shared/misc.c (+354/-0)
shared/misc.h (+66/-0)
shared/optparser.c (+1344/-0)
shared/optparser.h (+78/-0)
shared/output.c (+639/-0)
shared/output.h (+66/-0)
shared/queue.h (+701/-0)
shared/tar.c (+117/-0)
shared/tar.h (+29/-0)
sigtool/Makefile.am (+42/-0)
sigtool/Makefile.in (+864/-0)
sigtool/sigtool.c (+3500/-0)
sigtool/vba.c (+1226/-0)
sigtool/vba.h (+30/-0)
test/.split/split.clam.exe.binhexaa (+7/-0)
test/.split/split.clam.exe.binhexab (+8/-0)
test/.split/split.clam.exe.htmlaa (+1/-0)
test/.split/split.clam.exe.htmlab (+1/-0)
test/.split/split.clam.exe.mbox.base64aa (+10/-0)
test/.split/split.clam.exe.mbox.base64ab (+8/-0)
test/.split/split.clam.exe.mbox.uuaa (+12/-0)
test/.split/split.clam.exe.mbox.uuab (+11/-0)
test/.split/split.clam.exe.rtfaa (+5/-0)
test/.split/split.clam.exe.rtfab (+107/-0)
test/.split/split.clam.mailaa (+21/-0)
test/.split/split.clam.mailab (+11/-0)
test/Makefile.am (+36/-0)
test/Makefile.in (+578/-0)
test/README (+6/-0)
unit_tests/Makefile.am (+100/-0)
unit_tests/Makefile.in (+1291/-0)
unit_tests/buf.nocomment.ref (+1/-0)
unit_tests/buf.notags.ref (+1/-0)
unit_tests/check1_clamscan.sh (+3/-0)
unit_tests/check2_clamd.sh (+3/-0)
unit_tests/check3_clamd.sh (+3/-0)
unit_tests/check4_clamd.sh (+3/-0)
unit_tests/check5_clamd_vg.sh (+5/-0)
unit_tests/check6_clamd_vg.sh (+5/-0)
unit_tests/check7_clamd_hg.sh (+6/-0)
unit_tests/check8_clamd_hg.sh (+5/-0)
unit_tests/check9_clamscan_vg.sh (+5/-0)
unit_tests/check_bytecode.c (+634/-0)
unit_tests/check_clamav.c (+1021/-0)
unit_tests/check_clamav_skip.c (+11/-0)
unit_tests/check_clamd.c (+890/-0)
unit_tests/check_common.sh (+409/-0)
unit_tests/check_disasm.c (+154/-0)
unit_tests/check_fpu_endian.c (+38/-0)
unit_tests/check_freshclam.sh (+2/-0)
unit_tests/check_htmlnorm.c (+182/-0)
unit_tests/check_jsnorm.c (+505/-0)
unit_tests/check_matchers.c (+544/-0)
unit_tests/check_regex.c (+661/-0)
unit_tests/check_sigtool.sh (+2/-0)
unit_tests/check_str.c (+290/-0)
unit_tests/check_uniq.c (+108/-0)
unit_tests/check_unit_vg.sh (+8/-0)
unit_tests/checks.h (+22/-0)
unit_tests/checks_common.h (+16/-0)
unit_tests/encode.js.ref (+2/-0)
unit_tests/encode.nocomment.ref (+1/-0)
unit_tests/input/COPYING (+340/-0)
unit_tests/input/api_extract_7.cbc (+40/-0)
unit_tests/input/api_files_7.cbc (+92/-0)
unit_tests/input/apicalls.cbc (+24/-0)
unit_tests/input/apicalls2.cbc (+27/-0)
unit_tests/input/apicalls2_7.cbc (+27/-0)
unit_tests/input/apicalls_7.cbc (+24/-0)
unit_tests/input/apitestfile (+1/-0)
unit_tests/input/arith.cbc (+450/-0)
unit_tests/input/arith_7.cbc (+519/-0)
unit_tests/input/bswap.cbc (+22/-0)
unit_tests/input/clamav.hdb (+1/-0)
unit_tests/input/daily.gdb (+4/-0)
unit_tests/input/daily.pdb (+201/-0)
unit_tests/input/daily.wdb (+31/-0)
unit_tests/input/debug_7.cbc (+14/-0)
unit_tests/input/div0.cbc (+10/-0)
unit_tests/input/htmlnorm_encode.html (+7/-0)
unit_tests/input/htmlnorm_js_test.html (+13/-0)
unit_tests/input/htmlnorm_urls.html (+8/-0)
unit_tests/input/inf.cbc (+9/-0)
unit_tests/input/inf_7.cbc (+9/-0)
unit_tests/input/inflate.cbc (+20/-0)
unit_tests/input/lsig.cbc (+21/-0)
unit_tests/input/lsig_7.cbc (+24/-0)
unit_tests/input/matchwithread.cbc (+49/-0)
unit_tests/input/pdf.cbc (+643/-0)
unit_tests/input/phish-test-clean (+7/-0)
unit_tests/input/phish-test-cloak (+5/-0)
unit_tests/input/phish-test-ssl (+5/-0)
unit_tests/input/retmagic.cbc (+8/-0)
unit_tests/input/retmagic_7.cbc (+8/-0)
unit_tests/input/screnc_test (+2/-0)
unit_tests/input/testadt_7.cbc (+120/-0)
unit_tests/js.js.ref (+3/-0)
unit_tests/js.nocomment.ref (+1/-0)
unit_tests/preload_run.sh (+9/-0)
unit_tests/test-freshclam.conf (+1/-0)
unit_tests/test.nocomment.ref (+1/-0)
unit_tests/test.notags.ref (+1/-0)
unit_tests/urls.nocomment.ref (+1/-0)
unit_tests/urls.notags.ref (+1/-0)
unit_tests/valgrind.supp (+101/-0)
unit_tests/virusaction-test.sh (+10/-0)
Reviewer Review Type Date Requested Status
Robie Basak Approve
Canonical Server Pending
Review via email: mp+349211@code.launchpad.net

Description of the change

Please use git to review, as the LP diff is incorrect.

* d/usr.bin.freshclam: add read permission to the rule governing
    access to /var/log/clamav by freshclam so that it can rotate its
    own logfile. (LP: #1778812) (Closes: #902601)

Testing instructions:

* sudo apt install clamav-freshclam apparmor-utils
* edit /etc/clamav/freshclam.conf and set:
LogVerbose true
LogFileMaxSize 3k
Debug true

* enable apparmor profile:
sudo aa-enforce usr.bin.freshclam

* restart freshclam
sudo systemctl restart clamav-freshclam

* inspect /var/log/clamav, should have a small freshclam.log file:
-rw-r----- 1 clamav adm 2.9K Jul 9 19:54 freshclam.log

* restart it one more time, to go over the 3k size limit
sudo systemctl restart clamav-freshclam

* see how it didn't rotate:
-rw-r----- 1 clamav adm 4.3K Jul 9 19:55 freshclam.log

* dmesg will have apparmor DENIED errors like this:
[28028.399936] audit: type=1400 audit(1531166134.154:275): apparmor="DENIED" operation="rename_src" namespace="root//lxd-cosmic-freshclam-apparmor_<var-lib-lxd>" profile="/usr/bin/freshclam" name="/var/log/clamav/freshclam.log" pid=13952 comm="freshclam" requested_mask="r" denied_mask="r" fsuid=165647 ouid=165647

* install updated package
sudo add-apt-repository ppa:ahasenack/freshclam-apparmor-1778812 -y

* clear dmesg if you want, to make it easy to spot new messages (if testing with a lxd container, you will have to do this on the host):
sudo dmesg -C

* upgrade
sudo apt dist-upgrade # or sudo apt install clamav-freshclam

# dmesg will contain new DENIED messages, but these are from before the profile is updated: the postinst script first restarts the service, then updates the profile
# you can restart it again, or do apt install --reinstall clamav-freshclam
# then inspect /var/log/clamav

root@ubuntu:/var/log/clamav# ll /var/log/clamav/
total 20
drwxr-xr-x 2 clamav clamav 4096 Jul 9 20:19 ./
drwxrwxr-x 10 root syslog 4096 Jul 9 20:16 ../
-rw-r----- 1 clamav adm 1460 Jul 9 20:19 freshclam.log
-rw-r----- 1 clamav adm 5823 Jul 9 20:19 freshclam.log-20180709_201920

# and verify that dmesg has no new DENIED messages

To post a comment you must log in.
Revision history for this message
Robie Basak (racb) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 141c22e..b9d9b80 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+clamav (0.99.4+addedllvm-0ubuntu3) cosmic; urgency=medium
7+
8+ * d/usr.bin.freshclam: add read permission to the rule governing
9+ access to /var/log/clamav by freshclam so that it can rotate its
10+ own logfile. (LP: #1778812) (Closes: #902601)
11+
12+ -- Andreas Hasenack <andreas@canonical.com> Mon, 09 Jul 2018 16:25:25 -0300
13+
14 clamav (0.99.4+addedllvm-0ubuntu2) cosmic; urgency=medium
15
16 * No-change rebuild for ncurses soname changes.
17diff --git a/debian/usr.bin.freshclam b/debian/usr.bin.freshclam
18index de970a4..90490ac 100644
19--- a/debian/usr.bin.freshclam
20+++ b/debian/usr.bin.freshclam
21@@ -32,7 +32,7 @@
22 /var/lib/clamav/ r,
23 /var/lib/clamav/** krw,
24
25- /var/log/clamav/* kw,
26+ /var/log/clamav/* krw,
27 /{,var/}run/clamav/freshclam.pid w,
28 /{,var/}run/clamav/clamd.ctl rw,
29
30diff --git a/libclamav/c++/llvm/build-for-llvm-top.sh b/libclamav/c++/llvm/build-for-llvm-top.sh
31new file mode 100755
32index 0000000..78e3ed8
33--- /dev/null
34+++ b/libclamav/c++/llvm/build-for-llvm-top.sh
35@@ -0,0 +1,68 @@
36+#!/bin/sh
37+
38+# This includes the Bourne shell library from llvm-top. Since this file is
39+# generally only used when building from llvm-top, it is safe to assume that
40+# llvm is checked out into llvm-top in which case .. just works.
41+. ../library.sh
42+
43+# Process the options passed in to us by the build script into standard
44+# variables.
45+process_arguments "$@"
46+
47+# First, see if the build directory is there. If not, create it.
48+build_dir="$LLVM_TOP/build.llvm"
49+if test ! -d "$build_dir" ; then
50+ mkdir -p "$build_dir"
51+fi
52+
53+# See if we have previously been configured by sensing the presence
54+# of the config.status scripts
55+config_status="$build_dir/config.status"
56+if test ! -f "$config_status" -o "$config_status" -ot "$0" ; then
57+ # We must configure so build a list of configure options
58+ config_options="--prefix=$PREFIX --with-llvmgccdir=$PREFIX"
59+ if test "$OPTIMIZED" -eq 1 ; then
60+ config_options="$config_options --enable-optimized"
61+ else
62+ config_options="$config_options --disable-optimized"
63+ fi
64+ if test "$DEBUG" -eq 1 ; then
65+ config_options="$config_options --enable-debug"
66+ else
67+ config_options="$config_options --disable-debug"
68+ fi
69+ if test "$ASSERTIONS" -eq 1 ; then
70+ config_options="$config_options --enable-assertions"
71+ else
72+ config_options="$config_options --disable-assertions"
73+ fi
74+ if test "$CHECKING" -eq 1 ; then
75+ config_options="$config_options --enable-expensive-checks"
76+ else
77+ config_options="$config_options --disable-expensive-checks"
78+ fi
79+ if test "$DOXYGEN" -eq 1 ; then
80+ config_options="$config_options --enable-doxygen"
81+ else
82+ config_options="$config_options --disable-doxygen"
83+ fi
84+ if test "$THREADS" -eq 1 ; then
85+ config_options="$config_options --enable-threads"
86+ else
87+ config_options="$config_options --disable-threads"
88+ fi
89+ config_options="$config_options $OPTIONS_DASH $OPTIONS_DASH_DASH"
90+ src_dir=`pwd`
91+ cd "$build_dir"
92+ msg 0 Configuring $module with:
93+ msg 0 " $src_dir/configure" $config_options
94+ $src_dir/configure $config_options || \
95+ die $? "Configuring $module module failed"
96+else
97+ msg 0 Module $module already configured, ignoring configure options.
98+ cd "$build_dir"
99+fi
100+
101+msg 0 Building $module with:
102+msg 0 " make" $OPTIONS_ASSIGN tools-only
103+make $OPTIONS_ASSIGN tools-only
104diff --git a/libclamav/c++/llvm/cmake/README b/libclamav/c++/llvm/cmake/README
105new file mode 100644
106index 0000000..4aafdbf
107--- /dev/null
108+++ b/libclamav/c++/llvm/cmake/README
109@@ -0,0 +1 @@
110+See docs/CMake.html for instructions on how to build LLVM with CMake.
111diff --git a/libclamav/c++/llvm/cmake/config-ix.cmake b/libclamav/c++/llvm/cmake/config-ix.cmake
112new file mode 100755
113index 0000000..f75e5df
114--- /dev/null
115+++ b/libclamav/c++/llvm/cmake/config-ix.cmake
116@@ -0,0 +1,281 @@
117+include(CheckIncludeFile)
118+include(CheckLibraryExists)
119+include(CheckSymbolExists)
120+include(CheckFunctionExists)
121+include(CheckCXXSourceCompiles)
122+
123+if( UNIX AND NOT BEOS )
124+ # Used by check_symbol_exists:
125+ set(CMAKE_REQUIRED_LIBRARIES m)
126+endif()
127+
128+# Helper macros and functions
129+macro(add_cxx_include result files)
130+ set(${result} "")
131+ foreach (file_name ${files})
132+ set(${result} "${${result}}#include<${file_name}>\n")
133+ endforeach()
134+endmacro(add_cxx_include files result)
135+
136+function(check_type_exists type files variable)
137+ add_cxx_include(includes "${files}")
138+ CHECK_CXX_SOURCE_COMPILES("
139+ ${includes} ${type} typeVar;
140+ int main() {
141+ return 0;
142+ }
143+ " ${variable})
144+endfunction()
145+
146+# include checks
147+check_include_file(argz.h HAVE_ARGZ_H)
148+check_include_file(assert.h HAVE_ASSERT_H)
149+check_include_file(dirent.h HAVE_DIRENT_H)
150+check_include_file(dl.h HAVE_DL_H)
151+check_include_file(dld.h HAVE_DLD_H)
152+check_include_file(dlfcn.h HAVE_DLFCN_H)
153+check_include_file(errno.h HAVE_ERRNO_H)
154+check_include_file(execinfo.h HAVE_EXECINFO_H)
155+check_include_file(fcntl.h HAVE_FCNTL_H)
156+check_include_file(inttypes.h HAVE_INTTYPES_H)
157+check_include_file(limits.h HAVE_LIMITS_H)
158+check_include_file(link.h HAVE_LINK_H)
159+check_include_file(malloc.h HAVE_MALLOC_H)
160+check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
161+check_include_file(memory.h HAVE_MEMORY_H)
162+check_include_file(ndir.h HAVE_NDIR_H)
163+if( NOT LLVM_ON_WIN32 )
164+ check_include_file(pthread.h HAVE_PTHREAD_H)
165+endif()
166+check_include_file(setjmp.h HAVE_SETJMP_H)
167+check_include_file(signal.h HAVE_SIGNAL_H)
168+check_include_file(stdint.h HAVE_STDINT_H)
169+check_include_file(stdio.h HAVE_STDIO_H)
170+check_include_file(stdlib.h HAVE_STDLIB_H)
171+check_include_file(string.h HAVE_STRING_H)
172+check_include_file(sys/dir.h HAVE_SYS_DIR_H)
173+check_include_file(sys/dl.h HAVE_SYS_DL_H)
174+check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
175+check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
176+check_include_file(sys/ndir.h HAVE_SYS_NDIR_H)
177+check_include_file(sys/param.h HAVE_SYS_PARAM_H)
178+check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
179+check_include_file(sys/stat.h HAVE_SYS_STAT_H)
180+check_include_file(sys/time.h HAVE_SYS_TIME_H)
181+check_include_file(sys/types.h HAVE_SYS_TYPES_H)
182+check_include_file(sys/wait.h HAVE_SYS_WAIT_H)
183+check_include_file(termios.h HAVE_TERMIOS_H)
184+check_include_file(unistd.h HAVE_UNISTD_H)
185+check_include_file(utime.h HAVE_UTIME_H)
186+check_include_file(valgrind/valgrind.h HAVE_VALGRIND_VALGRIND_H)
187+check_include_file(windows.h HAVE_WINDOWS_H)
188+
189+# library checks
190+if( NOT LLVM_ON_WIN32 )
191+ check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
192+ check_library_exists(pthread pthread_getspecific "" HAVE_PTHREAD_GETSPECIFIC)
193+ check_library_exists(pthread pthread_rwlock_init "" HAVE_PTHREAD_RWLOCK_INIT)
194+ check_library_exists(dl dlopen "" HAVE_LIBDL)
195+endif()
196+
197+# function checks
198+check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
199+check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
200+check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)
201+check_function_exists(isatty HAVE_ISATTY)
202+check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH)
203+check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H)
204+check_symbol_exists(finite ieeefp.h HAVE_FINITE_IN_IEEEFP_H)
205+check_symbol_exists(isnan cmath HAVE_ISNAN_IN_CMATH)
206+check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H)
207+check_symbol_exists(ceilf math.h HAVE_CEILF)
208+check_symbol_exists(floorf math.h HAVE_FLOORF)
209+check_symbol_exists(nearbyintf math.h HAVE_NEARBYINTF)
210+check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO)
211+check_symbol_exists(malloc_zone_statistics malloc/malloc.h
212+ HAVE_MALLOC_ZONE_STATISTICS)
213+check_symbol_exists(mkdtemp "stdlib.h;unistd.h" HAVE_MKDTEMP)
214+check_symbol_exists(mkstemp "stdlib.h;unistd.h" HAVE_MKSTEMP)
215+check_symbol_exists(mktemp "stdlib.h;unistd.h" HAVE_MKTEMP)
216+if( NOT LLVM_ON_WIN32 )
217+ check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK)
218+endif()
219+check_symbol_exists(sbrk unistd.h HAVE_SBRK)
220+check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)
221+check_symbol_exists(strerror string.h HAVE_STRERROR)
222+check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)
223+check_symbol_exists(strerror_s string.h HAVE_STRERROR_S)
224+check_symbol_exists(setenv stdlib.h HAVE_SETENV)
225+
226+check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC)
227+if( LLVM_USING_GLIBC )
228+ add_llvm_definitions( -D_GNU_SOURCE )
229+endif()
230+
231+# Type checks
232+check_type_exists(std::bidirectional_iterator<int,int> "iterator;iostream" HAVE_BI_ITERATOR)
233+check_type_exists(std::iterator<int,int,int> iterator HAVE_STD_ITERATOR)
234+check_type_exists(std::forward_iterator<int,int> iterator HAVE_FWD_ITERATOR)
235+
236+set(headers "")
237+if (HAVE_SYS_TYPES_H)
238+ set(headers ${headers} "sys/types.h")
239+endif()
240+
241+if (HAVE_INTTYPES_H)
242+ set(headers ${headers} "inttypes.h")
243+endif()
244+
245+if (HAVE_STDINT_H)
246+ set(headers ${headers} "stdint.h")
247+endif()
248+
249+check_type_exists(uint64_t "${headers}" HAVE_UINT64_T)
250+check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T)
251+
252+# available programs checks
253+function(llvm_find_program name)
254+ string(TOUPPER ${name} NAME)
255+ find_program(LLVM_PATH_${NAME} ${name})
256+ mark_as_advanced(LLVM_PATH_${NAME})
257+ if(LLVM_PATH_${NAME})
258+ set(HAVE_${NAME} 1 CACHE INTERNAL "Is ${name} available ?")
259+ mark_as_advanced(HAVE_${NAME})
260+ else(LLVM_PATH_${NAME})
261+ set(HAVE_${NAME} "" CACHE INTERNAL "Is ${name} available ?")
262+ endif(LLVM_PATH_${NAME})
263+endfunction()
264+
265+llvm_find_program(gv)
266+llvm_find_program(circo)
267+llvm_find_program(twopi)
268+llvm_find_program(neato)
269+llvm_find_program(fdp)
270+llvm_find_program(dot)
271+llvm_find_program(dotty)
272+
273+# Define LLVM_MULTITHREADED if gcc atomic builtins exists.
274+include(CheckAtomic)
275+
276+include(CheckCXXCompilerFlag)
277+# On windows all code is position-independent and mingw warns if -fPIC
278+# is in the command-line.
279+if( NOT WIN32 )
280+ check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
281+endif()
282+
283+include(GetTargetTriple)
284+get_target_triple(LLVM_HOSTTRIPLE)
285+
286+# FIXME: We don't distinguish the target and the host. :(
287+set(TARGET_TRIPLE "${LLVM_HOSTTRIPLE}")
288+
289+# Determine the native architecture.
290+string(TOLOWER "${LLVM_TARGET_ARCH}" LLVM_NATIVE_ARCH)
291+if( LLVM_NATIVE_ARCH STREQUAL "host" )
292+ string(REGEX MATCH "^[^-]*" LLVM_NATIVE_ARCH ${LLVM_HOSTTRIPLE})
293+endif ()
294+
295+if (LLVM_NATIVE_ARCH MATCHES "i[2-6]86")
296+ set(LLVM_NATIVE_ARCH X86)
297+elseif (LLVM_NATIVE_ARCH STREQUAL "x86")
298+ set(LLVM_NATIVE_ARCH X86)
299+elseif (LLVM_NATIVE_ARCH STREQUAL "amd64")
300+ set(LLVM_NATIVE_ARCH X86)
301+elseif (LLVM_NATIVE_ARCH STREQUAL "x86_64")
302+ set(LLVM_NATIVE_ARCH X86)
303+elseif (LLVM_NATIVE_ARCH MATCHES "sparc")
304+ set(LLVM_NATIVE_ARCH Sparc)
305+elseif (LLVM_NATIVE_ARCH MATCHES "powerpc")
306+ set(LLVM_NATIVE_ARCH PowerPC)
307+elseif (LLVM_NATIVE_ARCH MATCHES "alpha")
308+ set(LLVM_NATIVE_ARCH Alpha)
309+elseif (LLVM_NATIVE_ARCH MATCHES "arm")
310+ set(LLVM_NATIVE_ARCH ARM)
311+elseif (LLVM_NATIVE_ARCH MATCHES "mips")
312+ set(LLVM_NATIVE_ARCH Mips)
313+elseif (LLVM_NATIVE_ARCH MATCHES "pic16")
314+ set(LLVM_NATIVE_ARCH "PIC16")
315+elseif (LLVM_NATIVE_ARCH MATCHES "xcore")
316+ set(LLVM_NATIVE_ARCH XCore)
317+elseif (LLVM_NATIVE_ARCH MATCHES "msp430")
318+ set(LLVM_NATIVE_ARCH MSP430)
319+else ()
320+ message(STATUS
321+ "Unknown architecture ${LLVM_NATIVE_ARCH}; lli will not JIT code")
322+ set(LLVM_NATIVE_ARCH)
323+endif ()
324+
325+if (LLVM_NATIVE_ARCH)
326+ list(FIND LLVM_TARGETS_TO_BUILD ${LLVM_NATIVE_ARCH} NATIVE_ARCH_IDX)
327+ if (NATIVE_ARCH_IDX EQUAL -1)
328+ message(STATUS
329+ "Native target ${LLVM_NATIVE_ARCH} is not selected; lli will not JIT code")
330+ set(LLVM_NATIVE_ARCH)
331+ else ()
332+ message(STATUS "Native target architecture is ${LLVM_NATIVE_ARCH}")
333+ set(LLVM_NATIVE_TARGET LLVMInitialize${LLVM_NATIVE_ARCH}Target)
334+ set(LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo)
335+ set(LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter)
336+ endif ()
337+endif()
338+
339+if( MINGW )
340+ set(HAVE_LIBIMAGEHLP 1)
341+ set(HAVE_LIBPSAPI 1)
342+ # TODO: Check existence of libraries.
343+ # include(CheckLibraryExists)
344+ # CHECK_LIBRARY_EXISTS(imagehlp ??? . HAVE_LIBIMAGEHLP)
345+endif( MINGW )
346+
347+if( MSVC )
348+ set(error_t int)
349+ set(mode_t "unsigned short")
350+ set(LTDL_SHLIBPATH_VAR "PATH")
351+ set(LTDL_SYSSEARCHPATH "")
352+ set(LTDL_DLOPEN_DEPLIBS 1)
353+ set(SHLIBEXT ".lib")
354+ set(LTDL_OBJDIR "_libs")
355+ set(HAVE_STRTOLL 1)
356+ set(strtoll "_strtoi64")
357+ set(strtoull "_strtoui64")
358+ set(stricmp "_stricmp")
359+ set(strdup "_strdup")
360+else( MSVC )
361+ set(LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH")
362+ set(LTDL_SYSSEARCHPATH "") # TODO
363+ set(LTDL_DLOPEN_DEPLIBS 0) # TODO
364+endif( MSVC )
365+
366+# FIXME: Signal handler return type, currently hardcoded to 'void'
367+set(RETSIGTYPE void)
368+
369+if( LLVM_ENABLE_THREADS )
370+ if( HAVE_PTHREAD_H OR WIN32 )
371+ set(ENABLE_THREADS 1)
372+ endif()
373+endif()
374+
375+if( ENABLE_THREADS )
376+ message(STATUS "Threads enabled.")
377+else( ENABLE_THREADS )
378+ message(STATUS "Threads disabled.")
379+endif()
380+
381+set(LLVM_PREFIX ${CMAKE_INSTALL_PREFIX})
382+
383+configure_file(
384+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/config.h.cmake
385+ ${LLVM_BINARY_DIR}/include/llvm/Config/config.h
386+ )
387+
388+configure_file(
389+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/llvm-config.h.cmake
390+ ${LLVM_BINARY_DIR}/include/llvm/Config/llvm-config.h
391+ )
392+
393+configure_file(
394+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/System/DataTypes.h.cmake
395+ ${LLVM_BINARY_DIR}/include/llvm/System/DataTypes.h
396+ )
397+
398diff --git a/libclamav/c++/llvm/cmake/modules/AddLLVM.cmake b/libclamav/c++/llvm/cmake/modules/AddLLVM.cmake
399new file mode 100755
400index 0000000..0ecd153
401--- /dev/null
402+++ b/libclamav/c++/llvm/cmake/modules/AddLLVM.cmake
403@@ -0,0 +1,109 @@
404+include(LLVMProcessSources)
405+include(LLVMConfig)
406+
407+macro(add_llvm_library name)
408+ llvm_process_sources( ALL_FILES ${ARGN} )
409+ add_library( ${name} ${ALL_FILES} )
410+ set( llvm_libs ${llvm_libs} ${name} PARENT_SCOPE)
411+ set( llvm_lib_targets ${llvm_lib_targets} ${name} PARENT_SCOPE )
412+ if( LLVM_COMMON_DEPENDS )
413+ add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
414+ endif( LLVM_COMMON_DEPENDS )
415+ install(TARGETS ${name}
416+ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
417+ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
418+ # The LLVM Target library shall be built before its sublibraries
419+ # (asmprinter, etc) because those may use tablegenned files which
420+ # generation is triggered by the main LLVM target library. Necessary
421+ # for parallel builds:
422+ if( CURRENT_LLVM_TARGET )
423+ add_dependencies(${name} ${CURRENT_LLVM_TARGET})
424+ endif()
425+endmacro(add_llvm_library name)
426+
427+
428+macro(add_llvm_loadable_module name)
429+ if( NOT LLVM_ON_UNIX )
430+ message(STATUS "Loadable modules not supported on this platform.
431+${name} ignored.")
432+ else()
433+ llvm_process_sources( ALL_FILES ${ARGN} )
434+ add_library( ${name} MODULE ${ALL_FILES} )
435+ set_target_properties( ${name} PROPERTIES PREFIX "" )
436+
437+ if (APPLE)
438+ # Darwin-specific linker flags for loadable modules.
439+ set_target_properties(${name} PROPERTIES
440+ LINK_FLAGS "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
441+ endif()
442+
443+ install(TARGETS ${name}
444+ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
445+ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
446+ endif()
447+endmacro(add_llvm_loadable_module name)
448+
449+
450+macro(add_llvm_executable name)
451+ llvm_process_sources( ALL_FILES ${ARGN} )
452+ if( EXCLUDE_FROM_ALL )
453+ add_executable(${name} EXCLUDE_FROM_ALL ${ALL_FILES})
454+ else()
455+ add_executable(${name} ${ALL_FILES})
456+ endif()
457+ set(EXCLUDE_FROM_ALL OFF)
458+ if( LLVM_USED_LIBS )
459+ foreach(lib ${LLVM_USED_LIBS})
460+ target_link_libraries( ${name} ${lib} )
461+ endforeach(lib)
462+ endif( LLVM_USED_LIBS )
463+ if( LLVM_LINK_COMPONENTS )
464+ llvm_config(${name} ${LLVM_LINK_COMPONENTS})
465+ endif( LLVM_LINK_COMPONENTS )
466+ get_system_libs(llvm_system_libs)
467+ if( llvm_system_libs )
468+ target_link_libraries(${name} ${llvm_system_libs})
469+ endif()
470+ if( LLVM_COMMON_DEPENDS )
471+ add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
472+ endif( LLVM_COMMON_DEPENDS )
473+endmacro(add_llvm_executable name)
474+
475+
476+macro(add_llvm_tool name)
477+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR})
478+ if( NOT LLVM_BUILD_TOOLS )
479+ set(EXCLUDE_FROM_ALL ON)
480+ endif()
481+ add_llvm_executable(${name} ${ARGN})
482+ if( LLVM_BUILD_TOOLS )
483+ install(TARGETS ${name} RUNTIME DESTINATION bin)
484+ endif()
485+endmacro(add_llvm_tool name)
486+
487+
488+macro(add_llvm_example name)
489+# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_EXAMPLES_BINARY_DIR})
490+ if( NOT LLVM_BUILD_EXAMPLES )
491+ set(EXCLUDE_FROM_ALL ON)
492+ endif()
493+ add_llvm_executable(${name} ${ARGN})
494+ if( LLVM_BUILD_EXAMPLES )
495+ install(TARGETS ${name} RUNTIME DESTINATION examples)
496+ endif()
497+endmacro(add_llvm_example name)
498+
499+
500+macro(add_llvm_target target_name)
501+ if( TABLEGEN_OUTPUT )
502+ add_custom_target(${target_name}Table_gen
503+ DEPENDS ${TABLEGEN_OUTPUT})
504+ add_dependencies(${target_name}Table_gen ${LLVM_COMMON_DEPENDS})
505+ endif( TABLEGEN_OUTPUT )
506+ include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
507+ add_llvm_library(LLVM${target_name} ${ARGN} ${TABLEGEN_OUTPUT})
508+ if ( TABLEGEN_OUTPUT )
509+ add_dependencies(LLVM${target_name} ${target_name}Table_gen)
510+ endif (TABLEGEN_OUTPUT)
511+ set(CURRENT_LLVM_TARGET LLVM${target_name} PARENT_SCOPE)
512+endmacro(add_llvm_target)
513diff --git a/libclamav/c++/llvm/cmake/modules/AddLLVMDefinitions.cmake b/libclamav/c++/llvm/cmake/modules/AddLLVMDefinitions.cmake
514new file mode 100644
515index 0000000..0f6d81f
516--- /dev/null
517+++ b/libclamav/c++/llvm/cmake/modules/AddLLVMDefinitions.cmake
518@@ -0,0 +1,11 @@
519+# There is no clear way of keeping track of compiler command-line
520+# options chosen via `add_definitions', so we need our own method for
521+# using it on tools/llvm-config/CMakeLists.txt.
522+
523+# Beware that there is no implementation of remove_llvm_definitions.
524+
525+macro(add_llvm_definitions)
526+ set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${ARGN}")
527+ add_definitions( ${ARGN} )
528+endmacro(add_llvm_definitions)
529+
530diff --git a/libclamav/c++/llvm/cmake/modules/CMakeLists.txt b/libclamav/c++/llvm/cmake/modules/CMakeLists.txt
531new file mode 100644
532index 0000000..416d7f4
533--- /dev/null
534+++ b/libclamav/c++/llvm/cmake/modules/CMakeLists.txt
535@@ -0,0 +1,12 @@
536+set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake")
537+
538+configure_file(
539+ LLVM.cmake
540+ ${llvm_cmake_builddir}/LLVM.cmake
541+ @ONLY)
542+
543+install(FILES
544+ ${llvm_cmake_builddir}/LLVM.cmake
545+ LLVMConfig.cmake
546+ LLVMLibDeps.cmake
547+ DESTINATION share/llvm/cmake)
548diff --git a/libclamav/c++/llvm/cmake/modules/CheckAtomic.cmake b/libclamav/c++/llvm/cmake/modules/CheckAtomic.cmake
549new file mode 100644
550index 0000000..f40ff4d
551--- /dev/null
552+++ b/libclamav/c++/llvm/cmake/modules/CheckAtomic.cmake
553@@ -0,0 +1,29 @@
554+# atomic builtins are required for threading support.
555+
556+INCLUDE(CheckCXXSourceCompiles)
557+
558+CHECK_CXX_SOURCE_COMPILES("
559+#ifdef _MSC_VER
560+#include <windows.h>
561+#endif
562+int main() {
563+#ifdef _MSC_VER
564+ volatile LONG val = 1;
565+ MemoryBarrier();
566+ InterlockedCompareExchange(&val, 0, 1);
567+ InterlockedIncrement(&val);
568+ InterlockedDecrement(&val);
569+#else
570+ volatile unsigned long val = 1;
571+ __sync_synchronize();
572+ __sync_val_compare_and_swap(&val, 1, 0);
573+ __sync_add_and_fetch(&val, 1);
574+ __sync_sub_and_fetch(&val, 1);
575+#endif
576+ return 0;
577+ }
578+" LLVM_MULTITHREADED)
579+
580+if( NOT LLVM_MULTITHREADED )
581+ message(STATUS "Warning: LLVM will be built thread-unsafe because atomic builtins are missing")
582+endif()
583diff --git a/libclamav/c++/llvm/cmake/modules/ChooseMSVCCRT.cmake b/libclamav/c++/llvm/cmake/modules/ChooseMSVCCRT.cmake
584new file mode 100644
585index 0000000..eb78f45
586--- /dev/null
587+++ b/libclamav/c++/llvm/cmake/modules/ChooseMSVCCRT.cmake
588@@ -0,0 +1,106 @@
589+# The macro choose_msvc_crt() takes a list of possible
590+# C runtimes to choose from, in the form of compiler flags,
591+# to present to the user. (MTd for /MTd, etc)
592+#
593+# The macro is invoked at the end of the file.
594+#
595+# CMake already sets CRT flags in the CMAKE_CXX_FLAGS_* and
596+# CMAKE_C_FLAGS_* variables by default. To let the user
597+# override that for each build type:
598+# 1. Detect which CRT is already selected, and reflect this in
599+# LLVM_USE_CRT_* so the user can have a better idea of what
600+# changes they're making.
601+# 2. Replace the flags in both variables with the new flag via a regex.
602+# 3. set() the variables back into the cache so the changes
603+# are user-visible.
604+
605+### Helper macros: ###
606+macro(make_crt_regex regex crts)
607+ set(${regex} "")
608+ foreach(crt ${${crts}})
609+ # Trying to match the beginning or end of the string with stuff
610+ # like [ ^]+ didn't work, so use a bunch of parentheses instead.
611+ set(${regex} "${${regex}}|(^| +)/${crt}($| +)")
612+ endforeach(crt)
613+ string(REGEX REPLACE "^\\|" "" ${regex} "${${regex}}")
614+endmacro(make_crt_regex)
615+
616+macro(get_current_crt crt_current regex flagsvar)
617+ # Find the selected-by-CMake CRT for each build type, if any.
618+ # Strip off the leading slash and any whitespace.
619+ string(REGEX MATCH "${${regex}}" ${crt_current} "${${flagsvar}}")
620+ string(REPLACE "/" " " ${crt_current} "${${crt_current}}")
621+ string(STRIP "${${crt_current}}" ${crt_current})
622+endmacro(get_current_crt)
623+
624+# Replaces or adds a flag to a variable.
625+# Expects 'flag' to be padded with spaces.
626+macro(set_flag_in_var flagsvar regex flag)
627+ string(REGEX MATCH "${${regex}}" current_flag "${${flagsvar}}")
628+ if("${current_flag}" STREQUAL "")
629+ set(${flagsvar} "${${flagsvar}}${${flag}}")
630+ else()
631+ string(REGEX REPLACE "${${regex}}" "${${flag}}" ${flagsvar} "${${flagsvar}}")
632+ endif()
633+ string(STRIP "${${flagsvar}}" ${flagsvar})
634+ # Make sure this change gets reflected in the cache/gui.
635+ # CMake requires the docstring parameter whenever set() touches the cache,
636+ # so get the existing docstring and re-use that.
637+ get_property(flagsvar_docs CACHE ${flagsvar} PROPERTY HELPSTRING)
638+ set(${flagsvar} "${${flagsvar}}" CACHE STRING "${flagsvar_docs}" FORCE)
639+endmacro(set_flag_in_var)
640+
641+
642+macro(choose_msvc_crt MSVC_CRT)
643+ if(LLVM_USE_CRT)
644+ message(FATAL_ERROR
645+ "LLVM_USE_CRT is deprecated. Use the CMAKE_BUILD_TYPE-specific
646+variables (LLVM_USE_CRT_DEBUG, etc) instead.")
647+ endif()
648+
649+ make_crt_regex(MSVC_CRT_REGEX ${MSVC_CRT})
650+
651+ foreach(build_type ${CMAKE_CONFIGURATION_TYPES})
652+ string(TOUPPER "${build_type}" build)
653+ if (NOT LLVM_USE_CRT_${build})
654+ get_current_crt(LLVM_USE_CRT_${build}
655+ MSVC_CRT_REGEX
656+ CMAKE_CXX_FLAGS_${build})
657+ set(LLVM_USE_CRT_${build}
658+ "${LLVM_USE_CRT_${build}}"
659+ CACHE STRING "Specify VC++ CRT to use for ${build_type} configurations."
660+ FORCE)
661+ set_property(CACHE LLVM_USE_CRT_${build}
662+ PROPERTY STRINGS "";${${MSVC_CRT}})
663+ endif(NOT LLVM_USE_CRT_${build})
664+ endforeach(build_type)
665+
666+ foreach(build_type ${CMAKE_CONFIGURATION_TYPES})
667+ string(TOUPPER "${build_type}" build)
668+ if ("${LLVM_USE_CRT_${build}}" STREQUAL "")
669+ set(flag_string " ")
670+ else()
671+ set(flag_string " /${LLVM_USE_CRT_${build}} ")
672+ list(FIND ${MSVC_CRT} ${LLVM_USE_CRT_${build}} idx)
673+ if (idx LESS 0)
674+ message(FATAL_ERROR
675+ "Invalid value for LLVM_USE_CRT_${build}: ${LLVM_USE_CRT_${build}}. Valid options are one of: ${${MSVC_CRT}}")
676+ endif (idx LESS 0)
677+ message(STATUS "Using ${build_type} VC++ CRT: ${LLVM_USE_CRT_${build}}")
678+ endif()
679+ foreach(lang C CXX)
680+ set_flag_in_var(CMAKE_${lang}_FLAGS_${build} MSVC_CRT_REGEX flag_string)
681+ endforeach(lang)
682+ endforeach(build_type)
683+endmacro(choose_msvc_crt MSVC_CRT)
684+
685+
686+# List of valid CRTs for MSVC
687+set(MSVC_CRT
688+ MD
689+ MDd
690+ MT
691+ MTd)
692+
693+choose_msvc_crt(MSVC_CRT)
694+
695diff --git a/libclamav/c++/llvm/cmake/modules/CrossCompileLLVM.cmake b/libclamav/c++/llvm/cmake/modules/CrossCompileLLVM.cmake
696new file mode 100644
697index 0000000..138ff0e
698--- /dev/null
699+++ b/libclamav/c++/llvm/cmake/modules/CrossCompileLLVM.cmake
700@@ -0,0 +1,26 @@
701+
702+if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
703+ set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
704+ set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
705+
706+ add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
707+ COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
708+ COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
709+
710+ add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
711+ COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
712+ WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
713+ DEPENDS ${CX_NATIVE_TG_DIR}
714+ COMMENT "Configuring native TableGen...")
715+
716+ add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
717+ COMMAND ${CMAKE_BUILD_TOOL}
718+ DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
719+ WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
720+ COMMENT "Building native TableGen...")
721+ add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
722+
723+ add_dependencies(tblgen NativeTableGen)
724+
725+ set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
726+endif()
727diff --git a/libclamav/c++/llvm/cmake/modules/FindBison.cmake b/libclamav/c++/llvm/cmake/modules/FindBison.cmake
728new file mode 100755
729index 0000000..0320ae3
730--- /dev/null
731+++ b/libclamav/c++/llvm/cmake/modules/FindBison.cmake
732@@ -0,0 +1,52 @@
733+# - Try to find Bison
734+# Once done this will define
735+#
736+# BISON_FOUND - system has Bison
737+# BISON_EXECUTABLE - path of the bison executable
738+# BISON_VERSION - the version string, like "2.5.31"
739+#
740+
741+MACRO(FIND_BISON)
742+ FIND_PROGRAM(BISON_EXECUTABLE NAMES bison)
743+
744+ IF(BISON_EXECUTABLE)
745+ SET(BISON_FOUND TRUE)
746+
747+ EXECUTE_PROCESS(COMMAND ${BISON_EXECUTABLE} --version
748+ OUTPUT_VARIABLE _BISON_VERSION
749+ )
750+ string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" BISON_VERSION "${_bison_VERSION}")
751+ ENDIF(BISON_EXECUTABLE)
752+
753+ IF(BISON_FOUND)
754+ IF(NOT Bison_FIND_QUIETLY)
755+ MESSAGE(STATUS "Found Bison: ${BISON_EXECUTABLE}")
756+ ENDIF(NOT Bison_FIND_QUIETLY)
757+ ELSE(BISON_FOUND)
758+ IF(Bison_FIND_REQUIRED)
759+ MESSAGE(FATAL_ERROR "Could not find Bison")
760+ ENDIF(Bison_FIND_REQUIRED)
761+ ENDIF(BISON_FOUND)
762+ENDMACRO(FIND_BISON)
763+
764+MACRO(BISON_GENERATOR _PREFIX _Y_INPUT _H_OUTPUT _CPP_OUTPUT)
765+ IF(BISON_EXECUTABLE)
766+ GET_FILENAME_COMPONENT(_Y_DIR ${_Y_INPUT} PATH)
767+ ADD_CUSTOM_COMMAND(
768+ OUTPUT ${_CPP_OUTPUT}
769+ OUTPUT ${_H_OUTPUT}
770+ DEPENDS ${_Y_INPUT}
771+ COMMAND ${BISON_EXECUTABLE}
772+ ARGS
773+ -p ${_PREFIX} -o"${_CPP_OUTPUT}"
774+ --defines="${_H_OUTPUT}" ${_Y_INPUT}
775+ WORKING_DIRECTORY ${_Y_DIR}
776+ )
777+ SET_SOURCE_FILES_PROPERTIES(
778+ ${_CPP_OUTPUT} ${_H_OUTPUT}
779+ GENERATED
780+ )
781+ ELSE(BISON_EXECUTABLE)
782+ MESSAGE(SEND_ERROR "Can't find bison program, and it's required")
783+ ENDIF(BISON_EXECUTABLE)
784+ENDMACRO(BISON_GENERATOR)
785diff --git a/libclamav/c++/llvm/cmake/modules/GetTargetTriple.cmake b/libclamav/c++/llvm/cmake/modules/GetTargetTriple.cmake
786new file mode 100644
787index 0000000..ac0c009
788--- /dev/null
789+++ b/libclamav/c++/llvm/cmake/modules/GetTargetTriple.cmake
790@@ -0,0 +1,26 @@
791+# Returns the host triple.
792+# Invokes config.guess
793+
794+function( get_target_triple var )
795+ if( MSVC )
796+ if( CMAKE_CL_64 )
797+ set( value "x86_64-pc-win32" )
798+ else()
799+ set( value "i686-pc-win32" )
800+ endif()
801+ elseif( MINGW AND NOT MSYS )
802+ set( value "i686-pc-mingw32" )
803+ else( MSVC )
804+ set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
805+ execute_process(COMMAND sh ${config_guess}
806+ RESULT_VARIABLE TT_RV
807+ OUTPUT_VARIABLE TT_OUT
808+ OUTPUT_STRIP_TRAILING_WHITESPACE)
809+ if( NOT TT_RV EQUAL 0 )
810+ message(FATAL_ERROR "Failed to execute ${config_guess}")
811+ endif( NOT TT_RV EQUAL 0 )
812+ set( value ${TT_OUT} )
813+ endif( MSVC )
814+ set( ${var} ${value} PARENT_SCOPE )
815+ message(STATUS "Target triple: ${value}")
816+endfunction( get_target_triple var )
817diff --git a/libclamav/c++/llvm/cmake/modules/LLVM.cmake b/libclamav/c++/llvm/cmake/modules/LLVM.cmake
818new file mode 100644
819index 0000000..9621454
820--- /dev/null
821+++ b/libclamav/c++/llvm/cmake/modules/LLVM.cmake
822@@ -0,0 +1,29 @@
823+# This file provides information and services to the final user.
824+
825+set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
826+
827+set(llvm_libs @llvm_libs@)
828+
829+set(llvm_lib_targets @llvm_lib_targets@)
830+
831+set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
832+
833+set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
834+
835+set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
836+
837+set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
838+
839+# We try to include using the current setting of CMAKE_MODULE_PATH,
840+# which suppossedly was filled by the user with the directory where
841+# this file was installed:
842+include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
843+
844+# If failed, we assume that this is an un-installed build:
845+if( NOT LLVMCONFIG_INCLUDED )
846+ set(CMAKE_MODULE_PATH
847+ ${CMAKE_MODULE_PATH}
848+ "@LLVM_SOURCE_DIR@/cmake/modules")
849+ include( LLVMConfig )
850+endif()
851+
852diff --git a/libclamav/c++/llvm/cmake/modules/LLVMConfig.cmake b/libclamav/c++/llvm/cmake/modules/LLVMConfig.cmake
853new file mode 100755
854index 0000000..e549708
855--- /dev/null
856+++ b/libclamav/c++/llvm/cmake/modules/LLVMConfig.cmake
857@@ -0,0 +1,165 @@
858+function(get_system_libs return_var)
859+ # Returns in `return_var' a list of system libraries used by LLVM.
860+ if( NOT MSVC )
861+ if( MINGW )
862+ set(system_libs ${system_libs} imagehlp psapi)
863+ elseif( CMAKE_HOST_UNIX )
864+ if( HAVE_LIBDL )
865+ set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
866+ endif()
867+ if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
868+ set(system_libs ${system_libs} pthread)
869+ endif()
870+ endif( MINGW )
871+ endif( NOT MSVC )
872+ set(${return_var} ${system_libs} PARENT_SCOPE)
873+endfunction(get_system_libs)
874+
875+
876+function(is_llvm_target_library library return_var)
877+ # Sets variable `return_var' to ON if `library' corresponds to a
878+ # LLVM supported target. To OFF if it doesn't.
879+ set(${return_var} OFF PARENT_SCOPE)
880+ string(TOUPPER "${library}" capitalized_lib)
881+ string(TOUPPER "${LLVM_ALL_TARGETS}" targets)
882+ foreach(t ${targets})
883+ if( capitalized_lib STREQUAL "LLVM${t}" OR
884+ capitalized_lib STREQUAL "LLVM${t}CODEGEN" OR
885+ capitalized_lib STREQUAL "LLVM${t}ASMPARSER" OR
886+ capitalized_lib STREQUAL "LLVM${t}ASMPRINTER" OR
887+ capitalized_lib STREQUAL "LLVM${t}DISASSEMBLER" OR
888+ capitalized_lib STREQUAL "LLVM${t}INFO" )
889+ set(${return_var} ON PARENT_SCOPE)
890+ break()
891+ endif()
892+ endforeach()
893+endfunction(is_llvm_target_library)
894+
895+
896+macro(llvm_config executable)
897+ explicit_llvm_config(${executable} ${ARGN})
898+endmacro(llvm_config)
899+
900+
901+function(explicit_llvm_config executable)
902+ set( link_components ${ARGN} )
903+
904+ explicit_map_components_to_libraries(LIBRARIES ${link_components})
905+ target_link_libraries(${executable} ${LIBRARIES})
906+endfunction(explicit_llvm_config)
907+
908+
909+# This is a variant intended for the final user:
910+function(llvm_map_components_to_libraries OUT_VAR)
911+ explicit_map_components_to_libraries(result ${ARGN})
912+ get_system_libs(sys_result)
913+ set( ${OUT_VAR} ${result} ${sys_result} PARENT_SCOPE )
914+endfunction(llvm_map_components_to_libraries)
915+
916+
917+function(explicit_map_components_to_libraries out_libs)
918+ set( link_components ${ARGN} )
919+ foreach(c ${link_components})
920+ # add codegen, asmprinter, asmparser, disassembler
921+ list(FIND LLVM_TARGETS_TO_BUILD ${c} idx)
922+ if( NOT idx LESS 0 )
923+ list(FIND llvm_libs "LLVM${c}CodeGen" idx)
924+ if( NOT idx LESS 0 )
925+ list(APPEND expanded_components "LLVM${c}CodeGen")
926+ else()
927+ list(FIND llvm_libs "LLVM${c}" idx)
928+ if( NOT idx LESS 0 )
929+ list(APPEND expanded_components "LLVM${c}")
930+ else()
931+ message(FATAL_ERROR "Target ${c} is not in the set of libraries.")
932+ endif()
933+ endif()
934+ list(FIND llvm_libs "LLVM${c}AsmPrinter" asmidx)
935+ if( NOT asmidx LESS 0 )
936+ list(APPEND expanded_components "LLVM${c}AsmPrinter")
937+ endif()
938+ list(FIND llvm_libs "LLVM${c}AsmParser" asmidx)
939+ if( NOT asmidx LESS 0 )
940+ list(APPEND expanded_components "LLVM${c}AsmParser")
941+ endif()
942+ list(FIND llvm_libs "LLVM${c}Info" asmidx)
943+ if( NOT asmidx LESS 0 )
944+ list(APPEND expanded_components "LLVM${c}Info")
945+ endif()
946+ list(FIND llvm_libs "LLVM${c}Disassembler" asmidx)
947+ if( NOT asmidx LESS 0 )
948+ list(APPEND expanded_components "LLVM${c}Disassembler")
949+ endif()
950+ elseif( c STREQUAL "native" )
951+ list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}CodeGen")
952+ elseif( c STREQUAL "nativecodegen" )
953+ list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}CodeGen")
954+ elseif( c STREQUAL "backend" )
955+ # same case as in `native'.
956+ elseif( c STREQUAL "engine" )
957+ # TODO: as we assume we are on X86, this is `jit'.
958+ list(APPEND expanded_components "LLVMJIT")
959+ elseif( c STREQUAL "all" )
960+ list(APPEND expanded_components ${llvm_libs})
961+ else( NOT idx LESS 0 )
962+ list(APPEND expanded_components LLVM${c})
963+ endif( NOT idx LESS 0 )
964+ endforeach(c)
965+ # We must match capitalization.
966+ string(TOUPPER "${llvm_libs}" capitalized_libs)
967+ list(REMOVE_DUPLICATES expanded_components)
968+ list(LENGTH expanded_components lst_size)
969+ set(result "")
970+ while( 0 LESS ${lst_size} )
971+ list(GET expanded_components 0 c)
972+ string(TOUPPER "${c}" capitalized)
973+ list(FIND capitalized_libs ${capitalized} idx)
974+ set(add_it ON)
975+ if( idx LESS 0 )
976+ # The library is unkown. Maybe is an ommitted target?
977+ is_llvm_target_library(${c} iltl_result)
978+ if( NOT iltl_result )
979+ message(FATAL_ERROR "Library ${c} not found in list of llvm libraries.")
980+ endif()
981+ set(add_it OFF)
982+ endif( idx LESS 0 )
983+ list(GET llvm_libs ${idx} canonical_lib)
984+ list(REMOVE_ITEM result ${canonical_lib})
985+ foreach(c ${MSVC_LIB_DEPS_${canonical_lib}})
986+ list(REMOVE_ITEM expanded_components ${c})
987+ endforeach()
988+ if( add_it )
989+ list(APPEND result ${canonical_lib})
990+ list(APPEND expanded_components ${MSVC_LIB_DEPS_${canonical_lib}})
991+ endif()
992+ list(REMOVE_AT expanded_components 0)
993+ list(LENGTH expanded_components lst_size)
994+ endwhile( 0 LESS ${lst_size} )
995+ set(${out_libs} ${result} PARENT_SCOPE)
996+endfunction(explicit_map_components_to_libraries)
997+
998+
999+# The library dependency data is contained in the file
1000+# LLVMLibDeps.cmake on this directory. It is automatically generated
1001+# by tools/llvm-config/CMakeLists.txt when the build comprises all the
1002+# targets and we are on a environment Posix enough to build the
1003+# llvm-config script. This, in practice, just excludes MSVC.
1004+
1005+# When you remove or rename a library from the build, be sure to
1006+# remove its file from lib/ as well, or the GenLibDeps.pl script will
1007+# include it on its analysis!
1008+
1009+# The format generated by GenLibDeps.pl
1010+
1011+# libLLVMARMAsmPrinter.a: libLLVMMC.a libLLVMSupport.a
1012+
1013+# is translated to:
1014+
1015+# set(MSVC_LIB_DEPS_LLVMARMAsmPrinter LLVMMC LLVMSupport)
1016+
1017+# It is necessary to remove the `lib' prefix and the `.a' suffix.
1018+
1019+# This 'sed' script should do the trick:
1020+# sed -e s'#\.a##g' -e 's#libLLVM#LLVM#g' -e 's#: # #' -e 's#\(.*\)#set(MSVC_LIB_DEPS_\1)#' ~/llvm/tools/llvm-config/LibDeps.txt
1021+
1022+include(LLVMLibDeps)
1023diff --git a/libclamav/c++/llvm/cmake/modules/LLVMLibDeps.cmake b/libclamav/c++/llvm/cmake/modules/LLVMLibDeps.cmake
1024new file mode 100644
1025index 0000000..e639b04
1026--- /dev/null
1027+++ b/libclamav/c++/llvm/cmake/modules/LLVMLibDeps.cmake
1028@@ -0,0 +1,71 @@
1029+set(MSVC_LIB_DEPS_LLVMARMAsmParser LLVMARMInfo LLVMMC LLVMMCParser LLVMSupport LLVMTarget)
1030+set(MSVC_LIB_DEPS_LLVMARMAsmPrinter LLVMMC LLVMSupport)
1031+set(MSVC_LIB_DEPS_LLVMARMCodeGen LLVMARMInfo LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
1032+set(MSVC_LIB_DEPS_LLVMARMInfo LLVMSupport)
1033+set(MSVC_LIB_DEPS_LLVMAlphaAsmPrinter LLVMAlphaInfo LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget)
1034+set(MSVC_LIB_DEPS_LLVMAlphaCodeGen LLVMAlphaInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
1035+set(MSVC_LIB_DEPS_LLVMAlphaInfo LLVMSupport)
1036+set(MSVC_LIB_DEPS_LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTarget)
1037+set(MSVC_LIB_DEPS_LLVMArchive LLVMBitReader LLVMCore LLVMSupport LLVMSystem)
1038+set(MSVC_LIB_DEPS_LLVMAsmParser LLVMCore LLVMSupport)
1039+set(MSVC_LIB_DEPS_LLVMAsmPrinter LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMMCParser LLVMSupport LLVMSystem LLVMTarget)
1040+set(MSVC_LIB_DEPS_LLVMBitReader LLVMCore LLVMSupport)
1041+set(MSVC_LIB_DEPS_LLVMBitWriter LLVMCore LLVMSupport)
1042+set(MSVC_LIB_DEPS_LLVMBlackfinAsmPrinter LLVMAsmPrinter LLVMBlackfinInfo LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget)
1043+set(MSVC_LIB_DEPS_LLVMBlackfinCodeGen LLVMBlackfinInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
1044+set(MSVC_LIB_DEPS_LLVMBlackfinInfo LLVMSupport)
1045+set(MSVC_LIB_DEPS_LLVMCBackend LLVMAnalysis LLVMCBackendInfo LLVMCodeGen LLVMCore LLVMMC LLVMScalarOpts LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils LLVMipa)
1046+set(MSVC_LIB_DEPS_LLVMCBackendInfo LLVMSupport)
1047+set(MSVC_LIB_DEPS_LLVMCellSPUAsmPrinter LLVMAsmPrinter LLVMCellSPUInfo LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget)
1048+set(MSVC_LIB_DEPS_LLVMCellSPUCodeGen LLVMCellSPUInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
1049+set(MSVC_LIB_DEPS_LLVMCellSPUInfo LLVMSupport)
1050+set(MSVC_LIB_DEPS_LLVMCodeGen LLVMAnalysis LLVMCore LLVMMC LLVMScalarOpts LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils)
1051+set(MSVC_LIB_DEPS_LLVMCore LLVMSupport LLVMSystem)
1052+set(MSVC_LIB_DEPS_LLVMCppBackend LLVMCore LLVMCppBackendInfo LLVMSupport LLVMTarget)
1053+set(MSVC_LIB_DEPS_LLVMCppBackendInfo LLVMSupport)
1054+set(MSVC_LIB_DEPS_LLVMExecutionEngine LLVMCore LLVMSupport LLVMSystem LLVMTarget)
1055+set(MSVC_LIB_DEPS_LLVMInstCombine LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils)
1056+set(MSVC_LIB_DEPS_LLVMInstrumentation LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTransformUtils)
1057+set(MSVC_LIB_DEPS_LLVMInterpreter LLVMCodeGen LLVMCore LLVMExecutionEngine LLVMSupport LLVMSystem LLVMTarget)
1058+set(MSVC_LIB_DEPS_LLVMJIT LLVMCodeGen LLVMCore LLVMExecutionEngine LLVMMC LLVMSupport LLVMSystem LLVMTarget)
1059+set(MSVC_LIB_DEPS_LLVMLinker LLVMArchive LLVMBitReader LLVMCore LLVMSupport LLVMSystem LLVMTransformUtils)
1060+set(MSVC_LIB_DEPS_LLVMMBlazeAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMBlazeCodeGen LLVMMBlazeInfo LLVMMC LLVMSupport LLVMTarget)
1061+set(MSVC_LIB_DEPS_LLVMMBlazeCodeGen LLVMCodeGen LLVMCore LLVMMBlazeInfo LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
1062+set(MSVC_LIB_DEPS_LLVMMBlazeInfo LLVMSupport)
1063+set(MSVC_LIB_DEPS_LLVMMC LLVMSupport LLVMSystem)
1064+set(MSVC_LIB_DEPS_LLVMMCDisassembler LLVMARMAsmParser LLVMARMCodeGen LLVMARMInfo LLVMAlphaAsmPrinter LLVMAlphaCodeGen LLVMAlphaInfo LLVMBlackfinAsmPrinter LLVMBlackfinCodeGen LLVMBlackfinInfo LLVMCBackend LLVMCBackendInfo LLVMCellSPUAsmPrinter LLVMCellSPUCodeGen LLVMCellSPUInfo LLVMCppBackend LLVMCppBackendInfo LLVMMBlazeAsmPrinter LLVMMBlazeCodeGen LLVMMBlazeInfo LLVMMC LLVMMCParser LLVMMSP430AsmPrinter LLVMMSP430CodeGen LLVMMSP430Info LLVMMipsAsmPrinter LLVMMipsCodeGen LLVMMipsInfo LLVMPIC16AsmPrinter LLVMPIC16CodeGen LLVMPIC16Info LLVMPowerPCAsmPrinter LLVMPowerPCCodeGen LLVMPowerPCInfo LLVMSparcAsmPrinter LLVMSparcCodeGen LLVMSparcInfo LLVMSupport LLVMSystem LLVMSystemZAsmPrinter LLVMSystemZCodeGen LLVMSystemZInfo LLVMX86AsmParser LLVMX86CodeGen LLVMX86Disassembler LLVMX86Info LLVMXCoreAsmPrinter LLVMXCoreCodeGen LLVMXCoreInfo)
1065+set(MSVC_LIB_DEPS_LLVMMCParser LLVMMC LLVMSupport)
1066+set(MSVC_LIB_DEPS_LLVMMSP430AsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMMSP430Info LLVMSupport LLVMTarget)
1067+set(MSVC_LIB_DEPS_LLVMMSP430CodeGen LLVMCodeGen LLVMCore LLVMMC LLVMMSP430Info LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
1068+set(MSVC_LIB_DEPS_LLVMMSP430Info LLVMSupport)
1069+set(MSVC_LIB_DEPS_LLVMMipsAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMMipsCodeGen LLVMMipsInfo LLVMSupport LLVMTarget)
1070+set(MSVC_LIB_DEPS_LLVMMipsCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMMipsInfo LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
1071+set(MSVC_LIB_DEPS_LLVMMipsInfo LLVMSupport)
1072+set(MSVC_LIB_DEPS_LLVMPIC16AsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPIC16CodeGen LLVMPIC16Info LLVMSupport LLVMTarget)
1073+set(MSVC_LIB_DEPS_LLVMPIC16CodeGen LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMPIC16Info LLVMSelectionDAG LLVMSupport LLVMTarget)
1074+set(MSVC_LIB_DEPS_LLVMPIC16Info LLVMSupport)
1075+set(MSVC_LIB_DEPS_LLVMPowerPCAsmPrinter LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPowerPCInfo LLVMSupport LLVMTarget)
1076+set(MSVC_LIB_DEPS_LLVMPowerPCCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMPowerPCInfo LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
1077+set(MSVC_LIB_DEPS_LLVMPowerPCInfo LLVMSupport)
1078+set(MSVC_LIB_DEPS_LLVMScalarOpts LLVMAnalysis LLVMCore LLVMInstCombine LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils)
1079+set(MSVC_LIB_DEPS_LLVMSelectionDAG LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMSystem LLVMTarget)
1080+set(MSVC_LIB_DEPS_LLVMSparcAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSparcInfo LLVMSupport LLVMTarget)
1081+set(MSVC_LIB_DEPS_LLVMSparcCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSparcInfo LLVMSupport LLVMSystem LLVMTarget)
1082+set(MSVC_LIB_DEPS_LLVMSparcInfo LLVMSupport)
1083+set(MSVC_LIB_DEPS_LLVMSupport LLVMSystem)
1084+set(MSVC_LIB_DEPS_LLVMSystem )
1085+set(MSVC_LIB_DEPS_LLVMSystemZAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMSystemZInfo LLVMTarget)
1086+set(MSVC_LIB_DEPS_LLVMSystemZCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystemZInfo LLVMTarget)
1087+set(MSVC_LIB_DEPS_LLVMSystemZInfo LLVMSupport)
1088+set(MSVC_LIB_DEPS_LLVMTarget LLVMCore LLVMMC LLVMSupport)
1089+set(MSVC_LIB_DEPS_LLVMTransformUtils LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTarget LLVMipa)
1090+set(MSVC_LIB_DEPS_LLVMX86AsmParser LLVMMC LLVMMCParser LLVMSupport LLVMTarget LLVMX86Info)
1091+set(MSVC_LIB_DEPS_LLVMX86AsmPrinter LLVMMC LLVMSupport)
1092+set(MSVC_LIB_DEPS_LLVMX86CodeGen LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget LLVMX86AsmPrinter LLVMX86Info)
1093+set(MSVC_LIB_DEPS_LLVMX86Disassembler LLVMMC LLVMSupport LLVMX86Info)
1094+set(MSVC_LIB_DEPS_LLVMX86Info LLVMSupport)
1095+set(MSVC_LIB_DEPS_LLVMXCoreAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget LLVMXCoreInfo)
1096+set(MSVC_LIB_DEPS_LLVMXCoreCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget LLVMXCoreInfo)
1097+set(MSVC_LIB_DEPS_LLVMXCoreInfo LLVMSupport)
1098+set(MSVC_LIB_DEPS_LLVMipa LLVMAnalysis LLVMCore LLVMSupport LLVMSystem)
1099+set(MSVC_LIB_DEPS_LLVMipo LLVMAnalysis LLVMCore LLVMScalarOpts LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils LLVMipa)
1100diff --git a/libclamav/c++/llvm/cmake/modules/LLVMProcessSources.cmake b/libclamav/c++/llvm/cmake/modules/LLVMProcessSources.cmake
1101new file mode 100644
1102index 0000000..b753735
1103--- /dev/null
1104+++ b/libclamav/c++/llvm/cmake/modules/LLVMProcessSources.cmake
1105@@ -0,0 +1,54 @@
1106+include(AddFileDependencies)
1107+
1108+
1109+macro(add_td_sources srcs)
1110+ file(GLOB tds *.td)
1111+ if( tds )
1112+ source_group("TableGen descriptions" FILES ${tds})
1113+ set_source_files_properties(${tds} PROPERTIES HEADER_FILE_ONLY ON)
1114+ list(APPEND ${srcs} ${tds})
1115+ endif()
1116+endmacro(add_td_sources)
1117+
1118+
1119+macro(add_header_files srcs)
1120+ file(GLOB hds *.h)
1121+ if( hds )
1122+ set_source_files_properties(${hds} PROPERTIES HEADER_FILE_ONLY ON)
1123+ list(APPEND ${srcs} ${hds})
1124+ endif()
1125+endmacro(add_header_files)
1126+
1127+
1128+function(llvm_process_sources OUT_VAR)
1129+ set( sources ${ARGN} )
1130+ llvm_check_source_file_list( ${sources} )
1131+ # Create file dependencies on the tablegenned files, if any. Seems
1132+ # that this is not strictly needed, as dependencies of the .cpp
1133+ # sources on the tablegenned .inc files are detected and handled,
1134+ # but just in case...
1135+ foreach( s ${sources} )
1136+ set( f ${CMAKE_CURRENT_SOURCE_DIR}/${s} )
1137+ add_file_dependencies( ${f} ${TABLEGEN_OUTPUT} )
1138+ endforeach(s)
1139+ if( MSVC_IDE )
1140+ # This adds .td and .h files to the Visual Studio solution:
1141+ add_td_sources(sources)
1142+ add_header_files(sources)
1143+ endif()
1144+ set( ${OUT_VAR} ${sources} PARENT_SCOPE )
1145+endfunction(llvm_process_sources)
1146+
1147+
1148+function(llvm_check_source_file_list)
1149+ set(listed ${ARGN})
1150+ file(GLOB globbed *.cpp)
1151+ foreach(g ${globbed})
1152+ get_filename_component(fn ${g} NAME)
1153+ list(FIND listed ${fn} idx)
1154+ if( idx LESS 0 )
1155+ message(SEND_ERROR "Found unknown source file ${g}
1156+Please update ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt\n")
1157+ endif()
1158+ endforeach()
1159+endfunction(llvm_check_source_file_list)
1160diff --git a/libclamav/c++/llvm/cmake/modules/TableGen.cmake b/libclamav/c++/llvm/cmake/modules/TableGen.cmake
1161new file mode 100644
1162index 0000000..cf7cd1f
1163--- /dev/null
1164+++ b/libclamav/c++/llvm/cmake/modules/TableGen.cmake
1165@@ -0,0 +1,26 @@
1166+# LLVM_TARGET_DEFINITIONS must contain the name of the .td file to process.
1167+# Extra parameters for `tblgen' may come after `ofn' parameter.
1168+# Adds the name of the generated file to TABLEGEN_OUTPUT.
1169+
1170+macro(tablegen ofn)
1171+ file(GLOB local_tds "*.td")
1172+ file(GLOB_RECURSE global_tds "${LLVM_MAIN_SRC_DIR}/include/llvm/*.td")
1173+
1174+ if (IS_ABSOLUTE ${LLVM_TARGET_DEFINITIONS})
1175+ set(LLVM_TARGET_DEFINITIONS_ABSOLUTE ${LLVM_TARGET_DEFINITIONS})
1176+ else()
1177+ set(LLVM_TARGET_DEFINITIONS_ABSOLUTE
1178+ ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS})
1179+ endif()
1180+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
1181+ COMMAND ${LLVM_TABLEGEN_EXE} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR}
1182+ -I ${LLVM_MAIN_SRC_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR}
1183+ ${LLVM_TARGET_DEFINITIONS_ABSOLUTE}
1184+ -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
1185+ DEPENDS tblgen ${local_tds} ${global_tds}
1186+ COMMENT "Building ${ofn}..."
1187+ )
1188+ set(TABLEGEN_OUTPUT ${TABLEGEN_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR}/${ofn})
1189+ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${ofn}
1190+ PROPERTIES GENERATED 1)
1191+endmacro(tablegen)
1192diff --git a/libclamav/c++/llvm/cmake/modules/VersionFromVCS.cmake b/libclamav/c++/llvm/cmake/modules/VersionFromVCS.cmake
1193new file mode 100644
1194index 0000000..1016df2
1195--- /dev/null
1196+++ b/libclamav/c++/llvm/cmake/modules/VersionFromVCS.cmake
1197@@ -0,0 +1,33 @@
1198+# Adds version control information to the variable VERS. For
1199+# determining the Version Control System used (if any) it inspects the
1200+# existence of certain subdirectories under CMAKE_CURRENT_SOURCE_DIR.
1201+
1202+function(add_version_info_from_vcs VERS)
1203+ set(result ${${VERS}})
1204+ if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn )
1205+ set(result "${result}svn")
1206+ find_package(Subversion)
1207+ if( Subversion_FOUND )
1208+ subversion_wc_info( ${CMAKE_CURRENT_SOURCE_DIR} Project )
1209+ if( Project_WC_REVISION )
1210+ set(result "${result}-r${Project_WC_REVISION}")
1211+ endif()
1212+ endif()
1213+ elseif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git )
1214+ set(result "${result}git")
1215+ # Try to get a ref-id
1216+ find_program(git_executable NAMES git git.exe git.cmd)
1217+ if( git_executable )
1218+ execute_process(COMMAND ${git_executable} show-ref HEAD
1219+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
1220+ TIMEOUT 5
1221+ RESULT_VARIABLE git_result
1222+ OUTPUT_VARIABLE git_output)
1223+ if( git_result EQUAL 0 )
1224+ string(SUBSTRING ${git_output} 0 7 git_ref_id)
1225+ set(result "${result}-${git_ref_id}")
1226+ endif()
1227+ endif()
1228+ endif()
1229+ set(${VERS} ${result} PARENT_SCOPE)
1230+endfunction(add_version_info_from_vcs)
1231diff --git a/libclamav/c++/llvm/configure b/libclamav/c++/llvm/configure
1232new file mode 100755
1233index 0000000..3ccc081
1234--- /dev/null
1235+++ b/libclamav/c++/llvm/configure
1236@@ -0,0 +1,14543 @@
1237+#! /bin/sh
1238+# Guess values for system-dependent variables and create Makefiles.
1239+# Generated by GNU Autoconf 2.67 for llvm 2.8.
1240+#
1241+# Report bugs to <llvmbugs@cs.uiuc.edu>.
1242+#
1243+#
1244+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1245+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1246+# Foundation, Inc.
1247+#
1248+#
1249+# This configure script is free software; the Free Software Foundation
1250+# gives unlimited permission to copy, distribute and modify it.
1251+#
1252+# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1253+## -------------------- ##
1254+## M4sh Initialization. ##
1255+## -------------------- ##
1256+
1257+# Be more Bourne compatible
1258+DUALCASE=1; export DUALCASE # for MKS sh
1259+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1260+ emulate sh
1261+ NULLCMD=:
1262+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1263+ # is contrary to our usage. Disable this feature.
1264+ alias -g '${1+"$@"}'='"$@"'
1265+ setopt NO_GLOB_SUBST
1266+else
1267+ case `(set -o) 2>/dev/null` in #(
1268+ *posix*) :
1269+ set -o posix ;; #(
1270+ *) :
1271+ ;;
1272+esac
1273+fi
1274+
1275+
1276+as_nl='
1277+'
1278+export as_nl
1279+# Printing a long string crashes Solaris 7 /usr/bin/printf.
1280+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1281+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1282+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1283+# Prefer a ksh shell builtin over an external printf program on Solaris,
1284+# but without wasting forks for bash or zsh.
1285+if test -z "$BASH_VERSION$ZSH_VERSION" \
1286+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1287+ as_echo='print -r --'
1288+ as_echo_n='print -rn --'
1289+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1290+ as_echo='printf %s\n'
1291+ as_echo_n='printf %s'
1292+else
1293+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1294+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1295+ as_echo_n='/usr/ucb/echo -n'
1296+ else
1297+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1298+ as_echo_n_body='eval
1299+ arg=$1;
1300+ case $arg in #(
1301+ *"$as_nl"*)
1302+ expr "X$arg" : "X\\(.*\\)$as_nl";
1303+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1304+ esac;
1305+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1306+ '
1307+ export as_echo_n_body
1308+ as_echo_n='sh -c $as_echo_n_body as_echo'
1309+ fi
1310+ export as_echo_body
1311+ as_echo='sh -c $as_echo_body as_echo'
1312+fi
1313+
1314+# The user is always right.
1315+if test "${PATH_SEPARATOR+set}" != set; then
1316+ PATH_SEPARATOR=:
1317+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1318+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1319+ PATH_SEPARATOR=';'
1320+ }
1321+fi
1322+
1323+
1324+# IFS
1325+# We need space, tab and new line, in precisely that order. Quoting is
1326+# there to prevent editors from complaining about space-tab.
1327+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1328+# splitting by setting IFS to empty value.)
1329+IFS=" "" $as_nl"
1330+
1331+# Find who we are. Look in the path if we contain no directory separator.
1332+case $0 in #((
1333+ *[\\/]* ) as_myself=$0 ;;
1334+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335+for as_dir in $PATH
1336+do
1337+ IFS=$as_save_IFS
1338+ test -z "$as_dir" && as_dir=.
1339+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1340+ done
1341+IFS=$as_save_IFS
1342+
1343+ ;;
1344+esac
1345+# We did not find ourselves, most probably we were run as `sh COMMAND'
1346+# in which case we are not to be found in the path.
1347+if test "x$as_myself" = x; then
1348+ as_myself=$0
1349+fi
1350+if test ! -f "$as_myself"; then
1351+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1352+ exit 1
1353+fi
1354+
1355+# Unset variables that we do not need and which cause bugs (e.g. in
1356+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
1357+# suppresses any "Segmentation fault" message there. '((' could
1358+# trigger a bug in pdksh 5.2.14.
1359+for as_var in BASH_ENV ENV MAIL MAILPATH
1360+do eval test x\${$as_var+set} = xset \
1361+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1362+done
1363+PS1='$ '
1364+PS2='> '
1365+PS4='+ '
1366+
1367+# NLS nuisances.
1368+LC_ALL=C
1369+export LC_ALL
1370+LANGUAGE=C
1371+export LANGUAGE
1372+
1373+# CDPATH.
1374+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1375+
1376+if test "x$CONFIG_SHELL" = x; then
1377+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1378+ emulate sh
1379+ NULLCMD=:
1380+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1381+ # is contrary to our usage. Disable this feature.
1382+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
1383+ setopt NO_GLOB_SUBST
1384+else
1385+ case \`(set -o) 2>/dev/null\` in #(
1386+ *posix*) :
1387+ set -o posix ;; #(
1388+ *) :
1389+ ;;
1390+esac
1391+fi
1392+"
1393+ as_required="as_fn_return () { (exit \$1); }
1394+as_fn_success () { as_fn_return 0; }
1395+as_fn_failure () { as_fn_return 1; }
1396+as_fn_ret_success () { return 0; }
1397+as_fn_ret_failure () { return 1; }
1398+
1399+exitcode=0
1400+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
1401+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1402+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1403+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1404+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1405+
1406+else
1407+ exitcode=1; echo positional parameters were not saved.
1408+fi
1409+test x\$exitcode = x0 || exit 1"
1410+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1411+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1412+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1413+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1414+test \$(( 1 + 1 )) = 2 || exit 1"
1415+ if (eval "$as_required") 2>/dev/null; then :
1416+ as_have_required=yes
1417+else
1418+ as_have_required=no
1419+fi
1420+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1421+
1422+else
1423+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424+as_found=false
1425+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1426+do
1427+ IFS=$as_save_IFS
1428+ test -z "$as_dir" && as_dir=.
1429+ as_found=:
1430+ case $as_dir in #(
1431+ /*)
1432+ for as_base in sh bash ksh sh5; do
1433+ # Try only shells that exist, to save several forks.
1434+ as_shell=$as_dir/$as_base
1435+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1436+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
1437+ CONFIG_SHELL=$as_shell as_have_required=yes
1438+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
1439+ break 2
1440+fi
1441+fi
1442+ done;;
1443+ esac
1444+ as_found=false
1445+done
1446+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
1447+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
1448+ CONFIG_SHELL=$SHELL as_have_required=yes
1449+fi; }
1450+IFS=$as_save_IFS
1451+
1452+
1453+ if test "x$CONFIG_SHELL" != x; then :
1454+ # We cannot yet assume a decent shell, so we have to provide a
1455+ # neutralization value for shells without unset; and this also
1456+ # works around shells that cannot unset nonexistent variables.
1457+ BASH_ENV=/dev/null
1458+ ENV=/dev/null
1459+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1460+ export CONFIG_SHELL
1461+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
1462+fi
1463+
1464+ if test x$as_have_required = xno; then :
1465+ $as_echo "$0: This script requires a shell more modern than all"
1466+ $as_echo "$0: the shells that I found on your system."
1467+ if test x${ZSH_VERSION+set} = xset ; then
1468+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
1469+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1470+ else
1471+ $as_echo "$0: Please tell bug-autoconf@gnu.org and
1472+$0: llvmbugs@cs.uiuc.edu about your system, including any
1473+$0: error possibly output before this message. Then install
1474+$0: a modern shell, or manually run the script under such a
1475+$0: shell if you do have one."
1476+ fi
1477+ exit 1
1478+fi
1479+fi
1480+fi
1481+SHELL=${CONFIG_SHELL-/bin/sh}
1482+export SHELL
1483+# Unset more variables known to interfere with behavior of common tools.
1484+CLICOLOR_FORCE= GREP_OPTIONS=
1485+unset CLICOLOR_FORCE GREP_OPTIONS
1486+
1487+## --------------------- ##
1488+## M4sh Shell Functions. ##
1489+## --------------------- ##
1490+# as_fn_unset VAR
1491+# ---------------
1492+# Portably unset VAR.
1493+as_fn_unset ()
1494+{
1495+ { eval $1=; unset $1;}
1496+}
1497+as_unset=as_fn_unset
1498+
1499+# as_fn_set_status STATUS
1500+# -----------------------
1501+# Set $? to STATUS, without forking.
1502+as_fn_set_status ()
1503+{
1504+ return $1
1505+} # as_fn_set_status
1506+
1507+# as_fn_exit STATUS
1508+# -----------------
1509+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1510+as_fn_exit ()
1511+{
1512+ set +e
1513+ as_fn_set_status $1
1514+ exit $1
1515+} # as_fn_exit
1516+
1517+# as_fn_mkdir_p
1518+# -------------
1519+# Create "$as_dir" as a directory, including parents if necessary.
1520+as_fn_mkdir_p ()
1521+{
1522+
1523+ case $as_dir in #(
1524+ -*) as_dir=./$as_dir;;
1525+ esac
1526+ test -d "$as_dir" || eval $as_mkdir_p || {
1527+ as_dirs=
1528+ while :; do
1529+ case $as_dir in #(
1530+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1531+ *) as_qdir=$as_dir;;
1532+ esac
1533+ as_dirs="'$as_qdir' $as_dirs"
1534+ as_dir=`$as_dirname -- "$as_dir" ||
1535+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1536+ X"$as_dir" : 'X\(//\)[^/]' \| \
1537+ X"$as_dir" : 'X\(//\)$' \| \
1538+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1539+$as_echo X"$as_dir" |
1540+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1541+ s//\1/
1542+ q
1543+ }
1544+ /^X\(\/\/\)[^/].*/{
1545+ s//\1/
1546+ q
1547+ }
1548+ /^X\(\/\/\)$/{
1549+ s//\1/
1550+ q
1551+ }
1552+ /^X\(\/\).*/{
1553+ s//\1/
1554+ q
1555+ }
1556+ s/.*/./; q'`
1557+ test -d "$as_dir" && break
1558+ done
1559+ test -z "$as_dirs" || eval "mkdir $as_dirs"
1560+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1561+
1562+
1563+} # as_fn_mkdir_p
1564+# as_fn_append VAR VALUE
1565+# ----------------------
1566+# Append the text in VALUE to the end of the definition contained in VAR. Take
1567+# advantage of any shell optimizations that allow amortized linear growth over
1568+# repeated appends, instead of the typical quadratic growth present in naive
1569+# implementations.
1570+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1571+ eval 'as_fn_append ()
1572+ {
1573+ eval $1+=\$2
1574+ }'
1575+else
1576+ as_fn_append ()
1577+ {
1578+ eval $1=\$$1\$2
1579+ }
1580+fi # as_fn_append
1581+
1582+# as_fn_arith ARG...
1583+# ------------------
1584+# Perform arithmetic evaluation on the ARGs, and store the result in the
1585+# global $as_val. Take advantage of shells that can avoid forks. The arguments
1586+# must be portable across $(()) and expr.
1587+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1588+ eval 'as_fn_arith ()
1589+ {
1590+ as_val=$(( $* ))
1591+ }'
1592+else
1593+ as_fn_arith ()
1594+ {
1595+ as_val=`expr "$@" || test $? -eq 1`
1596+ }
1597+fi # as_fn_arith
1598+
1599+
1600+# as_fn_error STATUS ERROR [LINENO LOG_FD]
1601+# ----------------------------------------
1602+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1603+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1604+# script with STATUS, using 1 if that was 0.
1605+as_fn_error ()
1606+{
1607+ as_status=$1; test $as_status -eq 0 && as_status=1
1608+ if test "$4"; then
1609+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1611+ fi
1612+ $as_echo "$as_me: error: $2" >&2
1613+ as_fn_exit $as_status
1614+} # as_fn_error
1615+
1616+if expr a : '\(a\)' >/dev/null 2>&1 &&
1617+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
1618+ as_expr=expr
1619+else
1620+ as_expr=false
1621+fi
1622+
1623+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1624+ as_basename=basename
1625+else
1626+ as_basename=false
1627+fi
1628+
1629+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1630+ as_dirname=dirname
1631+else
1632+ as_dirname=false
1633+fi
1634+
1635+as_me=`$as_basename -- "$0" ||
1636+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1637+ X"$0" : 'X\(//\)$' \| \
1638+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1639+$as_echo X/"$0" |
1640+ sed '/^.*\/\([^/][^/]*\)\/*$/{
1641+ s//\1/
1642+ q
1643+ }
1644+ /^X\/\(\/\/\)$/{
1645+ s//\1/
1646+ q
1647+ }
1648+ /^X\/\(\/\).*/{
1649+ s//\1/
1650+ q
1651+ }
1652+ s/.*/./; q'`
1653+
1654+# Avoid depending upon Character Ranges.
1655+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1656+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1657+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1658+as_cr_digits='0123456789'
1659+as_cr_alnum=$as_cr_Letters$as_cr_digits
1660+
1661+
1662+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
1663+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
1664+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
1665+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
1666+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1667+ sed -n '
1668+ p
1669+ /[$]LINENO/=
1670+ ' <$as_myself |
1671+ sed '
1672+ s/[$]LINENO.*/&-/
1673+ t lineno
1674+ b
1675+ :lineno
1676+ N
1677+ :loop
1678+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1679+ t loop
1680+ s/-\n.*//
1681+ ' >$as_me.lineno &&
1682+ chmod +x "$as_me.lineno" ||
1683+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1684+
1685+ # Don't try to exec as it changes $[0], causing all sort of problems
1686+ # (the dirname of $[0] is not the place where we might find the
1687+ # original and so on. Autoconf is especially sensitive to this).
1688+ . "./$as_me.lineno"
1689+ # Exit status is that of the last command.
1690+ exit
1691+}
1692+
1693+ECHO_C= ECHO_N= ECHO_T=
1694+case `echo -n x` in #(((((
1695+-n*)
1696+ case `echo 'xy\c'` in
1697+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1698+ xy) ECHO_C='\c';;
1699+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
1700+ ECHO_T=' ';;
1701+ esac;;
1702+*)
1703+ ECHO_N='-n';;
1704+esac
1705+
1706+rm -f conf$$ conf$$.exe conf$$.file
1707+if test -d conf$$.dir; then
1708+ rm -f conf$$.dir/conf$$.file
1709+else
1710+ rm -f conf$$.dir
1711+ mkdir conf$$.dir 2>/dev/null
1712+fi
1713+if (echo >conf$$.file) 2>/dev/null; then
1714+ if ln -s conf$$.file conf$$ 2>/dev/null; then
1715+ as_ln_s='ln -s'
1716+ # ... but there are two gotchas:
1717+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1718+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1719+ # In both cases, we have to default to `cp -p'.
1720+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1721+ as_ln_s='cp -p'
1722+ elif ln conf$$.file conf$$ 2>/dev/null; then
1723+ as_ln_s=ln
1724+ else
1725+ as_ln_s='cp -p'
1726+ fi
1727+else
1728+ as_ln_s='cp -p'
1729+fi
1730+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1731+rmdir conf$$.dir 2>/dev/null
1732+
1733+if mkdir -p . 2>/dev/null; then
1734+ as_mkdir_p='mkdir -p "$as_dir"'
1735+else
1736+ test -d ./-p && rmdir ./-p
1737+ as_mkdir_p=false
1738+fi
1739+
1740+if test -x / >/dev/null 2>&1; then
1741+ as_test_x='test -x'
1742+else
1743+ if ls -dL / >/dev/null 2>&1; then
1744+ as_ls_L_option=L
1745+ else
1746+ as_ls_L_option=
1747+ fi
1748+ as_test_x='
1749+ eval sh -c '\''
1750+ if test -d "$1"; then
1751+ test -d "$1/.";
1752+ else
1753+ case $1 in #(
1754+ -*)set "./$1";;
1755+ esac;
1756+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1757+ ???[sx]*):;;*)false;;esac;fi
1758+ '\'' sh
1759+ '
1760+fi
1761+as_executable_p=$as_test_x
1762+
1763+# Sed expression to map a string onto a valid CPP name.
1764+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1765+
1766+# Sed expression to map a string onto a valid variable name.
1767+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1768+
1769+
1770+test -n "$DJDIR" || exec 7<&0 </dev/null
1771+exec 6>&1
1772+
1773+# Name of the host.
1774+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1775+# so uname gets run too.
1776+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1777+
1778+#
1779+# Initializations.
1780+#
1781+ac_default_prefix=/usr/local
1782+ac_clean_files=
1783+ac_config_libobj_dir=.
1784+LIBOBJS=
1785+cross_compiling=no
1786+subdirs=
1787+MFLAGS=
1788+MAKEFLAGS=
1789+
1790+# Identity of this package.
1791+PACKAGE_NAME='llvm'
1792+PACKAGE_TARNAME='-llvm-'
1793+PACKAGE_VERSION='2.8'
1794+PACKAGE_STRING='llvm 2.8'
1795+PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
1796+PACKAGE_URL=''
1797+
1798+ac_unique_file="lib/VMCore/Module.cpp"
1799+enable_option_checking=no
1800+# Factoring default headers for most tests.
1801+ac_includes_default="\
1802+#include <stdio.h>
1803+#ifdef HAVE_SYS_TYPES_H
1804+# include <sys/types.h>
1805+#endif
1806+#ifdef HAVE_SYS_STAT_H
1807+# include <sys/stat.h>
1808+#endif
1809+#ifdef STDC_HEADERS
1810+# include <stdlib.h>
1811+# include <stddef.h>
1812+#else
1813+# ifdef HAVE_STDLIB_H
1814+# include <stdlib.h>
1815+# endif
1816+#endif
1817+#ifdef HAVE_STRING_H
1818+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1819+# include <memory.h>
1820+# endif
1821+# include <string.h>
1822+#endif
1823+#ifdef HAVE_STRINGS_H
1824+# include <strings.h>
1825+#endif
1826+#ifdef HAVE_INTTYPES_H
1827+# include <inttypes.h>
1828+#endif
1829+#ifdef HAVE_STDINT_H
1830+# include <stdint.h>
1831+#endif
1832+#ifdef HAVE_UNISTD_H
1833+# include <unistd.h>
1834+#endif"
1835+
1836+ac_header_list=
1837+ac_subst_vars='LTLIBOBJS
1838+LIBOBJS
1839+RDYNAMIC
1840+RPATH
1841+ENABLE_VISIBILITY_INLINES_HIDDEN
1842+OCAML_LIBDIR
1843+ALL_BINDINGS
1844+BINDINGS_TO_BUILD
1845+LLVM_CONFIGTIME
1846+LLVM_MANDIR
1847+LLVM_INFODIR
1848+LLVM_INCLUDEDIR
1849+LLVM_ETCDIR
1850+LLVM_DOCSDIR
1851+LLVM_DATADIR
1852+LLVM_LIBDIR
1853+LLVM_BINDIR
1854+LLVM_PREFIX
1855+SHLIBPATH_VAR
1856+SHLIBEXT
1857+LLVMGCC_LANGS
1858+LLVMGCCDIR
1859+LLVMCC1PLUS
1860+LLVMCC1
1861+MMAP_FILE
1862+HUGE_VAL_SANITY
1863+HAVE_PTHREAD
1864+USE_OPROFILE
1865+USE_UDIS86
1866+NO_MISSING_FIELD_INITIALIZERS
1867+NO_VARIADIC_MACROS
1868+LLVMCC_OPTION
1869+LLVMGXX
1870+LLVMGCC
1871+LLVMGXXCOMMAND
1872+LLVMGCCCOMMAND
1873+LIBADD_DL
1874+CONVENIENCE_LTDL_FALSE
1875+CONVENIENCE_LTDL_TRUE
1876+INSTALL_LTDL_FALSE
1877+INSTALL_LTDL_TRUE
1878+HAVE_LINK_VERSION_SCRIPT
1879+GAS
1880+OCAMLDOC
1881+OCAMLDEP
1882+OCAMLOPT
1883+OCAMLC
1884+ZIP
1885+TCLSH
1886+RUNTEST
1887+PDFROFF
1888+POD2MAN
1889+POD2HTML
1890+GZIP
1891+GROFF
1892+DOXYGEN
1893+CAT
1894+BZIP2
1895+INSTALL_DATA
1896+INSTALL_SCRIPT
1897+INSTALL_PROGRAM
1898+HAVE_PERL
1899+DOTTY
1900+GV
1901+CIRCO
1902+TWOPI
1903+NEATO
1904+FDP
1905+DOT
1906+GRAPHVIZ
1907+BINPWD
1908+TAR
1909+SED
1910+RM
1911+AR
1912+RANLIB
1913+MV
1914+MKDIR
1915+FIND
1916+DATE
1917+CP
1918+CMP
1919+LN_S
1920+ifGNUmake
1921+NM
1922+ac_ct_CXX
1923+CXXFLAGS
1924+CXX
1925+BINUTILS_INCDIR
1926+EXTRA_OPTIONS
1927+OPTIMIZE_OPTION
1928+ENABLE_BUILT_CLANG
1929+CLANGXXPATH
1930+CLANGPATH
1931+ENABLE_CBE_PRINTF_A
1932+LLVM_ENUM_DISASSEMBLERS
1933+LLVM_ENUM_ASM_PARSERS
1934+LLVM_ENUM_ASM_PRINTERS
1935+LLVM_ENUM_TARGETS
1936+TARGETS_TO_BUILD
1937+ENABLE_TIMESTAMPS
1938+ENABLE_SHARED
1939+ENABLE_PIC
1940+ENABLE_THREADS
1941+ENABLE_DOXYGEN
1942+TARGET_HAS_JIT
1943+JIT
1944+DEBUG_SYMBOLS
1945+DEBUG_RUNTIME
1946+EXPENSIVE_CHECKS
1947+ENABLE_EXPENSIVE_CHECKS
1948+DISABLE_ASSERTIONS
1949+ENABLE_PROFILING
1950+ENABLE_OPTIMIZED
1951+CVSBUILD
1952+BUILD_CXX
1953+BUILD_EXEEXT
1954+BUILD_CC
1955+LLVM_CROSS_COMPILING
1956+EGREP
1957+GREP
1958+CPP
1959+OBJEXT
1960+EXEEXT
1961+ac_ct_CC
1962+CPPFLAGS
1963+LDFLAGS
1964+CFLAGS
1965+CC
1966+ENDIAN
1967+ARCH
1968+LLVM_ON_WIN32
1969+LLVM_ON_UNIX
1970+NOLINKALL
1971+LINKALL
1972+TARGET_OS
1973+HOST_OS
1974+OS
1975+target_os
1976+target_vendor
1977+target_cpu
1978+target
1979+host_os
1980+host_vendor
1981+host_cpu
1982+host
1983+build_os
1984+build_vendor
1985+build_cpu
1986+build
1987+subdirs
1988+LLVM_COPYRIGHT
1989+target_alias
1990+host_alias
1991+build_alias
1992+LIBS
1993+ECHO_T
1994+ECHO_N
1995+ECHO_C
1996+DEFS
1997+mandir
1998+localedir
1999+libdir
2000+psdir
2001+pdfdir
2002+dvidir
2003+htmldir
2004+infodir
2005+docdir
2006+oldincludedir
2007+includedir
2008+localstatedir
2009+sharedstatedir
2010+sysconfdir
2011+datadir
2012+datarootdir
2013+libexecdir
2014+sbindir
2015+bindir
2016+program_transform_name
2017+prefix
2018+exec_prefix
2019+PACKAGE_URL
2020+PACKAGE_BUGREPORT
2021+PACKAGE_STRING
2022+PACKAGE_VERSION
2023+PACKAGE_TARNAME
2024+PACKAGE_NAME
2025+PATH_SEPARATOR
2026+SHELL'
2027+ac_subst_files=''
2028+ac_user_opts='
2029+enable_option_checking
2030+enable_optimized
2031+enable_profiling
2032+enable_assertions
2033+enable_expensive_checks
2034+enable_debug_runtime
2035+enable_debug_symbols
2036+enable_jit
2037+enable_doxygen
2038+enable_threads
2039+enable_pic
2040+enable_shared
2041+enable_timestamps
2042+enable_targets
2043+enable_cbe_printf_a
2044+with_llvmgccdir
2045+with_llvmgcc
2046+with_llvmgxx
2047+with_clang
2048+with_built_clang
2049+with_optimize_option
2050+with_extra_options
2051+enable_bindings
2052+with_ocaml_libdir
2053+with_c_include_dirs
2054+with_cxx_include_root
2055+with_cxx_include_arch
2056+with_cxx_include_32bit_dir
2057+with_cxx_include_64bit_dir
2058+with_binutils_include
2059+enable_libffi
2060+with_tclinclude
2061+enable_ltdl_install
2062+with_llvmcc
2063+with_udis86
2064+with_oprofile
2065+'
2066+ ac_precious_vars='build_alias
2067+host_alias
2068+target_alias
2069+CC
2070+CFLAGS
2071+LDFLAGS
2072+LIBS
2073+CPPFLAGS
2074+CPP
2075+CXX
2076+CXXFLAGS
2077+CCC'
2078+ac_subdirs_all='projects/llvm-gcc
2079+projects/test-suite
2080+projects/llvm-test
2081+projects/poolalloc
2082+projects/llvm-poolalloc
2083+projects/sample
2084+projects/privbracket
2085+projects/llvm-stacker
2086+projects/llvm-reopt
2087+projects/llvm-java
2088+projects/llvm-tv
2089+projects/safecode
2090+projects/llvm-kernel'
2091+
2092+# Initialize some variables set by options.
2093+ac_init_help=
2094+ac_init_version=false
2095+ac_unrecognized_opts=
2096+ac_unrecognized_sep=
2097+# The variables have the same names as the options, with
2098+# dashes changed to underlines.
2099+cache_file=/dev/null
2100+exec_prefix=NONE
2101+no_create=
2102+no_recursion=
2103+prefix=NONE
2104+program_prefix=NONE
2105+program_suffix=NONE
2106+program_transform_name=s,x,x,
2107+silent=
2108+site=
2109+srcdir=
2110+verbose=
2111+x_includes=NONE
2112+x_libraries=NONE
2113+
2114+# Installation directory options.
2115+# These are left unexpanded so users can "make install exec_prefix=/foo"
2116+# and all the variables that are supposed to be based on exec_prefix
2117+# by default will actually change.
2118+# Use braces instead of parens because sh, perl, etc. also accept them.
2119+# (The list follows the same order as the GNU Coding Standards.)
2120+bindir='${exec_prefix}/bin'
2121+sbindir='${exec_prefix}/sbin'
2122+libexecdir='${exec_prefix}/libexec'
2123+datarootdir='${prefix}/share'
2124+datadir='${datarootdir}'
2125+sysconfdir='${prefix}/etc'
2126+sharedstatedir='${prefix}/com'
2127+localstatedir='${prefix}/var'
2128+includedir='${prefix}/include'
2129+oldincludedir='/usr/include'
2130+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2131+infodir='${datarootdir}/info'
2132+htmldir='${docdir}'
2133+dvidir='${docdir}'
2134+pdfdir='${docdir}'
2135+psdir='${docdir}'
2136+libdir='${exec_prefix}/lib'
2137+localedir='${datarootdir}/locale'
2138+mandir='${datarootdir}/man'
2139+
2140+ac_prev=
2141+ac_dashdash=
2142+for ac_option
2143+do
2144+ # If the previous option needs an argument, assign it.
2145+ if test -n "$ac_prev"; then
2146+ eval $ac_prev=\$ac_option
2147+ ac_prev=
2148+ continue
2149+ fi
2150+
2151+ case $ac_option in
2152+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2153+ *=) ac_optarg= ;;
2154+ *) ac_optarg=yes ;;
2155+ esac
2156+
2157+ # Accept the important Cygnus configure options, so we can diagnose typos.
2158+
2159+ case $ac_dashdash$ac_option in
2160+ --)
2161+ ac_dashdash=yes ;;
2162+
2163+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
2164+ ac_prev=bindir ;;
2165+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2166+ bindir=$ac_optarg ;;
2167+
2168+ -build | --build | --buil | --bui | --bu)
2169+ ac_prev=build_alias ;;
2170+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2171+ build_alias=$ac_optarg ;;
2172+
2173+ -cache-file | --cache-file | --cache-fil | --cache-fi \
2174+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2175+ ac_prev=cache_file ;;
2176+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2177+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2178+ cache_file=$ac_optarg ;;
2179+
2180+ --config-cache | -C)
2181+ cache_file=config.cache ;;
2182+
2183+ -datadir | --datadir | --datadi | --datad)
2184+ ac_prev=datadir ;;
2185+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
2186+ datadir=$ac_optarg ;;
2187+
2188+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2189+ | --dataroo | --dataro | --datar)
2190+ ac_prev=datarootdir ;;
2191+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2192+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2193+ datarootdir=$ac_optarg ;;
2194+
2195+ -disable-* | --disable-*)
2196+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2197+ # Reject names that are not valid shell variable names.
2198+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2199+ as_fn_error $? "invalid feature name: $ac_useropt"
2200+ ac_useropt_orig=$ac_useropt
2201+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2202+ case $ac_user_opts in
2203+ *"
2204+"enable_$ac_useropt"
2205+"*) ;;
2206+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2207+ ac_unrecognized_sep=', ';;
2208+ esac
2209+ eval enable_$ac_useropt=no ;;
2210+
2211+ -docdir | --docdir | --docdi | --doc | --do)
2212+ ac_prev=docdir ;;
2213+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2214+ docdir=$ac_optarg ;;
2215+
2216+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2217+ ac_prev=dvidir ;;
2218+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2219+ dvidir=$ac_optarg ;;
2220+
2221+ -enable-* | --enable-*)
2222+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2223+ # Reject names that are not valid shell variable names.
2224+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2225+ as_fn_error $? "invalid feature name: $ac_useropt"
2226+ ac_useropt_orig=$ac_useropt
2227+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2228+ case $ac_user_opts in
2229+ *"
2230+"enable_$ac_useropt"
2231+"*) ;;
2232+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2233+ ac_unrecognized_sep=', ';;
2234+ esac
2235+ eval enable_$ac_useropt=\$ac_optarg ;;
2236+
2237+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2238+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2239+ | --exec | --exe | --ex)
2240+ ac_prev=exec_prefix ;;
2241+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2242+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2243+ | --exec=* | --exe=* | --ex=*)
2244+ exec_prefix=$ac_optarg ;;
2245+
2246+ -gas | --gas | --ga | --g)
2247+ # Obsolete; use --with-gas.
2248+ with_gas=yes ;;
2249+
2250+ -help | --help | --hel | --he | -h)
2251+ ac_init_help=long ;;
2252+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2253+ ac_init_help=recursive ;;
2254+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2255+ ac_init_help=short ;;
2256+
2257+ -host | --host | --hos | --ho)
2258+ ac_prev=host_alias ;;
2259+ -host=* | --host=* | --hos=* | --ho=*)
2260+ host_alias=$ac_optarg ;;
2261+
2262+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2263+ ac_prev=htmldir ;;
2264+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2265+ | --ht=*)
2266+ htmldir=$ac_optarg ;;
2267+
2268+ -includedir | --includedir | --includedi | --included | --include \
2269+ | --includ | --inclu | --incl | --inc)
2270+ ac_prev=includedir ;;
2271+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2272+ | --includ=* | --inclu=* | --incl=* | --inc=*)
2273+ includedir=$ac_optarg ;;
2274+
2275+ -infodir | --infodir | --infodi | --infod | --info | --inf)
2276+ ac_prev=infodir ;;
2277+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2278+ infodir=$ac_optarg ;;
2279+
2280+ -libdir | --libdir | --libdi | --libd)
2281+ ac_prev=libdir ;;
2282+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
2283+ libdir=$ac_optarg ;;
2284+
2285+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2286+ | --libexe | --libex | --libe)
2287+ ac_prev=libexecdir ;;
2288+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2289+ | --libexe=* | --libex=* | --libe=*)
2290+ libexecdir=$ac_optarg ;;
2291+
2292+ -localedir | --localedir | --localedi | --localed | --locale)
2293+ ac_prev=localedir ;;
2294+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2295+ localedir=$ac_optarg ;;
2296+
2297+ -localstatedir | --localstatedir | --localstatedi | --localstated \
2298+ | --localstate | --localstat | --localsta | --localst | --locals)
2299+ ac_prev=localstatedir ;;
2300+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2301+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2302+ localstatedir=$ac_optarg ;;
2303+
2304+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2305+ ac_prev=mandir ;;
2306+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2307+ mandir=$ac_optarg ;;
2308+
2309+ -nfp | --nfp | --nf)
2310+ # Obsolete; use --without-fp.
2311+ with_fp=no ;;
2312+
2313+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2314+ | --no-cr | --no-c | -n)
2315+ no_create=yes ;;
2316+
2317+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2318+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2319+ no_recursion=yes ;;
2320+
2321+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2322+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2323+ | --oldin | --oldi | --old | --ol | --o)
2324+ ac_prev=oldincludedir ;;
2325+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2326+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2327+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2328+ oldincludedir=$ac_optarg ;;
2329+
2330+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2331+ ac_prev=prefix ;;
2332+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2333+ prefix=$ac_optarg ;;
2334+
2335+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
2336+ | --program-pre | --program-pr | --program-p)
2337+ ac_prev=program_prefix ;;
2338+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
2339+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2340+ program_prefix=$ac_optarg ;;
2341+
2342+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
2343+ | --program-suf | --program-su | --program-s)
2344+ ac_prev=program_suffix ;;
2345+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
2346+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2347+ program_suffix=$ac_optarg ;;
2348+
2349+ -program-transform-name | --program-transform-name \
2350+ | --program-transform-nam | --program-transform-na \
2351+ | --program-transform-n | --program-transform- \
2352+ | --program-transform | --program-transfor \
2353+ | --program-transfo | --program-transf \
2354+ | --program-trans | --program-tran \
2355+ | --progr-tra | --program-tr | --program-t)
2356+ ac_prev=program_transform_name ;;
2357+ -program-transform-name=* | --program-transform-name=* \
2358+ | --program-transform-nam=* | --program-transform-na=* \
2359+ | --program-transform-n=* | --program-transform-=* \
2360+ | --program-transform=* | --program-transfor=* \
2361+ | --program-transfo=* | --program-transf=* \
2362+ | --program-trans=* | --program-tran=* \
2363+ | --progr-tra=* | --program-tr=* | --program-t=*)
2364+ program_transform_name=$ac_optarg ;;
2365+
2366+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2367+ ac_prev=pdfdir ;;
2368+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2369+ pdfdir=$ac_optarg ;;
2370+
2371+ -psdir | --psdir | --psdi | --psd | --ps)
2372+ ac_prev=psdir ;;
2373+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2374+ psdir=$ac_optarg ;;
2375+
2376+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2377+ | -silent | --silent | --silen | --sile | --sil)
2378+ silent=yes ;;
2379+
2380+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2381+ ac_prev=sbindir ;;
2382+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2383+ | --sbi=* | --sb=*)
2384+ sbindir=$ac_optarg ;;
2385+
2386+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
2387+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2388+ | --sharedst | --shareds | --shared | --share | --shar \
2389+ | --sha | --sh)
2390+ ac_prev=sharedstatedir ;;
2391+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2392+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2393+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2394+ | --sha=* | --sh=*)
2395+ sharedstatedir=$ac_optarg ;;
2396+
2397+ -site | --site | --sit)
2398+ ac_prev=site ;;
2399+ -site=* | --site=* | --sit=*)
2400+ site=$ac_optarg ;;
2401+
2402+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2403+ ac_prev=srcdir ;;
2404+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2405+ srcdir=$ac_optarg ;;
2406+
2407+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2408+ | --syscon | --sysco | --sysc | --sys | --sy)
2409+ ac_prev=sysconfdir ;;
2410+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2411+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2412+ sysconfdir=$ac_optarg ;;
2413+
2414+ -target | --target | --targe | --targ | --tar | --ta | --t)
2415+ ac_prev=target_alias ;;
2416+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2417+ target_alias=$ac_optarg ;;
2418+
2419+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
2420+ verbose=yes ;;
2421+
2422+ -version | --version | --versio | --versi | --vers | -V)
2423+ ac_init_version=: ;;
2424+
2425+ -with-* | --with-*)
2426+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2427+ # Reject names that are not valid shell variable names.
2428+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2429+ as_fn_error $? "invalid package name: $ac_useropt"
2430+ ac_useropt_orig=$ac_useropt
2431+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2432+ case $ac_user_opts in
2433+ *"
2434+"with_$ac_useropt"
2435+"*) ;;
2436+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2437+ ac_unrecognized_sep=', ';;
2438+ esac
2439+ eval with_$ac_useropt=\$ac_optarg ;;
2440+
2441+ -without-* | --without-*)
2442+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2443+ # Reject names that are not valid shell variable names.
2444+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2445+ as_fn_error $? "invalid package name: $ac_useropt"
2446+ ac_useropt_orig=$ac_useropt
2447+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2448+ case $ac_user_opts in
2449+ *"
2450+"with_$ac_useropt"
2451+"*) ;;
2452+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2453+ ac_unrecognized_sep=', ';;
2454+ esac
2455+ eval with_$ac_useropt=no ;;
2456+
2457+ --x)
2458+ # Obsolete; use --with-x.
2459+ with_x=yes ;;
2460+
2461+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2462+ | --x-incl | --x-inc | --x-in | --x-i)
2463+ ac_prev=x_includes ;;
2464+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2465+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2466+ x_includes=$ac_optarg ;;
2467+
2468+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
2469+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2470+ ac_prev=x_libraries ;;
2471+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2472+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2473+ x_libraries=$ac_optarg ;;
2474+
2475+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
2476+Try \`$0 --help' for more information"
2477+ ;;
2478+
2479+ *=*)
2480+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2481+ # Reject names that are not valid shell variable names.
2482+ case $ac_envvar in #(
2483+ '' | [0-9]* | *[!_$as_cr_alnum]* )
2484+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2485+ esac
2486+ eval $ac_envvar=\$ac_optarg
2487+ export $ac_envvar ;;
2488+
2489+ *)
2490+ # FIXME: should be removed in autoconf 3.0.
2491+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2492+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2493+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2494+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2495+ ;;
2496+
2497+ esac
2498+done
2499+
2500+if test -n "$ac_prev"; then
2501+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2502+ as_fn_error $? "missing argument to $ac_option"
2503+fi
2504+
2505+if test -n "$ac_unrecognized_opts"; then
2506+ case $enable_option_checking in
2507+ no) ;;
2508+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2509+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2510+ esac
2511+fi
2512+
2513+# Check all directory arguments for consistency.
2514+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2515+ datadir sysconfdir sharedstatedir localstatedir includedir \
2516+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2517+ libdir localedir mandir
2518+do
2519+ eval ac_val=\$$ac_var
2520+ # Remove trailing slashes.
2521+ case $ac_val in
2522+ */ )
2523+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2524+ eval $ac_var=\$ac_val;;
2525+ esac
2526+ # Be sure to have absolute directory names.
2527+ case $ac_val in
2528+ [\\/$]* | ?:[\\/]* ) continue;;
2529+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2530+ esac
2531+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2532+done
2533+
2534+# There might be people who depend on the old broken behavior: `$host'
2535+# used to hold the argument of --host etc.
2536+# FIXME: To remove some day.
2537+build=$build_alias
2538+host=$host_alias
2539+target=$target_alias
2540+
2541+# FIXME: To remove some day.
2542+if test "x$host_alias" != x; then
2543+ if test "x$build_alias" = x; then
2544+ cross_compiling=maybe
2545+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2546+ If a cross compiler is detected then cross compile mode will be used" >&2
2547+ elif test "x$build_alias" != "x$host_alias"; then
2548+ cross_compiling=yes
2549+ fi
2550+fi
2551+
2552+ac_tool_prefix=
2553+test -n "$host_alias" && ac_tool_prefix=$host_alias-
2554+
2555+test "$silent" = yes && exec 6>/dev/null
2556+
2557+
2558+ac_pwd=`pwd` && test -n "$ac_pwd" &&
2559+ac_ls_di=`ls -di .` &&
2560+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2561+ as_fn_error $? "working directory cannot be determined"
2562+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2563+ as_fn_error $? "pwd does not report name of working directory"
2564+
2565+
2566+# Find the source files, if location was not specified.
2567+if test -z "$srcdir"; then
2568+ ac_srcdir_defaulted=yes
2569+ # Try the directory containing this script, then the parent directory.
2570+ ac_confdir=`$as_dirname -- "$as_myself" ||
2571+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2572+ X"$as_myself" : 'X\(//\)[^/]' \| \
2573+ X"$as_myself" : 'X\(//\)$' \| \
2574+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2575+$as_echo X"$as_myself" |
2576+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2577+ s//\1/
2578+ q
2579+ }
2580+ /^X\(\/\/\)[^/].*/{
2581+ s//\1/
2582+ q
2583+ }
2584+ /^X\(\/\/\)$/{
2585+ s//\1/
2586+ q
2587+ }
2588+ /^X\(\/\).*/{
2589+ s//\1/
2590+ q
2591+ }
2592+ s/.*/./; q'`
2593+ srcdir=$ac_confdir
2594+ if test ! -r "$srcdir/$ac_unique_file"; then
2595+ srcdir=..
2596+ fi
2597+else
2598+ ac_srcdir_defaulted=no
2599+fi
2600+if test ! -r "$srcdir/$ac_unique_file"; then
2601+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2602+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2603+fi
2604+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2605+ac_abs_confdir=`(
2606+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2607+ pwd)`
2608+# When building in place, set srcdir=.
2609+if test "$ac_abs_confdir" = "$ac_pwd"; then
2610+ srcdir=.
2611+fi
2612+# Remove unnecessary trailing slashes from srcdir.
2613+# Double slashes in file names in object file debugging info
2614+# mess up M-x gdb in Emacs.
2615+case $srcdir in
2616+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2617+esac
2618+for ac_var in $ac_precious_vars; do
2619+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
2620+ eval ac_env_${ac_var}_value=\$${ac_var}
2621+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2622+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
2623+done
2624+
2625+#
2626+# Report the --help message.
2627+#
2628+if test "$ac_init_help" = "long"; then
2629+ # Omit some internal or obsolete options to make the list less imposing.
2630+ # This message is too long to be a string in the A/UX 3.1 sh.
2631+ cat <<_ACEOF
2632+\`configure' configures llvm 2.8 to adapt to many kinds of systems.
2633+
2634+Usage: $0 [OPTION]... [VAR=VALUE]...
2635+
2636+To assign environment variables (e.g., CC, CFLAGS...), specify them as
2637+VAR=VALUE. See below for descriptions of some of the useful variables.
2638+
2639+Defaults for the options are specified in brackets.
2640+
2641+Configuration:
2642+ -h, --help display this help and exit
2643+ --help=short display options specific to this package
2644+ --help=recursive display the short help of all the included packages
2645+ -V, --version display version information and exit
2646+ -q, --quiet, --silent do not print \`checking ...' messages
2647+ --cache-file=FILE cache test results in FILE [disabled]
2648+ -C, --config-cache alias for \`--cache-file=config.cache'
2649+ -n, --no-create do not create output files
2650+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
2651+
2652+Installation directories:
2653+ --prefix=PREFIX install architecture-independent files in PREFIX
2654+ [$ac_default_prefix]
2655+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2656+ [PREFIX]
2657+
2658+By default, \`make install' will install all the files in
2659+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2660+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2661+for instance \`--prefix=\$HOME'.
2662+
2663+For better control, use the options below.
2664+
2665+Fine tuning of the installation directories:
2666+ --bindir=DIR user executables [EPREFIX/bin]
2667+ --sbindir=DIR system admin executables [EPREFIX/sbin]
2668+ --libexecdir=DIR program executables [EPREFIX/libexec]
2669+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2670+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2671+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2672+ --libdir=DIR object code libraries [EPREFIX/lib]
2673+ --includedir=DIR C header files [PREFIX/include]
2674+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
2675+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2676+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2677+ --infodir=DIR info documentation [DATAROOTDIR/info]
2678+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2679+ --mandir=DIR man documentation [DATAROOTDIR/man]
2680+ --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
2681+ --htmldir=DIR html documentation [DOCDIR]
2682+ --dvidir=DIR dvi documentation [DOCDIR]
2683+ --pdfdir=DIR pdf documentation [DOCDIR]
2684+ --psdir=DIR ps documentation [DOCDIR]
2685+_ACEOF
2686+
2687+ cat <<\_ACEOF
2688+
2689+System types:
2690+ --build=BUILD configure for building on BUILD [guessed]
2691+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
2692+ --target=TARGET configure for building compilers for TARGET [HOST]
2693+_ACEOF
2694+fi
2695+
2696+if test -n "$ac_init_help"; then
2697+ case $ac_init_help in
2698+ short | recursive ) echo "Configuration of llvm 2.8:";;
2699+ esac
2700+ cat <<\_ACEOF
2701+
2702+Optional Features:
2703+ --disable-option-checking ignore unrecognized --enable/--with options
2704+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2705+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2706+ --enable-optimized Compile with optimizations enabled (default is YES)
2707+ --enable-profiling Compile with profiling enabled (default is NO)
2708+ --enable-assertions Compile with assertion checks enabled (default is
2709+ NO)
2710+ --enable-expensive-checks
2711+ Compile with expensive debug checks enabled (default
2712+ is NO)
2713+ --enable-debug-runtime Build runtime libs with debug symbols (default is
2714+ NO)
2715+ --enable-debug-symbols Build compiler with debug symbols (default is NO if
2716+ optimization is on and YES if it's off)
2717+ --enable-jit Enable Just In Time Compiling (default is YES)
2718+ --enable-doxygen Build doxygen documentation (default is NO)
2719+ --enable-threads Use threads if available (default is YES)
2720+ --enable-pic Build LLVM with Position Independent Code (default
2721+ is YES)
2722+ --enable-shared Build a shared library and link tools against it
2723+ (default is NO)
2724+ --enable-timestamps Enable embedding timestamp information in build
2725+ (default is YES)
2726+ --enable-targets Build specific host targets: all or
2727+ target1,target2,... Valid targets are: host, x86,
2728+ x86_64, sparc, powerpc, alpha, arm, mips, spu,
2729+ pic16, xcore, msp430, systemz, blackfin, cbe, and
2730+ cpp (default=all)
2731+ --enable-cbe-printf-a Enable C Backend output with hex floating point via
2732+ %a (default is YES)
2733+ --enable-bindings Build specific language bindings:
2734+ all,auto,none,{binding-name} (default=auto)
2735+ --enable-libffi Check for the presence of libffi (default is NO)
2736+ --enable-ltdl-install install libltdl
2737+
2738+Optional Packages:
2739+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2740+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2741+ --with-llvmgccdir Specify location of llvm-gcc install dir (default
2742+ searches PATH)
2743+ --with-llvmgcc Specify location of llvm-gcc driver (default
2744+ searches PATH)
2745+ --with-llvmgxx Specify location of llvm-g++ driver (default
2746+ searches PATH)
2747+ --with-clang Specify location of clang compiler (default is
2748+ --with-built-clang)
2749+ --with-built-clang Use the compiled Clang as the LLVM compiler
2750+ (default=check)
2751+ --with-optimize-option Select the compiler options to use for optimized
2752+ builds
2753+ --with-extra-options Specify additional options to compile LLVM with
2754+ --with-ocaml-libdir Specify install location for ocaml bindings (default
2755+ is stdlib)
2756+ --with-c-include-dirs Colon separated list of directories clang will
2757+ search for headers
2758+ --with-cxx-include-root Directory with the libstdc++ headers.
2759+ --with-cxx-include-arch Architecture of the libstdc++ headers.
2760+ --with-cxx-include-32bit-dir
2761+ 32 bit multilib dir.
2762+ --with-cxx-include-64bit-dir
2763+ 64 bit multilib directory.
2764+ --with-binutils-include Specify path to binutils/include/ containing
2765+ plugin-api.h file for gold plugin.
2766+ --with-tclinclude directory where tcl headers are
2767+ --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
2768+ clang, or none; default=check)
2769+ --with-udis86=<path> Use udis86 external x86 disassembler library
2770+ --with-oprofile=<prefix>
2771+ Tell OProfile >= 0.9.4 how to symbolize JIT output
2772+
2773+Some influential environment variables:
2774+ CC C compiler command
2775+ CFLAGS C compiler flags
2776+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2777+ nonstandard directory <lib dir>
2778+ LIBS libraries to pass to the linker, e.g. -l<library>
2779+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2780+ you have headers in a nonstandard directory <include dir>
2781+ CPP C preprocessor
2782+ CXX C++ compiler command
2783+ CXXFLAGS C++ compiler flags
2784+
2785+Use these variables to override the choices made by `configure' or to help
2786+it to find libraries and programs with nonstandard names/locations.
2787+
2788+Report bugs to <llvmbugs@cs.uiuc.edu>.
2789+_ACEOF
2790+ac_status=$?
2791+fi
2792+
2793+if test "$ac_init_help" = "recursive"; then
2794+ # If there are subdirs, report their specific --help.
2795+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2796+ test -d "$ac_dir" ||
2797+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2798+ continue
2799+ ac_builddir=.
2800+
2801+case "$ac_dir" in
2802+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2803+*)
2804+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2805+ # A ".." for each directory in $ac_dir_suffix.
2806+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2807+ case $ac_top_builddir_sub in
2808+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2809+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2810+ esac ;;
2811+esac
2812+ac_abs_top_builddir=$ac_pwd
2813+ac_abs_builddir=$ac_pwd$ac_dir_suffix
2814+# for backward compatibility:
2815+ac_top_builddir=$ac_top_build_prefix
2816+
2817+case $srcdir in
2818+ .) # We are building in place.
2819+ ac_srcdir=.
2820+ ac_top_srcdir=$ac_top_builddir_sub
2821+ ac_abs_top_srcdir=$ac_pwd ;;
2822+ [\\/]* | ?:[\\/]* ) # Absolute name.
2823+ ac_srcdir=$srcdir$ac_dir_suffix;
2824+ ac_top_srcdir=$srcdir
2825+ ac_abs_top_srcdir=$srcdir ;;
2826+ *) # Relative name.
2827+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2828+ ac_top_srcdir=$ac_top_build_prefix$srcdir
2829+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2830+esac
2831+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2832+
2833+ cd "$ac_dir" || { ac_status=$?; continue; }
2834+ # Check for guested configure.
2835+ if test -f "$ac_srcdir/configure.gnu"; then
2836+ echo &&
2837+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2838+ elif test -f "$ac_srcdir/configure"; then
2839+ echo &&
2840+ $SHELL "$ac_srcdir/configure" --help=recursive
2841+ else
2842+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2843+ fi || ac_status=$?
2844+ cd "$ac_pwd" || { ac_status=$?; break; }
2845+ done
2846+fi
2847+
2848+test -n "$ac_init_help" && exit $ac_status
2849+if $ac_init_version; then
2850+ cat <<\_ACEOF
2851+llvm configure 2.8
2852+generated by GNU Autoconf 2.67
2853+
2854+Copyright (C) 2010 Free Software Foundation, Inc.
2855+This configure script is free software; the Free Software Foundation
2856+gives unlimited permission to copy, distribute and modify it.
2857+
2858+Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
2859+_ACEOF
2860+ exit
2861+fi
2862+
2863+## ------------------------ ##
2864+## Autoconf initialization. ##
2865+## ------------------------ ##
2866+
2867+# ac_fn_c_try_compile LINENO
2868+# --------------------------
2869+# Try to compile conftest.$ac_ext, and return whether this succeeded.
2870+ac_fn_c_try_compile ()
2871+{
2872+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2873+ rm -f conftest.$ac_objext
2874+ if { { ac_try="$ac_compile"
2875+case "(($ac_try" in
2876+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877+ *) ac_try_echo=$ac_try;;
2878+esac
2879+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880+$as_echo "$ac_try_echo"; } >&5
2881+ (eval "$ac_compile") 2>conftest.err
2882+ ac_status=$?
2883+ if test -s conftest.err; then
2884+ grep -v '^ *+' conftest.err >conftest.er1
2885+ cat conftest.er1 >&5
2886+ mv -f conftest.er1 conftest.err
2887+ fi
2888+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889+ test $ac_status = 0; } && {
2890+ test -z "$ac_c_werror_flag" ||
2891+ test ! -s conftest.err
2892+ } && test -s conftest.$ac_objext; then :
2893+ ac_retval=0
2894+else
2895+ $as_echo "$as_me: failed program was:" >&5
2896+sed 's/^/| /' conftest.$ac_ext >&5
2897+
2898+ ac_retval=1
2899+fi
2900+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2901+ as_fn_set_status $ac_retval
2902+
2903+} # ac_fn_c_try_compile
2904+
2905+# ac_fn_c_try_run LINENO
2906+# ----------------------
2907+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2908+# that executables *can* be run.
2909+ac_fn_c_try_run ()
2910+{
2911+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2912+ if { { ac_try="$ac_link"
2913+case "(($ac_try" in
2914+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915+ *) ac_try_echo=$ac_try;;
2916+esac
2917+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918+$as_echo "$ac_try_echo"; } >&5
2919+ (eval "$ac_link") 2>&5
2920+ ac_status=$?
2921+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2923+ { { case "(($ac_try" in
2924+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925+ *) ac_try_echo=$ac_try;;
2926+esac
2927+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928+$as_echo "$ac_try_echo"; } >&5
2929+ (eval "$ac_try") 2>&5
2930+ ac_status=$?
2931+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932+ test $ac_status = 0; }; }; then :
2933+ ac_retval=0
2934+else
2935+ $as_echo "$as_me: program exited with status $ac_status" >&5
2936+ $as_echo "$as_me: failed program was:" >&5
2937+sed 's/^/| /' conftest.$ac_ext >&5
2938+
2939+ ac_retval=$ac_status
2940+fi
2941+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2942+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2943+ as_fn_set_status $ac_retval
2944+
2945+} # ac_fn_c_try_run
2946+
2947+# ac_fn_c_try_cpp LINENO
2948+# ----------------------
2949+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2950+ac_fn_c_try_cpp ()
2951+{
2952+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2953+ if { { ac_try="$ac_cpp conftest.$ac_ext"
2954+case "(($ac_try" in
2955+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956+ *) ac_try_echo=$ac_try;;
2957+esac
2958+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959+$as_echo "$ac_try_echo"; } >&5
2960+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2961+ ac_status=$?
2962+ if test -s conftest.err; then
2963+ grep -v '^ *+' conftest.err >conftest.er1
2964+ cat conftest.er1 >&5
2965+ mv -f conftest.er1 conftest.err
2966+ fi
2967+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968+ test $ac_status = 0; } > conftest.i && {
2969+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2970+ test ! -s conftest.err
2971+ }; then :
2972+ ac_retval=0
2973+else
2974+ $as_echo "$as_me: failed program was:" >&5
2975+sed 's/^/| /' conftest.$ac_ext >&5
2976+
2977+ ac_retval=1
2978+fi
2979+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2980+ as_fn_set_status $ac_retval
2981+
2982+} # ac_fn_c_try_cpp
2983+
2984+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2985+# -------------------------------------------------------
2986+# Tests whether HEADER exists and can be compiled using the include files in
2987+# INCLUDES, setting the cache variable VAR accordingly.
2988+ac_fn_c_check_header_compile ()
2989+{
2990+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2991+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2992+$as_echo_n "checking for $2... " >&6; }
2993+if eval "test \"\${$3+set}\"" = set; then :
2994+ $as_echo_n "(cached) " >&6
2995+else
2996+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997+/* end confdefs.h. */
2998+$4
2999+#include <$2>
3000+_ACEOF
3001+if ac_fn_c_try_compile "$LINENO"; then :
3002+ eval "$3=yes"
3003+else
3004+ eval "$3=no"
3005+fi
3006+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007+fi
3008+eval ac_res=\$$3
3009+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3010+$as_echo "$ac_res" >&6; }
3011+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3012+
3013+} # ac_fn_c_check_header_compile
3014+
3015+# ac_fn_cxx_try_compile LINENO
3016+# ----------------------------
3017+# Try to compile conftest.$ac_ext, and return whether this succeeded.
3018+ac_fn_cxx_try_compile ()
3019+{
3020+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3021+ rm -f conftest.$ac_objext
3022+ if { { ac_try="$ac_compile"
3023+case "(($ac_try" in
3024+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025+ *) ac_try_echo=$ac_try;;
3026+esac
3027+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028+$as_echo "$ac_try_echo"; } >&5
3029+ (eval "$ac_compile") 2>conftest.err
3030+ ac_status=$?
3031+ if test -s conftest.err; then
3032+ grep -v '^ *+' conftest.err >conftest.er1
3033+ cat conftest.er1 >&5
3034+ mv -f conftest.er1 conftest.err
3035+ fi
3036+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037+ test $ac_status = 0; } && {
3038+ test -z "$ac_cxx_werror_flag" ||
3039+ test ! -s conftest.err
3040+ } && test -s conftest.$ac_objext; then :
3041+ ac_retval=0
3042+else
3043+ $as_echo "$as_me: failed program was:" >&5
3044+sed 's/^/| /' conftest.$ac_ext >&5
3045+
3046+ ac_retval=1
3047+fi
3048+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3049+ as_fn_set_status $ac_retval
3050+
3051+} # ac_fn_cxx_try_compile
3052+
3053+# ac_fn_c_try_link LINENO
3054+# -----------------------
3055+# Try to link conftest.$ac_ext, and return whether this succeeded.
3056+ac_fn_c_try_link ()
3057+{
3058+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3059+ rm -f conftest.$ac_objext conftest$ac_exeext
3060+ if { { ac_try="$ac_link"
3061+case "(($ac_try" in
3062+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063+ *) ac_try_echo=$ac_try;;
3064+esac
3065+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066+$as_echo "$ac_try_echo"; } >&5
3067+ (eval "$ac_link") 2>conftest.err
3068+ ac_status=$?
3069+ if test -s conftest.err; then
3070+ grep -v '^ *+' conftest.err >conftest.er1
3071+ cat conftest.er1 >&5
3072+ mv -f conftest.er1 conftest.err
3073+ fi
3074+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075+ test $ac_status = 0; } && {
3076+ test -z "$ac_c_werror_flag" ||
3077+ test ! -s conftest.err
3078+ } && test -s conftest$ac_exeext && {
3079+ test "$cross_compiling" = yes ||
3080+ $as_test_x conftest$ac_exeext
3081+ }; then :
3082+ ac_retval=0
3083+else
3084+ $as_echo "$as_me: failed program was:" >&5
3085+sed 's/^/| /' conftest.$ac_ext >&5
3086+
3087+ ac_retval=1
3088+fi
3089+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3090+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3091+ # interfere with the next link command; also delete a directory that is
3092+ # left behind by Apple's compiler. We do this before executing the actions.
3093+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3094+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3095+ as_fn_set_status $ac_retval
3096+
3097+} # ac_fn_c_try_link
3098+
3099+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3100+# -------------------------------------------------------
3101+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3102+# the include files in INCLUDES and setting the cache variable VAR
3103+# accordingly.
3104+ac_fn_c_check_header_mongrel ()
3105+{
3106+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3107+ if eval "test \"\${$3+set}\"" = set; then :
3108+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3109+$as_echo_n "checking for $2... " >&6; }
3110+if eval "test \"\${$3+set}\"" = set; then :
3111+ $as_echo_n "(cached) " >&6
3112+fi
3113+eval ac_res=\$$3
3114+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3115+$as_echo "$ac_res" >&6; }
3116+else
3117+ # Is the header compilable?
3118+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3119+$as_echo_n "checking $2 usability... " >&6; }
3120+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121+/* end confdefs.h. */
3122+$4
3123+#include <$2>
3124+_ACEOF
3125+if ac_fn_c_try_compile "$LINENO"; then :
3126+ ac_header_compiler=yes
3127+else
3128+ ac_header_compiler=no
3129+fi
3130+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3132+$as_echo "$ac_header_compiler" >&6; }
3133+
3134+# Is the header present?
3135+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3136+$as_echo_n "checking $2 presence... " >&6; }
3137+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138+/* end confdefs.h. */
3139+#include <$2>
3140+_ACEOF
3141+if ac_fn_c_try_cpp "$LINENO"; then :
3142+ ac_header_preproc=yes
3143+else
3144+ ac_header_preproc=no
3145+fi
3146+rm -f conftest.err conftest.i conftest.$ac_ext
3147+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3148+$as_echo "$ac_header_preproc" >&6; }
3149+
3150+# So? What about this header?
3151+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3152+ yes:no: )
3153+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3154+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3155+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3156+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3157+ ;;
3158+ no:yes:* )
3159+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3160+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3161+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3162+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3163+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3164+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3165+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3166+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3167+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3168+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3169+( $as_echo "## ----------------------------------- ##
3170+## Report this to llvmbugs@cs.uiuc.edu ##
3171+## ----------------------------------- ##"
3172+ ) | sed "s/^/$as_me: WARNING: /" >&2
3173+ ;;
3174+esac
3175+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3176+$as_echo_n "checking for $2... " >&6; }
3177+if eval "test \"\${$3+set}\"" = set; then :
3178+ $as_echo_n "(cached) " >&6
3179+else
3180+ eval "$3=\$ac_header_compiler"
3181+fi
3182+eval ac_res=\$$3
3183+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3184+$as_echo "$ac_res" >&6; }
3185+fi
3186+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3187+
3188+} # ac_fn_c_check_header_mongrel
3189+
3190+# ac_fn_c_check_func LINENO FUNC VAR
3191+# ----------------------------------
3192+# Tests whether FUNC exists, setting the cache variable VAR accordingly
3193+ac_fn_c_check_func ()
3194+{
3195+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3196+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3197+$as_echo_n "checking for $2... " >&6; }
3198+if eval "test \"\${$3+set}\"" = set; then :
3199+ $as_echo_n "(cached) " >&6
3200+else
3201+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202+/* end confdefs.h. */
3203+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3204+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
3205+#define $2 innocuous_$2
3206+
3207+/* System header to define __stub macros and hopefully few prototypes,
3208+ which can conflict with char $2 (); below.
3209+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210+ <limits.h> exists even on freestanding compilers. */
3211+
3212+#ifdef __STDC__
3213+# include <limits.h>
3214+#else
3215+# include <assert.h>
3216+#endif
3217+
3218+#undef $2
3219+
3220+/* Override any GCC internal prototype to avoid an error.
3221+ Use char because int might match the return type of a GCC
3222+ builtin and then its argument prototype would still apply. */
3223+#ifdef __cplusplus
3224+extern "C"
3225+#endif
3226+char $2 ();
3227+/* The GNU C library defines this for functions which it implements
3228+ to always fail with ENOSYS. Some functions are actually named
3229+ something starting with __ and the normal name is an alias. */
3230+#if defined __stub_$2 || defined __stub___$2
3231+choke me
3232+#endif
3233+
3234+int
3235+main ()
3236+{
3237+return $2 ();
3238+ ;
3239+ return 0;
3240+}
3241+_ACEOF
3242+if ac_fn_c_try_link "$LINENO"; then :
3243+ eval "$3=yes"
3244+else
3245+ eval "$3=no"
3246+fi
3247+rm -f core conftest.err conftest.$ac_objext \
3248+ conftest$ac_exeext conftest.$ac_ext
3249+fi
3250+eval ac_res=\$$3
3251+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3252+$as_echo "$ac_res" >&6; }
3253+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3254+
3255+} # ac_fn_c_check_func
3256+
3257+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3258+# -------------------------------------------
3259+# Tests whether TYPE exists after having included INCLUDES, setting cache
3260+# variable VAR accordingly.
3261+ac_fn_c_check_type ()
3262+{
3263+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3264+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3265+$as_echo_n "checking for $2... " >&6; }
3266+if eval "test \"\${$3+set}\"" = set; then :
3267+ $as_echo_n "(cached) " >&6
3268+else
3269+ eval "$3=no"
3270+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271+/* end confdefs.h. */
3272+$4
3273+int
3274+main ()
3275+{
3276+if (sizeof ($2))
3277+ return 0;
3278+ ;
3279+ return 0;
3280+}
3281+_ACEOF
3282+if ac_fn_c_try_compile "$LINENO"; then :
3283+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284+/* end confdefs.h. */
3285+$4
3286+int
3287+main ()
3288+{
3289+if (sizeof (($2)))
3290+ return 0;
3291+ ;
3292+ return 0;
3293+}
3294+_ACEOF
3295+if ac_fn_c_try_compile "$LINENO"; then :
3296+
3297+else
3298+ eval "$3=yes"
3299+fi
3300+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301+fi
3302+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303+fi
3304+eval ac_res=\$$3
3305+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3306+$as_echo "$ac_res" >&6; }
3307+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3308+
3309+} # ac_fn_c_check_type
3310+
3311+# ac_fn_cxx_try_run LINENO
3312+# ------------------------
3313+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3314+# that executables *can* be run.
3315+ac_fn_cxx_try_run ()
3316+{
3317+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3318+ if { { ac_try="$ac_link"
3319+case "(($ac_try" in
3320+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321+ *) ac_try_echo=$ac_try;;
3322+esac
3323+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324+$as_echo "$ac_try_echo"; } >&5
3325+ (eval "$ac_link") 2>&5
3326+ ac_status=$?
3327+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3329+ { { case "(($ac_try" in
3330+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331+ *) ac_try_echo=$ac_try;;
3332+esac
3333+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334+$as_echo "$ac_try_echo"; } >&5
3335+ (eval "$ac_try") 2>&5
3336+ ac_status=$?
3337+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338+ test $ac_status = 0; }; }; then :
3339+ ac_retval=0
3340+else
3341+ $as_echo "$as_me: program exited with status $ac_status" >&5
3342+ $as_echo "$as_me: failed program was:" >&5
3343+sed 's/^/| /' conftest.$ac_ext >&5
3344+
3345+ ac_retval=$ac_status
3346+fi
3347+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3348+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3349+ as_fn_set_status $ac_retval
3350+
3351+} # ac_fn_cxx_try_run
3352+cat >config.log <<_ACEOF
3353+This file contains any messages produced by compilers while
3354+running configure, to aid debugging if configure makes a mistake.
3355+
3356+It was created by llvm $as_me 2.8, which was
3357+generated by GNU Autoconf 2.67. Invocation command line was
3358+
3359+ $ $0 $@
3360+
3361+_ACEOF
3362+exec 5>>config.log
3363+{
3364+cat <<_ASUNAME
3365+## --------- ##
3366+## Platform. ##
3367+## --------- ##
3368+
3369+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3370+uname -m = `(uname -m) 2>/dev/null || echo unknown`
3371+uname -r = `(uname -r) 2>/dev/null || echo unknown`
3372+uname -s = `(uname -s) 2>/dev/null || echo unknown`
3373+uname -v = `(uname -v) 2>/dev/null || echo unknown`
3374+
3375+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3376+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3377+
3378+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3379+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3380+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3381+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3382+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3383+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3384+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3385+
3386+_ASUNAME
3387+
3388+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389+for as_dir in $PATH
3390+do
3391+ IFS=$as_save_IFS
3392+ test -z "$as_dir" && as_dir=.
3393+ $as_echo "PATH: $as_dir"
3394+ done
3395+IFS=$as_save_IFS
3396+
3397+} >&5
3398+
3399+cat >&5 <<_ACEOF
3400+
3401+
3402+## ----------- ##
3403+## Core tests. ##
3404+## ----------- ##
3405+
3406+_ACEOF
3407+
3408+
3409+# Keep a trace of the command line.
3410+# Strip out --no-create and --no-recursion so they do not pile up.
3411+# Strip out --silent because we don't want to record it for future runs.
3412+# Also quote any args containing shell meta-characters.
3413+# Make two passes to allow for proper duplicate-argument suppression.
3414+ac_configure_args=
3415+ac_configure_args0=
3416+ac_configure_args1=
3417+ac_must_keep_next=false
3418+for ac_pass in 1 2
3419+do
3420+ for ac_arg
3421+ do
3422+ case $ac_arg in
3423+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3424+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3425+ | -silent | --silent | --silen | --sile | --sil)
3426+ continue ;;
3427+ *\'*)
3428+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3429+ esac
3430+ case $ac_pass in
3431+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3432+ 2)
3433+ as_fn_append ac_configure_args1 " '$ac_arg'"
3434+ if test $ac_must_keep_next = true; then
3435+ ac_must_keep_next=false # Got value, back to normal.
3436+ else
3437+ case $ac_arg in
3438+ *=* | --config-cache | -C | -disable-* | --disable-* \
3439+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3440+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3441+ | -with-* | --with-* | -without-* | --without-* | --x)
3442+ case "$ac_configure_args0 " in
3443+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3444+ esac
3445+ ;;
3446+ -* ) ac_must_keep_next=true ;;
3447+ esac
3448+ fi
3449+ as_fn_append ac_configure_args " '$ac_arg'"
3450+ ;;
3451+ esac
3452+ done
3453+done
3454+{ ac_configure_args0=; unset ac_configure_args0;}
3455+{ ac_configure_args1=; unset ac_configure_args1;}
3456+
3457+# When interrupted or exit'd, cleanup temporary files, and complete
3458+# config.log. We remove comments because anyway the quotes in there
3459+# would cause problems or look ugly.
3460+# WARNING: Use '\'' to represent an apostrophe within the trap.
3461+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3462+trap 'exit_status=$?
3463+ # Save into config.log some information that might help in debugging.
3464+ {
3465+ echo
3466+
3467+ $as_echo "## ---------------- ##
3468+## Cache variables. ##
3469+## ---------------- ##"
3470+ echo
3471+ # The following way of writing the cache mishandles newlines in values,
3472+(
3473+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3474+ eval ac_val=\$$ac_var
3475+ case $ac_val in #(
3476+ *${as_nl}*)
3477+ case $ac_var in #(
3478+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3479+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3480+ esac
3481+ case $ac_var in #(
3482+ _ | IFS | as_nl) ;; #(
3483+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3484+ *) { eval $ac_var=; unset $ac_var;} ;;
3485+ esac ;;
3486+ esac
3487+ done
3488+ (set) 2>&1 |
3489+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3490+ *${as_nl}ac_space=\ *)
3491+ sed -n \
3492+ "s/'\''/'\''\\\\'\'''\''/g;
3493+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3494+ ;; #(
3495+ *)
3496+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3497+ ;;
3498+ esac |
3499+ sort
3500+)
3501+ echo
3502+
3503+ $as_echo "## ----------------- ##
3504+## Output variables. ##
3505+## ----------------- ##"
3506+ echo
3507+ for ac_var in $ac_subst_vars
3508+ do
3509+ eval ac_val=\$$ac_var
3510+ case $ac_val in
3511+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3512+ esac
3513+ $as_echo "$ac_var='\''$ac_val'\''"
3514+ done | sort
3515+ echo
3516+
3517+ if test -n "$ac_subst_files"; then
3518+ $as_echo "## ------------------- ##
3519+## File substitutions. ##
3520+## ------------------- ##"
3521+ echo
3522+ for ac_var in $ac_subst_files
3523+ do
3524+ eval ac_val=\$$ac_var
3525+ case $ac_val in
3526+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3527+ esac
3528+ $as_echo "$ac_var='\''$ac_val'\''"
3529+ done | sort
3530+ echo
3531+ fi
3532+
3533+ if test -s confdefs.h; then
3534+ $as_echo "## ----------- ##
3535+## confdefs.h. ##
3536+## ----------- ##"
3537+ echo
3538+ cat confdefs.h
3539+ echo
3540+ fi
3541+ test "$ac_signal" != 0 &&
3542+ $as_echo "$as_me: caught signal $ac_signal"
3543+ $as_echo "$as_me: exit $exit_status"
3544+ } >&5
3545+ rm -f core *.core core.conftest.* &&
3546+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3547+ exit $exit_status
3548+' 0
3549+for ac_signal in 1 2 13 15; do
3550+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3551+done
3552+ac_signal=0
3553+
3554+# confdefs.h avoids OS command line length limits that DEFS can exceed.
3555+rm -f -r conftest* confdefs.h
3556+
3557+$as_echo "/* confdefs.h */" > confdefs.h
3558+
3559+# Predefined preprocessor variables.
3560+
3561+cat >>confdefs.h <<_ACEOF
3562+#define PACKAGE_NAME "$PACKAGE_NAME"
3563+_ACEOF
3564+
3565+cat >>confdefs.h <<_ACEOF
3566+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3567+_ACEOF
3568+
3569+cat >>confdefs.h <<_ACEOF
3570+#define PACKAGE_VERSION "$PACKAGE_VERSION"
3571+_ACEOF
3572+
3573+cat >>confdefs.h <<_ACEOF
3574+#define PACKAGE_STRING "$PACKAGE_STRING"
3575+_ACEOF
3576+
3577+cat >>confdefs.h <<_ACEOF
3578+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3579+_ACEOF
3580+
3581+cat >>confdefs.h <<_ACEOF
3582+#define PACKAGE_URL "$PACKAGE_URL"
3583+_ACEOF
3584+
3585+
3586+# Let the site file select an alternate cache file if it wants to.
3587+# Prefer an explicitly selected file to automatically selected ones.
3588+ac_site_file1=NONE
3589+ac_site_file2=NONE
3590+if test -n "$CONFIG_SITE"; then
3591+ # We do not want a PATH search for config.site.
3592+ case $CONFIG_SITE in #((
3593+ -*) ac_site_file1=./$CONFIG_SITE;;
3594+ */*) ac_site_file1=$CONFIG_SITE;;
3595+ *) ac_site_file1=./$CONFIG_SITE;;
3596+ esac
3597+elif test "x$prefix" != xNONE; then
3598+ ac_site_file1=$prefix/share/config.site
3599+ ac_site_file2=$prefix/etc/config.site
3600+else
3601+ ac_site_file1=$ac_default_prefix/share/config.site
3602+ ac_site_file2=$ac_default_prefix/etc/config.site
3603+fi
3604+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3605+do
3606+ test "x$ac_site_file" = xNONE && continue
3607+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3608+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3609+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3610+ sed 's/^/| /' "$ac_site_file" >&5
3611+ . "$ac_site_file" \
3612+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614+as_fn_error $? "failed to load site script $ac_site_file
3615+See \`config.log' for more details" "$LINENO" 5 ; }
3616+ fi
3617+done
3618+
3619+if test -r "$cache_file"; then
3620+ # Some versions of bash will fail to source /dev/null (special files
3621+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3622+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3623+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3624+$as_echo "$as_me: loading cache $cache_file" >&6;}
3625+ case $cache_file in
3626+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
3627+ *) . "./$cache_file";;
3628+ esac
3629+ fi
3630+else
3631+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3632+$as_echo "$as_me: creating cache $cache_file" >&6;}
3633+ >$cache_file
3634+fi
3635+
3636+as_fn_append ac_header_list " stdlib.h"
3637+as_fn_append ac_header_list " unistd.h"
3638+as_fn_append ac_header_list " sys/param.h"
3639+# Check that the precious variables saved in the cache have kept the same
3640+# value.
3641+ac_cache_corrupted=false
3642+for ac_var in $ac_precious_vars; do
3643+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
3644+ eval ac_new_set=\$ac_env_${ac_var}_set
3645+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
3646+ eval ac_new_val=\$ac_env_${ac_var}_value
3647+ case $ac_old_set,$ac_new_set in
3648+ set,)
3649+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3650+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3651+ ac_cache_corrupted=: ;;
3652+ ,set)
3653+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3654+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3655+ ac_cache_corrupted=: ;;
3656+ ,);;
3657+ *)
3658+ if test "x$ac_old_val" != "x$ac_new_val"; then
3659+ # differences in whitespace do not lead to failure.
3660+ ac_old_val_w=`echo x $ac_old_val`
3661+ ac_new_val_w=`echo x $ac_new_val`
3662+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
3663+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3664+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3665+ ac_cache_corrupted=:
3666+ else
3667+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3668+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3669+ eval $ac_var=\$ac_old_val
3670+ fi
3671+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3672+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3673+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3674+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3675+ fi;;
3676+ esac
3677+ # Pass precious variables to config.status.
3678+ if test "$ac_new_set" = set; then
3679+ case $ac_new_val in
3680+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3681+ *) ac_arg=$ac_var=$ac_new_val ;;
3682+ esac
3683+ case " $ac_configure_args " in
3684+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3685+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3686+ esac
3687+ fi
3688+done
3689+if $ac_cache_corrupted; then
3690+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3693+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3694+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3695+fi
3696+## -------------------- ##
3697+## Main body of script. ##
3698+## -------------------- ##
3699+
3700+ac_ext=c
3701+ac_cpp='$CPP $CPPFLAGS'
3702+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705+
3706+
3707+
3708+LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
3709+
3710+
3711+
3712+
3713+
3714+
3715+
3716+ac_aux_dir=
3717+for ac_dir in autoconf "$srcdir"/autoconf; do
3718+ if test -f "$ac_dir/install-sh"; then
3719+ ac_aux_dir=$ac_dir
3720+ ac_install_sh="$ac_aux_dir/install-sh -c"
3721+ break
3722+ elif test -f "$ac_dir/install.sh"; then
3723+ ac_aux_dir=$ac_dir
3724+ ac_install_sh="$ac_aux_dir/install.sh -c"
3725+ break
3726+ elif test -f "$ac_dir/shtool"; then
3727+ ac_aux_dir=$ac_dir
3728+ ac_install_sh="$ac_aux_dir/shtool install -c"
3729+ break
3730+ fi
3731+done
3732+if test -z "$ac_aux_dir"; then
3733+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
3734+fi
3735+
3736+# These three variables are undocumented and unsupported,
3737+# and are intended to be withdrawn in a future Autoconf release.
3738+# They can cause serious problems if a builder's source tree is in a directory
3739+# whose full name contains unusual characters.
3740+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3741+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3742+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3743+
3744+
3745+
3746+if test ${srcdir} != "." ; then
3747+ if test -f ${srcdir}/include/llvm/Config/config.h ; then
3748+ as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5
3749+ fi
3750+fi
3751+
3752+
3753+
3754+if test -d ${srcdir}/projects/llvm-gcc ; then
3755+
3756+
3757+subdirs="$subdirs projects/llvm-gcc"
3758+
3759+fi
3760+
3761+if test -d ${srcdir}/projects/test-suite ; then
3762+ subdirs="$subdirs projects/test-suite"
3763+
3764+fi
3765+
3766+if test -d ${srcdir}/projects/llvm-test ; then
3767+ subdirs="$subdirs projects/llvm-test"
3768+
3769+fi
3770+
3771+if test -d ${srcdir}/projects/poolalloc ; then
3772+ subdirs="$subdirs projects/poolalloc"
3773+
3774+fi
3775+
3776+if test -d ${srcdir}/projects/llvm-poolalloc ; then
3777+ subdirs="$subdirs projects/llvm-poolalloc"
3778+
3779+fi
3780+
3781+for i in `ls ${srcdir}/projects`
3782+do
3783+ if test -d ${srcdir}/projects/${i} ; then
3784+ case ${i} in
3785+ sample) subdirs="$subdirs projects/sample"
3786+ ;;
3787+ privbracket) subdirs="$subdirs projects/privbracket"
3788+ ;;
3789+ llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3790+ ;;
3791+ llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3792+;;
3793+ llvm-java) subdirs="$subdirs projects/llvm-java"
3794+ ;;
3795+ llvm-tv) subdirs="$subdirs projects/llvm-tv"
3796+ ;;
3797+ safecode) subdirs="$subdirs projects/safecode"
3798+ ;;
3799+ llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3800+ ;;
3801+ llvm-gcc) ;;
3802+ test-suite) ;;
3803+ llvm-test) ;;
3804+ poolalloc) ;;
3805+ llvm-poolalloc) ;;
3806+ *)
3807+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3808+$as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3809+ ;;
3810+ esac
3811+ fi
3812+done
3813+
3814+
3815+# Make sure we can run config.sub.
3816+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3817+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3818+
3819+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3820+$as_echo_n "checking build system type... " >&6; }
3821+if test "${ac_cv_build+set}" = set; then :
3822+ $as_echo_n "(cached) " >&6
3823+else
3824+ ac_build_alias=$build_alias
3825+test "x$ac_build_alias" = x &&
3826+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3827+test "x$ac_build_alias" = x &&
3828+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3829+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3830+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3831+
3832+fi
3833+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3834+$as_echo "$ac_cv_build" >&6; }
3835+case $ac_cv_build in
3836+*-*-*) ;;
3837+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3838+esac
3839+build=$ac_cv_build
3840+ac_save_IFS=$IFS; IFS='-'
3841+set x $ac_cv_build
3842+shift
3843+build_cpu=$1
3844+build_vendor=$2
3845+shift; shift
3846+# Remember, the first character of IFS is used to create $*,
3847+# except with old shells:
3848+build_os=$*
3849+IFS=$ac_save_IFS
3850+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3851+
3852+
3853+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3854+$as_echo_n "checking host system type... " >&6; }
3855+if test "${ac_cv_host+set}" = set; then :
3856+ $as_echo_n "(cached) " >&6
3857+else
3858+ if test "x$host_alias" = x; then
3859+ ac_cv_host=$ac_cv_build
3860+else
3861+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3862+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3863+fi
3864+
3865+fi
3866+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3867+$as_echo "$ac_cv_host" >&6; }
3868+case $ac_cv_host in
3869+*-*-*) ;;
3870+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3871+esac
3872+host=$ac_cv_host
3873+ac_save_IFS=$IFS; IFS='-'
3874+set x $ac_cv_host
3875+shift
3876+host_cpu=$1
3877+host_vendor=$2
3878+shift; shift
3879+# Remember, the first character of IFS is used to create $*,
3880+# except with old shells:
3881+host_os=$*
3882+IFS=$ac_save_IFS
3883+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3884+
3885+
3886+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3887+$as_echo_n "checking target system type... " >&6; }
3888+if test "${ac_cv_target+set}" = set; then :
3889+ $as_echo_n "(cached) " >&6
3890+else
3891+ if test "x$target_alias" = x; then
3892+ ac_cv_target=$ac_cv_host
3893+else
3894+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3895+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3896+fi
3897+
3898+fi
3899+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3900+$as_echo "$ac_cv_target" >&6; }
3901+case $ac_cv_target in
3902+*-*-*) ;;
3903+*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
3904+esac
3905+target=$ac_cv_target
3906+ac_save_IFS=$IFS; IFS='-'
3907+set x $ac_cv_target
3908+shift
3909+target_cpu=$1
3910+target_vendor=$2
3911+shift; shift
3912+# Remember, the first character of IFS is used to create $*,
3913+# except with old shells:
3914+target_os=$*
3915+IFS=$ac_save_IFS
3916+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3917+
3918+
3919+# The aliases save the names the user supplied, while $host etc.
3920+# will get canonicalized.
3921+test -n "$target_alias" &&
3922+ test "$program_prefix$program_suffix$program_transform_name" = \
3923+ NONENONEs,x,x, &&
3924+ program_prefix=${target_alias}-
3925+
3926+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
3927+$as_echo_n "checking type of operating system we're going to host on... " >&6; }
3928+if test "${llvm_cv_os_type+set}" = set; then :
3929+ $as_echo_n "(cached) " >&6
3930+else
3931+ case $host in
3932+ *-*-aix*)
3933+ llvm_cv_link_all_option="-Wl,--whole-archive"
3934+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3935+ llvm_cv_os_type="AIX"
3936+ llvm_cv_platform_type="Unix" ;;
3937+ *-*-irix*)
3938+ llvm_cv_link_all_option="-Wl,--whole-archive"
3939+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3940+ llvm_cv_os_type="IRIX"
3941+ llvm_cv_platform_type="Unix" ;;
3942+ *-*-cygwin*)
3943+ llvm_cv_link_all_option="-Wl,--whole-archive"
3944+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945+ llvm_cv_os_type="Cygwin"
3946+ llvm_cv_platform_type="Unix" ;;
3947+ *-*-darwin*)
3948+ llvm_cv_link_all_option="-Wl,-all_load"
3949+ llvm_cv_no_link_all_option="-Wl,-noall_load"
3950+ llvm_cv_os_type="Darwin"
3951+ llvm_cv_platform_type="Unix" ;;
3952+ *-*-minix*)
3953+ llvm_cv_link_all_option="-Wl,-all_load"
3954+ llvm_cv_no_link_all_option="-Wl,-noall_load"
3955+ llvm_cv_os_type="Minix"
3956+ llvm_cv_platform_type="Unix" ;;
3957+ *-*-freebsd*)
3958+ llvm_cv_link_all_option="-Wl,--whole-archive"
3959+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960+ llvm_cv_os_type="FreeBSD"
3961+ llvm_cv_platform_type="Unix" ;;
3962+ *-*-openbsd*)
3963+ llvm_cv_link_all_option="-Wl,--whole-archive"
3964+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965+ llvm_cv_os_type="OpenBSD"
3966+ llvm_cv_platform_type="Unix" ;;
3967+ *-*-netbsd*)
3968+ llvm_cv_link_all_option="-Wl,--whole-archive"
3969+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970+ llvm_cv_os_type="NetBSD"
3971+ llvm_cv_platform_type="Unix" ;;
3972+ *-*-dragonfly*)
3973+ llvm_cv_link_all_option="-Wl,--whole-archive"
3974+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975+ llvm_cv_os_type="DragonFly"
3976+ llvm_cv_platform_type="Unix" ;;
3977+ *-*-hpux*)
3978+ llvm_cv_link_all_option="-Wl,--whole-archive"
3979+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980+ llvm_cv_os_type="HP-UX"
3981+ llvm_cv_platform_type="Unix" ;;
3982+ *-*-interix*)
3983+ llvm_cv_link_all_option="-Wl,--whole-archive"
3984+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985+ llvm_cv_os_type="Interix"
3986+ llvm_cv_platform_type="Unix" ;;
3987+ *-*-linux*)
3988+ llvm_cv_link_all_option="-Wl,--whole-archive"
3989+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3990+ llvm_cv_os_type="Linux"
3991+ llvm_cv_platform_type="Unix" ;;
3992+ *-*-solaris*)
3993+ llvm_cv_link_all_option="-Wl,-z,allextract"
3994+ llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3995+ llvm_cv_os_type="SunOS"
3996+ llvm_cv_platform_type="Unix" ;;
3997+ *-*-auroraux*)
3998+ llvm_cv_link_all_option="-Wl,-z,allextract"
3999+ llvm_cv_link_all_option="-Wl,-z,defaultextract"
4000+ llvm_cv_os_type="AuroraUX"
4001+ llvm_cv_platform_type="Unix" ;;
4002+ *-*-win32*)
4003+ llvm_cv_link_all_option="-Wl,--whole-archive"
4004+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005+ llvm_cv_os_type="Win32"
4006+ llvm_cv_platform_type="Win32" ;;
4007+ *-*-mingw*)
4008+ llvm_cv_link_all_option="-Wl,--whole-archive"
4009+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010+ llvm_cv_os_type="MingW"
4011+ llvm_cv_platform_type="Win32" ;;
4012+ *-*-haiku*)
4013+ llvm_cv_link_all_option="-Wl,--whole-archive"
4014+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015+ llvm_cv_os_type="Haiku"
4016+ llvm_cv_platform_type="Unix" ;;
4017+ *-unknown-eabi*)
4018+ llvm_cv_link_all_option="-Wl,--whole-archive"
4019+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4020+ llvm_cv_os_type="Freestanding"
4021+ llvm_cv_platform_type="Unix" ;;
4022+ *-unknown-elf*)
4023+ llvm_cv_link_all_option="-Wl,--whole-archive"
4024+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4025+ llvm_cv_os_type="Freestanding"
4026+ llvm_cv_platform_type="Unix" ;;
4027+ *)
4028+ llvm_cv_link_all_option=""
4029+ llvm_cv_no_link_all_option=""
4030+ llvm_cv_os_type="Unknown"
4031+ llvm_cv_platform_type="Unknown" ;;
4032+esac
4033+fi
4034+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
4035+$as_echo "$llvm_cv_os_type" >&6; }
4036+
4037+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
4038+$as_echo_n "checking type of operating system we're going to target... " >&6; }
4039+if test "${llvm_cv_target_os_type+set}" = set; then :
4040+ $as_echo_n "(cached) " >&6
4041+else
4042+ case $target in
4043+ *-*-aix*)
4044+ llvm_cv_target_os_type="AIX" ;;
4045+ *-*-irix*)
4046+ llvm_cv_target_os_type="IRIX" ;;
4047+ *-*-cygwin*)
4048+ llvm_cv_target_os_type="Cygwin" ;;
4049+ *-*-darwin*)
4050+ llvm_cv_target_os_type="Darwin" ;;
4051+ *-*-minix*)
4052+ llvm_cv_target_os_type="Minix" ;;
4053+ *-*-freebsd*)
4054+ llvm_cv_target_os_type="FreeBSD" ;;
4055+ *-*-openbsd*)
4056+ llvm_cv_target_os_type="OpenBSD" ;;
4057+ *-*-netbsd*)
4058+ llvm_cv_target_os_type="NetBSD" ;;
4059+ *-*-dragonfly*)
4060+ llvm_cv_target_os_type="DragonFly" ;;
4061+ *-*-hpux*)
4062+ llvm_cv_target_os_type="HP-UX" ;;
4063+ *-*-interix*)
4064+ llvm_cv_target_os_type="Interix" ;;
4065+ *-*-linux*)
4066+ llvm_cv_target_os_type="Linux" ;;
4067+ *-*-solaris*)
4068+ llvm_cv_target_os_type="SunOS" ;;
4069+ *-*-auroraux*)
4070+ llvm_cv_target_os_type="AuroraUX" ;;
4071+ *-*-win32*)
4072+ llvm_cv_target_os_type="Win32" ;;
4073+ *-*-mingw*)
4074+ llvm_cv_target_os_type="MingW" ;;
4075+ *-*-haiku*)
4076+ llvm_cv_target_os_type="Haiku" ;;
4077+ *-unknown-eabi*)
4078+ llvm_cv_target_os_type="Freestanding" ;;
4079+ *)
4080+ llvm_cv_target_os_type="Unknown" ;;
4081+esac
4082+fi
4083+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
4084+$as_echo "$llvm_cv_target_os_type" >&6; }
4085+
4086+if test "$llvm_cv_os_type" = "Unknown" ; then
4087+ as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5
4088+fi
4089+
4090+OS=$llvm_cv_os_type
4091+
4092+HOST_OS=$llvm_cv_os_type
4093+
4094+TARGET_OS=$llvm_cv_target_os_type
4095+
4096+
4097+LINKALL=$llvm_cv_link_all_option
4098+
4099+NOLINKALL=$llvm_cv_no_link_all_option
4100+
4101+
4102+case $llvm_cv_platform_type in
4103+ Unix)
4104+
4105+$as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
4106+
4107+ LLVM_ON_UNIX=1
4108+
4109+ LLVM_ON_WIN32=0
4110+
4111+ ;;
4112+ Win32)
4113+
4114+$as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
4115+
4116+ LLVM_ON_UNIX=0
4117+
4118+ LLVM_ON_WIN32=1
4119+
4120+ ;;
4121+esac
4122+
4123+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
4124+$as_echo_n "checking target architecture... " >&6; }
4125+if test "${llvm_cv_target_arch+set}" = set; then :
4126+ $as_echo_n "(cached) " >&6
4127+else
4128+ case $target in
4129+ i?86-*) llvm_cv_target_arch="x86" ;;
4130+ amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4131+ sparc*-*) llvm_cv_target_arch="Sparc" ;;
4132+ powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4133+ alpha*-*) llvm_cv_target_arch="Alpha" ;;
4134+ arm*-*) llvm_cv_target_arch="ARM" ;;
4135+ mips-*) llvm_cv_target_arch="Mips" ;;
4136+ pic16-*) llvm_cv_target_arch="PIC16" ;;
4137+ xcore-*) llvm_cv_target_arch="XCore" ;;
4138+ msp430-*) llvm_cv_target_arch="MSP430" ;;
4139+ s390x-*) llvm_cv_target_arch="SystemZ" ;;
4140+ bfin-*) llvm_cv_target_arch="Blackfin" ;;
4141+ mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4142+ *) llvm_cv_target_arch="Unknown" ;;
4143+esac
4144+fi
4145+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
4146+$as_echo "$llvm_cv_target_arch" >&6; }
4147+
4148+if test "$llvm_cv_target_arch" = "Unknown" ; then
4149+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
4150+$as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4151+fi
4152+
4153+# Determine the LLVM native architecture for the target
4154+case "$llvm_cv_target_arch" in
4155+ x86) LLVM_NATIVE_ARCH="X86" ;;
4156+ x86_64) LLVM_NATIVE_ARCH="X86" ;;
4157+ *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4158+esac
4159+
4160+ARCH=$llvm_cv_target_arch
4161+
4162+
4163+ac_ext=c
4164+ac_cpp='$CPP $CPPFLAGS'
4165+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168+if test -n "$ac_tool_prefix"; then
4169+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170+set dummy ${ac_tool_prefix}gcc; ac_word=$2
4171+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172+$as_echo_n "checking for $ac_word... " >&6; }
4173+if test "${ac_cv_prog_CC+set}" = set; then :
4174+ $as_echo_n "(cached) " >&6
4175+else
4176+ if test -n "$CC"; then
4177+ ac_cv_prog_CC="$CC" # Let the user override the test.
4178+else
4179+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180+for as_dir in $PATH
4181+do
4182+ IFS=$as_save_IFS
4183+ test -z "$as_dir" && as_dir=.
4184+ for ac_exec_ext in '' $ac_executable_extensions; do
4185+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
4187+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188+ break 2
4189+ fi
4190+done
4191+ done
4192+IFS=$as_save_IFS
4193+
4194+fi
4195+fi
4196+CC=$ac_cv_prog_CC
4197+if test -n "$CC"; then
4198+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199+$as_echo "$CC" >&6; }
4200+else
4201+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202+$as_echo "no" >&6; }
4203+fi
4204+
4205+
4206+fi
4207+if test -z "$ac_cv_prog_CC"; then
4208+ ac_ct_CC=$CC
4209+ # Extract the first word of "gcc", so it can be a program name with args.
4210+set dummy gcc; ac_word=$2
4211+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212+$as_echo_n "checking for $ac_word... " >&6; }
4213+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4214+ $as_echo_n "(cached) " >&6
4215+else
4216+ if test -n "$ac_ct_CC"; then
4217+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4218+else
4219+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220+for as_dir in $PATH
4221+do
4222+ IFS=$as_save_IFS
4223+ test -z "$as_dir" && as_dir=.
4224+ for ac_exec_ext in '' $ac_executable_extensions; do
4225+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226+ ac_cv_prog_ac_ct_CC="gcc"
4227+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228+ break 2
4229+ fi
4230+done
4231+ done
4232+IFS=$as_save_IFS
4233+
4234+fi
4235+fi
4236+ac_ct_CC=$ac_cv_prog_ac_ct_CC
4237+if test -n "$ac_ct_CC"; then
4238+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239+$as_echo "$ac_ct_CC" >&6; }
4240+else
4241+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242+$as_echo "no" >&6; }
4243+fi
4244+
4245+ if test "x$ac_ct_CC" = x; then
4246+ CC=""
4247+ else
4248+ case $cross_compiling:$ac_tool_warned in
4249+yes:)
4250+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252+ac_tool_warned=yes ;;
4253+esac
4254+ CC=$ac_ct_CC
4255+ fi
4256+else
4257+ CC="$ac_cv_prog_CC"
4258+fi
4259+
4260+if test -z "$CC"; then
4261+ if test -n "$ac_tool_prefix"; then
4262+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4263+set dummy ${ac_tool_prefix}cc; ac_word=$2
4264+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265+$as_echo_n "checking for $ac_word... " >&6; }
4266+if test "${ac_cv_prog_CC+set}" = set; then :
4267+ $as_echo_n "(cached) " >&6
4268+else
4269+ if test -n "$CC"; then
4270+ ac_cv_prog_CC="$CC" # Let the user override the test.
4271+else
4272+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273+for as_dir in $PATH
4274+do
4275+ IFS=$as_save_IFS
4276+ test -z "$as_dir" && as_dir=.
4277+ for ac_exec_ext in '' $ac_executable_extensions; do
4278+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279+ ac_cv_prog_CC="${ac_tool_prefix}cc"
4280+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281+ break 2
4282+ fi
4283+done
4284+ done
4285+IFS=$as_save_IFS
4286+
4287+fi
4288+fi
4289+CC=$ac_cv_prog_CC
4290+if test -n "$CC"; then
4291+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292+$as_echo "$CC" >&6; }
4293+else
4294+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295+$as_echo "no" >&6; }
4296+fi
4297+
4298+
4299+ fi
4300+fi
4301+if test -z "$CC"; then
4302+ # Extract the first word of "cc", so it can be a program name with args.
4303+set dummy cc; ac_word=$2
4304+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305+$as_echo_n "checking for $ac_word... " >&6; }
4306+if test "${ac_cv_prog_CC+set}" = set; then :
4307+ $as_echo_n "(cached) " >&6
4308+else
4309+ if test -n "$CC"; then
4310+ ac_cv_prog_CC="$CC" # Let the user override the test.
4311+else
4312+ ac_prog_rejected=no
4313+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314+for as_dir in $PATH
4315+do
4316+ IFS=$as_save_IFS
4317+ test -z "$as_dir" && as_dir=.
4318+ for ac_exec_ext in '' $ac_executable_extensions; do
4319+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321+ ac_prog_rejected=yes
4322+ continue
4323+ fi
4324+ ac_cv_prog_CC="cc"
4325+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326+ break 2
4327+ fi
4328+done
4329+ done
4330+IFS=$as_save_IFS
4331+
4332+if test $ac_prog_rejected = yes; then
4333+ # We found a bogon in the path, so make sure we never use it.
4334+ set dummy $ac_cv_prog_CC
4335+ shift
4336+ if test $# != 0; then
4337+ # We chose a different compiler from the bogus one.
4338+ # However, it has the same basename, so the bogon will be chosen
4339+ # first if we set CC to just the basename; use the full file name.
4340+ shift
4341+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4342+ fi
4343+fi
4344+fi
4345+fi
4346+CC=$ac_cv_prog_CC
4347+if test -n "$CC"; then
4348+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349+$as_echo "$CC" >&6; }
4350+else
4351+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352+$as_echo "no" >&6; }
4353+fi
4354+
4355+
4356+fi
4357+if test -z "$CC"; then
4358+ if test -n "$ac_tool_prefix"; then
4359+ for ac_prog in cl.exe
4360+ do
4361+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364+$as_echo_n "checking for $ac_word... " >&6; }
4365+if test "${ac_cv_prog_CC+set}" = set; then :
4366+ $as_echo_n "(cached) " >&6
4367+else
4368+ if test -n "$CC"; then
4369+ ac_cv_prog_CC="$CC" # Let the user override the test.
4370+else
4371+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372+for as_dir in $PATH
4373+do
4374+ IFS=$as_save_IFS
4375+ test -z "$as_dir" && as_dir=.
4376+ for ac_exec_ext in '' $ac_executable_extensions; do
4377+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4379+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380+ break 2
4381+ fi
4382+done
4383+ done
4384+IFS=$as_save_IFS
4385+
4386+fi
4387+fi
4388+CC=$ac_cv_prog_CC
4389+if test -n "$CC"; then
4390+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391+$as_echo "$CC" >&6; }
4392+else
4393+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394+$as_echo "no" >&6; }
4395+fi
4396+
4397+
4398+ test -n "$CC" && break
4399+ done
4400+fi
4401+if test -z "$CC"; then
4402+ ac_ct_CC=$CC
4403+ for ac_prog in cl.exe
4404+do
4405+ # Extract the first word of "$ac_prog", so it can be a program name with args.
4406+set dummy $ac_prog; ac_word=$2
4407+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408+$as_echo_n "checking for $ac_word... " >&6; }
4409+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4410+ $as_echo_n "(cached) " >&6
4411+else
4412+ if test -n "$ac_ct_CC"; then
4413+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414+else
4415+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416+for as_dir in $PATH
4417+do
4418+ IFS=$as_save_IFS
4419+ test -z "$as_dir" && as_dir=.
4420+ for ac_exec_ext in '' $ac_executable_extensions; do
4421+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422+ ac_cv_prog_ac_ct_CC="$ac_prog"
4423+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424+ break 2
4425+ fi
4426+done
4427+ done
4428+IFS=$as_save_IFS
4429+
4430+fi
4431+fi
4432+ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433+if test -n "$ac_ct_CC"; then
4434+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435+$as_echo "$ac_ct_CC" >&6; }
4436+else
4437+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438+$as_echo "no" >&6; }
4439+fi
4440+
4441+
4442+ test -n "$ac_ct_CC" && break
4443+done
4444+
4445+ if test "x$ac_ct_CC" = x; then
4446+ CC=""
4447+ else
4448+ case $cross_compiling:$ac_tool_warned in
4449+yes:)
4450+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452+ac_tool_warned=yes ;;
4453+esac
4454+ CC=$ac_ct_CC
4455+ fi
4456+fi
4457+
4458+fi
4459+
4460+
4461+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463+as_fn_error $? "no acceptable C compiler found in \$PATH
4464+See \`config.log' for more details" "$LINENO" 5 ; }
4465+
4466+# Provide some information about the compiler.
4467+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4468+set X $ac_compile
4469+ac_compiler=$2
4470+for ac_option in --version -v -V -qversion; do
4471+ { { ac_try="$ac_compiler $ac_option >&5"
4472+case "(($ac_try" in
4473+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474+ *) ac_try_echo=$ac_try;;
4475+esac
4476+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477+$as_echo "$ac_try_echo"; } >&5
4478+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4479+ ac_status=$?
4480+ if test -s conftest.err; then
4481+ sed '10a\
4482+... rest of stderr output deleted ...
4483+ 10q' conftest.err >conftest.er1
4484+ cat conftest.er1 >&5
4485+ fi
4486+ rm -f conftest.er1 conftest.err
4487+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488+ test $ac_status = 0; }
4489+done
4490+
4491+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492+/* end confdefs.h. */
4493+
4494+int
4495+main ()
4496+{
4497+
4498+ ;
4499+ return 0;
4500+}
4501+_ACEOF
4502+ac_clean_files_save=$ac_clean_files
4503+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4504+# Try to create an executable without -o first, disregard a.out.
4505+# It will help us diagnose broken compilers, and finding out an intuition
4506+# of exeext.
4507+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4508+$as_echo_n "checking whether the C compiler works... " >&6; }
4509+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4510+
4511+# The possible output files:
4512+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4513+
4514+ac_rmfiles=
4515+for ac_file in $ac_files
4516+do
4517+ case $ac_file in
4518+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4520+ esac
4521+done
4522+rm -f $ac_rmfiles
4523+
4524+if { { ac_try="$ac_link_default"
4525+case "(($ac_try" in
4526+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527+ *) ac_try_echo=$ac_try;;
4528+esac
4529+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530+$as_echo "$ac_try_echo"; } >&5
4531+ (eval "$ac_link_default") 2>&5
4532+ ac_status=$?
4533+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534+ test $ac_status = 0; }; then :
4535+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4536+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4537+# in a Makefile. We should not override ac_cv_exeext if it was cached,
4538+# so that the user can short-circuit this test for compilers unknown to
4539+# Autoconf.
4540+for ac_file in $ac_files ''
4541+do
4542+ test -f "$ac_file" || continue
4543+ case $ac_file in
4544+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4545+ ;;
4546+ [ab].out )
4547+ # We found the default executable, but exeext='' is most
4548+ # certainly right.
4549+ break;;
4550+ *.* )
4551+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4552+ then :; else
4553+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4554+ fi
4555+ # We set ac_cv_exeext here because the later test for it is not
4556+ # safe: cross compilers may not add the suffix if given an `-o'
4557+ # argument, so we may need to know it at that point already.
4558+ # Even if this section looks crufty: it has the advantage of
4559+ # actually working.
4560+ break;;
4561+ * )
4562+ break;;
4563+ esac
4564+done
4565+test "$ac_cv_exeext" = no && ac_cv_exeext=
4566+
4567+else
4568+ ac_file=''
4569+fi
4570+if test -z "$ac_file"; then :
4571+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572+$as_echo "no" >&6; }
4573+$as_echo "$as_me: failed program was:" >&5
4574+sed 's/^/| /' conftest.$ac_ext >&5
4575+
4576+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578+as_fn_error 77 "C compiler cannot create executables
4579+See \`config.log' for more details" "$LINENO" 5 ; }
4580+else
4581+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582+$as_echo "yes" >&6; }
4583+fi
4584+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4585+$as_echo_n "checking for C compiler default output file name... " >&6; }
4586+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4587+$as_echo "$ac_file" >&6; }
4588+ac_exeext=$ac_cv_exeext
4589+
4590+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4591+ac_clean_files=$ac_clean_files_save
4592+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4593+$as_echo_n "checking for suffix of executables... " >&6; }
4594+if { { ac_try="$ac_link"
4595+case "(($ac_try" in
4596+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597+ *) ac_try_echo=$ac_try;;
4598+esac
4599+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600+$as_echo "$ac_try_echo"; } >&5
4601+ (eval "$ac_link") 2>&5
4602+ ac_status=$?
4603+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604+ test $ac_status = 0; }; then :
4605+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
4606+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4607+# work properly (i.e., refer to `conftest.exe'), while it won't with
4608+# `rm'.
4609+for ac_file in conftest.exe conftest conftest.*; do
4610+ test -f "$ac_file" || continue
4611+ case $ac_file in
4612+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4613+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614+ break;;
4615+ * ) break;;
4616+ esac
4617+done
4618+else
4619+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4622+See \`config.log' for more details" "$LINENO" 5 ; }
4623+fi
4624+rm -f conftest conftest$ac_cv_exeext
4625+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4626+$as_echo "$ac_cv_exeext" >&6; }
4627+
4628+rm -f conftest.$ac_ext
4629+EXEEXT=$ac_cv_exeext
4630+ac_exeext=$EXEEXT
4631+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632+/* end confdefs.h. */
4633+#include <stdio.h>
4634+int
4635+main ()
4636+{
4637+FILE *f = fopen ("conftest.out", "w");
4638+ return ferror (f) || fclose (f) != 0;
4639+
4640+ ;
4641+ return 0;
4642+}
4643+_ACEOF
4644+ac_clean_files="$ac_clean_files conftest.out"
4645+# Check that the compiler produces executables we can run. If not, either
4646+# the compiler is broken, or we cross compile.
4647+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4648+$as_echo_n "checking whether we are cross compiling... " >&6; }
4649+if test "$cross_compiling" != yes; then
4650+ { { ac_try="$ac_link"
4651+case "(($ac_try" in
4652+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653+ *) ac_try_echo=$ac_try;;
4654+esac
4655+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656+$as_echo "$ac_try_echo"; } >&5
4657+ (eval "$ac_link") 2>&5
4658+ ac_status=$?
4659+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660+ test $ac_status = 0; }
4661+ if { ac_try='./conftest$ac_cv_exeext'
4662+ { { case "(($ac_try" in
4663+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664+ *) ac_try_echo=$ac_try;;
4665+esac
4666+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667+$as_echo "$ac_try_echo"; } >&5
4668+ (eval "$ac_try") 2>&5
4669+ ac_status=$?
4670+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671+ test $ac_status = 0; }; }; then
4672+ cross_compiling=no
4673+ else
4674+ if test "$cross_compiling" = maybe; then
4675+ cross_compiling=yes
4676+ else
4677+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4678+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4679+as_fn_error $? "cannot run C compiled programs.
4680+If you meant to cross compile, use \`--host'.
4681+See \`config.log' for more details" "$LINENO" 5 ; }
4682+ fi
4683+ fi
4684+fi
4685+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4686+$as_echo "$cross_compiling" >&6; }
4687+
4688+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4689+ac_clean_files=$ac_clean_files_save
4690+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4691+$as_echo_n "checking for suffix of object files... " >&6; }
4692+if test "${ac_cv_objext+set}" = set; then :
4693+ $as_echo_n "(cached) " >&6
4694+else
4695+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696+/* end confdefs.h. */
4697+
4698+int
4699+main ()
4700+{
4701+
4702+ ;
4703+ return 0;
4704+}
4705+_ACEOF
4706+rm -f conftest.o conftest.obj
4707+if { { ac_try="$ac_compile"
4708+case "(($ac_try" in
4709+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710+ *) ac_try_echo=$ac_try;;
4711+esac
4712+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713+$as_echo "$ac_try_echo"; } >&5
4714+ (eval "$ac_compile") 2>&5
4715+ ac_status=$?
4716+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717+ test $ac_status = 0; }; then :
4718+ for ac_file in conftest.o conftest.obj conftest.*; do
4719+ test -f "$ac_file" || continue;
4720+ case $ac_file in
4721+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4722+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4723+ break;;
4724+ esac
4725+done
4726+else
4727+ $as_echo "$as_me: failed program was:" >&5
4728+sed 's/^/| /' conftest.$ac_ext >&5
4729+
4730+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732+as_fn_error $? "cannot compute suffix of object files: cannot compile
4733+See \`config.log' for more details" "$LINENO" 5 ; }
4734+fi
4735+rm -f conftest.$ac_cv_objext conftest.$ac_ext
4736+fi
4737+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4738+$as_echo "$ac_cv_objext" >&6; }
4739+OBJEXT=$ac_cv_objext
4740+ac_objext=$OBJEXT
4741+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4742+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4743+if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4744+ $as_echo_n "(cached) " >&6
4745+else
4746+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747+/* end confdefs.h. */
4748+
4749+int
4750+main ()
4751+{
4752+#ifndef __GNUC__
4753+ choke me
4754+#endif
4755+
4756+ ;
4757+ return 0;
4758+}
4759+_ACEOF
4760+if ac_fn_c_try_compile "$LINENO"; then :
4761+ ac_compiler_gnu=yes
4762+else
4763+ ac_compiler_gnu=no
4764+fi
4765+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766+ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767+
4768+fi
4769+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4770+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4771+if test $ac_compiler_gnu = yes; then
4772+ GCC=yes
4773+else
4774+ GCC=
4775+fi
4776+ac_test_CFLAGS=${CFLAGS+set}
4777+ac_save_CFLAGS=$CFLAGS
4778+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4779+$as_echo_n "checking whether $CC accepts -g... " >&6; }
4780+if test "${ac_cv_prog_cc_g+set}" = set; then :
4781+ $as_echo_n "(cached) " >&6
4782+else
4783+ ac_save_c_werror_flag=$ac_c_werror_flag
4784+ ac_c_werror_flag=yes
4785+ ac_cv_prog_cc_g=no
4786+ CFLAGS="-g"
4787+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788+/* end confdefs.h. */
4789+
4790+int
4791+main ()
4792+{
4793+
4794+ ;
4795+ return 0;
4796+}
4797+_ACEOF
4798+if ac_fn_c_try_compile "$LINENO"; then :
4799+ ac_cv_prog_cc_g=yes
4800+else
4801+ CFLAGS=""
4802+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803+/* end confdefs.h. */
4804+
4805+int
4806+main ()
4807+{
4808+
4809+ ;
4810+ return 0;
4811+}
4812+_ACEOF
4813+if ac_fn_c_try_compile "$LINENO"; then :
4814+
4815+else
4816+ ac_c_werror_flag=$ac_save_c_werror_flag
4817+ CFLAGS="-g"
4818+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819+/* end confdefs.h. */
4820+
4821+int
4822+main ()
4823+{
4824+
4825+ ;
4826+ return 0;
4827+}
4828+_ACEOF
4829+if ac_fn_c_try_compile "$LINENO"; then :
4830+ ac_cv_prog_cc_g=yes
4831+fi
4832+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833+fi
4834+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835+fi
4836+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837+ ac_c_werror_flag=$ac_save_c_werror_flag
4838+fi
4839+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4840+$as_echo "$ac_cv_prog_cc_g" >&6; }
4841+if test "$ac_test_CFLAGS" = set; then
4842+ CFLAGS=$ac_save_CFLAGS
4843+elif test $ac_cv_prog_cc_g = yes; then
4844+ if test "$GCC" = yes; then
4845+ CFLAGS="-g -O2"
4846+ else
4847+ CFLAGS="-g"
4848+ fi
4849+else
4850+ if test "$GCC" = yes; then
4851+ CFLAGS="-O2"
4852+ else
4853+ CFLAGS=
4854+ fi
4855+fi
4856+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4857+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4858+if test "${ac_cv_prog_cc_c89+set}" = set; then :
4859+ $as_echo_n "(cached) " >&6
4860+else
4861+ ac_cv_prog_cc_c89=no
4862+ac_save_CC=$CC
4863+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864+/* end confdefs.h. */
4865+#include <stdarg.h>
4866+#include <stdio.h>
4867+#include <sys/types.h>
4868+#include <sys/stat.h>
4869+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4870+struct buf { int x; };
4871+FILE * (*rcsopen) (struct buf *, struct stat *, int);
4872+static char *e (p, i)
4873+ char **p;
4874+ int i;
4875+{
4876+ return p[i];
4877+}
4878+static char *f (char * (*g) (char **, int), char **p, ...)
4879+{
4880+ char *s;
4881+ va_list v;
4882+ va_start (v,p);
4883+ s = g (p, va_arg (v,int));
4884+ va_end (v);
4885+ return s;
4886+}
4887+
4888+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4889+ function prototypes and stuff, but not '\xHH' hex character constants.
4890+ These don't provoke an error unfortunately, instead are silently treated
4891+ as 'x'. The following induces an error, until -std is added to get
4892+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4893+ array size at least. It's necessary to write '\x00'==0 to get something
4894+ that's true only with -std. */
4895+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4896+
4897+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4898+ inside strings and character constants. */
4899+#define FOO(x) 'x'
4900+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4901+
4902+int test (int i, double x);
4903+struct s1 {int (*f) (int a);};
4904+struct s2 {int (*f) (double a);};
4905+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4906+int argc;
4907+char **argv;
4908+int
4909+main ()
4910+{
4911+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4912+ ;
4913+ return 0;
4914+}
4915+_ACEOF
4916+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4917+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918+do
4919+ CC="$ac_save_CC $ac_arg"
4920+ if ac_fn_c_try_compile "$LINENO"; then :
4921+ ac_cv_prog_cc_c89=$ac_arg
4922+fi
4923+rm -f core conftest.err conftest.$ac_objext
4924+ test "x$ac_cv_prog_cc_c89" != "xno" && break
4925+done
4926+rm -f conftest.$ac_ext
4927+CC=$ac_save_CC
4928+
4929+fi
4930+# AC_CACHE_VAL
4931+case "x$ac_cv_prog_cc_c89" in
4932+ x)
4933+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4934+$as_echo "none needed" >&6; } ;;
4935+ xno)
4936+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4937+$as_echo "unsupported" >&6; } ;;
4938+ *)
4939+ CC="$CC $ac_cv_prog_cc_c89"
4940+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4941+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4942+esac
4943+if test "x$ac_cv_prog_cc_c89" != xno; then :
4944+
4945+fi
4946+
4947+ac_ext=c
4948+ac_cpp='$CPP $CPPFLAGS'
4949+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952+
4953+
4954+ac_ext=c
4955+ac_cpp='$CPP $CPPFLAGS'
4956+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4960+$as_echo_n "checking how to run the C preprocessor... " >&6; }
4961+# On Suns, sometimes $CPP names a directory.
4962+if test -n "$CPP" && test -d "$CPP"; then
4963+ CPP=
4964+fi
4965+if test -z "$CPP"; then
4966+ if test "${ac_cv_prog_CPP+set}" = set; then :
4967+ $as_echo_n "(cached) " >&6
4968+else
4969+ # Double quotes because CPP needs to be expanded
4970+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4971+ do
4972+ ac_preproc_ok=false
4973+for ac_c_preproc_warn_flag in '' yes
4974+do
4975+ # Use a header file that comes with gcc, so configuring glibc
4976+ # with a fresh cross-compiler works.
4977+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978+ # <limits.h> exists even on freestanding compilers.
4979+ # On the NeXT, cc -E runs the code through the compiler's parser,
4980+ # not just through cpp. "Syntax error" is here to catch this case.
4981+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982+/* end confdefs.h. */
4983+#ifdef __STDC__
4984+# include <limits.h>
4985+#else
4986+# include <assert.h>
4987+#endif
4988+ Syntax error
4989+_ACEOF
4990+if ac_fn_c_try_cpp "$LINENO"; then :
4991+
4992+else
4993+ # Broken: fails on valid input.
4994+continue
4995+fi
4996+rm -f conftest.err conftest.i conftest.$ac_ext
4997+
4998+ # OK, works on sane cases. Now check whether nonexistent headers
4999+ # can be detected and how.
5000+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches