run `cabal configure' if necessary