]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: remove consumed options from the list to be processed.
authorGary V. Vaughan <gary@gnu.org>
Tue, 15 Nov 2011 06:26:53 +0000 (13:26 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 15 Nov 2011 06:26:53 +0000 (13:26 +0700)
Fix a bug where processed bootstrap options were not removed
from the queue, and eventually flagged as unknown in the
pluggable option parser driver.
* bootstrap (bootstrap_parse_options)
(bootstrap_validate_options): Follow the pluggable option parser
API correctly, and set func_run_hooks_result to the list of
remaining unconsumed options.
Reported by Roumen Petrov <bugtrack@roumenpetrov.info>

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap

index 7e6fb4b69f271de8b8ec6ea88c97f50db46cdd50..fce5a8f286ef56c2a21e742ae232d7533ea179ae 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -5,7 +5,7 @@
 . `echo "$0" |${SED-sed} 's,[^/]*$,,'`"libltdl/config/extract-trace"
 
 # Set a version string for *this* script.
-scriptversion=2011-11-04.05; # UTC
+scriptversion=2011-11-15.06; # UTC
 
 # Bootstrap this package from checked-out sources.
 # Written by Gary V. Vaughan, 2010
@@ -2415,7 +2415,7 @@ bootstrap_parse_options ()
 
     # save modified positional parameters for caller
     func_quote_for_eval ${1+"$@"}
-    func_parse_options_result="$func_quote_for_eval_result"
+    func_run_hooks_result="$func_quote_for_eval_result"
 }
 func_add_hook func_parse_options bootstrap_parse_options
 
@@ -2437,7 +2437,7 @@ bootstrap_validate_options ()
 
     # Pass back the list of unconsumed options left.
     func_quote_for_eval ${1+"$@"}
-    func_validate_options_result="$func_quote_for_eval_result"
+    func_run_hooks_result="$func_quote_for_eval_result"
 }