maint: run update-copyright for 2014.
[m4/ericb.git] / tests / m4.in
blob4dd9d4f00ebfebc384f77f36c0bdead0d6572b7a
1 #! /bin/sh
2 # @configure_input@
3 # Wrapper around a non installed m4 to make it work as an installed one.
5 # Copyright (C) 2001-2002, 2006-2008, 2010, 2013-2014 Free Software
6 # Foundation, Inc.
8 # This file is part of GNU M4.
10 # GNU M4 is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
15 # GNU M4 is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 # Written by Gary V. Vaughan <gary@gnu.org>
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 emulate sh
28 NULLCMD=:
29 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30 # is contrary to our usage. Disable this feature.
31 alias -g '${1+"$@"}'='"$@"'
32 setopt NO_GLOB_SUBST
33 else
34 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
37 M4PATH="\
38 @abs_top_builddir@/modules/.libs:\
39 @abs_top_builddir@/tests/.libs:\
40 ${M4PATH+$M4PATH:}\
42 export M4PATH
44 exec "@abs_top_builddir@/src/m4" \
45 ${1+"$@"}
46 exit 1