config.nt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /* GNU Emacs site configuration template file. -*- C -*-
  2. Copyright (C) 1988, 1993-1994, 2001-2012 Free Software Foundation, Inc.
  3. This file is part of GNU Emacs.
  4. GNU Emacs is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. GNU Emacs is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
  14. /* No code in Emacs #includes config.h twice, but some of the code
  15. intended to work with other packages as well (like gmalloc.c)
  16. think they can include it as many times as they like. */
  17. #ifndef EMACS_CONFIG_H
  18. #define EMACS_CONFIG_H
  19. /* These are all defined in the top-level Makefile by configure.
  20. They're here only for reference. */
  21. /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point
  22. numbers. */
  23. #undef LISP_FLOAT_TYPE
  24. /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
  25. #define GNU_MALLOC
  26. /* Define if you are using the GNU C Library. */
  27. #undef DOUG_LEA_MALLOC
  28. /* Define REL_ALLOC if you want to use the relocating allocator for
  29. buffer space. */
  30. #define REL_ALLOC
  31. /* Enable conservative stack marking for GC. */
  32. #define GC_MARK_STACK 1
  33. /* MSVC ignores the "register" keyword, so test fails even though
  34. setjmp does work. */
  35. #define GC_SETJMP_WORKS 1
  36. /* Define HAVE_X_WINDOWS if you want to use the X window system. */
  37. #undef HAVE_X_WINDOWS
  38. /* Define HAVE_X11 if you want to use version 11 of X windows.
  39. Otherwise, Emacs expects to use version 10. */
  40. #undef HAVE_X11
  41. /* Define if using an X toolkit. */
  42. #undef USE_X_TOOLKIT
  43. /* Define this if you're using XFree386. */
  44. #undef HAVE_XFREE386
  45. /* Define this if you have Motif 2.1 or newer. */
  46. #undef HAVE_MOTIF_2_1
  47. /* Define HAVE_MENUS if you have mouse menus.
  48. (This is automatic if you use X, but the option to specify it remains.)
  49. It is also defined with other window systems that support xmenu.c. */
  50. #undef HAVE_MENUS
  51. /* Define if we have the X11R6 or newer version of Xt. */
  52. #undef HAVE_X11XTR6
  53. /* Define if we have the X11R6 or newer version of Xlib. */
  54. #undef HAVE_X11R6
  55. /* Define if netdb.h declares h_errno. */
  56. #undef HAVE_H_ERRNO
  57. /* If we're using any sort of window system, define some consequences. */
  58. #ifdef HAVE_X_WINDOWS
  59. #define HAVE_WINDOW_SYSTEM
  60. #define HAVE_MOUSE
  61. #endif
  62. /* Define USE_TEXT_PROPERTIES to support visual and other properties
  63. on text. */
  64. #define USE_TEXT_PROPERTIES
  65. /* Define USER_FULL_NAME to return a string
  66. that is the user's full name.
  67. It can assume that the variable `pw'
  68. points to the password file entry for this user.
  69. At some sites, the pw_gecos field contains
  70. the user's full name. If neither this nor any other
  71. field contains the right thing, use pw_name,
  72. giving the user's login name, since that is better than nothing. */
  73. #define USER_FULL_NAME pw->pw_gecos
  74. /* Define AMPERSAND_FULL_NAME if you use the convention
  75. that & in the full name stands for the login id. */
  76. #undef AMPERSAND_FULL_NAME
  77. /* Things set by --with options in the configure script. */
  78. /* Define to support POP mail retrieval. */
  79. #undef MAIL_USE_POP
  80. /* Define to support Kerberos-authenticated POP mail retrieval. */
  81. #undef KERBEROS
  82. /* Define to use Kerberos 5 instead of Kerberos 4 */
  83. #undef KERBEROS5
  84. /* Define to support GSS-API in addition to (or instead of) Kerberos */
  85. #undef GSSAPI
  86. /* Define to support using a Hesiod database to find the POP server. */
  87. #undef HESIOD
  88. /* Some things figured out by the configure script, grouped as they are in
  89. configure.in. */
  90. #ifndef _ALL_SOURCE /* suppress warning if this is pre-defined */
  91. #undef _ALL_SOURCE
  92. #endif
  93. #undef HAVE_SYS_SELECT_H
  94. #undef HAVE_SYS_TIMEB_H
  95. #undef HAVE_SYS_TIME_H
  96. #undef HAVE_UNISTD_H
  97. #undef HAVE_UTIME_H
  98. #undef HAVE_LINUX_VERSION_H
  99. #undef HAVE_SYS_SYSTEMINFO_H
  100. #undef HAVE_TERMIOS_H
  101. #undef HAVE_STRINGS_H
  102. #undef HAVE_PWD_H
  103. #undef HAVE_LIBDNET
  104. #undef HAVE_LIBPTHREADS
  105. #undef HAVE_LIBRESOLV
  106. #undef HAVE_LIBXMU
  107. #undef HAVE_LIBNCURSES
  108. #undef HAVE_LIBINTL
  109. /* movemail Kerberos support */
  110. /* libraries */
  111. #undef HAVE_LIBKRB
  112. #undef HAVE_LIBKRB4
  113. #undef HAVE_LIBDES
  114. #undef HAVE_LIBDES425
  115. #undef HAVE_LIBKRB5
  116. #undef HAVE_LIBCRYPTO
  117. #undef HAVE_LIBCOM_ERR
  118. /* header files */
  119. #undef HAVE_KRB5_H
  120. #undef HAVE_DES_H
  121. #undef HAVE_KRB_H
  122. #undef HAVE_KERBEROSIV_DES_H
  123. #undef HAVE_KERBEROSIV_KRB_H
  124. #undef HAVE_KERBEROS_DES_H
  125. #undef HAVE_KERBEROS_KRB_H
  126. #undef HAVE_COM_ERR_H
  127. /* GSS-API libraries and headers */
  128. #undef HAVE_LIBGSSAPI_KRB5
  129. #undef HAVE_LIBGSSAPI
  130. #undef HAVE_GSSAPI_H
  131. /* Mail-file locking */
  132. #undef HAVE_LIBMAIL
  133. #undef HAVE_MAILLOCK_H
  134. #undef HAVE_TOUCHLOCK
  135. #undef HAVE_ALLOCA_H
  136. #undef HAVE_GETTIMEOFDAY
  137. /* If we don't have gettimeofday,
  138. the test for GETTIMEOFDAY_ONE_ARGUMENT may succeed,
  139. but we should ignore it. */
  140. #ifdef HAVE_GETTIMEOFDAY
  141. #undef GETTIMEOFDAY_ONE_ARGUMENT
  142. #endif
  143. #undef HAVE_GETHOSTNAME
  144. #undef HAVE_GETDOMAINNAME
  145. #undef HAVE_DUP2
  146. #undef HAVE_RENAME
  147. #undef HAVE_CLOSEDIR
  148. #undef TM_IN_SYS_TIME
  149. #undef HAVE_TM_ZONE
  150. /* Define to 1 if you don't have `tm_zone' but do have the external array
  151. `tzname'. */
  152. #define HAVE_TZNAME 1
  153. /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
  154. */
  155. #define HAVE_DECL_TZNAME 1
  156. #undef const
  157. #undef HAVE_LONG_FILE_NAMES
  158. #undef CRAY_STACKSEG_END
  159. #undef HAVE_LIBXBSD
  160. #undef HAVE_XRMSETDATABASE
  161. #undef HAVE_XSCREENRESOURCESTRING
  162. #undef HAVE_XSCREENNUMBEROFSCREEN
  163. #undef HAVE_XSETWMPROTOCOLS
  164. #undef HAVE_MKDIR
  165. #undef HAVE_RMDIR
  166. #undef HAVE_SYSINFO
  167. #undef HAVE_RANDOM
  168. #undef HAVE_LRAND48
  169. #undef HAVE_MEMCPY
  170. #undef HAVE_MEMMOVE
  171. #undef HAVE_MEMSET
  172. #undef HAVE_MEMCMP
  173. #undef HAVE_LOGB
  174. #undef HAVE_FREXP
  175. #undef HAVE_FMOD
  176. #undef HAVE_RINT
  177. #undef HAVE_CBRT
  178. #undef HAVE_FTIME
  179. #undef HAVE_RES_INIT /* For -lresolv on Suns. */
  180. #undef HAVE_SETSID
  181. #undef HAVE_FPATHCONF
  182. #undef HAVE_SELECT
  183. #undef HAVE_EUIDACCESS
  184. #undef HAVE_GETPAGESIZE
  185. #undef HAVE_GET_CURRENT_DIR_NAME
  186. #undef HAVE_TZSET
  187. #undef HAVE_SETLOCALE
  188. #undef HAVE_UTIMES
  189. #undef HAVE_SETRLIMIT
  190. #undef HAVE_SETPGID
  191. /* If you think about defining HAVE_GETCWD, don't: the alternative
  192. getwd is redefined on w32.c, and does not really return the current
  193. directory, to get the desired results elsewhere in Emacs */
  194. #undef HAVE_GETCWD
  195. #undef HAVE_SHUTDOWN
  196. #undef HAVE_STRFTIME
  197. /* Standard Windows strftime does not support POSIX.2 extensions. */
  198. #define STRFTIME_NO_POSIX2 1
  199. #define HAVE_SENDTO 1
  200. #define HAVE_RECVFROM 1
  201. #define HAVE_GETSOCKOPT 1
  202. #define HAVE_SETSOCKOPT 1
  203. #define HAVE_GETSOCKNAME 1
  204. #define HAVE_GETPEERNAME 1
  205. #define HAVE_SNPRINTF 1
  206. #define HAVE_LANGINFO_CODESET 1
  207. /* Local (unix) sockets are not supported. */
  208. #undef HAVE_SYS_UN_H
  209. #define LOCALTIME_CACHE
  210. #undef HAVE_INET_SOCKETS
  211. #undef HAVE_AIX_SMT_EXP
  212. /* Define if you have the ANSI `strerror' function.
  213. Otherwise you must have the variable `char *sys_errlist[]'. */
  214. #undef HAVE_STRERROR
  215. /* Define if `sys_siglist' is declared by <signal.h>. */
  216. #undef SYS_SIGLIST_DECLARED
  217. /* Define if `struct utimbuf' is declared by <utime.h>. */
  218. #undef HAVE_STRUCT_UTIMBUF
  219. /* Define if `struct timeval' is declared by <sys/time.h>. */
  220. #undef HAVE_TIMEVAL
  221. /* Define to 1 if you have the <getopt.h> header file. */
  222. #undef HAVE_GETOPT_H
  223. /* Define to 1 if you have the `getopt_long_only' function. */
  224. #undef HAVE_GETOPT_LONG_ONLY
  225. /* Preprocessor macros needed for gnulib imports. */
  226. /* Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works. */
  227. #ifdef __GNUC__
  228. #define HAVE_ATTRIBUTE_ALIGNED 1
  229. #else
  230. #undef HAVE_ATTRIBUTE_ALIGNED
  231. #endif
  232. /* Define to 1 if strtold conforms to C99. */
  233. #ifdef __GNUC__
  234. #define HAVE_C99_STRTOLD 1
  235. #else
  236. #undef HAVE_C99_STRTOLD
  237. #endif
  238. /* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
  239. */
  240. #define HAVE_DECL_GETENV 1
  241. /* Define to 1 if you have the declaration of `localtime_r', and to 0 if you
  242. don't. */
  243. #undef HAVE_DECL_LOCALTIME_R
  244. /* Define to 1 if you have the `localtime_r' function. */
  245. #undef HAVE_LOCALTIME_R
  246. /* Define to 1 if you have the declaration of `strtoll', and to 0 if you
  247. don't. */
  248. #define HAVE_DECL_STRTOLL 1
  249. /* Define to 1 if you have the declaration of `strtoull', and to 0 if you
  250. don't. */
  251. #define HAVE_DECL_STRTOULL 1
  252. /* Define to 1 if you have the declaration of `strtoumax', and to 0 if you
  253. don't. */
  254. #define HAVE_DECL_STRTOUMAX 1
  255. /* Define to 1 if you have the `strtoull' function. */
  256. #define HAVE_STRTOULL 1
  257. /* Define to 1 if you have the `strtoumax' function. */
  258. #define HAVE_STRTOUMAX 1
  259. /* Define if you have the 'wchar_t' type. */
  260. #define HAVE_WCHAR_T 1
  261. /* Name of package */
  262. #define PACKAGE "emacs"
  263. /* Version number of package */
  264. #define VERSION "24.2"
  265. /* Define to `__inline__' or `__inline' if that's what the C compiler
  266. calls it, or to nothing if 'inline' is not supported under any name. */
  267. #ifdef __GNUC__
  268. #ifndef __cplusplus
  269. #undef inline
  270. #endif
  271. #else /* MSVC */
  272. #define inline __inline
  273. #endif
  274. /* Define to the equivalent of the C99 'restrict' keyword, or to
  275. nothing if this is not supported. Do not define if restrict is
  276. supported directly. */
  277. #ifdef __GNUC__
  278. # define restrict __restrict__
  279. #else
  280. # define restrict
  281. #endif
  282. /* `mode_t' is not defined for MSVC. Define. */
  283. #ifdef _MSC_VER
  284. typedef unsigned short mode_t;
  285. #endif
  286. /* A va_copy replacement for MSVC. */
  287. #ifdef _MSC_VER
  288. # ifdef _WIN64
  289. # ifndef va_copy /* Need to be checked (?) */
  290. # define va_copy(d,s) ((d) = (s))
  291. # endif
  292. # else /* not _WIN64 */
  293. # define va_copy(d,s) ((d) = (s))
  294. # endif /* not _WIN64 */
  295. #endif /* _MSC_VER */
  296. /* Define as a marker that can be attached to declarations that might not
  297. be used. This helps to reduce warnings, such as from
  298. GCC -Wunused-parameter. */
  299. #if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
  300. # define _GL_UNUSED __attribute__ ((__unused__))
  301. #else
  302. # define _GL_UNUSED
  303. #endif
  304. /* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
  305. is a misnomer outside of parameter lists. */
  306. #define _UNUSED_PARAMETER_ _GL_UNUSED
  307. /* End of gnulib-related stuff. */
  308. #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
  309. #define NO_INLINE __attribute__((noinline))
  310. #else
  311. #define NO_INLINE
  312. #endif
  313. #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
  314. #define EXTERNALLY_VISIBLE __attribute__((externally_visible))
  315. #else
  316. #define EXTERNALLY_VISIBLE
  317. #endif
  318. #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
  319. # define ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
  320. #else
  321. # define ATTRIBUTE_FORMAT(spec) /* empty */
  322. #endif
  323. #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
  324. # define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
  325. ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument))
  326. #else
  327. # define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
  328. ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
  329. #endif
  330. #if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
  331. #define HAVE___BUILTIN_UNWIND_INIT 1
  332. #endif
  333. #undef EMACS_CONFIGURATION
  334. #undef EMACS_CONFIG_OPTIONS
  335. /* The configuration script defines opsysfile to be the name of the
  336. s/SYSTEM.h file that describes the system type you are using. The file
  337. is chosen based on the configuration name you give.
  338. See the file ../etc/MACHINES for a list of systems and the
  339. configuration names to use for them.
  340. See s/template.h for documentation on writing s/SYSTEM.h files. */
  341. #undef config_opsysfile
  342. #include "s/ms-w32.h"
  343. /* The configuration script defines machfile to be the name of the
  344. m/MACHINE.h file that describes the machine you are using. The file is
  345. chosen based on the configuration name you give.
  346. See the file ../etc/MACHINES for a list of machines and the
  347. configuration names to use for them.
  348. See m/template.h for documentation on writing m/MACHINE.h files. */
  349. #undef config_machfile
  350. #include "m/intel386.h"
  351. /* Define `subprocesses' should be defined if you want to
  352. have code for asynchronous subprocesses
  353. (as used in M-x compile and M-x shell).
  354. Only MSDOS does not support this. */
  355. #define subprocesses
  356. /* Define STACK_DIRECTION here, but not if m/foo.h did. */
  357. #ifndef STACK_DIRECTION
  358. #undef STACK_DIRECTION
  359. #endif
  360. #ifdef emacs /* Don't do this for lib-src. */
  361. /* Tell regex.c to use a type compatible with Emacs. */
  362. #define RE_TRANSLATE_TYPE Lisp_Object
  363. #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
  364. #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0)
  365. #endif
  366. #define my_strftime nstrftime /* for strftime.c */
  367. /* Define to the type of st_nlink in struct stat, or a supertype. */
  368. #define nlink_t short
  369. #ifndef WINDOWSNT
  370. /* Some of the files of Emacs which are intended for use with other
  371. programs assume that if you have a config.h file, you must declare
  372. the type of getenv. */
  373. extern char *getenv ();
  374. #endif
  375. #endif /* EMACS_CONFIG_H */
  376. /* These default definitions are good for almost all machines.
  377. The exceptions override them in m/MACHINE.h. */
  378. #ifndef BITS_PER_CHAR
  379. #define BITS_PER_CHAR 8
  380. #endif
  381. #ifndef BITS_PER_SHORT
  382. #define BITS_PER_SHORT 16
  383. #endif
  384. /* Note that lisp.h uses this in a preprocessor conditional, so it
  385. would not work to use sizeof. That being so, we do all of them
  386. without sizeof, for uniformity's sake. */
  387. #ifndef BITS_PER_INT
  388. #define BITS_PER_INT 32
  389. #endif
  390. #ifndef BITS_PER_LONG
  391. #define BITS_PER_LONG 32
  392. #endif
  393. #if defined (__MINGW32__) || _MSC_VER >= 1400
  394. /* Define to 1 if the system has the type `long long int'. */
  395. # define HAVE_LONG_LONG_INT 1
  396. /* Define to 1 if the system has the type `unsigned long long int'. */
  397. # define HAVE_UNSIGNED_LONG_LONG_INT 1
  398. #elif _MSC_VER >= 1200
  399. /* Temporarily disable wider-than-pointer integers until they're tested more.
  400. Build with CFLAGS='-DWIDE_EMACS_INT' to try them out. */
  401. /* #undef WIDE_EMACS_INT */
  402. # ifdef WIDE_EMACS_INT
  403. /* Use pre-C99-style 64-bit integers. */
  404. # define EMACS_INT __int64
  405. # define BITS_PER_EMACS_INT 64
  406. # define pI "I64"
  407. # endif
  408. #endif
  409. #ifndef POINTER_TYPE
  410. #define POINTER_TYPE void
  411. #endif
  412. #ifndef PROTOTYPES
  413. #define PROTOTYPES 1
  414. #endif
  415. #include "string.h"
  416. #ifdef HAVE_STRINGS_H
  417. #include "strings.h"
  418. #endif
  419. #include <stdlib.h>
  420. #ifndef NO_RETURN
  421. #if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR >= 5))
  422. #define NO_RETURN __attribute__ ((__noreturn__))
  423. #else
  424. #define NO_RETURN /* nothing */
  425. #endif
  426. #endif
  427. /* Redefine abort. */
  428. #ifdef HAVE_NTGUI
  429. #define abort w32_abort
  430. void w32_abort (void) NO_RETURN;
  431. #endif
  432. /* Prevent accidental use of features unavailable in
  433. older Windows versions we still support. */
  434. #define _WIN32_WINNT 0x0400
  435. /* Make a leaner executable. */
  436. #define WIN32_LEAN_AND_MEAN 1