Applied fix suggested in bug 3282 and shortened code
Added -l prefix to EXTRA_COMPONENTS when generating pkg-config file
changed foreach variable to match naming conventions and dropped intermediate variable, appending directly to the LIB_COMPONENTS list
Only append -l to lib entries with no path and no -l or -L of their own
shortened code to not repeat myself
added backslash
fixed wrong regex
Copied errorCovPre to errorCovPost. This allows the correct behaviour of the uncertainty to grow when there is missing data for each predict step.
1. Let btvRegWeights to be constant per `process` call.
2. Let Farneback to be the default optical flow method.
3. Fix a timing method bug for ocl path.
4. Remove useless finish operation in farneback
5. Refactor buffer usage.
regex doesnt need to match full length of input, so only trying to match the leading -[lL]
Add better OpenMP detection and make an option to enable it.

Bug report and inspiration: http://code.opencv.org/issues/3328
workaround for cv::multiply bug
moved to relative errors in ocl::norm tests
cmake: fix bug with installation into OPENCV_LIB_INSTALL_PATH directory
Added few opencl optimizations (as Intel platform codepath):

1. HaarDetetctor: repack nodes to reduce memory footprint
2. cornerMinEigVal: 4 ocl kernels are fused into 1 for sobel calculation
fixed an accuracy test for ocl::resize (in some cases dsize.area() was equal to 0)
try to fix build error
fixed ocl::copyMakeBorder
try to made compatible with mac
ocl: show diff