From 7d272176ce0185e8db7698352fd589a29132cc7a Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 27 Jan 2024 22:33:41 +0300 Subject: [PATCH] Do not run libtoolize by autogen.sh if libtoolize is missing (fix of commit c9ebc1683) * autogen.sh: Do not run libtoolize if it is not available (i.e. which command cannot find it); update comment. --- autogen.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index e213c1a1..d04ca4c0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,7 +6,12 @@ set -e # Install libtool.m4 and ltmain.sh in the build tree. This command is needed # if autoreconf and libtoolize are available from the different directories. -libtoolize -i -c +# Note: libtoolize might be missing on some platforms. +if which libtoolize > /dev/null 2>&1; then + libtoolize -i -c +else + echo "libtoolize is not found, ignoring!" +fi autoreconf -i