wrapper.as 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. AS_INIT[]dnl -*- shell-script -*-
  2. # wrapper.as -- running `@wrap_program@' as if it were installed.
  3. # @configure_input@
  4. # Copyright (C) 2003-2004, 2007, 2009-2012 Free Software Foundation,
  5. # Inc.
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. testdir='@abs_top_builddir@/tests'
  17. PATH=$testdir$PATH_SEPARATOR$PATH
  18. AUTOCONF=autoconf
  19. AUTOHEADER=autoheader
  20. AUTOM4TE=autom4te
  21. AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg'
  22. autom4te_perllibdir='@abs_top_srcdir@/lib'
  23. export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir
  24. case '@wrap_program@' in
  25. ifnames)
  26. # Does not have lib files.
  27. exec '@abs_top_builddir@/bin/@wrap_program@' ${1+"$@"}
  28. ;;
  29. *)
  30. # We might need files from the build tree (frozen files), in
  31. # addition of src files.
  32. exec '@abs_top_builddir@/bin/@wrap_program@' \
  33. -B '@abs_top_builddir@'/lib \
  34. -B '@abs_top_srcdir@'/lib ${1+"$@"}
  35. esac
  36. exit 1