Skip to content

Commit

Permalink
Do not run libtoolize by autogen.sh if libtoolize is missing
Browse files Browse the repository at this point in the history
(fix of commit c9ebc16)

* autogen.sh: Do not run libtoolize if it is not available (i.e. which
command cannot find it); update comment.
  • Loading branch information
ivmai committed Jan 27, 2024
1 parent 032cfb8 commit 7d27217
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7d27217

Please sign in to comment.