diff options
author | meat <meat@device.domain> | 2024-10-03 12:48:31 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-03 21:37:02 +0200 |
commit | 9880c1ba603a6080b2493c7c399ae36d656a9834 (patch) | |
tree | 1e77dd4178322d7924578c8f63b64dc7545851d8 | |
parent | e7fee996f1b634aa5ef0a0a20f0be239c83602b8 (diff) |
Use command -v instead of which
-rwxr-xr-x | autogen.sh | 2 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 6 insertions, 6 deletions
@@ -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 diff --git a/configure.ac b/configure.ac index fef3bfc9..5c308cb7 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |