Generic configure script for ubuntu/fedora

Other OS Specific steps can be added ...

Recreation of PR 1629