#!/usr/bin/env perl
#
-# Copyright © 2011-2014, 2020-2022 Nick Bowler
+# Copyright © 2011-2014, 2020-2023 Nick Bowler
#
# Prepare the Gnulib tree for inclusion into a non-recursive automake build.
# While the output of gnulib-tool is "include"-able if the --makefile-name
# something actually depends on it (which is typically the case).
if (/^noinst_LIBRARIES.*libgnu.a/) {
s/^noinst/EXTRA/;
- $for_library //= 0;
+ $for_library = 0 unless defined $for_library;
$use_libtool = 0;
}
if (/^noinst_LTLIBRARIES.*libgnu.la/) {
s/^noinst/EXTRA/;
- $for_library //= 1;
+ $for_library = 1 unless defined $for_library;
$use_libtool = 1;
}