Patchwork [18/39] add autoconfy alias CC= for --cc

login
register
mail settings
Submitter Paolo Bonzini
Date Oct. 12, 2010, 1 p.m.
Message ID <1286888457-5033-19-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/67562/
State New
Headers show

Comments

Paolo Bonzini - Oct. 12, 2010, 1 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index 7f2e2a4..1ea56f7 100755
--- a/configure
+++ b/configure
@@ -180,7 +180,7 @@  for opt do
   case "$opt" in
   --cross-prefix=*) cross_prefix="$optarg"
   ;;
-  --cc=*) CC="$optarg"
+  CC=*|--cc=*) CC="$optarg"
   ;;
   --source-path=*) source_path="$optarg"
   source_path_used="yes"
@@ -517,7 +517,7 @@  for opt do
   ;;
   --cross-prefix=*)
   ;;
-  --cc=*)
+  CC=*|--cc=*)
   ;;
   --host-cc=*)
   ;;
@@ -828,7 +828,6 @@  echo ""
 echo "Advanced options (experts only):"
 echo "  --source-path=PATH       path of source code [$source_path]"
 echo "  --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]"
-echo "  --cc=CC                  use C compiler CC [$cc]"
 echo "  --make=MAKE              use specified make [$make]"
 echo "  --install=INSTALL        use specified install [$install]"
 echo "  --static                 enable static build [$static]"
@@ -924,10 +923,12 @@  echo "  --disable-spice          disable spice"
 echo "  --enable-spice           enable spice"
 echo ""
 echo "Deprecated options:"
+echo "  --cc=CC                  use C compiler CC [$cc]"
 echo "  --extra-cflags=CFLAGS    append extra C compiler flags QEMU_CFLAGS"
 echo "  --extra-ldflags=LDFLAGS  append extra linker flags LDFLAGS"
 echo ""
 echo "Some influential environment variables can be passed on the command line:"
+echo "  CC          C compiler command"
 echo "  CFLAGS      C compiler flags"
 echo "  CPPFLAGS    C preprocessor flags, e.g. -I<include dir> if you have"
 echo "              headers in a nonstandard directory <include dir>"