2
0

000-bootstrap.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- a/build-aux/bootstrap
  2. +++ b/build-aux/bootstrap
  3. @@ -237,14 +237,14 @@ test -r "$conffile" && . "$conffile"
  4. check_exists() {
  5. if test "$1" = "--verbose"; then
  6. - ($2 --version </dev/null) >/dev/null 2>&1
  7. + ($2 $3 $4 --version </dev/null) >/dev/null 2>&1
  8. if test $? -ge 126; then
  9. # If not found, run with diagnostics as one may be
  10. # presented with env variables to set to find the right version
  11. - ($2 --version </dev/null)
  12. + ($2 $3 $4 --version </dev/null)
  13. fi
  14. else
  15. - ($1 --version </dev/null) >/dev/null 2>&1
  16. + ($@ --version </dev/null) >/dev/null 2>&1
  17. fi
  18. test $? -lt 126
  19. @@ -309,7 +309,7 @@ p
  20. q'
  21. get_version() {
  22. - app=$1
  23. + app="$@"
  24. $app --version >/dev/null 2>&1 || { $app --version; return 1; }
  25. @@ -366,13 +366,13 @@ check_versions() {
  26. if [ "$req_ver" = "-" ]; then
  27. # Merely require app to exist; not all prereq apps are well-behaved
  28. # so we have to rely on $? rather than get_version.
  29. - if ! check_exists --verbose $app; then
  30. + if ! check_exists --verbose "$app"; then
  31. warn_ "Error: '$app' not found"
  32. ret=1
  33. fi
  34. else
  35. # Require app to produce a new enough version string.
  36. - inst_ver=$(get_version $app)
  37. + inst_ver=$(get_version "$app")
  38. if [ ! "$inst_ver" ]; then
  39. warn_ "Error: '$app' not found"
  40. ret=1
  41. @@ -1205,7 +1205,7 @@ autogen()
  42. # two just-pre-run programs.
  43. # Import from gettext.
  44. - with_gettext=yes
  45. + with_gettext=no
  46. grep '^[ ]*AM_GNU_GETTEXT_VERSION(' configure.ac >/dev/null || \
  47. with_gettext=no