summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-15 18:07:07 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-15 18:07:07 -0700
commitafdd1faece8b3f8fae3be0fd0f05a0e570b27618 (patch)
tree6b9fcea747dc4897647ff7e464ee03a00d011994
parentb9b62b065456b5d31af990d1d04fcb34a0cf3523 (diff)
Convert vfork checks from Imake-style to autoconf-style
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--command.c6
-rw-r--r--configure.ac3
2 files changed, 6 insertions, 3 deletions
diff --git a/command.c b/command.c
index 0d26989..2bf9e78 100644
--- a/command.c
+++ b/command.c
@@ -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])