1 /* $NetBSD: conf-end.h,v 1.5 2017/06/30 02:13:29 kamil Exp $ */ 2 3 /* 4 * End of configuration stuff for PD ksh. 5 * 6 * RCSid: $NetBSD: conf-end.h,v 1.5 2017/06/30 02:13:29 kamil Exp $ 7 */ 8 9 #if defined(EMACS) || defined(VI) 10 # define EDIT 11 #else 12 # undef EDIT 13 #endif 14 15 /* Editing implies history */ 16 #if defined(EDIT) && !defined(HISTORY) 17 # define HISTORY 18 #endif /* EDIT */ 19 20 #if defined(HISTORY) && (!defined(COMPLEX_HISTORY) || !defined(HAVE_FLOCK)) 21 # undef COMPLEX_HISTORY 22 # define EASY_HISTORY /* sjg's trivial history file */ 23 #endif 24 25 /* Can we safely catch sigchld and wait for processes? */ 26 #if (defined(HAVE_WAITPID) || defined(HAVE_WAIT3)) \ 27 && (defined(POSIX_SIGNALS)) 28 # define JOB_SIGS 29 #endif 30 31 #if !defined(JOB_SIGS) || !(defined(POSIX_PGRP) || defined(BSD_PGRP)) 32 # undef JOBS /* if no JOB_SIGS, no job control support */ 33 #endif 34 35 #ifdef HAVE_GCC_FUNC_ATTR 36 # define GCC_FUNC_ATTR(x) __attribute__((x)) 37 # define GCC_FUNC_ATTR2(x,y) __attribute__((x,y)) 38 #else 39 # define GCC_FUNC_ATTR(x) 40 # define GCC_FUNC_ATTR2(x,y) 41 #endif /* HAVE_GCC_FUNC_ATTR */ 42