diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-08-26 06:22:49 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-26 12:53:15 +0300 |
commit | 6455e4fb5bc36084a2f05f811614ceac3462722c (patch) | |
tree | 1aef86bd4cb9f603e1939472fcd4f0e563e1ee5c /configure | |
parent | 47df8716451f00cb1f6a486c8f15af773e04514b (diff) |
configure: do not fork off grep subprocess while testing for whitespace
grep is not necessary for the functionality.
This avoids an unnecessary fork.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2974,8 +2974,9 @@ if test -f configure; then source_path=. else source_path=$(cd $(dirname "$0"); pwd) - echo "$source_path" | grep -q '[[:blank:]]' && - die "Out of tree builds are impossible with whitespace in source path." + case "$source_path" in + *[[:blank:]]*) die "Out of tree builds are impossible with whitespace in source path." ;; + esac test -e "$source_path/config.h" && die "Out of tree builds are impossible with config.h in source dir." fi |