Move bail_out function before libtoolize check

This commit is contained in:
Michaël Veillet Guillem 2023-10-25 17:45:42 +02:00 committed by Stefan Weil
parent eb612f0786
commit 670672d50b

View File

@ -46,6 +46,14 @@ if [ "$1" = "clean" ]; then
find . -iname "Makefile.in" -type f -exec rm '{}' +
fi
bail_out()
{
echo
echo " Something went wrong, bailing out!"
echo
exit 1
}
# Prevent any errors that might result from failing to properly invoke
# `libtoolize` or `glibtoolize,` whichever is present on your system,
# from occurring by testing for its existence and capturing the absolute path to
@ -59,14 +67,6 @@ else
bail_out
fi
bail_out()
{
echo
echo " Something went wrong, bailing out!"
echo
exit 1
}
# --- Step 1: Generate aclocal.m4 from:
# . acinclude.m4
# . config/*.m4 (these files are referenced in acinclude.m4)