Moving configure into a function for packages that do not compile anything