* net/tramp-compat.el (tramp-compat-user-error): Move it ...
[emacs.git] / nt / msysconfig.sh
blob45bbf130b00aa786f187dfb2e7997294b76ed915
1 #! /bin/sh
2 ### msysconfig.sh - Run the top-level 'configure' script as appropriate
3 ### for the MinGW/MSYS build of a native MS-Windows port of Emacs.
5 ## Copyright (C) 2013 Free Software Foundation, Inc.
7 ## Author: Eli Zaretskii <eliz@gnu.org>
9 ## This file is part of GNU Emacs.
11 ## GNU Emacs is free software: you can redistribute it and/or modify
12 ## it under the terms of the GNU General Public License as published by
13 ## the Free Software Foundation, either version 3 of the License, or
14 ## (at your option) any later version.
16 ## GNU Emacs is distributed in the hope that it will be useful,
17 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ## GNU General Public License for more details.
21 ## You should have received a copy of the GNU General Public License
22 ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 ### Commentary:
26 ## The Posix 'configure' script needs a few tweaks to produce desired
27 ## results when running under MSYS with the purpose of configuring
28 ## Emacs for the MinGW MS-Windows build. Rather than asking users to
29 ## type these tweaks every time they configure the package, we provide
30 ## this helper script which takes care of the mundane things.
32 ### Code:
34 srcdir=`dirname "$0"`
35 parent=`dirname "$srcdir"`
37 ## The nt/mingw-cfg.site file provides various autoconf variables that
38 ## are needed for a successful MinGW build.
39 CONFIG_SITE="$srcdir/mingw-cfg.site" $parent/configure "$@"