diff options
| author | Chong Yidong | 2012-05-31 14:08:06 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-05-31 14:08:06 +0800 |
| commit | efc00ab16e2890b75d7224434ac43fe944ade4dd (patch) | |
| tree | 28c1078ca32b96402cd1a5f618a17b3526143f27 /nt | |
| parent | ba93a18774352c97d6dd73c73141cbff6305581b (diff) | |
| parent | dd41169b6cb0105b0766f3d368c657ebafc19cba (diff) | |
| download | emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.tar.gz emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.zip | |
Merge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.de
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 17 | ||||
| -rwxr-xr-x | nt/configure.bat | 39 | ||||
| -rw-r--r-- | nt/gmake.defs | 2 | ||||
| -rw-r--r-- | nt/nmake.defs | 2 |
4 files changed, 44 insertions, 16 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 781d5d71559..0687e8be605 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2012-05-31 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * configure.bat (genmakefiles): Move the redirection away from the | ||
| 4 | end of the command, to avoid excess whitespace at the end of Make | ||
| 5 | variables created at configure time, and also avoid things like | ||
| 6 | "FOO1>>config.settings", where "1" gets interpreted as the file | ||
| 7 | descriptor and eaten up. This fixes breakage introduced by the | ||
| 8 | last change, without reintroducing the bug fixed by that change. | ||
| 9 | |||
| 10 | 2012-05-31 Eli Zaretskii <eliz@gnu.org> | ||
| 11 | |||
| 12 | * nmake.defs (MWINDOWS): Define as | ||
| 13 | "-subsystem:windows -entry:mainCRTStartup". Suggested by Fabrice | ||
| 14 | Popineau <fabrice.popineau@supelec.fr>. (Bug#11405) | ||
| 15 | |||
| 16 | * gmake.defs (MWINDOWS): Define as "-mwindows". | ||
| 17 | |||
| 1 | 2012-05-28 Eli Zaretskii <eliz@gnu.org> | 18 | 2012-05-28 Eli Zaretskii <eliz@gnu.org> |
| 2 | 19 | ||
| 3 | * config.nt (HAVE_SYSINFO): Remove; unused. | 20 | * config.nt (HAVE_SYSINFO): Remove; unused. |
diff --git a/nt/configure.bat b/nt/configure.bat index a60df56fc94..cecf52ee927 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -753,29 +753,36 @@ if %COMPILER% == gcc set MAKECMD=gmake | |||
| 753 | if %COMPILER% == cl set MAKECMD=nmake | 753 | if %COMPILER% == cl set MAKECMD=nmake |
| 754 | 754 | ||
| 755 | rem Pass on chosen settings to makefiles. | 755 | rem Pass on chosen settings to makefiles. |
| 756 | rem NB. Be very careful to not have a space before redirection symbols | ||
| 757 | rem except when there is a preceding digit, when a space is required. | ||
| 758 | rem | 756 | rem |
| 757 | rem The weird place we put the redirection is to make sure no extra | ||
| 758 | rem whitespace winds up at the end of the Make variables, since some | ||
| 759 | rem variables, e.g. INSTALL_DIR, cannot stand that. Yes, echo will | ||
| 760 | rem write the blanks between the end of command arguments and the | ||
| 761 | rem redirection symbol to the file. OTOH, we cannot put the | ||
| 762 | rem redirection immediately after the last character of the command, | ||
| 763 | rem because environment variable expansion can yield a digit there, | ||
| 764 | rem which will then be misinterpreted as the file descriptor to | ||
| 765 | rem redirect... | ||
| 759 | echo # Start of settings from configure.bat >config.settings | 766 | echo # Start of settings from configure.bat >config.settings |
| 760 | echo COMPILER=%COMPILER% >>config.settings | 767 | >>config.settings echo COMPILER=%COMPILER% |
| 761 | if not "(%mf%)" == "()" echo MCPU_FLAG=%mf% >>config.settings | 768 | if not "(%mf%)" == "()" >>config.settings echo MCPU_FLAG=%mf% |
| 762 | if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo% >>config.settings | 769 | if not "(%dbginfo%)" == "()" >>config.settings echo DEBUG_INFO=%dbginfo% |
| 763 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings | 770 | if (%nodebug%) == (Y) >>config.settings echo NODEBUG=1 |
| 764 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings | 771 | if (%noopt%) == (Y) >>config.settings echo NOOPT=1 |
| 765 | if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings | 772 | if (%enablechecking%) == (Y) >>config.settings echo ENABLECHECKS=1 |
| 766 | if (%profile%) == (Y) echo PROFILE=1 >>config.settings | 773 | if (%profile%) == (Y) >>config.settings echo PROFILE=1 |
| 767 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings | 774 | if (%nocygwin%) == (Y) >>config.settings echo NOCYGWIN=1 |
| 768 | if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix% >>config.settings | 775 | if not "(%prefix%)" == "()" >>config.settings echo INSTALL_DIR=%prefix% |
| 769 | if not "(%distfiles%)" == "()" echo DIST_FILES=%distfiles% >>config.settings | 776 | if not "(%distfiles%)" == "()" >>config.settings echo DIST_FILES=%distfiles% |
| 770 | rem We go thru docflags because usercflags could be "-DFOO=bar" -something | 777 | rem We go thru docflags because usercflags could be "-DFOO=bar" -something |
| 771 | rem and the if command cannot cope with this | 778 | rem and the if command cannot cope with this |
| 772 | for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y | 779 | for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y |
| 773 | if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags% >>config.settings | 780 | if (%docflags%)==(Y) >>config.settings echo USER_CFLAGS=%usercflags% |
| 774 | if (%docflags%)==(Y) echo ESC_USER_CFLAGS=%escusercflags% >>config.settings | 781 | if (%docflags%)==(Y) >>config.settings echo ESC_USER_CFLAGS=%escusercflags% |
| 775 | for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y | 782 | for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y |
| 776 | if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags% >>config.settings | 783 | if (%doldflags%)==(Y) >>config.settings echo USER_LDFLAGS=%userldflags% |
| 777 | for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y | 784 | for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y |
| 778 | if (%doextralibs%)==(Y) echo USER_LIBS=%extrauserlibs% >>config.settings | 785 | if (%doextralibs%)==(Y) >>config.settings echo USER_LIBS=%extrauserlibs% |
| 779 | echo # End of settings from configure.bat>>config.settings | 786 | echo # End of settings from configure.bat>>config.settings |
| 780 | echo. >>config.settings | 787 | echo. >>config.settings |
| 781 | 788 | ||
diff --git a/nt/gmake.defs b/nt/gmake.defs index a669ffd27be..dd96b776363 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs | |||
| @@ -210,6 +210,8 @@ else | |||
| 210 | CHECKING_CFLAGS = | 210 | CHECKING_CFLAGS = |
| 211 | endif | 211 | endif |
| 212 | 212 | ||
| 213 | MWINDOWS = -mwindows | ||
| 214 | |||
| 213 | CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | 215 | CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) |
| 214 | ESC_CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS) | 216 | ESC_CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS) |
| 215 | EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 | 217 | EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 |
diff --git a/nt/nmake.defs b/nt/nmake.defs index 11079b4fb7d..b01e341f2d3 100644 --- a/nt/nmake.defs +++ b/nt/nmake.defs | |||
| @@ -151,6 +151,8 @@ CHECKING_CFLAGS = -DENABLE_CHECKING -DXASSERTS | |||
| 151 | CHECKING_CFLAGS = | 151 | CHECKING_CFLAGS = |
| 152 | !endif | 152 | !endif |
| 153 | 153 | ||
| 154 | MWINDOWS = -subsystem:windows -entry:mainCRTStartup | ||
| 155 | |||
| 154 | CFLAGS = -I. $(ARCH_CFLAGS) \ | 156 | CFLAGS = -I. $(ARCH_CFLAGS) \ |
| 155 | $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | 157 | $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) |
| 156 | ESC_CFLAGS = -I. $(ARCH_CFLAGS) \ | 158 | ESC_CFLAGS = -I. $(ARCH_CFLAGS) \ |