more  elaborate configure script with regards to tests.