The autogen.sh tries to run: git submodule update --init --recursive Which might, or might not be a good idea. In any case, that won't work if cwd isn't the git repo. What's the proper fix for this then?