From dbf9820e6baf29b037030bf3b4acc0974220d43c Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Thu, 14 Jul 2005 13:28:06 +0000 Subject: [PATCH] * Add checks for the process management functions (fork, execve, waitpid) * Add checks for fork() for fork and rsh plses so that they dont' activate on platforms without fork This commit was SVN r6482. --- configure.ac | 2 +- orte/mca/pls/fork/configure.m4 | 22 ++++++++++++++++++++++ orte/mca/pls/rsh/configure.m4 | 22 ++++++++++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 orte/mca/pls/fork/configure.m4 create mode 100644 orte/mca/pls/rsh/configure.m4 diff --git a/configure.ac b/configure.ac index 3b9e712d4b..daa54567a4 100644 --- a/configure.ac +++ b/configure.ac @@ -1101,7 +1101,7 @@ ompi_show_title "Library and Function tests" # vscanf AC_CHECK_LIB([util], [openpty], [WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS -lutil" LIBLAM_EXTRA_LIBS="$LIBLAMEXTRALIBS -lutil" LIBS="$LIBS -lutil]") -AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf openpty isatty htonl ntohl htons ntohs getpwuid]) +AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf openpty isatty htonl ntohl htons ntohs getpwuid fork waitpid execve]) # # Make sure we can copy va_lists (need check declared, not linkable) diff --git a/orte/mca/pls/fork/configure.m4 b/orte/mca/pls/fork/configure.m4 new file mode 100644 index 0000000000..8477fb5409 --- /dev/null +++ b/orte/mca/pls/fork/configure.m4 @@ -0,0 +1,22 @@ +# -*- shell-script -*- +# +# Copyright (c) 2004-2005 The Trustees of Indiana University. +# All rights reserved. +# Copyright (c) 2004-2005 The Trustees of the University of Tennessee. +# All rights reserved. +# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, +# University of Stuttgart. All rights reserved. +# Copyright (c) 2004-2005 The Regents of the University of California. +# All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# MCA_pls_fork_CONFIG([action-if-found], [action-if-not-found]) +# ----------------------------------------------------------- +AC_DEFUN([MCA_pls_fork_CONFIG],[ + AC_CHECK_FUNC([fork], [$1], [$2]) +])dnl diff --git a/orte/mca/pls/rsh/configure.m4 b/orte/mca/pls/rsh/configure.m4 new file mode 100644 index 0000000000..a6a03ad197 --- /dev/null +++ b/orte/mca/pls/rsh/configure.m4 @@ -0,0 +1,22 @@ +# -*- shell-script -*- +# +# Copyright (c) 2004-2005 The Trustees of Indiana University. +# All rights reserved. +# Copyright (c) 2004-2005 The Trustees of the University of Tennessee. +# All rights reserved. +# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, +# University of Stuttgart. All rights reserved. +# Copyright (c) 2004-2005 The Regents of the University of California. +# All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# MCA_pls_rsh_CONFIG([action-if-found], [action-if-not-found]) +# ----------------------------------------------------------- +AC_DEFUN([MCA_pls_rsh_CONFIG],[ + AC_CHECK_FUNC([fork], [$1], [$2]) +])dnl