Skip to content
Snippets Groups Projects
Commit 6ac33ad5 authored by Mark Grondona's avatar Mark Grondona
Browse files

o add tests for setproctitle() emulation

parent dd161f39
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,33 @@ AC_DEFUN([AC_SLURM_USE_INCLUDED_POPT], ...@@ -90,6 +90,33 @@ AC_DEFUN([AC_SLURM_USE_INCLUDED_POPT],
]) ])
dnl
dnl Perform checks related to setproctitle() emulation
dnl
AC_DEFUN([AC_SLURM_SETPROCTITLE],
[
#
case "$host" in
*-*-aix*)
AC_DEFINE(SETPROCTITLE_STRATEGY,PS_USE_CLOBBER_ARGV)
AC_DEFINE(SETPROCTITLE_PS_PADDING, '\0')
;;
*-*-hpux*)
AC_DEFINE(SETPROCTITLE_STRATEGY,PS_USE_PSTAT)
;;
*-*-linux*)
AC_DEFINE(SETPROCTITLE_STRATEGY,PS_USE_CLOBBER_ARGV)
AC_DEFINE(SETPROCTITLE_PS_PADDING, '\0')
;;
*)
AC_DEFINE(SETPROCTITLE_STRATEGY,PS_USE_NONE,
[Define to the setproctitle() emulation type])
AC_DEFINE(SETPROCTITLE_PS_PADDING, '\0',
[Define if you need setproctitle padding])
;;
esac
])
dnl dnl
dnl dnl
dnl dnl
...@@ -484,3 +511,5 @@ CPPFLAGS="$saved_CPPFLAGS" ...@@ -484,3 +511,5 @@ CPPFLAGS="$saved_CPPFLAGS"
LDFLAGS="$saved_LDFLAGS" LDFLAGS="$saved_LDFLAGS"
])dnl AC_SLURM_WITH_SSL ])dnl AC_SLURM_WITH_SSL
...@@ -74,8 +74,10 @@ AC_CHECK_FUNCS( \ ...@@ -74,8 +74,10 @@ AC_CHECK_FUNCS( \
inet_aton \ inet_aton \
inet_ntop \ inet_ntop \
inet_pton \ inet_pton \
setproctitle \
) )
AC_CHECK_DECLS([strsignal, sys_siglist]) AC_CHECK_DECLS([strsignal, sys_siglist])
ACX_PTHREAD([], AC_MSG_ERROR([Error: Cannot figure out how to use pthreads!])) ACX_PTHREAD([], AC_MSG_ERROR([Error: Cannot figure out how to use pthreads!]))
...@@ -89,6 +91,7 @@ LIBS="$PTHREAD_LIBS $LIBS" ...@@ -89,6 +91,7 @@ LIBS="$PTHREAD_LIBS $LIBS"
AC_SLURM_SEMAPHORE AC_SLURM_SEMAPHORE
AC_SLURM_USE_INCLUDED_POPT AC_SLURM_USE_INCLUDED_POPT
dnl checks for system services. dnl checks for system services.
dnl dnl
...@@ -96,6 +99,10 @@ dnl ...@@ -96,6 +99,10 @@ dnl
dnl checks for system-specific stuff. dnl checks for system-specific stuff.
dnl dnl
dnl check for how to emulate setproctitle
dnl
AC_SLURM_SETPROCTITLE
dnl check for debug compilation dnl check for debug compilation
dnl dnl
AC_MSG_CHECKING(whether debug compilation of modules is enabled) AC_MSG_CHECKING(whether debug compilation of modules is enabled)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment