[buildsystem,release] Install cmake package version files with autotools.

With this patch autotools now creates the file
<dune-module>-config-version.cmake mit autotools. To facilitate this
we added the variables DUNE_MOD_{MAJOR,MINOR,REVISION} to the makefiles.
(cherry picked from commit c0ecc4b1400caf5d1a651909289443521b8120a9)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[autotools,bugfix] Remove existent file when installing CMake's package version configuration.

The temporary file <dune-module>-config-version.tmp!
(cherry picked from commit 9775442aa9bc9ee59ead1dedd48b1808a6020692)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>