diff options
author | Cornelia Huck | 2014-05-28 12:39:17 +0200 |
---|---|---|
committer | Paolo Bonzini | 2014-06-10 12:34:37 +0200 |
commit | 99519e677bd605a681a805b0c759ae886d1d5712 (patch) | |
tree | 5cd6ad75a494b44a9491c39754347fc825466e10 /configure | |
parent | configure: duplicate/incorrect order of -lrt (diff) | |
download | qemu-99519e677bd605a681a805b0c759ae886d1d5712.tar.gz qemu-99519e677bd605a681a805b0c759ae886d1d5712.tar.xz qemu-99519e677bd605a681a805b0c759ae886d1d5712.zip |
configure: unset interfering variables
The check for big or little endianness relies on grep reporting
match/non-match on the generated binary. If the user specified
--binary-files=without-match in their GREP_OPTIONS, this will fail.
Let's follow what autoconf does and unset GREP_OPTIONS and CLICOLOR_FORCE
at the beginning of the script.
Reported-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,11 @@ # qemu configure script (c) 2003 Fabrice Bellard # +# Unset some variables known to interfere with behavior of common tools, +# just as autoconf does. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + # Temporary directory used for files created while # configure runs. Since it is in the build directory # we can safely blow away any previous version of it |