Replace remnants of original autotools config with m4 that imports the CMake config

See OPM/opm-core#247 for discussion. This is only tested VERY lightly (with a variant of dune-hello).