config.h revision 1.12
1/*	$OpenBSD: config.h,v 1.12 2004/12/18 21:04:52 millert Exp $	*/
2
3/* config.h.  NOT generated automatically. */
4
5/*
6 * This file, config.h, which is a part of pdksh (the public domain ksh),
7 * is placed in the public domain.  It comes with no licence, warranty
8 * or guarantee of any kind (i.e., at your own risk).
9 */
10
11#ifndef CONFIG_H
12#define CONFIG_H
13
14
15
16
17/* Define if C compiler groks __attribute__((...)) (const, noreturn, format) */
18#define HAVE_GCC_FUNC_ATTR 1
19
20
21/* Include emacs editing? */
22#define EMACS 1
23
24/* Include vi editing? */
25#define VI 1
26
27/* Include job control? */
28#define JOBS 1
29
30/* Include brace-expansion? */
31#define BRACE_EXPAND 1
32
33/* Include any history? */
34#define HISTORY 1
35
36/* Strict POSIX behaviour? */
37/* #undef POSIXLY_CORRECT */
38
39/* Specify default $ENV? */
40/* #undef DEFAULT_ENV */
41
42/* Include game-of-life? */
43/* #undef SILLY */
44
45/* The number of bytes in a int.  */
46#define SIZEOF_INT 4
47
48/*
49 * End of configuration stuff for PD ksh.
50 */
51
52#if defined(EMACS) || defined(VI)
53# define	EDIT
54#else
55# undef		EDIT
56#endif
57
58/* Super small configuration-- no editing. */
59#if defined(EDIT) && defined(NOEDIT)
60# undef EDIT
61# undef EMACS
62# undef VI
63#endif
64
65/* Editing implies history */
66#if defined(EDIT) && !defined(HISTORY)
67# define HISTORY
68#endif /* EDIT */
69
70#ifdef HAVE_GCC_FUNC_ATTR
71# define GCC_FUNC_ATTR(x)	__attribute__((x))
72# define GCC_FUNC_ATTR2(x,y)	__attribute__((x,y))
73#else
74# define GCC_FUNC_ATTR(x)
75# define GCC_FUNC_ATTR2(x,y)
76#endif /* HAVE_GCC_FUNC_ATTR */
77
78#endif /* CONFIG_H */
79