From a0920831a8e601097d222a5c916ae4fd6b9d3a11 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 12 Apr 2001 02:28:10 +0000 Subject: [PATCH] * ltmain.in: recognize "CC" as default --tag argument to resolve also ambiguities with that language. --- ChangeLog | 5 +++++ ltmain.in | 22 +++++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index f45d4093f..0085a9e18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-04-11 Michael Matz + + * ltmain.in: recognize "CC" as default --tag argument to resolve + also ambiguities with that language. + 2001-04-11 Alexandre Oliva * ltmain.in: Mark duplicate libraries appearing in predeps and diff --git a/ltmain.in b/ltmain.in index 47db3501c..e379224eb 100644 --- a/ltmain.in +++ b/ltmain.in @@ -136,13 +136,21 @@ do ;; esac - if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then - taglist="$taglist $tagname" - # Evaluate the configuration. - eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`" - else - echo "$progname: ignoring unknown tag $tagname" 1>&2 - fi + case $tagname in + CC) + # Don't test for the "default" C tag, as we know, it's there, but + # not specially marked. + ;; + *) + if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then + taglist="$taglist $tagname" + # Evaluate the configuration. + eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`" + else + echo "$progname: ignoring unknown tag $tagname" 1>&2 + fi + ;; + esac ;; *) eval "$prev=\$arg" -- 2.47.2