Skip to content

Commit

Permalink
Use portable 'type' command in autogen.sh to test if libtoolize exists
Browse files Browse the repository at this point in the history
(fix of commit 7d27217)

* autogen.sh: Use "type" command (to test if libtoolize exists) instead
of non-portable "which" one.
  • Loading branch information
bhaible authored and ivmai committed Jan 27, 2024
1 parent 7d27217 commit 7faabbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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.
# Note: libtoolize might be missing on some platforms.
if which libtoolize > /dev/null 2>&1; then
if (type libtoolize) > /dev/null 2>&1; then
libtoolize -i -c
else
echo "libtoolize is not found, ignoring!"
Expand Down

0 comments on commit 7faabbf

Please sign in to comment.