Simplify creation of Fortran function wrappers

The old version invoked a Fortran compiler to figure out the bindings
necessary to link to a Fortran function. This creates a dependency on
having a Fortran compiler, even though the project may not have any
Fortran source it needs to compile!

Also, the Fortran compiler that is installed on the system may not be
the same as was used to compile the library anyway, so we are not even
sure that this is correct!

Furthermore, FindLAPACK operates on the assumption that names in that
library is suffixed with a single underscore, so if that is not correct,
we won't find any of the functions in that library anyway!

Thus, this patch enables us to assume that appending an underscore is
the right thing to do without using the compiler. This option is off by
default, but can be activated with USE_UNDERSCORING=ON (named after the
GFortran option).
cmake: do not quote variables for config.h anymore

v2: incorporate Roland's nitpicks (I hope)
v3: It was decided that it's better to change the default behavior
v4: make sure the CMake syntax is correct even if the value of the
    variable contains spaces (if it contains double quotes it's a
    different matter, but that's pretty much a corner case, IMHO)
v5: properly escape backslash and double quote characters in the cmake
    syntax
Mark known feature variables as used

Some features, such as the Fortran wrappers, are enabled by options,
and it may be usable to have those set in a common definition file.

However, as these features are included conditionally based on use,
their option variables may not exist in other projects, giving a CMake
warning for them.

Here we list such variables too. Reading them at the end corresponds
to the Autotools convention of ignoring unknown --enable-xxx options.
add opm-material to the eWoms prerequisites

this is needed by the imminent switch of eWoms to the OPM build
system.
Allow build tree of SuiteSparse to be used as root

With this changeset, the build tree of SuiteSparse can be used as the
root; the package does not have to be installed.
fix the test for the quadmath library

Seems like I forgot to include the "CheckCSourceCompiles" macro before
using it. Since it worked for me before, I'm wondering what made this
happen. Anyway, it should now work correctly in all cases.
cmake: fix the SuperLU test

for me, it was completely broken. (it worked fine if you did not want
to use it, though.) Now it (hopefully) follows the standard OPM
variable naming conventions, allows to use the internal SuperLU BLAS
library, and works fine if superLU is not installed on a system-wide
basis.

v2: cache the POST_2005 variable to make writing it to config.h more
    reliable (on my kubuntu 13.04 system it did not work without it)
v3: re-add a proper "post 2005" check from newer versions of the dune tests
Remove dependency on Boost::Signals

The functionality has been replaced with equivalents from C++11.
opm-autodiff needs filesystem component of Boost

Also, it really should be the same as the rest to make sure that we
pick up the right components when we look for the Boost library.
avoid to make ALUGRID_PARALLEL_FOUND a list

because -- at least on one of my systems -- a list evaluates to false,
even if all entries are true...
Report version of Mac OS X in configuration log

If we are building on Mac OS X, use the official operating system
version (e.g. 10.8) instead of the kernel version (e.g. 12.4).
Only install debug symbols if they are in separate file

If the strip utility is not present, debug symbols won't be in a
separate file and subsequently cannot be installed.
Refactor code to separate extensions from filename

The earlier code assumed that the version information always follows
the full file path; this code splits the path up into various parts
so that this may be changed.
Strip debug symbols to separate file on MacOS X

The standard Xcode toolchain on MacOS X uses strip and dsymutil, not
objcopy as the GNU toolchain does.
Always keep debug bundle near executable on Mac OS X

There isn't a /usr/lib/debug directory as on Linux.
Remove linker command from compiler command-line

There is no SuiteSparse headers or libraries in
/System/Library/Frameworks/Accelerate.framework on MacOS X, so adding
this directive won't contribute anything other than compiler warnings.
Use libc++ runtime if necessary for C++11 compliance

If we are using the Apple toolchain on MacOS X, we must use the
newer runtime and not the old GCC 4.2 fork, in order to get the
C++11 library features (such as std::shared_ptr).
Remove bash4-isms from configuration script

Getting uppercase of a string can be done in a way that is compatible
with Bash 3.2. This creates a dependency on the `tr` utility, but I
reckon it will/can be available everywhere Bash 3.2 is.
Support installation in a versioned directory

If the option USE_VERSIONED_DIR is set to ON (default is OFF), then
most files are installed in a ${suite}-${label}/ subdirectory
(e.g. header files go in "/usr/include/opm-2013.03/"). This enables
us to easily install backports of newer versions on systems which
have a system package for an older one, without getting conflicts.
Allow spec of not commonly rooted incl and lib dir

Header and library directory may be specified separately by using the
variables e.g. OPM_CORE_INCLUDE_DIR and OPM_CORE_LIB_DIR. These override
even the OPM_CORE_ROOT. This allows us to use a backported version which
uses versioned directory names.