configure: Avoid error messages about missing *-config-*.h files
commit54b0306e6967ae38e248b905ddaa4a3cdbc15322
authorThomas Huth <thuth@redhat.com>
Wed, 19 May 2021 11:38:40 +0000 (19 13:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 May 2021 12:50:05 +0000 (26 14:50 +0200)
tree68baea180f912388942fcce08ac17f23e8dc6262
parent16b3f3bbab7db8f87bdb5ddb226bf19c4c55abdd
configure: Avoid error messages about missing *-config-*.h files

When compiling with --disable-system there is a harmless yet still
annoying error message at the end of the "configure" step:

 sed: can't read *-config-devices.h: No such file or directory

When only building the tools or docs, without any emulator at all,
there is even an additional message about missing *-config-target.h
files.

Fix it by checking whether any of these files are available before
using them.

Fixes: e0447a834d ("configure: Poison all current target-specific #defines")
Reported-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210519113840.298174-1-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure