build: Extend PATH from 'pre-inst-env' script
[automake.git] / bin / wrap-automake.in
blob1075346a1165903321cadb330cab87d748617437
1 #!@PERL@ -w
2 # @configure_input@
4 # Copyright (C) 2012-2017 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 BEGIN
21   use strict;
22   @Automake::perl_libdirs = ('@abs_top_srcdir@/lib');
23   unshift @Automake::perl_libdirs, '@abs_top_builddir@/lib'
24     if '@srcdir@' ne '.';
25   unshift @ARGV, '--libdir=@abs_top_srcdir@/lib';
27 require '@abs_top_builddir@/bin/automake';