configure: add sanity check to catch builds from "git archive"
commit5c0ef67ac406b6373b2d32f901752cd0f28e0f61
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 18 Apr 2018 17:11:51 +0000 (18 18:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2018 12:45:23 +0000 (2 14:45 +0200)
tree9395986da6de6123acae83a624fb925724be3f98
parent475120099d446fe106ad970a225327990d747a61
configure: add sanity check to catch builds from "git archive"

The "git archive" feature creates tarballs which are missing all
submodule content. GitHub unhelpfully provides users with "Download"
links that claim to give them valid source release tarballs. These
GitHub archives will not be buildable as they are created by the
"git archive" feature and so are missing content. The user gets
unhelpful messages from make such as:

  fatal error: ui/input-keymap-atset1-to-qcode.c: No such file or directory

By adding a sanity check we can give users an informative message about
what they've done wrong.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20180418171151.5263-1-berrange@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure