Preparing 3.5.2 release
Yacc/AIX segfaults if yylen is used instead of strlen(yytext)

(cherry picked from commit 7bff6a73f50b1b1011099828da10275fca11a1dc)
make aix build ignore yacc warning

(cherry picked from commit 9897ddcdf41a2493901b95026caaf9a5d2d01617)

Conflicts:
	libpromises/Makefile.am
Remove semicolon at the end of IF statement

(cherry picked from commit 4299ba80beead51ff23bad24df3d26301ac52cb7)
Revert "make aix build ignore yacc warning"

This reverts commit a1fe8a5b529d137ec46cd4e4ec4c01db8705fe98.

Build on Solaris 10 started failing after this commit.
tells yacc that we expect some reduce/shift conflicts to happen

(cherry picked from commit 3c9d282e3afdac5216f7aeb70cb69bb864106390)
Fixing a problem with dlclose and avahi

In situations where dlopen does not fail but does not load the library,
the handle will be NULL (see issue 3337 in Redmine).

This fix checks if avahi_handle is not NULL before calling dlclose in order
to avoid the agent from crashing unnecessarily.

Once this is integrated into master this needs to be cherry-picked into 3.5.x.

(cherry picked from commit f97edbc7cb4738f7a2932611436301ab3dd1cd2e)
Adding 32 bits path to avahi paths

Currently we were looking only into 64 bits path for finding the avahi library.
This fix adds at least the 32 bits path from ubuntu to the resolution.

(cherry picked from commit 2173b48b3ff91e3f61efbc6687350e3607115beb)
Post-release version bump
Implement random calling of optimized OpenDB with an optional env var
Merge pull request #933 from jeffali/port35x/TcOptimizeEnvVar

Port35x/tc optimize env var
Merge remote-tracking branch 'upstream/3.5.x' into 3.5_surfsara