summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-10-01 09:02:15 -0700
committerKarl Berry <karl@freefriends.org>2022-10-01 09:02:15 -0700
commit7191c6b460e2a9e98255236063552d07fd993048 (patch)
tree7cb2e9fafc23558a2942d4cf8c7d1a4acca02785 /bin
parente0d24592f7076576ce8494aaf10db6abe9a7ea47 (diff)
downloadautomake-7191c6b460e2a9e98255236063552d07fd993048.tar.gz
aclocal: protect against Perl undefined warnings.
* bin/aclocal.in (usage): check that envvars (ACLOCAL_AUTOMAKE_DIR, ACLOCAL_PATH) are defined before printing values. * HACKING: describe running scripts from checkout, et al.
Diffstat (limited to 'bin')
-rw-r--r--bin/aclocal.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/aclocal.in b/bin/aclocal.in
index 77fbfd7e4..0b41dcf65 100644
--- a/bin/aclocal.in
+++ b/bin/aclocal.in
@@ -1055,13 +1055,15 @@ EOF
# pages during Automake compilation, the environment is set to local values.
# So don't include it in the installed man page.
if (!$ENV{AUTOMAKE_HELP2MAN}) {
+ my $aclocal_automake_dir = $ENV{"ACLOCAL_AUTOMAKE_DIR"} || "";
+ my $aclocal_path = $ENV{"ACLOCAL_PATH"} || "";
print <<"EOF";
Current m4 search paths (in order):
-I dirs: @user_includes
--automake-acdir: @automake_includes
- \$ACLOCAL_AUTOMAKE_DIR: $ENV{"ACLOCAL_AUTOMAKE_DIR"}
- \$ACLOCAL_PATH: $ENV{"ACLOCAL_PATH"}
+ \$ACLOCAL_AUTOMAKE_DIR: $aclocal_automake_dir
+ \$ACLOCAL_PATH: $aclocal_path
--system-acdir: @system_includes
EOF
}