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

Subscribers

People subscribed via source and target branches