aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Moncayo2013-11-11 18:50:28 -0800
committerGlenn Morris2013-11-11 18:50:28 -0800
commitf4f38fad9a65880bbee07c62a635a7cd54ffe070 (patch)
treec52e7d564d773fbcb0fc2726cda7ec62b96fe185
parent632e833fee39b6facfb5f329e5cde45e2b25ccaf (diff)
downloademacs-f4f38fad9a65880bbee07c62a635a7cd54ffe070.tar.gz
emacs-f4f38fad9a65880bbee07c62a635a7cd54ffe070.zip
Remove nt/msysconfig.sh
* configure.ac [MINGW32]: Source nt/mingw-cfg.site. * make-dist: Don't distribute nt/msysconfig.sh. * nt/msysconfig.sh: Remove. * nt/INSTALL: Update for this. * nt/mingw-cfg.site: Comment.
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac2
-rwxr-xr-xmake-dist2
-rw-r--r--nt/ChangeLog5
-rw-r--r--nt/INSTALL24
-rw-r--r--nt/mingw-cfg.site9
-rw-r--r--nt/msysconfig.sh39
7 files changed, 28 insertions, 56 deletions
diff --git a/ChangeLog b/ChangeLog
index d57ecf170b2..3bbc154ff4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
12013-11-12 Dani Moncayo <dmoncayo@gmail.com> 12013-11-12 Dani Moncayo <dmoncayo@gmail.com>
2 2
3 * configure.ac [MINGW32]: Source nt/mingw-cfg.site.
4 * make-dist: Don't distribute nt/msysconfig.sh.
5
3 * Makefile.in (epaths-force-w32): Simplify w32srcdir computation. 6 * Makefile.in (epaths-force-w32): Simplify w32srcdir computation.
4 7
52013-11-08 Paul Eggert <eggert@cs.ucla.edu> 82013-11-08 Paul Eggert <eggert@cs.ucla.edu>
diff --git a/configure.ac b/configure.ac
index bd8278d3b7a..539a966d564 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,8 @@ dnl along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24AC_PREREQ(2.65) 24AC_PREREQ(2.65)
25AC_INIT(emacs, 24.3.50) 25AC_INIT(emacs, 24.3.50)
26 26
27test "$MSYSTEM" = "MINGW32" && . $srcdir/nt/mingw-cfg.site
28
27dnl Set emacs_config_options to the options of 'configure', quoted for the shell, 29dnl Set emacs_config_options to the options of 'configure', quoted for the shell,
28dnl and then quoted again for a C string. Separate options with spaces. 30dnl and then quoted again for a C string. Separate options with spaces.
29dnl Add some environment variables, if they were passed via the environment 31dnl Add some environment variables, if they were passed via the environment
diff --git a/make-dist b/make-dist
index 4a86e7ef2bf..fe4f5ccbdf3 100755
--- a/make-dist
+++ b/make-dist
@@ -404,7 +404,7 @@ echo "Making links to \`nt'"
404 ln config.nt emacsclient.rc emacs-src.tags ../${tempdir}/nt 404 ln config.nt emacsclient.rc emacs-src.tags ../${tempdir}/nt
405 ln nmake.defs gmake.defs subdirs.el [a-z]*.bat [a-z]*.[ch] ../${tempdir}/nt 405 ln nmake.defs gmake.defs subdirs.el [a-z]*.bat [a-z]*.[ch] ../${tempdir}/nt
406 ln Makefile.in gnulib.mk ../${tempdir}/nt 406 ln Makefile.in gnulib.mk ../${tempdir}/nt
407 ln msysconfig.sh mingw-cfg.site epaths.nt INSTALL.OLD ../${tempdir}/nt 407 ln mingw-cfg.site epaths.nt INSTALL.OLD ../${tempdir}/nt
408 ln ChangeLog INSTALL README README.W32 makefile.w32-in ../${tempdir}/nt) 408 ln ChangeLog INSTALL README README.W32 makefile.w32-in ../${tempdir}/nt)
409 409
410echo "Making links to \`nt/inc' and its subdirectories" 410echo "Making links to \`nt/inc' and its subdirectories"
diff --git a/nt/ChangeLog b/nt/ChangeLog
index c90e3105fa8..1b766f0f349 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,8 @@
12013-11-12 Dani Moncayo <dmoncayo@gmail.com>
2
3 * msysconfig.sh: Remove.
4 * INSTALL: Update for this.
5
12013-11-09 Glenn Morris <rgm@gnu.org> 62013-11-09 Glenn Morris <rgm@gnu.org>
2 7
3 * mingw-cfg.site: No need for this to be executable. 8 * mingw-cfg.site: No need for this to be executable.
diff --git a/nt/INSTALL b/nt/INSTALL
index 9f7311430f0..434327b66cc 100644
--- a/nt/INSTALL
+++ b/nt/INSTALL
@@ -31,15 +31,15 @@ Windows 9X as well).
31 1. If you want to build Emacs outside of the source tree 31 1. If you want to build Emacs outside of the source tree
32 (recommended), create the build directory and chdir there. 32 (recommended), create the build directory and chdir there.
33 33
34 2. Invoke the MSYS-specific configure script: 34 2. Invoke the configure script:
35 35
36 - If you are building outside the source tree: 36 - If you are building outside the source tree:
37 37
38 /PATH/TO/EMACS/SOURCE/TREE/nt/msysconfig.sh --prefix=PREFIX ... 38 /PATH/TO/EMACS/SOURCE/TREE/configure --prefix=PREFIX ...
39 39
40 - If you are building in-place, i.e. inside the source tree: 40 - If you are building in-place, i.e. inside the source tree:
41 41
42 ./nt/msysconfig.sh --prefix=PREFIX ... 42 ./configure --prefix=PREFIX ...
43 43
44 It is always preferable to use --prefix to configure Emacs for 44 It is always preferable to use --prefix to configure Emacs for
45 some specific location of its installed tree; the default 45 some specific location of its installed tree; the default
@@ -49,7 +49,7 @@ Windows 9X as well).
49 You can pass other options to the configure script. Here's a 49 You can pass other options to the configure script. Here's a
50 typical example (for an in-place debug build): 50 typical example (for an in-place debug build):
51 51
52 CPPFLAGS='-DGLYPH_DEBUG=1' CFLAGS='-O0 -g3' ./nt/msysconfig.sh --prefix=/d/usr/emacs --enable-checking 52 CPPFLAGS='-DGLYPH_DEBUG=1' CFLAGS='-O0 -g3' ./configure --prefix=/d/usr/emacs --enable-checking
53 53
54 3. After the configure script finishes, it should display the 54 3. After the configure script finishes, it should display the
55 resulting configuration. After that, type 55 resulting configuration. After that, type
@@ -313,11 +313,11 @@ Windows 9X as well).
313 313
314 You invoke the configure script like this: 314 You invoke the configure script like this:
315 315
316 /PATH/TO/EMACS/SOURCE/TREE/nt/msysconfig.sh --prefix=PREFIX ... 316 /PATH/TO/EMACS/SOURCE/TREE/configure --prefix=PREFIX ...
317 317
318 or, if you are building in-place, i.e. inside the source tree: 318 or, if you are building in-place, i.e. inside the source tree:
319 319
320 ./nt/msysconfig.sh --prefix=PREFIX ... 320 ./configure --prefix=PREFIX ...
321 321
322 Here PREFIX is the place where you eventually want to install Emacs 322 Here PREFIX is the place where you eventually want to install Emacs
323 once built, e.g. /d/usr. We recommend to always use --prefix when 323 once built, e.g. /d/usr. We recommend to always use --prefix when
@@ -337,12 +337,12 @@ Windows 9X as well).
337 Windows-style file names was reported to cause subtle and hard to 337 Windows-style file names was reported to cause subtle and hard to
338 figure out problems during the build. This applies both to the 338 figure out problems during the build. This applies both to the
339 command switches, such as --prefix=, and to the absolute file name 339 command switches, such as --prefix=, and to the absolute file name
340 of msysconfig.sh, if you are building outside of the source tree. 340 of 'configure', if you are building outside of the source tree.
341 341
342 You can pass additional options to the configure script, for the 342 You can pass additional options to the configure script, for the
343 full list type 343 full list type
344 344
345 ./nt/msysconfig.sh --help 345 ./configure --help
346 346
347 As explained in the help text, you may need to tell the script what 347 As explained in the help text, you may need to tell the script what
348 are the optional flags to invoke the compiler. This is needed if 348 are the optional flags to invoke the compiler. This is needed if
@@ -355,7 +355,7 @@ Windows 9X as well).
355 headers in C:\emacs\libs\jpeg-6b-4-lib\include, you will need to say 355 headers in C:\emacs\libs\jpeg-6b-4-lib\include, you will need to say
356 something like this: 356 something like this:
357 357
358 CPPFLAGS='-I/c/emacs/libs/libpng-1.2.37-lib/include -I/c/emacs/libs/jpeg-6b-4-lib/include' ./nt/msysconfig.sh --prefix=PREFIX 358 CPPFLAGS='-I/c/emacs/libs/libpng-1.2.37-lib/include -I/c/emacs/libs/jpeg-6b-4-lib/include' ./configure --prefix=PREFIX
359 359
360 which is quite a mouth-full, especially if you have more directories 360 which is quite a mouth-full, especially if you have more directories
361 to specify... Perhaps you may wish to revisit your installation 361 to specify... Perhaps you may wish to revisit your installation
@@ -363,9 +363,9 @@ Windows 9X as well).
363 363
364 If you have a global site-lisp directory from previous Emacs 364 If you have a global site-lisp directory from previous Emacs
365 installation, and you want Emacs to continue using it, specify it 365 installation, and you want Emacs to continue using it, specify it
366 via the --enable-locallisppath switch to msysconfig.sh, like this: 366 via the --enable-locallisppath switch to 'configure', like this:
367 367
368 ./nt/msysconfig.sh --prefix=PREFIX --enable-locallisppath="/d/usr/share/emacs/VERSION/site-lisp:/d/wherever/site-lisp" 368 ./configure --prefix=PREFIX --enable-locallisppath="/d/usr/share/emacs/VERSION/site-lisp:/d/wherever/site-lisp"
369 369
370 Use the normal MSYS /d/foo/bar style to specify directories by their 370 Use the normal MSYS /d/foo/bar style to specify directories by their
371 absolute file names. 371 absolute file names.
@@ -373,7 +373,7 @@ Windows 9X as well).
373 A few frequently used options are needed when you want to produce an 373 A few frequently used options are needed when you want to produce an
374 unoptimized binary with runtime checks enabled: 374 unoptimized binary with runtime checks enabled:
375 375
376 CPPFLAGS='-DGLYPH_DEBUG=1' CFLAGS='-O0 -g3' ./nt/msysconfig.sh --prefix=PREFIX --enable-checking 376 CPPFLAGS='-DGLYPH_DEBUG=1' CFLAGS='-O0 -g3' ./configure --prefix=PREFIX --enable-checking
377 377
378 Once invoked, the configure script will run for some time, and, if 378 Once invoked, the configure script will run for some time, and, if
379 successful, will eventually produce a summary of the configuration 379 successful, will eventually produce a summary of the configuration
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
index 0499e88a72b..0be24dde12f 100644
--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -12,10 +12,11 @@
12# value of a shell variable ac_cv_header_foo_h. The value should be 12# value of a shell variable ac_cv_header_foo_h. The value should be
13# yes if the header is deemed to exist, no otherwise. Or it could be 13# yes if the header is deemed to exist, no otherwise. Or it could be
14# something else, if the value computed by 'configure' requires that. 14# something else, if the value computed by 'configure' requires that.
15# In general, since configure instructs GCC to use header files 15# In general, since configure (when invoked from an MSYS environment)
16# in nt/inc, you should not need to futz with header file tests. But 16# instructs GCC to use header files in nt/inc, you should not need to
17# there are exceptions, like with getopt.h below (which is a MinGW 17# futz with header file tests. But there are exceptions, like with
18# system header, but we do not want to use it). 18# getopt.h below (which is a MinGW system header, but we do not want
19# to use it).
19# 20#
20# For each library function foo you want to supply test results, set 21# For each library function foo you want to supply test results, set
21# the value of a shell variable ac_cv_func_foo. Again, the value is 22# the value of a shell variable ac_cv_func_foo. Again, the value is
diff --git a/nt/msysconfig.sh b/nt/msysconfig.sh
deleted file mode 100644
index 45bbf130b00..00000000000
--- a/nt/msysconfig.sh
+++ /dev/null
@@ -1,39 +0,0 @@
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.
4
5## Copyright (C) 2013 Free Software Foundation, Inc.
6
7## Author: Eli Zaretskii <eliz@gnu.org>
8
9## This file is part of GNU Emacs.
10
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.
15
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.
20
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/>.
23
24### Commentary:
25
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.
31
32### Code:
33
34srcdir=`dirname "$0"`
35parent=`dirname "$srcdir"`
36
37## The nt/mingw-cfg.site file provides various autoconf variables that
38## are needed for a successful MinGW build.
39CONFIG_SITE="$srcdir/mingw-cfg.site" $parent/configure "$@"