Only add option for shared libraries once

The way the test was done previously, it was added for *every* option
after `--enable-shared`, not only that one.
make redhat packaging compatible with el5
Merged
Merge branch 'cmake-find-opm-parser' into require-opm-parser
write out the reservoir state to the eclipse binary format

most code was shamelessly ripped from opm-core's EclipseGridParser,
but there are some additions (e.g. grids specified using the D[XYZ]V
Eclipse keywords can be used).

The code is located inside the new class "BlackoilEclipseOutputWriter"
(should probably renamed) and hooked up in
SimulatorFullyImplicitBlackoil and sim_fibo_ad.cc.

Also be aware that, to make this code work properly, the newest master
version of ERT is required (i.e. one which includes commit
5e4e9661720). In this context, I would like to thank Joakim Hove for
his support!
write out water injection and oil production rates

Currently, it still writes out whatever conservation quantity which is
used by the solver (which is probably the mass of the oil/gas
mixture). TODO: convert these solver rates to "pure oil volume without
gas at the surface" and to "gas volume at the surface" rates.

thanks again to Joakim Hove for the pointers where to start kicking!
add some rates to the summary output, correct values

it turns out that the values within the WellState are surface volumes,
so they can be used directly once converted to daily rates...
add missing include directives
use bar instead of Pascal as the unit for the pressure field

Eclipse seems to write bars...
Merge pull request #417 from rolk/417_shared

Only add option for shared libraries once
Replaced include math.h with cmath, and changed from fabs to abs. Fixed an error in the testfile, a filename was wrong
Merge pull request #419 from flikka/blackoilstate-equals

Blackoilstate equals function, with tests and data
Merge pull request #416 from rolk/416_lib

Allow to search for multiple libraries in package
Merge pull request #418 from joakim-hove/cmake-find-opm-parser

Add cmake capabailities to locate opm-parser and cJSON
Merge remote-tracking branch 'upstream/master' into require-opm-parser
Merge pull request #423 from rolk/423_eclbin

Write reservoir state in Eclipse binary format
spline: some fixes to make Spline::intersect() work correctly

most of these issues are fallout from the conversion of the spline
class from a moments (second derivative) based approach to hermite
base functions:

- the second and third derivatives where incorrect, and the third
  derivative was not available in the public interface.
- The unit test did not check the derivatives
- The coefficients for the monomial basis were off by the factors
  stemming from the derivatives
- The intersectIntervall_() method used std::max() instead of
  std::min() at one place and still added the base offset for the x
  values as indicated by Stoer
spline: fix the monotinic_() method and creation of monotonic splines

also, extend the unit test for it. (*phew* that was much more fun than
appreciated because of all the index shifts. I'm still not 100% sure
that everything works in all corner cases, but at least my confidence
is at 95%.)
fix test for HAVE_QUAD on some instances of ubuntu 13.10

I haven't figured out why this happens, but on one of my computers
running kubuntu 13.10 g++ says the following if one tries to use
quadruple precision math:

/home/erne/src/ewoms/ewoms/common/quad.hh: In static member function ‘static quad std::numeric_limits<__float128>::min()’:
/home/erne/src/ewoms/ewoms/common/quad.hh:52:14: error: unable to find numeric literal operator ‘operator"" Q’
     { return FLT128_MIN; }

since this happens only on this machine and only with the c++ (but
not the C) compiler, i suppose that this is either an upgrade issue
with kubuntu or an issue with the ubuntu gcc stack. Strangely enough,
my other kubuntu machine does not have a problem with that...

In any case also testing for assignability of constants and using the
C++ compiler for the quadmath test won't hurt...
spline: avoid bogous "might be used uninitialized" compiler warning on GCC