Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use command -v instead of which #265

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Required binaries check
#
check_bin_file(){
which $1 > /dev/null 2>&1
command -v $1 > /dev/null 2>&1
if [ $? = 0 ]; then
return 0
else
Expand Down
10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,18 @@ if test "x$enable_png" = "xyes"; then

dnl Check if the user hasn't set the variable $PNG_CONFIG
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng16-config`
PNG_CONFIG=`command -v libpng16-config`
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng14-config`
PNG_CONFIG=`command -v libpng14-config`
fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng12-config`
PNG_CONFIG=`command -v libpng12-config`
fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng-config`
PNG_CONFIG=`command -v libpng-config`
fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng10-config`
PNG_CONFIG=`command -v libpng10-config`
fi
fi

Expand Down
Loading