diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-07-03 17:05:14 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-07-03 17:08:32 +0300 |
commit | e3a07b8a6cc03b6d5063e4da5a474d8c91a84b0a (patch) | |
tree | 2e4a8df1194a0fca2e0cb6357fff9c5fa44c3496 /autogen.sh | |
parent | Perhaps the GNU ld requirement is bogus on current (Open)Solaris descendants (diff) | |
download | core-e3a07b8a6cc03b6d5063e4da5a474d8c91a84b0a.tar.gz core-e3a07b8a6cc03b6d5063e4da5a474d8c91a84b0a.zip |
Include environment variables already in autogen.sh's environment
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh index de4eb4afe5c1..d0348b2f7bd3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,8 +11,7 @@ sub clean() print "cleaned the build tree\n"; } -# Alloc $ACLOCAL to specify which aclocal to use -my $aclocal = $ENV{ACLOCAL} ? $ENV{ACLOCAL} : 'aclocal'; +my $aclocal; # check we have various vital tools sub sanity_checks($) @@ -108,6 +107,14 @@ for my $arg (@cmdline_args) { push @args, $arg; } } +for my $arg (@args) { + if ($arg =~ /^([A-Z]+)=(.*)/) { + $ENV{$1} = $2; + } +} + +# Alloc $ACLOCAL to specify which aclocal to use +$aclocal = $ENV{ACLOCAL} ? $ENV{ACLOCAL} : 'aclocal'; system ("touch ChangeLog"); |