config.in 32.3 KB
Newer Older
Andreas Schwab's avatar
Andreas Schwab committed
1 2
/* src/config.in.  Generated from configure.in by autoheader.  */

Dave Love's avatar
Dave Love committed
3
/* GNU Emacs site configuration template file.
Glenn Morris's avatar
Glenn Morris committed
4
   Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007
Eli Zaretskii's avatar
Eli Zaretskii committed
5
             Free Software Foundation, Inc.
Jim Blandy's avatar
Jim Blandy committed
6 7 8

This file is part of GNU Emacs.

Richard M. Stallman's avatar
Richard M. Stallman committed
9 10
GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3, or (at your option)
Richard M. Stallman's avatar
Richard M. Stallman committed
12 13
any later version.

Jim Blandy's avatar
Jim Blandy committed
14
GNU Emacs is distributed in the hope that it will be useful,
Richard M. Stallman's avatar
Richard M. Stallman committed
15 16 17 18
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Andreas Schwab's avatar
Andreas Schwab committed
19 20
You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING.  If not, write to the
Lute Kamstra's avatar
Lute Kamstra committed
21 22
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.  */
Andreas Schwab's avatar
Andreas Schwab committed
23 24


Dave Love's avatar
Dave Love committed
25
/* No code in Emacs #includes config.h twice, but some bits of code
26
   intended to work with other packages as well (like gmalloc.c)
Andreas Schwab's avatar
Andreas Schwab committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
   think they can include it as many times as they like.  */
#ifndef EMACS_CONFIG_H
#define EMACS_CONFIG_H


/* Define to 1 if the mktime function is broken. */
#undef BROKEN_MKTIME

/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
   systems. This function is required for `alloca.c' support on those systems.
   */
#undef CRAY_STACKSEG_END

/* Define to 1 if using `alloca.c'. */
#undef C_ALLOCA

/* Define to 1 if using `getloadavg.c'. */
#undef C_GETLOADAVG

/* Define C_SWITCH_X_SITE to contain any special flags your compiler may need
   to deal with X Windows. For instance, if you've defined HAVE_X_WINDOWS
   above and your X include files aren't in a place that your compiler can
   find on its own, you might want to add "-I/..." or something similar. */
#undef C_SWITCH_X_SITE

/* Define to 1 for DGUX with <sys/dg_sys_info.h>. */
#undef DGUX

/* Define to 1 if you are using the GNU C Library. */
#undef DOUG_LEA_MALLOC

/* Define to the canonical Emacs configuration name. */
#undef EMACS_CONFIGURATION

/* Define to the options passed to configure. */
#undef EMACS_CONFIG_OPTIONS

/* Define to 1 if the `getloadavg' function needs to be run setuid or setgid.
   */
#undef GETLOADAVG_PRIVILEGED

Miles Bader's avatar
Miles Bader committed
68 69 70
/* Define to 1 if the `getpgrp' function requires zero arguments. */
#undef GETPGRP_VOID

Andreas Schwab's avatar
Andreas Schwab committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
/* Define to 1 if gettimeofday accepts only one argument. */
#undef GETTIMEOFDAY_ONE_ARGUMENT

/* Define to 1 if you want to use the GNU memory allocator. */
#undef GNU_MALLOC

/* Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists. */
#undef HAVE_AIX_SMT_EXP

/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM

/* Define to 1 if you have `alloca', as a function or macro. */
#undef HAVE_ALLOCA

/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
   */
#undef HAVE_ALLOCA_H

90 91 92
/* Define to 1 if ALSA is available. */
#undef HAVE_ALSA

Andreas Schwab's avatar
Andreas Schwab committed
93 94 95 96 97 98
/* Define to 1 if you have the `bcmp' function. */
#undef HAVE_BCMP

/* Define to 1 if you have the `bcopy' function. */
#undef HAVE_BCOPY

Dave Love's avatar
Dave Love committed
99 100 101
/* Define to 1 if you have the `bzero' function. */
#undef HAVE_BZERO

102 103 104
/* Define to 1 if you are using the Carbon API on Mac OS X. */
#undef HAVE_CARBON

Andreas Schwab's avatar
Andreas Schwab committed
105 106 107 108 109 110 111 112 113 114 115 116
/* Define to 1 if you have the `cbrt' function. */
#undef HAVE_CBRT

/* Define to 1 if you have the `closedir' function. */
#undef HAVE_CLOSEDIR

/* Define to 1 if you have the <coff.h> header file. */
#undef HAVE_COFF_H

/* Define to 1 if you have the <com_err.h> header file. */
#undef HAVE_COM_ERR_H

Dave Love's avatar
Dave Love committed
117 118 119
/* Define to 1 if you have /usr/lib/crti.o. */
#undef HAVE_CRTIN

Miles Bader's avatar
Miles Bader committed
120 121 122 123
/* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
   don't. */
#undef HAVE_DECL_SYS_SIGLIST

Eli Zaretskii's avatar
Eli Zaretskii committed
124 125 126 127
/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
   */
#undef HAVE_DECL_TZNAME

Miles Bader's avatar
Miles Bader committed
128 129 130 131
/* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you
   don't. */
#undef HAVE_DECL___SYS_SIGLIST

Andreas Schwab's avatar
Andreas Schwab committed
132 133 134 135 136 137
/* Define to 1 if you have the <des.h> header file. */
#undef HAVE_DES_H

/* Define to 1 if dynamic ptys are supported. */
#undef HAVE_DEV_PTMX

Andreas Schwab's avatar
Andreas Schwab committed
138 139 140
/* Define to 1 if you have the `difftime' function. */
#undef HAVE_DIFFTIME

Andreas Schwab's avatar
Andreas Schwab committed
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
/* Define to 1 if you have the `dup2' function. */
#undef HAVE_DUP2

/* Define to 1 if you have the `euidaccess' function. */
#undef HAVE_EUIDACCESS

/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H

/* Define to 1 if you have the `fmod' function. */
#undef HAVE_FMOD

/* Define to 1 if you have the `fork' function. */
#undef HAVE_FORK

/* Define to 1 if you have the `fpathconf' function. */
#undef HAVE_FPATHCONF

/* Define to 1 if you have the `frexp' function. */
#undef HAVE_FREXP

/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#undef HAVE_FSEEKO

Dave Love's avatar
Dave Love committed
165 166 167
/* Define to 1 if you have the `fsync' function. */
#undef HAVE_FSYNC

Andreas Schwab's avatar
Andreas Schwab committed
168 169 170 171 172 173
/* Define to 1 if you have the `ftime' function. */
#undef HAVE_FTIME

/* Define to 1 if you have the `gai_strerror' function. */
#undef HAVE_GAI_STRERROR

Jan Djärv's avatar
Jan Djärv committed
174 175 176
/* Define to 1 if you have the `gdk_display_open' function. */
#undef HAVE_GDK_DISPLAY_OPEN

Andreas Schwab's avatar
Andreas Schwab committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
/* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO

/* Define to 1 if you have the `getcwd' function. */
#undef HAVE_GETCWD

/* Define to 1 if you have the `getdelim' function. */
#undef HAVE_GETDELIM

/* Define to 1 if you have the `getdomainname' function. */
#undef HAVE_GETDOMAINNAME

/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME

/* Define to 1 if you have the `getline' function. */
#undef HAVE_GETLINE

/* Define to 1 if you have the `getloadavg' function. */
#undef HAVE_GETLOADAVG

Paul Eggert's avatar
Paul Eggert committed
198 199 200 201 202 203
/* Define to 1 if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H

/* Define to 1 if you have the `getopt_long_only' function. */
#undef HAVE_GETOPT_LONG_ONLY

Andreas Schwab's avatar
Andreas Schwab committed
204 205 206 207 208 209 210 211 212
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE

/* Define to 1 if you have the `getpeername' function. */
#undef HAVE_GETPEERNAME

/* Define to 1 if you have the `getpt' function. */
#undef HAVE_GETPT

Eli Zaretskii's avatar
Eli Zaretskii committed
213 214 215
/* Define to 1 if you have the `getrusage' function. */
#undef HAVE_GETRUSAGE

Andreas Schwab's avatar
Andreas Schwab committed
216 217 218 219 220 221 222 223 224 225 226 227
/* Define to 1 if you have the `getsockname' function. */
#undef HAVE_GETSOCKNAME

/* Define to 1 if you have the `getsockopt' function. */
#undef HAVE_GETSOCKOPT

/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY

/* Define to 1 if you have the `getwd' function. */
#undef HAVE_GETWD

228 229 230
/* Define to 1 if you have the `get_current_dir_name' function. */
#undef HAVE_GET_CURRENT_DIR_NAME

Glenn Morris's avatar
Glenn Morris committed
231
/* Define to 1 if you have a gif library (default -lgif; otherwise specify
232
   with LIBGIF). */
Andreas Schwab's avatar
Andreas Schwab committed
233 234
#undef HAVE_GIF

235 236
/* Define to 1 if you have the gpm library (-lgpm). */
#undef HAVE_GPM
237

Andreas Schwab's avatar
Andreas Schwab committed
238 239 240
/* Define to 1 if you have the `grantpt' function. */
#undef HAVE_GRANTPT

241 242 243
/* Define to 1 if using D-BUS. */
#undef HAVE_DBUS

Jan Djärv's avatar
Jan Djärv committed
244 245 246
/* Define to 1 if using GTK. */
#undef HAVE_GTK

Jan Djärv's avatar
Jan Djärv committed
247 248 249
/* Define to 1 if you have GTK and pthread (-lpthread). */
#undef HAVE_GTK_AND_PTHREAD

250 251 252 253 254 255 256 257 258
/* Define to 1 if GTK has both file selection and chooser dialog. */
#undef HAVE_GTK_FILE_BOTH

/* Define to 1 if you have the `gtk_file_chooser_dialog_new' function. */
#undef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW

/* Define to 1 if you have the `gtk_file_selection_new' function. */
#undef HAVE_GTK_FILE_SELECTION_NEW

Chong Yidong's avatar
Chong Yidong committed
259 260 261
/* Define to 1 if you have the `gtk_main' function. */
#undef HAVE_GTK_MAIN

Jan Djärv's avatar
Jan Djärv committed
262 263 264
/* Define to 1 if GTK can handle more than one display. */
#undef HAVE_GTK_MULTIDISPLAY

Andreas Schwab's avatar
Andreas Schwab committed
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
/* Define to 1 if netdb.h declares h_errno. */
#undef HAVE_H_ERRNO

/* Define to 1 if you have the `index' function. */
#undef HAVE_INDEX

/* Define to 1 if you have inet sockets. */
#undef HAVE_INET_SOCKETS

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the jpeg library (-ljpeg). */
#undef HAVE_JPEG

/* Define to 1 if you have the <kerberosIV/des.h> header file. */
#undef HAVE_KERBEROSIV_DES_H

/* Define to 1 if you have the <kerberosIV/krb.h> header file. */
#undef HAVE_KERBEROSIV_KRB_H

/* Define to 1 if you have the <kerberos/des.h> header file. */
#undef HAVE_KERBEROS_DES_H

/* Define to 1 if you have the <kerberos/krb.h> header file. */
#undef HAVE_KERBEROS_KRB_H

/* Define to 1 if you have the <krb5.h> header file. */
#undef HAVE_KRB5_H

/* Define to 1 if you have the <krb.h> header file. */
#undef HAVE_KRB_H

Andreas Schwab's avatar
Andreas Schwab committed
298 299 300
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
#undef HAVE_LANGINFO_CODESET

Andreas Schwab's avatar
Andreas Schwab committed
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
/* Define to 1 if you have the `com_err' library (-lcom_err). */
#undef HAVE_LIBCOM_ERR

/* Define to 1 if you have the `crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO

/* Define to 1 if you have the `des' library (-ldes). */
#undef HAVE_LIBDES

/* Define to 1 if you have the `des425' library (-ldes425). */
#undef HAVE_LIBDES425

/* Define to 1 if you have the `dgc' library (-ldgc). */
#undef HAVE_LIBDGC

/* Define to 1 if you have the `dnet' library (-ldnet). */
#undef HAVE_LIBDNET

/* Define to 1 if you have the hesiod library (-lhesiod). */
#undef HAVE_LIBHESIOD

/* Define to 1 if you have the `intl' library (-lintl). */
#undef HAVE_LIBINTL

/* Define to 1 if you have the `k5crypto' library (-lk5crypto). */
#undef HAVE_LIBK5CRYPTO

/* Define to 1 if you have the `krb' library (-lkrb). */
#undef HAVE_LIBKRB

/* Define to 1 if you have the `krb4' library (-lkrb4). */
#undef HAVE_LIBKRB4

/* Define to 1 if you have the `krb5' library (-lkrb5). */
#undef HAVE_LIBKRB5

/* Define to 1 if you have the `kstat' library (-lkstat). */
#undef HAVE_LIBKSTAT

/* Define to 1 if you have the `lockfile' library (-llockfile). */
#undef HAVE_LIBLOCKFILE

/* Define to 1 if you have the `m' library (-lm). */
#undef HAVE_LIBM

/* Define to 1 if you have the `mail' library (-lmail). */
#undef HAVE_LIBMAIL

/* Define to 1 if you have the `ncurses' library (-lncurses). */
#undef HAVE_LIBNCURSES

Dave Love's avatar
Dave Love committed
352 353 354
/* Define to 1 if you have the <libpng/png.h> header file. */
#undef HAVE_LIBPNG_PNG_H

Andreas Schwab's avatar
Andreas Schwab committed
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
/* Define to 1 if you have the `pthreads' library (-lpthreads). */
#undef HAVE_LIBPTHREADS

/* Define to 1 if you have the resolv library (-lresolv). */
#undef HAVE_LIBRESOLV

/* Define to 1 if you have the `Xext' library (-lXext). */
#undef HAVE_LIBXEXT

/* Define to 1 if you have the `Xmu' library (-lXmu). */
#undef HAVE_LIBXMU

/* Define to 1 if you have the Xp library (-lXp). */
#undef HAVE_LIBXP

/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H

/* Define to 1 if you have the <linux/version.h> header file. */
#undef HAVE_LINUX_VERSION_H

Dave Love's avatar
Dave Love committed
376 377 378
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H

Andreas Schwab's avatar
Andreas Schwab committed
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
/* Define to 1 if you have the `logb' function. */
#undef HAVE_LOGB

/* Define to 1 if you support file names longer than 14 characters. */
#undef HAVE_LONG_FILE_NAMES

/* Define to 1 if you have the `lrand48' function. */
#undef HAVE_LRAND48

/* Define to 1 if you have the <machine/soundcard.h> header file. */
#undef HAVE_MACHINE_SOUNDCARD_H

/* Define to 1 if you have the <mach/mach.h> header file. */
#undef HAVE_MACH_MACH_H

/* Define to 1 if you have the <maillock.h> header file. */
#undef HAVE_MAILLOCK_H

397 398 399
/* Define to 1 if you have the <malloc/malloc.h> header file. */
#undef HAVE_MALLOC_MALLOC_H

Andreas Schwab's avatar
Andreas Schwab committed
400 401 402 403 404 405 406 407 408
/* Define to 1 if you have the `mblen' function. */
#undef HAVE_MBLEN

/* Define to 1 if you have the `mbrlen' function. */
#undef HAVE_MBRLEN

/* Define to 1 if you have the `mbsinit' function. */
#undef HAVE_MBSINIT

Dave Love's avatar
Dave Love committed
409 410 411
/* Define to 1 if <wchar.h> declares mbstate_t. */
#undef HAVE_MBSTATE_T

Rob Browning's avatar
Rob Browning committed
412 413 414
/* Define to 1 if you have the `memcmp' function. */
#undef HAVE_MEMCMP

Dave Love's avatar
Dave Love committed
415 416 417
/* Define to 1 if you have the `memcpy' function. */
#undef HAVE_MEMCPY

Dave Love's avatar
Dave Love committed
418 419 420
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE

Andreas Schwab's avatar
Andreas Schwab committed
421 422 423
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

Dave Love's avatar
Dave Love committed
424 425 426
/* Define to 1 if you have the `mempcpy' function. */
#undef HAVE_MEMPCPY

Miles Bader's avatar
Miles Bader committed
427 428 429
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET

Andreas Schwab's avatar
Andreas Schwab committed
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
/* Define to 1 if you have mouse menus. (This is automatic if you use X, but
   the option to specify it remains.) It is also defined with other window
   systems that support xmenu.c. */
#undef HAVE_MENUS

/* Define to 1 if you have the `mkdir' function. */
#undef HAVE_MKDIR

/* Define to 1 if you have the `mkstemp' function. */
#undef HAVE_MKSTEMP

/* Define to 1 if you have the `mktime' function. */
#undef HAVE_MKTIME

/* Define to 1 if you have a working `mmap' system call. */
#undef HAVE_MMAP

/* Define to 1 if you have Motif 2.1 or newer. */
#undef HAVE_MOTIF_2_1

Dave Love's avatar
Dave Love committed
450 451 452
/* Define to 1 if you have the `mremap' function. */
#undef HAVE_MREMAP

Kim F. Storm's avatar
Kim F. Storm committed
453 454 455
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H

Andreas Schwab's avatar
Andreas Schwab committed
456 457 458
/* Define to 1 if you have the <nlist.h> header file. */
#undef HAVE_NLIST_H

459 460 461
/* Define to 1 if personality LINUX32 can be set. */
#undef HAVE_PERSONALITY_LINUX32

Andreas Schwab's avatar
Andreas Schwab committed
462 463 464
/* Define to 1 if you have the png library (-lpng). */
#undef HAVE_PNG

Dave Love's avatar
Dave Love committed
465 466 467 468 469 470
/* Define to 1 if you have the <png.h> header file. */
#undef HAVE_PNG_H

/* Define to 1 if you have the `posix_memalign' function. */
#undef HAVE_POSIX_MEMALIGN

Andreas Schwab's avatar
Andreas Schwab committed
471 472 473
/* Define to 1 if you have the `pstat_getdynamic' function. */
#undef HAVE_PSTAT_GETDYNAMIC

Jan Djärv's avatar
Jan Djärv committed
474 475 476
/* Define to 1 if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H

Dave Love's avatar
Dave Love committed
477 478 479
/* Define to 1 if you have the <pty.h> header file. */
#undef HAVE_PTY_H

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
480 481 482
/* Define to 1 if you have the <pwd.h> header file. */
#undef HAVE_PWD_H

Andreas Schwab's avatar
Andreas Schwab committed
483 484 485 486 487 488 489 490 491
/* Define to 1 if you have the `random' function. */
#undef HAVE_RANDOM

/* Define to 1 if you have the `recvfrom' function. */
#undef HAVE_RECVFROM

/* Define to 1 if you have the `rename' function. */
#undef HAVE_RENAME

Glenn Morris's avatar
Glenn Morris committed
492
/* Define to 1 if res_init is available. */
Andreas Schwab's avatar
Andreas Schwab committed
493 494 495 496 497 498 499 500 501 502 503
#undef HAVE_RES_INIT

/* Define to 1 if you have the `rindex' function. */
#undef HAVE_RINDEX

/* Define to 1 if you have the `rint' function. */
#undef HAVE_RINT

/* Define to 1 if you have the `rmdir' function. */
#undef HAVE_RMDIR

Glenn Morris's avatar
Glenn Morris committed
504 505 506
/* Define to 1 if using librsvg. */
#undef HAVE_RSVG

Andreas Schwab's avatar
Andreas Schwab committed
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT

/* Define to 1 if you have the `sendto' function. */
#undef HAVE_SENDTO

/* Define to 1 if you have the `setitimer' function. */
#undef HAVE_SETITIMER

/* Define to 1 if you have the `setlocale' function. */
#undef HAVE_SETLOCALE

/* Define to 1 if you have the `setpgid' function. */
#undef HAVE_SETPGID

/* Define to 1 if you have the `setrlimit' function. */
#undef HAVE_SETRLIMIT

/* Define to 1 if you have the `setsid' function. */
#undef HAVE_SETSID

/* Define to 1 if you have the `setsockopt' function. */
#undef HAVE_SETSOCKOPT

/* Define to 1 if you have the `shutdown' function. */
#undef HAVE_SHUTDOWN

Dave Love's avatar
Dave Love committed
534 535 536
/* Define to 1 if the system has the type `size_t'. */
#undef HAVE_SIZE_T

Andreas Schwab's avatar
Andreas Schwab committed
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
/* Define to 1 if you have the <soundcard.h> header file. */
#undef HAVE_SOUNDCARD_H

/* Define to 1 if `speed_t' is declared by <termios.h>. */
#undef HAVE_SPEED_T

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

/* Define to 1 if you have the <stdio_ext.h> header file. */
#undef HAVE_STDIO_EXT_H

/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H

/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR

/* Define to 1 if you have the `strftime' function. */
#undef HAVE_STRFTIME

/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H

/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H

/* Define to 1 if you have the `strsignal' function. */
#undef HAVE_STRSIGNAL

Dave Love's avatar
#  
Dave Love committed
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581
/* Define to 1 if `ifr_addr' is member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_ADDR

/* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR

/* Define to 1 if `ifr_flags' is member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_FLAGS

/* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_HWADDR

/* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_NETMASK

Andreas Schwab's avatar
Andreas Schwab committed
582 583 584 585 586 587 588 589 590
/* Define to 1 if `n_un.n_name' is member of `struct nlist'. */
#undef HAVE_STRUCT_NLIST_N_UN_N_NAME

/* Define to 1 if `tm_zone' is member of `struct tm'. */
#undef HAVE_STRUCT_TM_TM_ZONE

/* Define to 1 if `struct utimbuf' is declared by <utime.h>. */
#undef HAVE_STRUCT_UTIMBUF

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
591 592 593
/* Define to 1 if you have the `sync' function. */
#undef HAVE_SYNC

Andreas Schwab's avatar
Andreas Schwab committed
594 595 596
/* Define to 1 if you have the `sysinfo' function. */
#undef HAVE_SYSINFO

Kim F. Storm's avatar
Kim F. Storm committed
597 598 599
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H

Dave Love's avatar
Dave Love committed
600 601 602 603 604 605
/* Define to 1 if you have the <sys/mman.h> header file. */
#undef HAVE_SYS_MMAN_H

/* Define to 1 if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H

Dave Love's avatar
Dave Love committed
606 607 608
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H

Andreas Schwab's avatar
Andreas Schwab committed
609 610 611
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H

Andreas Schwab's avatar
Andreas Schwab committed
612 613 614
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H

Andreas Schwab's avatar
Andreas Schwab committed
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
/* Define to 1 if you have the <sys/soundcard.h> header file. */
#undef HAVE_SYS_SOUNDCARD_H

/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H

/* Define to 1 if you have the <sys/systeminfo.h> header file. */
#undef HAVE_SYS_SYSTEMINFO_H

/* Define to 1 if you have the <sys/timeb.h> header file. */
#undef HAVE_SYS_TIMEB_H

/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H

/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if you have the <sys/un.h> header file. */
#undef HAVE_SYS_UN_H

636 637 638
/* Define to 1 if you have the <sys/utsname.h> header file. */
#undef HAVE_SYS_UTSNAME_H

Dave Love's avatar
Dave Love committed
639 640 641
/* Define to 1 if you have the <sys/vlimit.h> header file. */
#undef HAVE_SYS_VLIMIT_H

Andreas Schwab's avatar
Andreas Schwab committed
642 643 644
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H

645 646 647
/* Define to 1 if you have the <sys/_mbstate_t.h> header file. */
#undef HAVE_SYS__MBSTATE_T_H

Andreas Schwab's avatar
Andreas Schwab committed
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
/* Define to 1 if you have the <termcap.h> header file. */
#undef HAVE_TERMCAP_H

/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H

/* Define to 1 if you have the <term.h> header file. */
#undef HAVE_TERM_H

/* Define to 1 if you have the tiff library (-ltiff). */
#undef HAVE_TIFF

/* Define to 1 if `struct timeval' is declared by <sys/time.h>. */
#undef HAVE_TIMEVAL

/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */
#undef HAVE_TM_GMTOFF

/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
   `HAVE_STRUCT_TM_TM_ZONE' instead. */
#undef HAVE_TM_ZONE

/* Define to 1 if you have the `touchlock' function. */
#undef HAVE_TOUCHLOCK

/* Define to 1 if you don't have `tm_zone' but do have the external array
   `tzname'. */
#undef HAVE_TZNAME

/* Define to 1 if you have the `tzset' function. */
#undef HAVE_TZSET

/* Define to 1 if you have the `ualarm' function. */
#undef HAVE_UALARM

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Define to 1 if you have the `utimes' function. */
#undef HAVE_UTIMES

/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H

/* Define to 1 if you have the `vfork' function. */
#undef HAVE_VFORK

/* Define to 1 if you have the <vfork.h> header file. */
#undef HAVE_VFORK_H

/* Define to 1 if `fork' works. */
#undef HAVE_WORKING_FORK

/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK

/* Define to 1 if you want to use version 11 of X windows. Otherwise, Emacs
   expects to use version 10. */
#undef HAVE_X11

/* Define to 1 if you have the X11R6 or newer version of Xlib. */
#undef HAVE_X11R6

/* Define to 1 if you have the X11R6 or newer version of Xt. */
#undef HAVE_X11XTR6

Chong Yidong's avatar
Chong Yidong committed
714 715 716
/* Define to 1 if the file /usr/lib64 exists. */
#undef HAVE_X86_64_LIB64_DIR

Andreas Schwab's avatar
Andreas Schwab committed
717 718 719 720 721 722
/* Define to 1 if you have the Xaw3d library (-lXaw3d). */
#undef HAVE_XAW3D

/* Define to 1 if you're using XFree386. */
#undef HAVE_XFREE386

Jan Djärv's avatar
Jan Djärv committed
723 724 725
/* Define to 1 if you have the Xft library. */
#undef HAVE_XFT

Richard M. Stallman's avatar
Richard M. Stallman committed
726 727 728
/* Define to 1 if XIM is available */
#undef HAVE_XIM

Andreas Schwab's avatar
Andreas Schwab committed
729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774
/* Define to 1 if you have the XkbGetKeyboard function. */
#undef HAVE_XKBGETKEYBOARD

/* Define to 1 if you have the Xpm libary (-lXpm). */
#undef HAVE_XPM

/* Define to 1 if you have the `XrmSetDatabase' function. */
#undef HAVE_XRMSETDATABASE

/* Define to 1 if you have the `XScreenNumberOfScreen' function. */
#undef HAVE_XSCREENNUMBEROFSCREEN

/* Define to 1 if you have the `XScreenResourceString' function. */
#undef HAVE_XSCREENRESOURCESTRING

/* Define to 1 if you have the `XSetWMProtocols' function. */
#undef HAVE_XSETWMPROTOCOLS

/* Define to 1 if you have the SM library (-lSM). */
#undef HAVE_X_SM

/* Define to 1 if you want to use the X window system. */
#undef HAVE_X_WINDOWS

/* Define to 1 if you have the `__fpending' function. */
#undef HAVE___FPENDING

/* Define to support using a Hesiod database to find the POP server. */
#undef HESIOD

/* Define to support Kerberos-authenticated POP mail retrieval. */
#undef KERBEROS

/* Define to use Kerberos 5 instead of Kerberos 4. */
#undef KERBEROS5

/* Define LD_SWITCH_X_SITE to contain any special flags your loader may need
   to deal with X Windows. For instance, if you've defined HAVE_X_WINDOWS
   above and your X libraries aren't in a place that your loader can find on
   its own, you might want to add "-L/..." or something similar. */
#undef LD_SWITCH_X_SITE

/* Define LD_SWITCH_X_SITE_AUX with an -R option in case it's needed (for
   Solaris, for example). */
#undef LD_SWITCH_X_SITE_AUX

Glenn Morris's avatar
Glenn Morris committed
775
/* Compiler option to link with the gif library (if not -lgif). */
Glenn Morris's avatar
Glenn Morris committed
776 777
#undef LIBGIF

Andreas Schwab's avatar
Andreas Schwab committed
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818
/* Define to 1 if localtime caches TZ. */
#undef LOCALTIME_CACHE

/* Define to support POP mail retrieval. */
#undef MAIL_USE_POP

/* Define to 1 if your `struct nlist' has an `n_un' member. Obsolete, depend
   on `HAVE_STRUCT_NLIST_N_UN_N_NAME */
#undef NLIST_NAME_UNION

/* Define to 1 if you don't have struct exception in math.h. */
#undef NO_MATHERR

/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT

/* Define to the full name of this package. */
#undef PACKAGE_NAME

/* Define to the full name and version of this package. */
#undef PACKAGE_STRING

/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME

/* Define to the version of this package. */
#undef PACKAGE_VERSION

/* Define as `void' if your compiler accepts `void *'; otherwise define as
   `char'. */
#undef POINTER_TYPE

/* Define to 1 if the C compiler supports function prototypes. */
#undef PROTOTYPES

/* Define REL_ALLOC if you want to use the relocating allocator for buffer
   space. */
#undef REL_ALLOC

/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
Jim Blandy's avatar
Jim Blandy committed
819

Andreas Schwab's avatar
Andreas Schwab committed
820 821
/* If using the C implementation of alloca, define if you know the
   direction of stack growth for your system; otherwise it will be
Eli Zaretskii's avatar
Eli Zaretskii committed
822
   automatically deduced at runtime.
Paul Eggert's avatar
Paul Eggert committed
823 824 825
	STACK_DIRECTION > 0 => grows toward higher addresses
	STACK_DIRECTION < 0 => grows toward lower addresses
	STACK_DIRECTION = 0 => direction of growth unknown */
Andreas Schwab's avatar
Andreas Schwab committed
826
#undef STACK_DIRECTION
Jim Blandy's avatar
Jim Blandy committed
827

Andreas Schwab's avatar
Andreas Schwab committed
828 829
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
830

Andreas Schwab's avatar
Andreas Schwab committed
831 832
/* Define to 1 on System V Release 4. */
#undef SVR4
Jim Blandy's avatar
Jim Blandy committed
833

Andreas Schwab's avatar
Andreas Schwab committed
834 835
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
836

Andreas Schwab's avatar
Andreas Schwab committed
837 838
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#undef TM_IN_SYS_TIME
Colin Walters's avatar
Colin Walters committed
839

Andreas Schwab's avatar
Andreas Schwab committed
840 841
/* Define to 1 for Encore UMAX. */
#undef UMAX
Jim Blandy's avatar
Jim Blandy committed
842

Andreas Schwab's avatar
Andreas Schwab committed
843 844 845
/* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
   <sys/cpustats.h>. */
#undef UMAX4_3
Jim Blandy's avatar
Jim Blandy committed
846

Andreas Schwab's avatar
Andreas Schwab committed
847 848
/* Define to the unexec source file name. */
#undef UNEXEC_SRC
849

Andreas Schwab's avatar
Andreas Schwab committed
850 851
/* Define to 1 if we should use toolkit scroll bars. */
#undef USE_TOOLKIT_SCROLL_BARS
Jim Blandy's avatar
Jim Blandy committed
852

Andreas Schwab's avatar
Andreas Schwab committed
853 854
/* Define to 1 if we should use XIM, if it is available. */
#undef USE_XIM
855

Andreas Schwab's avatar
Andreas Schwab committed
856 857
/* Define to 1 if using an X toolkit. */
#undef USE_X_TOOLKIT
Jim Blandy's avatar
Jim Blandy committed
858

859 860 861 862
/* Define to the type of the 6th arg of XRegisterIMInstantiateCallback, either
   XPointer or XPointer*. */
#undef XRegisterIMInstantiateCallback_arg6

Andreas Schwab's avatar
Andreas Schwab committed
863 864 865 866 867 868
/* Define to 1 if on AIX 3.
   System headers sometimes define this.
   We just want to avoid a redefinition error message.  */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
869

Andreas Schwab's avatar
Andreas Schwab committed
870 871
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
872

Dave Love's avatar
Dave Love committed
873 874 875 876 877
/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif

Andreas Schwab's avatar
Andreas Schwab committed
878 879
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
#undef _LARGEFILE_SOURCE
880

Andreas Schwab's avatar
Andreas Schwab committed
881 882
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
Gerd Moellmann's avatar
Gerd Moellmann committed
883

Paul Eggert's avatar
Paul Eggert committed
884 885 886 887
/* Define to rpl_ if the getopt replacement functions and variables should be
   used. */
#undef __GETOPT_PREFIX

Andreas Schwab's avatar
Andreas Schwab committed
888 889
/* Define like PROTOTYPES; this can be used by system headers. */
#undef __PROTOTYPES
Gerd Moellmann's avatar
Gerd Moellmann committed
890

Dave Love's avatar
Dave Love committed
891 892 893 894 895 896 897 898
/* Define to compiler's equivalent of C99 restrict keyword. Don't define if
   equivalent is `__restrict'. */
#undef __restrict

/* Define to compiler's equivalent of C99 restrict keyword in array
   declarations. Define as empty for no equivalent. */
#undef __restrict_arr

Andreas Schwab's avatar
Andreas Schwab committed
899 900
/* Define to the used machine dependent file. */
#undef config_machfile
Gerd Moellmann's avatar
Gerd Moellmann committed
901

Andreas Schwab's avatar
Andreas Schwab committed
902 903
/* Define to the used os dependent file. */
#undef config_opsysfile
Gerd Moellmann's avatar
Gerd Moellmann committed
904

Andreas Schwab's avatar
Andreas Schwab committed
905 906
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
Gerd Moellmann's avatar
Gerd Moellmann committed
907

Dave Love's avatar
Dave Love committed
908 909 910
/* Define to a type if <wchar.h> does not define. */
#undef mbstate_t

Andreas Schwab's avatar
Andreas Schwab committed
911 912
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t
Gerd Moellmann's avatar
Gerd Moellmann committed
913

Miles Bader's avatar
Miles Bader committed
914 915 916
/* Define to any substitute for sys_siglist. */
#undef sys_siglist

Andreas Schwab's avatar
Andreas Schwab committed
917 918
/* Define as `fork' if `vfork' does not work. */
#undef vfork
Gerd Moellmann's avatar
Gerd Moellmann committed
919

Andreas Schwab's avatar
Andreas Schwab committed
920 921 922
/* Define to empty if the keyword `volatile' does not work. Warning: valid
   code using `volatile' can become incorrect without. Disable with care. */
#undef volatile
Jan Djärv's avatar
Jan Djärv committed
923

Richard M. Stallman's avatar
Richard M. Stallman committed
924

Morten Welinder's avatar
Morten Welinder committed
925
/* If we're using any sort of window system, define some consequences.  */
Jim Blandy's avatar
Jim Blandy committed
926
#ifdef HAVE_X_WINDOWS
927
#define HAVE_WINDOW_SYSTEM
928
#define MULTI_KBOARD
Morten Welinder's avatar
Morten Welinder committed
929
#define HAVE_MOUSE
Jim Blandy's avatar
Jim Blandy committed
930 931
#endif

932
/* Multi-tty support relies on MULTI_KBOARD.  It seems safe to turn it
Glenn Morris's avatar
Glenn Morris committed
933 934
   on unconditionally.  Note that src/s/darwin.h disables this at
   present.  */
935 936 937 938
#ifndef MULTI_KBOARD
#define MULTI_KBOARD
#endif

939 940 941 942 943
/* If we're using the Carbon API on Mac OS X, define a few more
   variables as well.  */
#ifdef HAVE_CARBON
#define HAVE_WINDOW_SYSTEM
#define HAVE_MOUSE
944 945
#endif

Jim Blandy's avatar
Jim Blandy committed
946 947 948 949 950 951 952 953 954 955 956 957 958
/* Define USER_FULL_NAME to return a string
   that is the user's full name.
   It can assume that the variable `pw'
   points to the password file entry for this user.

   At some sites, the pw_gecos field contains
   the user's full name.  If neither this nor any other
   field contains the right thing, use pw_name,
   giving the user's login name, since that is better than nothing.  */
#define USER_FULL_NAME pw->pw_gecos

/* Define AMPERSAND_FULL_NAME if you use the convention
   that & in the full name stands for the login id.  */
959 960
/* Turned on June 1996 supposing nobody will mind it.  */
#define AMPERSAND_FULL_NAME
961

962 963 964
/* We have blockinput.h.  */
#define DO_BLOCK_INPUT

965 966 967 968 969
/* Define HAVE_SOUND if we have sound support.  We know it works
   and compiles only on the specified platforms.   For others,
   it probably doesn't make sense to try.  */

#if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__
Gerd Moellmann's avatar
Gerd Moellmann committed
970 971 972 973
#ifdef HAVE_MACHINE_SOUNDCARD_H
#define HAVE_SOUND 1
#endif
#ifdef HAVE_SYS_SOUNDCARD_H
974 975 976
#define HAVE_SOUND 1
#endif
#ifdef HAVE_SOUNDCARD_H
Gerd Moellmann's avatar
Gerd Moellmann committed
977 978
#define HAVE_SOUND 1
#endif
979 980 981
#ifdef HAVE_ALSA
#define HAVE_SOUND 1
#endif
982
#endif /* __FreeBSD__ || __NetBSD__ || __linux__  */
Gerd Moellmann's avatar
Gerd Moellmann committed
983

984
/* If using GNU, then support inline function declarations. */
985 986 987
/* Don't try to switch on inline handling as detected by AC_C_INLINE
   generally, because even if non-gcc compilers accept `inline', they
   may reject `extern inline'.  */
Stefan Monnier's avatar
Stefan Monnier committed
988
#if defined (__GNUC__) && defined (OPTIMIZE)
989 990 991 992 993
#define INLINE __inline__
#else
#define INLINE
#endif

Andreas Schwab's avatar
Andreas Schwab committed
994
/* Include the os and machine dependent files.  */
995 996
#include config_opsysfile
#include config_machfile
Joseph Arceneaux's avatar
Joseph Arceneaux committed
997

Jim Blandy's avatar
Jim Blandy committed
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008
/* Load in the conversion definitions if this system
   needs them and the source file being compiled has not
   said to inhibit this.  There should be no need for you
   to alter these lines.  */

#ifdef SHORTNAMES
#ifndef NO_SHORTNAMES
#include "../shortnames/remap.h"
#endif /* not NO_SHORTNAMES */
#endif /* SHORTNAMES */

1009 1010 1011 1012 1013 1014
/* If no remapping takes place, static variables cannot be dumped as
   pure, so don't worry about the `static' keyword. */
#ifdef NO_REMAP
#undef static
#endif

Jim Blandy's avatar
Jim Blandy committed
1015 1016 1017 1018
/* Define `subprocesses' should be defined if you want to
   have code for asynchronous subprocesses
   (as used in M-x compile and M-x shell).
   These do not work for some USG systems yet;
Richard M. Stallman's avatar
Richard M. Stallman committed
1019
   for the ones where they work, the s/SYSTEM.h file defines this flag.  */
Jim Blandy's avatar
Jim Blandy committed
1020 1021 1022 1023 1024 1025 1026

#ifndef VMS
#ifndef USG
/* #define subprocesses */
#endif
#endif

Jim Blandy's avatar
Jim Blandy committed
1027 1028 1029
/* SIGTYPE is the macro we actually use.  */
#ifndef SIGTYPE
#define SIGTYPE RETSIGTYPE
1030 1031
#endif

1032 1033
#ifdef emacs /* Don't do this for lib-src.  */
/* Tell regex.c to use a type compatible with Emacs.  */
1034
#define RE_TRANSLATE_TYPE Lisp_Object
1035
#define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
Stefan Monnier's avatar
Stefan Monnier committed
1036 1037 1038 1039 1040 1041 1042
#ifdef make_number
/* If make_number is a macro, use it.  */
#define RE_TRANSLATE_P(TBL) (!EQ (TBL, make_number (0)))
#else
/* If make_number is a function, avoid it.  */
#define RE_TRANSLATE_P(TBL) (!(INTEGERP (TBL) && XINT (TBL) == 0))
#endif
1043 1044
#endif

Paul Eggert's avatar
Paul Eggert committed
1045 1046 1047 1048 1049
/* Avoid link-time collision with system mktime if we will use our own.  */
#if ! HAVE_MKTIME || BROKEN_MKTIME
#define mktime emacs_mktime
#endif

1050 1051
#define my_strftime nstrftime	/* for strftime.c */

1052
/* The rest of the code currently tests the CPP symbol BSTRING.
Richard M. Stallman's avatar
Richard M. Stallman committed
1053 1054
   Override any claims made by the system-description files.
   Note that on some SCO version it is possible to have bcopy and not bcmp.  */
1055
#undef BSTRING
Richard M. Stallman's avatar
Richard M. Stallman committed
1056
#if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
1057 1058 1059
#define BSTRING
#endif

1060 1061
/* Some of the files of Emacs which are intended for use with other
   programs assume that if you have a config.h file, you must declare
1062 1063
   the type of getenv.

1064
   This declaration shouldn't appear when alloca.s or Makefile.in
1065 1066
   includes config.h.  */
#ifndef NOT_C_CODE
1067 1068 1069
extern char *getenv ();
#endif

1070
/* These default definitions are good for almost all machines.
Karl Heuer's avatar
Karl Heuer committed
1071
   The exceptions override them in m/MACHINE.h.  */
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088

#ifndef BITS_PER_CHAR
#define BITS_PER_CHAR 8
#endif

#ifndef BITS_PER_SHORT
#define BITS_PER_SHORT 16
#endif

/* Note that lisp.h uses this in a preprocessor conditional, so it
   would not work to use sizeof.  That being so, we do all of them
   without sizeof, for uniformity's sake.  */
#ifndef BITS_PER_INT
#define BITS_PER_INT 32
#endif

#ifndef BITS_PER_LONG
1089 1090 1091
#ifdef _LP64
#define BITS_PER_LONG 64
#else
1092 1093
#define BITS_PER_LONG 32
#endif
1094
#endif
1095

1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108
/* Define if the compiler supports function prototypes.  It may do so
   but not define __STDC__ (e.g. DEC C by default) or may define it as
   zero.  */
#undef PROTOTYPES
/* For mktime.c:  */
#ifndef __P
# if defined PROTOTYPES
#  define __P(args) args
# else
#  define __P(args) ()
# endif  /* GCC.  */
#endif /* __P */

1109
/* Don't include "string.h" or <stdlib.h> in non-C code.  */
1110
#ifndef NOT_C_CODE
1111 1112 1113
#ifdef HAVE_STRING_H
#include "string.h"
#endif
Dave Love's avatar
Dave Love committed
1114 1115 1116
#ifdef HAVE_STRINGS_H
#include "strings.h"  /* May be needed for bcopy & al. */
#endif
1117 1118 1119
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
Dave Love's avatar
Dave Love committed
1120 1121 1122 1123 1124 1125 1126 1127 1128
#ifndef __GNUC__
# ifdef HAVE_ALLOCA_H
#  include <alloca.h>
# else /* AIX files deal with #pragma.  */
#  ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#  endif
# endif /* HAVE_ALLOCA_H */
#endif /* __GNUC__ */
Dave Love's avatar
Dave Love committed
1129
#ifndef HAVE_SIZE_T
1130
typedef unsigned size_t;
Dave Love's avatar
Dave Love committed
1131
#endif
Dave Love's avatar
Dave Love committed
1132
#endif /* NOT_C_CODE */
1133 1134 1135 1136 1137

/* Define HAVE_X_I18N if we have usable i18n support.  */

#ifdef HAVE_X11R6
#define HAVE_X_I18N
Jan Djärv's avatar
Jan Djärv committed
1138
#elif !defined X11R5_INHIBIT_I18N
1139 1140 1141 1142 1143 1144 1145 1146
#define HAVE_X_I18N
#endif

/* Define HAVE_X11R6_XIM if we have usable X11R6-style XIM support.  */

#if defined HAVE_X11R6 && !defined INHIBIT_X11R6_XIM
#define HAVE_X11R6_XIM
#endif
1147 1148 1149

/* Should we enable expensive run-time checking of data types?  */
#undef ENABLE_CHECKING
1150

Gerd Moellmann's avatar
Gerd Moellmann committed
1151 1152
#if defined __GNUC__ && (__GNUC__ > 2 \
                         || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5))
1153 1154 1155 1156
#define NO_RETURN	__attribute__ ((__noreturn__))
#else
#define NO_RETURN	/* nothing */
#endif
Andreas Schwab's avatar
Andreas Schwab committed
1157

Dave Love's avatar
Dave Love committed
1158 1159 1160 1161 1162
/* These won't be used automatically yet.  We also need to know, at least,
   that the stack is continuous.  */
#ifdef __GNUC__
#  ifndef GC_SETJMP_WORKS
  /* GC_SETJMP_WORKS is nearly always appropriate for GCC --
1163
     see NON_SAVING_SETJMP in the target descriptions.  */
Dave Love's avatar
Dave Love committed
1164 1165 1166 1167 1168 1169 1170 1171 1172 1173
  /* Exceptions (see NON_SAVING_SETJMP in target description) are ns32k,
     SCO5 non-ELF (but Emacs specifies ELF) and SVR3 on x86.
     Fixme: Deal with ns32k, SVR3.  */
#    define GC_SETJMP_WORKS 1
#  endif
#  ifndef GC_LISP_OBJECT_ALIGNMENT
#    define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object))
#  endif
#endif

Dave Love's avatar
Dave Love committed
1174 1175 1176 1177 1178 1179 1180 1181 1182
#ifndef HAVE_BCOPY
#define bcopy(a,b,s) memcpy (b,a,s)
#endif
#ifndef HAVE_BZERO
#define bzero(a,s) memset (a,0,s)
#endif
#ifndef HAVE_BCMP
#define BCMP memcmp
#endif
Dave Love's avatar
Dave Love committed
1183 1184 1185

#endif /* EMACS_CONFIG_H */

1186
/*
Dave Love's avatar
Dave Love committed
1187
Local Variables:
Dave Love's avatar
Dave Love committed
1188 1189 1190 1191
mode: c
End:
*/