#! /bin/sh
# @configure_input@
# Running `$0' as if it were installed.

me=`echo "$0" | sed -e 's,.*[\\/],,'`

# Be sure to use the non installed Perl modules.
# We need no special protection for the subtools (e.g., autoheader runs
# autoconf which runs autom4te) because by themselves, they try to use
# subtools from the same directory (i.e., foo/autoheader will run
# foo/autoconf etc.).
autom4te_perllibdir=@abs_top_srcdir@/lib
export autom4te_perllibdir

case $me in
  ifnames)
     # Does not have lib files.
     exec @abs_top_builddir@/bin/$me ${1+"$@"}
     ;;
  autom4te)
     AUTOM4TE_CFG=@abs_top_builddir@/lib/autom4te.cfg
     export AUTOM4TE_CFG
     ;;
esac

# We might need files from build (frozen files), in addition of src files.
exec @abs_top_builddir@/bin/$me \
     -I @abs_top_builddir@/lib \
     -I @abs_top_srcdir@/lib ${1+"$@"}
