autoconf 695 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. # This file is part of the OpenADK project. OpenADK is copyrighted
  3. # material, please see the LICENCE file in the top-level directory.
  4. ac262=$(which autoconf-2.62)
  5. ac261=$(which autoconf-2.61)
  6. if [ ! -z "$ac262" -a -x "$ac262" ];then
  7. if [ -x /usr/bin/autoconf ];then
  8. AUTOCONF_VERSION=2.62 /usr/bin/autoconf "$@"
  9. else
  10. AUTOCONF_VERSION=2.62 /usr/local/bin/autoconf "$@"
  11. fi
  12. elif [ ! -z "$ac261" -a -x "$ac261" ];then
  13. if [ -x /usr/bin/autoconf ];then
  14. AUTOCONF_VERSION=2.61 /usr/bin/autoconf "$@"
  15. else
  16. AUTOCONF_VERSION=2.61 /usr/local/bin/autoconf "$@"
  17. fi
  18. else
  19. if [ -x /usr/bin/autoconf ];then
  20. /usr/bin/autoconf "$@"
  21. else
  22. /usr/local/bin/autoconf "$@"
  23. fi
  24. fi