1 1.3 kamil /* $NetBSD: conf-end.h,v 1.3 2017/06/22 23:54:13 kamil 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.3 kamil * RCSid: $NetBSD: conf-end.h,v 1.3 2017/06/22 23:54:13 kamil 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.3 kamil #if defined(HISTORY) && (!defined(COMPLEX_HISTORY) || !defined(HAVE_FLOCK)) 21 1.1 jtc # undef COMPLEX_HISTORY 22 1.1 jtc # define EASY_HISTORY /* sjg's trivial history file */ 23 1.1 jtc #endif 24 1.1 jtc 25 1.1 jtc /* Can we safely catch sigchld and wait for processes? */ 26 1.1 jtc #if (defined(HAVE_WAITPID) || defined(HAVE_WAIT3)) \ 27 1.1 jtc && (defined(POSIX_SIGNALS) || defined(BSD42_SIGNALS)) 28 1.1 jtc # define JOB_SIGS 29 1.1 jtc #endif 30 1.1 jtc 31 1.1 jtc #if !defined(JOB_SIGS) || !(defined(POSIX_PGRP) || defined(BSD_PGRP)) 32 1.1 jtc # undef JOBS /* if no JOB_SIGS, no job control support */ 33 1.1 jtc #endif 34 1.1 jtc 35 1.1 jtc /* pdksh assumes system calls return EINTR if a signal happened (this so 36 1.1 jtc * the signal handler doesn't have to longjmp()). I don't know if this 37 1.1 jtc * happens (or can be made to happen) with sigset() et. al. (the bsd41 signal 38 1.1 jtc * routines), so, the autoconf stuff checks what they do and defines 39 1.1 jtc * SIGNALS_DONT_INTERRUPT if signals don't interrupt read(). 40 1.1 jtc * If SIGNALS_DONT_INTERRUPT isn't defined and your compiler chokes on this, 41 1.1 jtc * delete the hash in front of the error (and file a bug report). 42 1.1 jtc */ 43 1.1 jtc #ifdef SIGNALS_DONT_INTERRUPT 44 1.1 jtc # error pdksh needs interruptable system calls. 45 1.1 jtc #endif /* SIGNALS_DONT_INTERRUPT */ 46 1.1 jtc 47 1.1 jtc #ifdef HAVE_GCC_FUNC_ATTR 48 1.1 jtc # define GCC_FUNC_ATTR(x) __attribute__((x)) 49 1.1 jtc # define GCC_FUNC_ATTR2(x,y) __attribute__((x,y)) 50 1.1 jtc #else 51 1.1 jtc # define GCC_FUNC_ATTR(x) 52 1.1 jtc # define GCC_FUNC_ATTR2(x,y) 53 1.1 jtc #endif /* HAVE_GCC_FUNC_ATTR */ 54