core: allow exclude (!) to work for regexp matches as well

only works when regexp are enabled, the only behavioural change is that
the check now happens sooner, setting a flag/ptr increment.

refs #3720
Issue #4392 - Compile-time errors in Icinga 1.9.2

   This commit fixes three compile-time errors that manifest
when using GCC version 2.95.3.  These are the result of intermixing
statements and declarations.

   This is a portability fix only.
Issue #4392 -- gcc errors in extinfo.c and ido2db.c

   Committing Changelog like I should have in the original commit.
Add systemd support to relevant services

Add full systemd support for (at least) fedora 15-19, plus rawhide.
Other systemd-based distributions may work, but have not been tested.
Additionally, update RPM spec file to package RPMs for the
above-referenced fedora distributions.

Specific changes:

 - add new --with-systemd-unitdir AC_ARG, defaulting to
   /usr/lib/systemd/system
 - add systemd unit files in $systemd-unitdir for icinga and ido2db
 - add new --with-systemd-sysconfigdir AC_ARG, defaulting to
   /etc/sysconfig
 - add new $systemd-sysconfigdir/icinga environment file to provide
   configuration for the icinga and ido2db systemd services
 - update RPM spec file to build systemd-enabled packages on systemd-
   enabled fedora distributions, without breaking backward compatibility

fixes #3447

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
Merge branch 'feature/exclude-with-regexp-3720' into next
Merge branch 'fix/compile-time_errors-4392' into next
core: make logging of external command errors more verbose

reworked the original patches to make them fit for icinga.

fixes #4402
tests: fix duplicates on source install
config parser: fix missing exclude on host expansion

refs #3720
idoutils: add macro expanded columns for host/service (notes, notes_url, action_url, icon_image)

refs #1883
fix typo in oracle query

refs #1883
update Changelog

refs #1883
idoutils: fix duration integer columns could run out of range

fixes #4420
Issue #2613 -- Enhance Solaris Packaging

   This commit represents changes made to the Solaris packaging
routine to ensure proper install/removal of packages and files
from /etc/icinga (configuration), /var/icinga (state and logs),
and /usr/local/icinga (executables, HTML, and libraries).

   The change to Makefile.in is to ensure that the installation
script can be found as the Solaris package is generated; a Solaris
"preinstall" file is now used to make sure that the "icinga" user
and group is present, and the postinstall now makes sure that
permissions, UIDs and GIDs are icinga:icinga for configuration
and state data.

refs #2613
Changelog: clarify on expanded macros (static attributes only)

refs #1883
classic ui: fix empty REMOTE_ADDR env var causes sigsegv in cmd.cgi (use_logging=1)

strdup on empty getenv is generally a bad idea.

fixes #4445
classic ui: avoid logging to ourselves on error

during log calls, we cannot just errors again, as it may create log
loops.

refs #4389
icinga.spec: remove commandgrp/user flags for configure

fixes #4394
fix default setting for cgi_log_rotation_method

thanks clang for unveiling self assignment!

refs #4159
fix warnings with CLANG compiler

fixes #4159