From 670672d50be493b9e82a664083f082b2cf3468e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Veillet=20Guillem?= Date: Wed, 25 Oct 2023 17:45:42 +0200 Subject: [PATCH] Move bail_out function before libtoolize check --- autogen.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/autogen.sh b/autogen.sh index 362bcc6f..979b4567 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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)