conf-end.h revision 1.2 1 1.2 tls /* $NetBSD: conf-end.h,v 1.2 1997/01/12 19:11:43 tls Exp $ */
2 1.2 tls
3 1.1 jtc /*
4 1.1 jtc * End of configuration stuff for PD ksh.
5 1.1 jtc *
6 1.2 tls * RCSid: $NetBSD: conf-end.h,v 1.2 1997/01/12 19:11:43 tls Exp $
7 1.1 jtc */
8 1.1 jtc
9 1.1 jtc #if defined(EMACS) || defined(VI)
10 1.1 jtc # define EDIT
11 1.1 jtc #else
12 1.1 jtc # undef EDIT
13 1.1 jtc #endif
14 1.1 jtc
15 1.1 jtc /* Editing implies history */
16 1.1 jtc #if defined(EDIT) && !defined(HISTORY)
17 1.1 jtc # define HISTORY
18 1.1 jtc #endif /* EDIT */
19 1.1 jtc
20 1.1 jtc /*
21 1.1 jtc * if you don't have mmap() you can't use Peter Collinson's history
22 1.1 jtc * mechanism. If that is the case, then define EASY_HISTORY
23 1.1 jtc */
24 1.1 jtc #if defined(HISTORY) && (!defined(COMPLEX_HISTORY) || !defined(HAVE_MMAP) || !defined(HAVE_FLOCK))
25 1.1 jtc # undef COMPLEX_HISTORY
26 1.1 jtc # define EASY_HISTORY /* sjg's trivial history file */
27 1.1 jtc #endif
28 1.1 jtc
29 1.1 jtc /* Can we safely catch sigchld and wait for processes? */
30 1.1 jtc #if (defined(HAVE_WAITPID) || defined(HAVE_WAIT3)) \
31 1.1 jtc && (defined(POSIX_SIGNALS) || defined(BSD42_SIGNALS))
32 1.1 jtc # define JOB_SIGS
33 1.1 jtc #endif
34 1.1 jtc
35 1.1 jtc #if !defined(JOB_SIGS) || !(defined(POSIX_PGRP) || defined(BSD_PGRP))
36 1.1 jtc # undef JOBS /* if no JOB_SIGS, no job control support */
37 1.1 jtc #endif
38 1.1 jtc
39 1.1 jtc /* pdksh assumes system calls return EINTR if a signal happened (this so
40 1.1 jtc * the signal handler doesn't have to longjmp()). I don't know if this
41 1.1 jtc * happens (or can be made to happen) with sigset() et. al. (the bsd41 signal
42 1.1 jtc * routines), so, the autoconf stuff checks what they do and defines
43 1.1 jtc * SIGNALS_DONT_INTERRUPT if signals don't interrupt read().
44 1.1 jtc * If SIGNALS_DONT_INTERRUPT isn't defined and your compiler chokes on this,
45 1.1 jtc * delete the hash in front of the error (and file a bug report).
46 1.1 jtc */
47 1.1 jtc #ifdef SIGNALS_DONT_INTERRUPT
48 1.1 jtc # error pdksh needs interruptable system calls.
49 1.1 jtc #endif /* SIGNALS_DONT_INTERRUPT */
50 1.1 jtc
51 1.1 jtc #ifdef HAVE_GCC_FUNC_ATTR
52 1.1 jtc # define GCC_FUNC_ATTR(x) __attribute__((x))
53 1.1 jtc # define GCC_FUNC_ATTR2(x,y) __attribute__((x,y))
54 1.1 jtc #else
55 1.1 jtc # define GCC_FUNC_ATTR(x)
56 1.1 jtc # define GCC_FUNC_ATTR2(x,y)
57 1.1 jtc #endif /* HAVE_GCC_FUNC_ATTR */
58