From 05030bdb07f96ecab73d3e0a19950a2bfa3bd29c Mon Sep 17 00:00:00 2001 From: Marcus Comstedt <marcus@mc.pp.se> Date: Wed, 18 Nov 1998 21:16:11 +0100 Subject: [PATCH] Added a test to check that fork() actually works (it doesn't in ixemul). Rev: src/acconfig.h:1.34 Rev: src/configure.in:1.253 --- src/acconfig.h | 5 ++++- src/configure.in | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/acconfig.h b/src/acconfig.h index eaebaad07d..ba48b07815 100644 --- a/src/acconfig.h +++ b/src/acconfig.h @@ -1,5 +1,5 @@ /* - * $Id: acconfig.h,v 1.33 1998/10/11 22:33:11 hubbe Exp $ + * $Id: acconfig.h,v 1.34 1998/11/18 20:16:09 marcus Exp $ */ #ifndef MACHINE_H #define MACHINE_H @@ -58,6 +58,9 @@ /* Solaris has rusage as an ioctl on procfs */ #undef GETRUSAGE_THROUGH_PROCFS +/* Define if you have fork */ +#undef HAVE_FORK + /* Define if you have isspace */ #undef HAVE_ISSPACE diff --git a/src/configure.in b/src/configure.in index 43ed8203e4..85537a7fac 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.252 1998/11/17 05:13:19 hubbe Exp $") +AC_REVISION("$Id: configure.in,v 1.253 1998/11/18 20:16:11 marcus Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -1199,7 +1199,6 @@ AC_CHECK_FUNCS( \ strdup \ kill \ alarm \ - fork \ fork1 \ flock \ lockf \ @@ -1587,6 +1586,21 @@ if test [$]pike_cv_func_$1 = yes; then AC_DEFINE(translit(HAVE_$1,[a-z],[A-Z])) fi]) +######################################################################## +MY_CHECK_FUNCTION(fork, +[ +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +int main() +{ + exit(fork()==-1); +} +]); ######################################################################## MY_CHECK_FUNCTION(fpsetmask, [ -- GitLab