1 /* XEmacs site configuration template file. -*- C -*-
2 Copyright (C) 1986, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
4 This file is part of XEmacs.
6 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Significantly divergent from FSF. */
23 /* No code in XEmacs #includes config.h twice, but some of the code
24 intended to work with other packages as well (like gmalloc.c)
25 think they can include it as many times as they like. */
26 #ifndef _SRC_CONFIG_H_
27 #define _SRC_CONFIG_H_
29 /* alloca twiddling belongs in one place, not the s&m headers
30 AIX requires this to be the first thing in the file. */
35 #define alloca __builtin_alloca
40 #elif ! defined (alloca)
46 /* Use this to add code in a structured way to FSF-maintained source
47 files so as to make it obvious where XEmacs changes are. */
50 /* Allow s&m files to differentiate OS versions without having
51 multiple files to maintain. */
54 /* The configuration name. This is used as the install directory name
55 for the lib-src programs. */
56 #undef EMACS_CONFIGURATION
58 /* The configuration options. This is exported to Lisp. */
59 #undef EMACS_CONFIG_OPTIONS
61 /* The version info from version.sh. Used in #pragma ident in emacs.c */
62 #undef EMACS_MAJOR_VERSION
63 #undef EMACS_MINOR_VERSION
64 #undef EMACS_BETA_VERSION
66 #undef XEMACS_CODENAME
67 /* InfoDock versions, not used with XEmacs */
68 #undef INFODOCK_MAJOR_VERSION
69 #undef INFODOCK_MINOR_VERSION
70 #undef INFODOCK_BUILD_VERSION
72 /* Make all functions available on AIX. See AC_AIX. */
75 /* Make all functions available on GNU libc systems. See features.h. */
78 /* Used to identify the XEmacs version in stack traces. */
79 #undef STACK_TRACE_EYE_CATCHER
81 /* Allow the configurer to specify if she wants site-lisp. */
82 #undef INHIBIT_SITE_LISP
84 /* This will be removed in 19.15. */
85 /* Hah! Try 20.3 ... */
86 /* Hah! Try never ... */
87 /* If at first you don't succeed, try, try again. */
88 /* #define LOSING_BYTECODE */
90 /* Undefine on systems which don't have processes */
91 #undef HAVE_UNIX_PROCESSES
93 /* Does XEmacs support floating-point numbers? */
94 #undef LISP_FLOAT_TYPE
96 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
99 /* Define if you are using the GNU C Library. -- experimental. */
100 #undef DOUG_LEA_MALLOC
102 /* Define if you are using libmcheck.a from the GNU C Library. */
103 #undef HAVE_LIBMCHECK
105 /* Define if you are using dlmalloc from the Linux C library. */
106 #undef _NO_MALLOC_WARNING_
108 /* Use the system malloc? */
109 #undef USE_SYSTEM_MALLOC
111 /* Use a debugging malloc? -- experimental */
112 #undef USE_DEBUG_MALLOC
114 /* Compile in TTY support? */
117 /* Compile in support for MS windows? */
118 #undef HAVE_MS_WINDOWS
120 /* special cygwin process handling? */
121 #undef HAVE_MSG_SELECT
123 /* Compile in support for the X window system? */
124 #undef HAVE_X_WINDOWS
126 /* Defines for building X applications */
127 #ifdef HAVE_X_WINDOWS
128 /* The following will be defined if xmkmf thinks they are necessary */
137 /* The following should always be defined, no matter what xmkmf thinks. */
138 #ifndef NeedFunctionPrototypes
139 #define NeedFunctionPrototypes 1
144 #endif /* HAVE_X_WINDOWS */
146 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
147 #if defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
148 #define HAVE_WINDOW_SYSTEM
151 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
152 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined(HAVE_MSG_SELECT)
153 #define HAVE_UNIXOID_EVENT_LOOP
156 /* Are we using XFree386? */
163 /* Where do we find bitmaps? */
166 /* USER_FULL_NAME returns a string that is the user's full name.
167 It can assume that the variable `pw' points to the password file
170 At some sites, the pw_gecos field contains the user's full name.
171 If neither this nor any other field contains the right thing, use
172 pw_name, giving the user's login name, since that is better than
174 #define USER_FULL_NAME pw->pw_gecos
176 /* Define AMPERSAND_FULL_NAME if you use the convention
177 that & in the full name stands for the login id. */
178 #undef AMPERSAND_FULL_NAME
180 /* Some things figured out by the configure script, grouped as they are in
183 #undef HAVE_MACH_MACH_H
184 #undef HAVE_SYS_STROPTS_H
185 #undef HAVE_SYS_TIMEB_H
186 #undef HAVE_SYS_TIME_H
189 #undef HAVE_SYS_WAIT_H
190 #undef HAVE_LIBINTL_H
195 #undef HAVE_X11_XLOCALE_H
196 #undef HAVE_LINUX_VERSION_H
197 #undef HAVE_CYGWIN_VERSION_H
198 #undef HAVE_INTTYPES_H
202 #undef TIME_WITH_SYS_TIME
203 #undef WORDS_BIGENDIAN
206 #undef HAVE_SYS_PSTAT_H
209 #undef HAVE_LONG_FILE_NAMES
211 /* Use lock files to detect multiple edits of the same file? */
212 #undef CLASH_DETECTION
214 /* Have shared library support */
224 #undef HAVE_LIBRESOLV
226 /* Is `sys_siglist' declared by <signal.h>? */
227 #undef SYS_SIGLIST_DECLARED
229 /* Is `struct utimbuf' declared by <utime.h>? */
230 #undef HAVE_STRUCT_UTIMBUF
232 /* Is `struct timeval' declared by <sys/time.h>? */
236 #undef TM_IN_SYS_TIME
240 /* Is `h_errno' declared by <netdb.h>? */
243 /* Does `localtime' cache TZ? */
244 #undef LOCALTIME_CACHE
246 /* Can `gettimeofday' accept two arguments? */
247 #undef GETTIMEOFDAY_ONE_ARGUMENT
254 #undef HAVE_INVERSE_HYPERBOLIC
261 #undef HAVE_FPATHCONF
264 #undef HAVE_GETHOSTNAME
265 #undef HAVE_GETPAGESIZE
266 #undef HAVE_GETTIMEOFDAY
283 #undef HAVE_SETITIMER
288 #undef HAVE_SIGPROCMASK
289 #undef HAVE_SIGSETJMP
291 #undef HAVE_STRCASECMP
298 #undef HAVE_VSNPRINTF
300 #undef HAVE_SOCKADDR_SUN_LEN
301 #undef HAVE_MULTICAST
304 #undef SYSV_SYSTEM_DIR
305 #undef NONSYSTEM_DIR_LIBRARY
310 #undef SIGNALS_VIA_CHARACTERS
314 /* Compile in support for SOCKS? */
317 /* Compile in support for X pixmaps via the `xpm' library? */
321 /* Compile in support for "X faces" via the `compface' library?
322 This enables graphical display of X-face headers in mail/news messages */
325 /* Compile in support for JPEG images */
328 /* Compile in support for TIFF images */
331 /* Compile in support for GIF images */
334 /* Compile in support for PNG images */
337 /* Do you have the Xmu library?
338 This should always be the case except on losing HP-UX systems. */
341 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
344 /* Compile in support for Berkeley DB style databases? May require libdb. */
345 #undef HAVE_BERKELEY_DB
346 /* Full #include file path for Berkeley DB's db.h */
349 /* Do we have either DBM or Berkeley DB database support? */
352 /* Do we have LDAP support? */
354 /* Do we have the LDAP library of the University of Michigan ? */
355 #undef HAVE_UMICH_LDAP
356 /* Do we have Netscape LDAP SDK library */
359 /* Do you have the Xauth library present? This will add some extra
360 functionality to gnuserv. */
363 /* Compile in support for gpm (General Purpose Mouse)? */
366 /* Compile in support for ncurses? */
368 /* Full #include file paths for ncurses' curses.h and term.h. */
372 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
373 If the assertion fails, assert_failed() will be called. This is
374 recommended for general use because it gives more info about the crash
375 than just the abort() message. Too many people "Can't find the corefile"
376 or have limit-ed core dumps out of existence. */
377 #undef USE_ASSERTIONS
379 /* Define one or more of the following if you want lots of extra checks
380 (e.g. structure validation) compiled in. These should be turned
381 on during the beta-test cycle. */
383 /* Check the entire extent structure of a buffer each time an extent
384 change is done, and do other extent-related checks. */
385 #undef ERROR_CHECK_EXTENTS
386 /* Make sure that all X... macros are dereferencing the correct type,
387 and that all XSET... macros (as much as possible) are setting the
388 correct type of structure. Highly recommended for all
390 #undef ERROR_CHECK_TYPECHECK
391 /* Make sure valid buffer positions are passed to BUF_* macros. */
392 #undef ERROR_CHECK_BUFPOS
393 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
394 #undef ERROR_CHECK_GC
395 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
396 #undef ERROR_CHECK_MALLOC
398 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
399 This is mainly intended for use by developers. */
402 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
403 determine where XEmacs' memory is going. */
404 #undef MEMORY_USAGE_STATS
406 /* Define QUANTIFY if using Quantify from Rational/Pure/Atria Software.
407 This adds some additional calls to control data collection.
408 It is only intended for use by the developers. */
411 /* Define QUANTIFY if using Purify from Rational/Pure/Atria Software.
412 It is only intended for use by the developers. */
415 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
416 #define XLIB_ILLEGAL_ACCESS 1
419 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
420 widget within another program. */
421 #undef EXTERNAL_WIDGET
423 /* There are some special-case defines for gcc and lcc. */
427 /* Allow the user to override the default value of PURESIZE at configure
428 time. This must come before we include the sys files in order for
429 it to be able to override any changes in them. */
432 /* Define this if you want level 2 internationalization compliance
433 (localized collation and formatting). Generally this should be
434 defined, unless your system doesn't have the strcoll() and
435 setlocale() library routines. This really should be (NOT! -mrb)
436 defined in the appropriate s/ or m/ file. */
439 /* Define this if you want level 3 internationalization compliance
440 (localized messaging). This will cause a small runtime performance
441 penalty, as the strings are read from the message catalog(s).
442 For this you need the gettext() and dgetext() library routines.
443 WARNING, this code is under construction. */
446 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
447 Requires libDtSvc, which typically must be present at runtime. */
450 /* Compile in support for OffiX Drag and Drop? */
451 #undef HAVE_OFFIX_DND
453 /* Compile in generic Drag'n'Drop API */
454 #undef HAVE_DRAGNDROP
456 /* Compile in support for proper session-management. */
459 /* Define this if you want Mule support (multi-byte character support).
460 There may be some performance penalty, although it should be small
461 if you're working with ASCII files. */
464 /* Define this if you want file coding support */
467 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
468 If so, use raw Xlib or higher level Motif interface? */
474 /* Non-XIM input methods for use with Mule. */
479 /* Enable special GNU Make features in the Makefiles. */
482 /* Debugging option: Don't automatically rebuild the DOC file.
483 This saves a lot of time when you're repeatedly
484 compiling-running-crashing. */
487 /* Defined by AC_C_CONST in configure.in */
492 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
493 seem to require this, probably because something with the int
494 definitions isn't right with 64-bit systems. */
495 #undef USE_UNION_TYPE
497 /* If defined, use a minimal number of tagbits. This allows usage of more
498 advanced versions of malloc (like the Doug Lea new GNU malloc) and larger
500 /* --use-minimal-tagbits */
501 #undef USE_MINIMAL_TAGBITS
503 /* --use-indexed-lrecord-implementation */
504 #undef USE_INDEXED_LRECORD_IMPLEMENTATION
506 /* The configuration script defines opsysfile to be the name of the
507 s/...h file that describes the system type you are using.
508 The file is chosen based on the configuration name you give.
510 See the file ../etc/MACHINES for a list of systems and the
511 configuration names to use for them.
513 See s/template.h for documentation on writing s/...h files. */
515 #if defined (__cplusplus) && !defined (NOT_C_CODE)
518 #undef config_opsysfile
519 #include config_opsysfile
521 /* The configuration script defines machfile to be the name of the
522 m/...h file that describes the machine you are using. The file is
523 chosen based on the configuration name you give.
525 See the file ../etc/MACHINES for a list of machines and the
526 configuration names to use for them.
528 See m/template.h for documentation on writing m/...h files. */
529 #undef config_machfile
530 #include config_machfile
531 #if defined (__cplusplus) && !defined (NOT_C_CODE)
535 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
536 #define SYSTEM_MALLOC
539 /* Use the relocating allocator for buffer space? */
542 /* Define the return type of signal handlers if the s/xxx.h file
543 did not already do so. */
544 #define RETSIGTYPE void
546 /* SIGTYPE is the macro we actually use. */
548 #define SIGTYPE RETSIGTYPE
549 #define SIGRETURN return
552 /* Allow the source to use standard types */
560 /* Define DYNODUMP if it is necessary to properly dump on this system.
561 Currently this is only Solaris 2.x, for x < 6. */
564 /* Compile in support for Sun Sparcworks/WorkShop? */
567 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
568 support for playing sound files. (On Suns, the sound support is
569 usually found in /usr/demo/SOUND - you may need to install the
570 "SUNWaudmo" package.) */
571 #undef HAVE_NATIVE_SOUND
572 /* Native sound may be provided via soundcard.h, in various directories */
573 #undef SOUNDCARD_H_PATH
575 /* Compile in support for NAS (Network Audio System)?
576 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
577 error handling changes. */
578 #undef HAVE_NAS_SOUND
579 #undef NAS_NO_ERROR_JUMP
581 /* Compile in support for SunPro usage-tracking code? */
582 #undef USAGE_TRACKING
584 /* Compile in support for Tooltalk? */
586 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
589 /* Toolkits used by lwlib for various widgets... */
590 #undef LWLIB_USES_MOTIF
591 #undef LWLIB_USES_ATHENA
592 #undef LWLIB_MENUBARS_LUCID
593 #undef LWLIB_MENUBARS_MOTIF
594 #undef LWLIB_SCROLLBARS_LUCID
595 #undef LWLIB_SCROLLBARS_MOTIF
596 #undef LWLIB_SCROLLBARS_ATHENA
597 #undef LWLIB_SCROLLBARS_ATHENA3D
598 #undef LWLIB_DIALOGS_MOTIF
599 #undef LWLIB_DIALOGS_ATHENA
600 #undef LWLIB_DIALOGS_ATHENA3D
602 /* Other things that can be disabled by configure. */
604 #undef HAVE_SCROLLBARS
609 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
613 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
614 There is a stupid bug in the SunOS libc.a: two functions which X11r5
615 uses, mbstowcs() and wcstombs(), are unusable when programs are
616 statically linked (as XEmacs must be) because the static version of
617 libc.a contains the *dynamic* versions of these functions. These
618 functions don't seem to be called when XEmacs is running, so it's
619 enough to define stubs for them.
621 This appears to be fixed in SunOS 4.1.2.
623 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
624 sometimes reference memory past the end of the string, which can segv.
625 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3. */
626 #if defined (sparc) && !defined (USG)
627 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
630 /* If you turn this flag on, it forces encapsulation in all
631 circumstances; this can be used to make sure things compile OK
632 on various systems. */
633 #define DEBUG_ENCAPSULATION
635 /* basic system calls */
637 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
638 # define ENCAPSULATE_READ
639 # define ENCAPSULATE_WRITE
641 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
642 # define ENCAPSULATE_OPEN
644 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
645 # define ENCAPSULATE_CLOSE
650 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
651 # define ENCAPSULATE_FREAD
652 # define ENCAPSULATE_FWRITE
654 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
655 # define ENCAPSULATE_FOPEN
657 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
658 # define ENCAPSULATE_FCLOSE
661 /* directory calls */
663 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
664 # define ENCAPSULATE_CHDIR
665 # define ENCAPSULATE_MKDIR
666 # define ENCAPSULATE_OPENDIR
667 # define ENCAPSULATE_CLOSEDIR
668 # define ENCAPSULATE_READDIR
669 # define ENCAPSULATE_RMDIR
671 /* file-information calls */
674 # define ENCAPSULATE_EACCESS
676 # define ENCAPSULATE_ACCESS
677 # define ENCAPSULATE_LSTAT
678 # define ENCAPSULATE_READLINK
679 # define ENCAPSULATE_STAT
681 /* file-manipulation calls */
683 # define ENCAPSULATE_CHMOD
684 # define ENCAPSULATE_CREAT
685 # define ENCAPSULATE_LINK
686 # define ENCAPSULATE_RENAME
687 # define ENCAPSULATE_SYMLINK
688 # define ENCAPSULATE_UNLINK
689 # define ENCAPSULATE_EXECVP
690 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
695 # define CANNA_PURESIZE 0
696 #else /* not CANNA */
697 # define CANNA_PURESIZE 0
698 #endif /* not CANNA */
700 #if (defined (MSDOS) && defined (FEPCTRL)) || (defined (WIN32) && defined (USE_IME))
704 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
705 #define accept Raccept
707 #define connect Rconnect
708 #define getsockname Rgetsockname
709 #define listen Rlisten
710 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
715 #undef SIZEOF_LONG_LONG
718 #ifndef BITS_PER_CHAR
719 #define BITS_PER_CHAR 8
721 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
722 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
723 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
724 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
725 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
729 #define HAVE_INLINE 1
730 #define INLINE inline
732 /* Does the keyword `inline' exist? */
738 # ifdef DONT_EXTERN_INLINE_FUNCTIONS
739 # define INLINE inline
741 # define INLINE extern inline
744 # define INLINE static inline
745 # endif /* __GNUC__ */
747 # define INLINE static
748 # endif /* HAVE_INLINE */
752 #if defined (__cplusplus) && !defined (NOT_C_CODE)
753 /* Avoid C++ keywords used as ordinary C identifiers */
754 #define class c_class
757 #define catch c_catch
760 /* Strictly speaking, only int or unsigned int are valid types in a
761 bitfield. In practice, we would like to use enums as bitfields.
762 The following should just result in warning avoidance:
763 warning: nonportable bit-field type */
765 #define enum_field(enumeration_type) enum enumeration_type
767 #define enum_field(enumeration_type) unsigned int
770 /* We want to avoid saving the signal mask if possible, because
771 that necessitates a system call. */
772 #ifdef HAVE_SIGSETJMP
773 # define SETJMP(x) sigsetjmp (x, 0)
774 # define LONGJMP(x, y) siglongjmp (x, y)
775 # define JMP_BUF sigjmp_buf
777 # define SETJMP(x) setjmp (x)
778 # define LONGJMP(x, y) longjmp (x, y)
779 # define JMP_BUF jmp_buf
782 /* movemail options */
783 /* Should movemail use POP3 for mail access? */
785 /* Should movemail use kerberos for POP authentication? */
787 /* Should movemail use hesiod for getting POP server host? */
789 /* Determine type of mail locking. */
790 /* Play preprocessor games so that configure options override s&m files */
791 #undef REAL_MAIL_USE_LOCKF
792 #undef REAL_MAIL_USE_FLOCK
793 #undef MAIL_USE_LOCKF
794 #undef MAIL_USE_FLOCK
795 #ifdef REAL_MAIL_USE_FLOCK
796 #define MAIL_USE_FLOCK
798 #ifdef REAL_MAIL_USE_LOCKF
799 #define MAIL_USE_LOCKF
802 #undef LISPDIR_USER_DEFINED
803 #undef PACKAGE_PATH_USER_DEFINED
804 #undef SITELISPDIR_USER_DEFINED
805 #undef ARCHLIBDIR_USER_DEFINED
806 #undef ETCDIR_USER_DEFINED
807 #undef LOCKDIR_USER_DEFINED
808 #undef INFODIR_USER_DEFINED
809 #undef INFOPATH_USER_DEFINED
811 #endif /* _SRC_CONFIG_H_ */