Acceptance test for redmine 6568
Follow normal ordering also in common bundles

Evaluate variables promises before classes promises.

Also reduce code duplication.

Fixes Redmine 6568
typo

(cherry picked from commit f4d6b6fb28f4839fac5f58846e0e47e5b7c641a4)
Move LIBS re-setting outside the if XNU conditional so that autoconf does not complain.

(cherry picked from commit 561606dc2e21bbe08ed3c3fc3904ae66f280ed77)
Add forgotten m4 file to dist tarball.

(cherry picked from commit 3660516bd804cf6027e0aed3dfe57d2313db558c)
distribute test script

(cherry picked from commit 6b806498a891be2c9c553b46bb18e0dd386c8161)
Merge pull request #1975 from jimis/master

dist tarball fixes
Merge pull request #1971 from vohi/redmine/6568

Redmine/6568: Fix ordering of variables and classes in common bundles
Switch to custom byte swapping function.

GCC builtins like __bswap_32 are not portable between versions.
Revert "Acceptance test for redmine 6568"

This reverts commit 361374bcb05e47f78e46c42e4a753a7e9ff71ef8.
Revert "Follow normal ordering also in common bundles"

This reverts commit e92efc5458117c4988ddb8c815c72a017bd5f981.

Autorun acceptance test in masterfiles started failing, can't
see any other commit that would have changed behavior here.
Merge pull request #1977 from kacfengine/bswap

Switch to custom byte swapping function.