diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-08-01 10:07:10 (GMT) |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-08-01 10:08:47 (GMT) |
commit | 3641be10cf4347d522d31f004b54bb8b7e80a8fa (patch) | |
tree | c8fe405098fff9b4922370000c1661042069490b /configure.ac | |
parent | 29c085fd9d3fc972f75b3961905d6b4ecce7eb2b (diff) | |
download | patchelf-3641be10cf4347d522d31f004b54bb8b7e80a8fa.zip patchelf-3641be10cf4347d522d31f004b54bb8b7e80a8fa.tar.gz patchelf-3641be10cf4347d522d31f004b54bb8b7e80a8fa.tar.bz2 |
configure.ac: use "command -v" instead of "type -p"
"type -p" is a Bash thing, whereas "command -v" is specified by POSIX
(more portable).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d08a006..c2e5e98 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ AC_ARG_WITH([page-size], ) if test "$PAGESIZE" = auto; then - if type -p getconf &>/dev/null; then + if command -v getconf >/dev/null; then PAGESIZE=$(getconf PAGESIZE || getconf PAGE_SIZE) fi if test "$PAGESIZE" = auto -o -z "$PAGESIZE"; then |