diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-15 18:07:07 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-15 18:07:07 -0700 |
commit | afdd1faece8b3f8fae3be0fd0f05a0e570b27618 (patch) | |
tree | 6b9fcea747dc4897647ff7e464ee03a00d011994 | |
parent | b9b62b065456b5d31af990d1d04fcb34a0cf3523 (diff) |
Convert vfork checks from Imake-style to autoconf-style
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | command.c | 6 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -40,10 +40,10 @@ /* number of user input events to queue before malloc */ #define TYPEAHEADSIZE 20 -#ifndef HAS_VFORK -#define vfork() fork() +#ifndef HAVE_WORKING_VFORK +#define vfork fork #else -#if defined(sun) && !defined(SVR4) +#ifdef HAVE_VFORK_H #include <vfork.h> #endif #endif diff --git a/configure.ac b/configure.ac index 88d9383..1ed2a1b 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,9 @@ AC_ARG_WITH(appdefaultdir, [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) AC_SUBST(appdefaultdir) +# Checks for library functions. +AC_FUNC_FORK + AC_CONFIG_FILES([ Makefile man/Makefile]) |