summaryrefslogtreecommitdiff
path: root/bin/automake.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/automake.in')
-rw-r--r--bin/automake.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/automake.in b/bin/automake.in
index 09a1c956b..8db874cc7 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -6,7 +6,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
if 0;
# automake - create Makefile.in from Makefile.am
-# Copyright (C) 1994-2015 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -2317,6 +2317,7 @@ sub handle_ALLOCA
$lt ||= '';
my $dir = handle_LIBOBJS_or_ALLOCA "${lt}ALLOCA";
+ $dir eq '' and $dir = './';
$var->requires_variables ("\@${lt}ALLOCA\@ used", $lt . 'ALLOCA');
$dep_files{$dir . '$(DEPDIR)/alloca.P' . $myobjext} = 1;
require_libsource_with_macro ($cond, $var, FOREIGN, 'alloca.c');
@@ -6227,10 +6228,13 @@ sub check_trailing_slash ($\$)
# read_am_file ($AMFILE, $WHERE, $RELDIR)
# ---------------------------------------
-# Read Makefile.am and set up %contents. Simultaneously copy lines
-# from Makefile.am into $output_trailer, or define variables as
-# appropriate. NOTE we put rules in the trailer section. We want
-# user rules to come after our generated stuff.
+# Read $AMFILE file name which is located in $RELDIR, and set up
+# global variables resetted by '&generate_makefile'. Simultaneously
+# copy lines from $AMFILE into '$output_trailer', or define variables
+# as appropriate.
+#
+# NOTE: We put rules in the trailer section. We want user rules to
+# come after our generated stuff.
sub read_am_file
{
my ($amfile, $where, $reldir) = @_;