bootstrap: Do not always manually copy aux files - ditch INSTALL
diff --git a/bootstrap b/bootstrap
index 710142e2..e9c08d30 100755
--- a/bootstrap
+++ b/bootstrap
@@ -35,11 +35,14 @@ fi
[ -d limine-efi ] || git clone https://github.com/limine-bootloader/limine-efi.git $SHALLOW_CLONE_FLAG
[ -d libgcc-binaries ] || git clone https://github.com/mintsuki/libgcc-binaries.git $SHALLOW_CLONE_FLAG
-AUTOMAKE_LIBDIR="$(automake --print-libdir)"
-cp "${AUTOMAKE_LIBDIR}/INSTALL" ./
-mkdir -p build-aux
-cp "${AUTOMAKE_LIBDIR}/config.guess" build-aux/
-cp "${AUTOMAKE_LIBDIR}/config.sub" build-aux/
-cp "${AUTOMAKE_LIBDIR}/install-sh" build-aux/
-
autoreconf -fvi -Wall
+
+# Older versions of autoreconf have a bug where they do not
+# install auxiliary files, sometimes... Check if that is the
+# case and work around...
+for auxfile in config.guess config.sub install-sh; do
+ if ! [ -f build-aux/$auxfile ]; then
+ mkdir -p build-aux
+ cp -v "$(automake --print-libdir)/$auxfile" build-aux/
+ fi
+done
