[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Propagate line number info of AC_SUBSTed variables
From: |
Raja R Harinath |
Subject: |
Propagate line number info of AC_SUBSTed variables |
Date: |
Sun, 06 Jan 2002 20:52:06 -0600 |
User-agent: |
Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1.50 (i686-pc-linux-gnu) |
Hi,
The following one-liner can be used to propagate line number
information about AC_SUBSTed variables. Everything needed is already
there, you only need to use the info :-)
* automake.in (define_configure_variable): Propagate line numbers.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1258
diff -u -p -u -r1.1258 automake.in
--- automake.in 2002/01/07 00:37:50 1.1258
+++ automake.in 2002/01/07 02:48:18
@@ -6631,7 +6631,7 @@ sub define_configure_variable ($)
{
# A macro defined via configure is a `user' macro -- we should not
# override it.
- macro_define ($var, 0, '', 'TRUE', subst $var, undef);
+ macro_define ($var, 0, '', 'TRUE', subst $var, $configure_vars{$var});
variable_pretty_output ($var, 'TRUE');
}
}
- Hari
--
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
- Propagate line number info of AC_SUBSTed variables,
Raja R Harinath <=