[Mplayer-dev-eng] configure & --help option + fix

pl p_l at tfz.net
Sat Jul 21 18:32:53 CEST 2001


Hi!

Most configure scripts I've seen tend to search whether there is an
-h|-help|--help among all the arguments givent to the script. 

This small patch fixes the behavior of configure.

Best regards.
-------------- next part --------------
--- configure~	Sat Jul 21 17:59:45 2001
+++ configure	Sat Jul 21 18:20:15 2001
@@ -108,7 +108,8 @@
 
 # LGB: Help moved here.
 
-if [ "$1" = "--help" -o "$1" = "-help" -o "$1" = "-h" ]; then
+for I in "$@" ; do
+if [ "$I" = "--help" -o "$I" = "-help" -o "$I" = "-h" ]; then
 cat << EOF
 
 usage: $0 [options]
@@ -178,6 +179,7 @@
 EOF
 exit 0
 fi
+done
 
 
 # LGB: Some inital help


More information about the MPlayer-dev-eng mailing list