fix "make dist" for out of source builds.
Implemented accurate safety for tube segment
First set batch, then create TApplication (fixes batch Cocoa).

(cherry picked from commit 688fb2c77b68430f3ed08936019340c7c7a3954e)
Call SetBatch(), before creating the TApplication to avoid Cocoa GUI.

(cherry picked from commit 29c23634ac1d7d73858ad422f1426924b6d23aaf)
Missing header.

(cherry picked from commit 06d6c1f65ad8763775ae8cdd9e8bc411ce93d763)
Silent some more warnings (CMake)
Fix loading of TMVA (load libTMVA not libTMVA.1)
see http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=18040
- With Cocoa backend the text string were a bit larger than with TTF rendering.
- PDF and PS Latex rendering: extra spaces were added before greek characters embedded in a long text string.
Move the python modules ROOT.py cppyy.py in to <CMAKE_BINARY_DIR>/lib when testing.
Add support for array type in the list of an iorule sources
Let TString::BaseConvert also accept "0", fixes ROOT-4771.
Fix examples
Fix contours when using TMInuit
Fix also setting fill/line colour for the contour

see http://root.cern.ch/phpBB3/viewtopic.php?f=15&t=18038
more fixes in the examples
merge from Vc 0.7 branch fix for icc (#636) plus onother fix (#634)
When fitting an histogram, draw the histogram only if it has not already drawn before. This fixes the issue observed when fitting an histogram drawn in a canvas together with many other histogram (see http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=18071)
OSX: allow ./configure with only Command Line Tools

As it is now, ROOT can't be built with Cocoa and ./configure without full Xcode
installation.  The problem is that Command Line Tools don't provide SDK the way
Xcode does.  This patch allows detecting system-wide frameworks available at
/System/... .

Signed-off-by: Fons Rademakers <Fons.Rademakers@cern.ch>
use $\pm$ for plus-minus symbol to avoid problem during pdf generation.
ignore documentation products.
use expr instead of let as Linux /bin/sh does not support let (is not bash).