From 6627f1c1d8acc2d53a9502a096123c0163bf731a Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 17 May 2018 16:48:38 +0300 Subject: Select default PID source as suggested in the docs. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 8cf75a7..5d36092 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,14 @@ GRECS_SETUP(grecs, [all-parsers]) AM_CONDITIONAL([COND_PCRE], [test "$ac_cv_header_pcre_h" = yes && test "$ac_cv_lib_pcre_main" = yes]) +if test -f /proc/$$/cmdline; then + DEFAULT_PID_SOURCE='"PROC"' +else + DEFAULT_PID_SOURCE='"PS"' +fi +AC_DEFINE_UNQUOTED(DEFAULT_PID_SOURCE,$DEFAULT_PID_SOURCE, + [Default PID source]) + AC_CONFIG_FILES([Makefile src/Makefile]) -- cgit v1.2.1