Redmine #5148, #5206: uptime is no longer failing with latest fixes.

(cherry picked from commit 26d58a1f4ca21acf491ba91f403284c45ced3e03)
save only global processes on global zone ps

(cherry picked from commit a3ee385fed6833a7fb356f0ea045da343d275e04)
cache is_global and fix logic for creating pidlists when saving

(cherry picked from commit 6925a2c185af198b4767b12ca5715727b54b84f2)
remove -e from grep and use fgrep instead of grep -F in testall

(cherry picked from commit 29ba1bb12020186bfdfa77d9a7cc4061a597687a)
Commit original strndup.m4 from gnulib, modifications in next commit.

(cherry picked from commit 94ade8ecf793cafdfc1318b3c56827254d24d1f8)
remove xfail on acceptance test for solaris 11

(cherry picked from commit 7cb5106800f82d9e5933a8fb315a19faa2163819)
Windows compile fix: Check for ieeefp.h before using it.

(cherry picked from commit f2ed76547b6e852c516cdeb69c03490dcd19f754)
Redmine #5211: Detect broken strndup on AIX and provide workaround.

This fixes some *very* elusive crashes, that happen pretty much
anywhere in CFEngine, the reason is that strndup(src, n) on AIX has a
bug which allocates memory for strlen(src), but it will *write* n
bytes, so whenever n > strlen(src) you get memory corruption.

(cherry picked from commit ce7ddaaa0ff8ef59ae445a9ef3035cdb93057104)
Fix cf-upgrade's self-copy in windows.

(cherry picked from commit 48f85af649c184801473f2a1eee720f7af7b7c62)
Suppress some more test failures on AIX.

(cherry picked from commit 39ad8d987a3067a91acf1130cfdbba3237900751)
fix failing acceptance test by fixing ps opts

(cherry picked from commit 175a3c61a0302602a5a3521ec567e2ec34181ab2)

Conflicts:
	libpromises/systype.c
Work around AIX forcing the primary group to be part of secondaries.

Fixes test case 17_users/unsafe/promise_outcomes.cf.

(cherry picked from commit c8b7a90bc7440c8f67eb4d2478d061de15c5ba77)