>>> "JL" == Juergen Leising <[EMAIL PROTECTED]> writes:
[...]
 JL> src/libbsql/Makefile.am:8: automake does not support AM_YFLAGS
 JL> being defined conditionally
 JL> automake: ####################
 JL> automake: ## Internal Error ##
 JL> automake: ####################
 JL> automake: undefined condition `TRUE' for `AM_YFLAGS'
[...]

Thanks.  I'm installing this on HEAD.

2005-08-07  Alexandre Duret-Lutz  <[EMAIL PROTECTED]>

        * lib/Automake/Variable.pm (variable_value): Do not read the TRUE
        value of a conditionally defined variable.
        Report from Juergen Leising.

Index: THANKS
===================================================================
RCS file: /cvs/automake/automake/THANKS,v
retrieving revision 1.274
diff -u -r1.274 THANKS
--- THANKS      9 Jul 2005 09:24:40 -0000       1.274
+++ THANKS      7 Aug 2005 09:54:24 -0000
@@ -125,6 +125,7 @@
 js pendry              [EMAIL PROTECTED]
 Juergen A. Erhard      [EMAIL PROTECTED]
 Juergen Keil           [EMAIL PROTECTED]
+Juergen Leising                [EMAIL PROTECTED]
 Julien Sopena          [EMAIL PROTECTED]
 Karl Berry             [EMAIL PROTECTED]
 Karl Heuer             [EMAIL PROTECTED]
Index: lib/Automake/Variable.pm
===================================================================
RCS file: /cvs/automake/automake/lib/Automake/Variable.pm,v
retrieving revision 1.39
diff -u -r1.39 Variable.pm
--- lib/Automake/Variable.pm    27 Jul 2005 11:09:45 -0000      1.39
+++ lib/Automake/Variable.pm    7 Aug 2005 09:54:25 -0000
@@ -1180,7 +1180,7 @@
 
 Get the C<TRUE> value of a variable, warn if the variable is
 conditionally defined.  C<$var> can be either a variable name
-or a C<Automake::Variable> instance (this allows to calls sucha
+or a C<Automake::Variable> instance (this allows calls such
 as C<$var-E<gt>variable_value>).
 
 =cut
@@ -1191,7 +1191,8 @@
     my $v = ref ($var) ? $var : var ($var);
     return () unless $v;
     $v->check_defined_unconditionally;
-    return $v->rdef (TRUE)->value;
+    my $d = $v->def (TRUE);
+    return $d ? $d->value : "";
 }
 
 =item C<$str = output_variables>

-- 
Alexandre Duret-Lutz



Reply via email to