summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPeter Maydell2011-11-23 18:26:43 +0100
committerStefan Hajnoczi2011-12-06 10:56:40 +0100
commitfd786e1aee5d3a0a304fccaa5cb6ae2cbbeb435e (patch)
tree450f173e7aaeae1a9131ed83494ebcc67324820e /configure
parentconsole: Fix qemu_default_pixelformat() for 24 bpp (diff)
downloadqemu-fd786e1aee5d3a0a304fccaa5cb6ae2cbbeb435e.tar.gz
qemu-fd786e1aee5d3a0a304fccaa5cb6ae2cbbeb435e.tar.xz
qemu-fd786e1aee5d3a0a304fccaa5cb6ae2cbbeb435e.zip
configure: Include #define name in check_define compiler error
Include the name of the #define being tested for in the compiler error produced when a check_define test is run and fails. This appears only in the config.log, but it does make it a little easier to debug problems by inspecting config.log. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 5fbd81285f..c98aed1c64 100755
--- a/configure
+++ b/configure
@@ -249,7 +249,7 @@ source_path=`cd "$source_path"; pwd`
check_define() {
cat > $TMPC <<EOF
#if !defined($1)
-#error Not defined
+#error $1 not defined
#endif
int main(void) { return 0; }
EOF