3 @@ -244,7 +244,7 @@ check_exists() {
4 ($2 --version </dev/null)
7 - ($1 --version </dev/null) >/dev/null 2>&1
8 + ($@ --version </dev/null) >/dev/null 2>&1
19 $app --version >/dev/null 2>&1 || { $app --version; return 1; }
21 @@ -366,13 +366,13 @@ check_versions() {
22 if [ "$req_ver" = "-" ]; then
23 # Merely require app to exist; not all prereq apps are well-behaved
24 # so we have to rely on $? rather than get_version.
25 - if ! check_exists --verbose $app; then
26 + if ! check_exists --verbose "$app"; then
27 warn_ "Error: '$app' not found"
31 # Require app to produce a new enough version string.
32 - inst_ver=$(get_version $app)
33 + inst_ver=$(get_version "$app")
34 if [ ! "$inst_ver" ]; then
35 warn_ "Error: '$app' not found"
37 @@ -1157,7 +1157,7 @@ autogen()
38 # two just-pre-run programs.
40 # Import from gettext.
43 grep '^[ ]*AM_GNU_GETTEXT_VERSION(' configure.ac >/dev/null || \