diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Automake/Utils.pm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/Automake/Utils.pm b/lib/Automake/Utils.pm index e1cd46337..832b74e05 100644 --- a/lib/Automake/Utils.pm +++ b/lib/Automake/Utils.pm @@ -20,11 +20,13 @@ use strict; use Exporter; use Automake::Rule; use Automake::Global; +use Automake::Location; +use Automake::Condition; use vars qw (@ISA @EXPORT); @ISA = qw (Exporter); -@EXPORT = qw (&var_SUFFIXES_trigger &locate_aux_dir); +@EXPORT = qw (var_SUFFIXES_trigger locate_aux_dir subst); # var_SUFFIXES_trigger ($TYPE, $VALUE) # ------------------------------------ @@ -66,4 +68,16 @@ sub locate_aux_dir $am_config_aux_dir =~ s,/*$,,; } +# subst ($TEXT) +# ------------- +# Return a configure-style substitution using the indicated text. +# We do this to avoid having the substitutions directly in automake.in; +# when we do that they are sometimes removed and this causes confusion +# and bugs. +sub subst ($) +{ + my ($text) = @_; + return '@' . $text . '@'; +} + 1; |