summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorbellard2005-12-18 20:14:49 +0100
committerbellard2005-12-18 20:14:49 +0100
commit2efc32658e7517e8e555a31fe99303757cb6bbb5 (patch)
tree38244077a432b5868823909e4c88b80ebe85eefc /configure
parentavoid echo on pty devices (David Decotigny) - fixes in the command line help (diff)
downloadqemu-2efc32658e7517e8e555a31fe99303757cb6bbb5.tar.gz
qemu-2efc32658e7517e8e555a31fe99303757cb6bbb5.tar.xz
qemu-2efc32658e7517e8e555a31fe99303757cb6bbb5.zip
better help option support (Bernhard Fischer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1720 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index efd2679ce7..3471193ede 100755
--- a/configure
+++ b/configure
@@ -147,6 +147,8 @@ fi
for opt do
case "$opt" in
+ --help|-h) show_help=yes
+ ;;
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
;;
--interp-prefix=*) interp_prefix=`echo $opt | cut -d '=' -f 2`
@@ -348,7 +350,7 @@ fi # sdl compile test
fi # cross compilation
fi # -z $sdl
-if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
+if test x"$show_help" = x"yes" ; then
cat << EOF
Usage: configure [options]
@@ -370,7 +372,7 @@ 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 " --host-cc=CC use C compiler CC [$cc] for dyngen etc."
+echo " --host-cc=CC use C compiler CC [$host_cc] for dyngen etc."
echo " --make=MAKE use specified make [$make]"
echo " --static enable static build [$static]"
echo " --enable-mingw32 enable Win32 cross compilation with mingw32"