diff options
| author | Jim Blandy | 1993-04-10 07:59:02 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-04-10 07:59:02 +0000 |
| commit | cf91f754673e626b7d6fafc40305f337e814e037 (patch) | |
| tree | 87f18545110211a65022d39bb444f5781782ae6a /src | |
| parent | 20c018a065966860c80c31bea2f77dcf9feda660 (diff) | |
| download | emacs-cf91f754673e626b7d6fafc40305f337e814e037.tar.gz emacs-cf91f754673e626b7d6fafc40305f337e814e037.zip | |
Adjust for autoconf merger.
* config.h.in: Add extra line to top, in case autoconf gets fixed
and decides not to add Makefile-style comments to the top of the
files it generates which we are forced to lop off.
Indicate that the boolean macros here get their definitions via
the DEFS Makefile variable.
Adjust the operating system and machine #includes to use
autoload's @cookies@.
(RETSIGTYPE): Give this a default value.
(SIGTYPE): Set this from RETSIGTYPE.
(LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Get values via @cookies@.
* Makefile.in (DEFS): Renamed from CONFIG_CFLAGS.
(xmakefile): Pass CFLAGS to ${CPP}.
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.in | 86 |
1 files changed, 46 insertions, 40 deletions
diff --git a/src/config.in b/src/config.in index a2f6ced8ced..8943ca8de34 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* configure fodder. See the end of ../configure. | ||
| 1 | /* GNU Emacs site configuration template file. -*- C -*- | 2 | /* GNU Emacs site configuration template file. -*- C -*- |
| 2 | Copyright (C) 1988 Free Software Foundation, Inc. | 3 | Copyright (C) 1988 Free Software Foundation, Inc. |
| 3 | 4 | ||
| @@ -26,6 +27,20 @@ and this notice must be preserved on all copies. */ | |||
| 26 | #define EMACS_CONFIG_H | 27 | #define EMACS_CONFIG_H |
| 27 | 28 | ||
| 28 | 29 | ||
| 30 | /* These are all defined in the top-level Makefile by configure. | ||
| 31 | They're here only for reference. */ | ||
| 32 | |||
| 33 | /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point | ||
| 34 | numbers. */ | ||
| 35 | /* #define LISP_FLOAT_TYPE */ | ||
| 36 | |||
| 37 | /* Define GNU_MALLOC if you want to use the *new* GNU memory allocator. */ | ||
| 38 | /* #define GNU_MALLOC */ | ||
| 39 | |||
| 40 | /* Define REL_ALLOC if you want to use the relocating allocator for | ||
| 41 | buffer space. */ | ||
| 42 | /* #define REL_ALLOC */ | ||
| 43 | |||
| 29 | /* Define HAVE_X_WINDOWS if you want to use the X window system. */ | 44 | /* Define HAVE_X_WINDOWS if you want to use the X window system. */ |
| 30 | /* #define HAVE_X_WINDOWS */ | 45 | /* #define HAVE_X_WINDOWS */ |
| 31 | 46 | ||
| @@ -33,6 +48,9 @@ and this notice must be preserved on all copies. */ | |||
| 33 | Otherwise, Emacs expects to use version 10. */ | 48 | Otherwise, Emacs expects to use version 10. */ |
| 34 | /* #define HAVE_X11 */ | 49 | /* #define HAVE_X11 */ |
| 35 | 50 | ||
| 51 | /* Define this if you're using XFree386. */ | ||
| 52 | /* #define HAVE_XFREE386 */ | ||
| 53 | |||
| 36 | /* Define HAVE_X_MENU if you want to use the X window menu system. | 54 | /* Define HAVE_X_MENU if you want to use the X window menu system. |
| 37 | This appears to work on some machines that support X | 55 | This appears to work on some machines that support X |
| 38 | and not on others. */ | 56 | and not on others. */ |
| @@ -64,17 +82,6 @@ and this notice must be preserved on all copies. */ | |||
| 64 | 82 | ||
| 65 | /* #define AMPERSAND_FULL_NAME */ | 83 | /* #define AMPERSAND_FULL_NAME */ |
| 66 | 84 | ||
| 67 | /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point | ||
| 68 | numbers. */ | ||
| 69 | /* #define LISP_FLOAT_TYPE */ | ||
| 70 | |||
| 71 | /* Define GNU_MALLOC if you want to use the *new* GNU memory allocator. */ | ||
| 72 | /* #define GNU_MALLOC */ | ||
| 73 | |||
| 74 | /* Define REL_ALLOC if you want to use the relocating allocator for | ||
| 75 | buffer space. */ | ||
| 76 | /* #define REL_ALLOC */ | ||
| 77 | |||
| 78 | /* Define this macro if you want to use 16-bit GLYPHs. Currently this | 85 | /* Define this macro if you want to use 16-bit GLYPHs. Currently this |
| 79 | option isn't terribly useful (the current distribution doesn't | 86 | option isn't terribly useful (the current distribution doesn't |
| 80 | support large characters in buffer text), so the configuration | 87 | support large characters in buffer text), so the configuration |
| @@ -103,21 +110,28 @@ and this notice must be preserved on all copies. */ | |||
| 103 | #define INLINE | 110 | #define INLINE |
| 104 | #endif | 111 | #endif |
| 105 | 112 | ||
| 106 | /* The configuration script replaces the string @opsystem@ with the | 113 | /* The configuration script replaces the string @opsysfile@ with the |
| 107 | name of the s/*.h file that describes the system type you are | 114 | name of the s/*.h file that describes the system type you are |
| 108 | using; an option of the form "-opsystem=OPSYS" says to use | 115 | using. The file is chosen based on the configuration name you |
| 109 | "s/OPSYS.h". See the file ../etc/MACHINES for a list of systems | 116 | give. |
| 110 | and the -opsystem flags to use for them. | 117 | |
| 118 | See the file ../etc/MACHINES for a list of systems and the | ||
| 119 | configuration names to use for them. | ||
| 120 | |||
| 111 | See s/template.h for documentation on writing s/*.h files. */ | 121 | See s/template.h for documentation on writing s/*.h files. */ |
| 112 | #include "@opsystem@" | ||
| 113 | 122 | ||
| 114 | /* The configuration script replaces the string @machine@ with the | 123 | #include "@opsysfile@" |
| 115 | name of the m/*.h file that describes the machine you are | 124 | |
| 116 | using; an option of the form "-machine=MACH" says to use | 125 | /* The configuration script replaces the string @machfile@ with the |
| 117 | "m/MACH.h". See the file ../etc/MACHINES for a list of machines | 126 | name of the m/*.h file that describes the machine you are using. |
| 118 | and the -machine flags to use for them. | 127 | The file is chosen based on the configuration name you give. |
| 128 | |||
| 129 | See the file ../etc/MACHINES for a list of machines and the | ||
| 130 | configuration names to use for them. | ||
| 131 | |||
| 119 | See m/template.h for documentation on writing m/*.h files. */ | 132 | See m/template.h for documentation on writing m/*.h files. */ |
| 120 | #include "@machine@" | 133 | |
| 134 | #include "@machfile@" | ||
| 121 | 135 | ||
| 122 | /* Some s- files may define SYSTEM_MALLOC, in which case make sure | 136 | /* Some s- files may define SYSTEM_MALLOC, in which case make sure |
| 123 | we don't use REL_ALLOC. */ | 137 | we don't use REL_ALLOC. */ |
| @@ -165,31 +179,24 @@ and this notice must be preserved on all copies. */ | |||
| 165 | HAVE_X_WINDOWS above and your X libraries aren't in a place that | 179 | HAVE_X_WINDOWS above and your X libraries aren't in a place that |
| 166 | your loader can find on its own, you might want to add "-L/..." or | 180 | your loader can find on its own, you might want to add "-L/..." or |
| 167 | something similar. */ | 181 | something similar. */ |
| 168 | /* #define LD_SWITCH_X_SITE */ | 182 | #define LD_SWITCH_X_SITE @LD_SWITCH_X_SITE@ |
| 169 | 183 | ||
| 170 | /* Define C_SWITCH_X_SITE to contain any special flags your compiler | 184 | /* Define C_SWITCH_X_SITE to contain any special flags your compiler |
| 171 | may need to deal with X Windows. For instance, if you've defined | 185 | may need to deal with X Windows. For instance, if you've defined |
| 172 | HAVE_X_WINDOWS above and your X include files aren't in a place | 186 | HAVE_X_WINDOWS above and your X include files aren't in a place |
| 173 | that your compiler can find on its own, you might want to add | 187 | that your compiler can find on its own, you might want to add |
| 174 | "-I/..." or something similar. */ | 188 | "-I/..." or something similar. */ |
| 175 | /* #define C_SWITCH_X_SITE */ | 189 | #define C_SWITCH_X_SITE @C_SWITCH_X_SITE@ |
| 176 | 190 | ||
| 177 | /* Define the return type of signal handlers if the s-xxx file | 191 | /* Define the return type of signal handlers if the s-xxx file |
| 178 | did not already do so. */ | 192 | did not already do so. */ |
| 179 | #ifndef SIGTYPE | 193 | #ifndef RETSIGTYPE |
| 180 | #define SIGTYPE void | 194 | #define RETSIGTYPE void |
| 181 | #endif | 195 | #endif |
| 182 | 196 | ||
| 183 | /* If it doesn't seem that the compiler we're using supports the | 197 | /* SIGTYPE is the macro we actually use. */ |
| 184 | `const' qualifier, then the `configure' script will remove this | 198 | #ifndef SIGTYPE |
| 185 | line. Some of the files that Emacs shares with other applications | 199 | #define SIGTYPE RETSIGTYPE |
| 186 | (regex.h, getdate.y, etcetera) assume that const is defined. The | ||
| 187 | rule seems to be that if a system has a config.h file, that file | ||
| 188 | should take care of #defining const away if necessary. */ | ||
| 189 | #define HAVE_CONST | ||
| 190 | |||
| 191 | #ifndef HAVE_CONST | ||
| 192 | #define const | ||
| 193 | #endif | 200 | #endif |
| 194 | 201 | ||
| 195 | /* Non-ANSI C compilers don't have volatile. */ | 202 | /* Non-ANSI C compilers don't have volatile. */ |
| @@ -197,10 +204,9 @@ and this notice must be preserved on all copies. */ | |||
| 197 | #define volatile | 204 | #define volatile |
| 198 | #endif | 205 | #endif |
| 199 | 206 | ||
| 200 | /* Define this if you're using XFree386. joe@zircon.uucp says that in | 207 | /* joe@zircon.uucp says that in order to use XFree386, you have to |
| 201 | order to use XFree386, you have to link against -lXbsd, which | 208 | link against -lXbsd, which insists on defining the random |
| 202 | insists on defining the random function. */ | 209 | function. */ |
| 203 | /* #define HAVE_XFREE386 */ | ||
| 204 | #ifdef HAVE_XFREE386 | 210 | #ifdef HAVE_XFREE386 |
| 205 | #define LIBX11_SYSTEM -lXbsd | 211 | #define LIBX11_SYSTEM -lXbsd |
| 206 | #define HAVE_RANDOM | 212 | #define HAVE_RANDOM |