Another autotools wrapper problem and fix

Jon A. Lambert jlsysinc@alltel.net
Sun Dec 5 14:35:00 GMT 2004


Okay this one is picking at gnits, but autoheader 1.9 will always issue a 
warning message when you ask it to produce warning message because the 
authoheader wrapper passes --warning= and -W as --warning=,blah,blah 
and -W,blah,blah instead of --warning=blah,blah and -Wblah,blah.

Here's another patch.  I think this works.

--------------------
$ diff -ru autoheader-orig autoheader
--- autoheader-orig     2003-12-02 01:21:50.001000000 -0500
+++ autoheader  2004-12-05 09:28:10.570940800 -0500
@@ -115,12 +115,14 @@


     --warnings=* | -W?* )
-       warnings=$warnings,$optarg
+       test $warnings && warnings=$warnings,$optarg
+       test -z $warnings && warnings=$optarg
        shift ;;
     --warnings | -W )
        test $# = 1 && eval "$exit_missing_arg"
        shift
-       warnings=$warnings,$1
+       test $warnings && warnings=$warnings,$1
+       test -z $warnings && warnings=$1
        shift ;;
------------------------------ 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list