2008-10-28 20:22:29 +03:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
|
|
|
dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
dnl University Research and Technology
|
|
|
|
dnl Corporation. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
dnl of Tennessee Research Foundation. All rights
|
|
|
|
dnl reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl University of Stuttgart. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
dnl All rights reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
|
2014-05-07 01:16:29 +04:00
|
|
|
dnl Copyright (c) 2014 Intel, Inc. All rights reserved.
|
2017-02-28 02:05:30 +03:00
|
|
|
dnl Copyright (c) 2017 UT-Battelle, LLC. All rights reserved.
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
dnl
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
dnl
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
# See if there is a ps command that will produce the output we are
|
|
|
|
# interested in. If so, then save it away. Otherwise, the string is
|
|
|
|
# set to unknown.
|
|
|
|
|
2014-05-07 01:16:29 +04:00
|
|
|
AC_DEFUN([OPAL_PS_FLAVOR_CHECK],[
|
2008-10-28 20:22:29 +03:00
|
|
|
AC_MSG_CHECKING([for flavor of ps to use])
|
|
|
|
PS_FLAVOR="unknown"
|
|
|
|
ps -A -o fname > /dev/null 2>&1
|
|
|
|
|
|
|
|
if test "$?" = "0"; then
|
2017-02-28 02:05:30 +03:00
|
|
|
PS_FLAVOR="ps -A -o fname,pid,uid"
|
2008-10-28 20:22:29 +03:00
|
|
|
else
|
|
|
|
ps -A -o command > /dev/null 2>&1
|
|
|
|
if test "$?" = "0"; then
|
2017-02-28 02:05:30 +03:00
|
|
|
PS_FLAVOR="ps -A -o command,pid,uid"
|
2008-10-28 20:22:29 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$PS_FLAVOR])
|
|
|
|
AC_DEFINE_UNQUOTED([ORTE_CLEAN_PS_CMD], ["$PS_FLAVOR"], [Specific ps command to use in orte-clean])
|
|
|
|
])
|
|
|
|
|