diff options
| author | Glenn Morris | 2010-05-13 20:36:40 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-13 20:36:40 -0700 |
| commit | fbc00890119ec27ceaf50a0969ee121bef22905a (patch) | |
| tree | 64ac315734ffef94abcaa31c520dde36b501c7f4 | |
| parent | 97560d35b90e969ce663d2b2bd6ce039496f339d (diff) | |
| download | emacs-fbc00890119ec27ceaf50a0969ee121bef22905a.tar.gz emacs-fbc00890119ec27ceaf50a0969ee121bef22905a.zip | |
Move some undefs from src/Makefile.in to configure.
* configure.in (cpp_undefs): Add mktime, register, X11.
* src/Makefile.in (mktime, X11, register): Move undefs to configure.
* admin/CPP-DEFINES: Remove X11.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | admin/CPP-DEFINES | 1 | ||||
| -rwxr-xr-x | configure | 2 | ||||
| -rw-r--r-- | configure.in | 5 | ||||
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/Makefile.in | 17 |
6 files changed, 9 insertions, 20 deletions
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-14 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-14 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.in (cpp_undefs): Add mktime, register, X11. | ||
| 4 | |||
| 3 | * configure.in (GPM_MOUSE_SUPPORT): Remove. | 5 | * configure.in (GPM_MOUSE_SUPPORT): Remove. |
| 4 | (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): New output variables. | 6 | (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): New output variables. |
| 5 | (HAVE_WINDOW_SYSTEM, HAVE_MOUSE): Move out of AC_BOTTOM. | 7 | (HAVE_WINDOW_SYSTEM, HAVE_MOUSE): Move out of AC_BOTTOM. |
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index 2a0a4e23ea9..1f42eeb9528 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -22,7 +22,6 @@ NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API. | |||
| 22 | NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API. | 22 | NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API. |
| 23 | HAVE_X11 Compile support for the X11 GUI. | 23 | HAVE_X11 Compile support for the X11 GUI. |
| 24 | HAVE_X_WINDOWS Compile support for X Window system | 24 | HAVE_X_WINDOWS Compile support for X Window system |
| 25 | X11 ?? Makefile.in suggests it's equivalent to HAVE_X11 | ||
| 26 | USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11. | 25 | USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11. |
| 27 | USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11. | 26 | USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11. |
| 28 | USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11. | 27 | USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11. |
| @@ -26722,7 +26722,7 @@ test "${exec_prefix}" != NONE && | |||
| 26722 | # the C preprocessor to some helpful value like 1, or maybe the empty | 26722 | # the C preprocessor to some helpful value like 1, or maybe the empty |
| 26723 | # string. Needless to say consequent macro substitutions are less | 26723 | # string. Needless to say consequent macro substitutions are less |
| 26724 | # than conducive to the makefile finding the correct directory. | 26724 | # than conducive to the makefile finding the correct directory. |
| 26725 | cpp_undefs="`echo $srcdir $configuration $canonical unix | | 26725 | cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 | |
| 26726 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | 26726 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ |
| 26727 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`" | 26727 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`" |
| 26728 | 26728 | ||
diff --git a/configure.in b/configure.in index 5f2abbd850d..2475caae053 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3622,7 +3622,10 @@ test "${exec_prefix}" != NONE && | |||
| 3622 | # the C preprocessor to some helpful value like 1, or maybe the empty | 3622 | # the C preprocessor to some helpful value like 1, or maybe the empty |
| 3623 | # string. Needless to say consequent macro substitutions are less | 3623 | # string. Needless to say consequent macro substitutions are less |
| 3624 | # than conducive to the makefile finding the correct directory. | 3624 | # than conducive to the makefile finding the correct directory. |
| 3625 | [cpp_undefs="`echo $srcdir $configuration $canonical unix | | 3625 | # src/Makefile.in used to treat X11 as equivalent to HAVE_X11. |
| 3626 | # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11, | ||
| 3627 | # so that cannot have been doing anything. | ||
| 3628 | [cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 | | ||
| 3626 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | 3629 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ |
| 3627 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"] | 3630 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"] |
| 3628 | 3631 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 164cfbf6edb..24ec0650d06 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-14 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-14 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (mktime, X11, register): Move undefs to configure. | ||
| 4 | |||
| 3 | * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it. | 5 | * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it. |
| 4 | (MSDOS_X_OBJ): New variable. | 6 | (MSDOS_X_OBJ): New variable. |
| 5 | (MSDOS_SUPPORT_REAL): New constant. | 7 | (MSDOS_SUPPORT_REAL): New constant. |
diff --git a/src/Makefile.in b/src/Makefile.in index 4d2481af924..3a0339a3f70 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -251,23 +251,6 @@ UNEXEC_OBJ = @unexec@ | |||
| 251 | DEPFLAGS = -MMD -MF deps/$*.d | 251 | DEPFLAGS = -MMD -MF deps/$*.d |
| 252 | #endif | 252 | #endif |
| 253 | 253 | ||
| 254 | /* Do not let the file name mktime.c get messed up. */ | ||
| 255 | #ifdef mktime | ||
| 256 | #undef mktime | ||
| 257 | #endif | ||
| 258 | |||
| 259 | /* Use HAVE_X11 as an alias for X11 in this file | ||
| 260 | to avoid problems with X11 as a subdirectory name | ||
| 261 | in -I and other such options which pass through this file. */ | ||
| 262 | #ifdef X11 | ||
| 263 | #define HAVE_X11 | ||
| 264 | #undef X11 | ||
| 265 | #endif | ||
| 266 | |||
| 267 | /* On some machines #define register is done in config; | ||
| 268 | do not let it interfere with this file. */ | ||
| 269 | #undef register | ||
| 270 | |||
| 271 | /* If NS_IMPL_GNUSTEP, some definitions and includes are expanded here. */ | 254 | /* If NS_IMPL_GNUSTEP, some definitions and includes are expanded here. */ |
| 272 | @NS_IMPL_GNUSTEP_INC@ | 255 | @NS_IMPL_GNUSTEP_INC@ |
| 273 | 256 | ||