Autotools: move libhtp conditionals to configure

In preparation of the libhtp upgrade, move all libhtp related conditionals
to configure. This allows for one set of build scripts that works regardless
of the presence of a local libhtp dir.
Use relative dir instead of ac_builddir

When generating src/build-info.h the use of ac_builddir was problematic.
There were several cases where it was undefined leading to the absolute
path /src/build-info.h. ./configure should be called from the parent dir
to the actual src dir, so this should work. Make distcheck and normal builds
complete fine.
ccccinelle: add formatted comment for flag test
coccinelle: add script to generate flags test

This patch adds a script which can be used to generate a test
on coherence of flag usage.

By adding comment in the code, it is possible to declare that we
link a flag in a structure to a specific family of constant:

For example:
	/* coccinelle: Packet:flowflags:FLOW_PKT_ */
will trigger the generation on a test which verifies that the
flowflags field in Packet structure is only used with constant
starting by FLOW_PKT_.
coccinelle: dynamic testing through make check

This patch modify build system to have make to create the
struct-flags.cocci file by running struct-flags.py.

This way 'make check' is running the test defined from source
code.
detect-engine: do a direct update of flag

There is no reason not to update the flag directly. So do it
to avoid to crash the test.
Fix sgh mpm flags assignment
Enable libhtp 0.3.0 compilation and crash free UT run. Still see 5 failed tests.
Suricata upgrade to libhtp 0.5.x.

Remove the support for now unsupported personalities from libhtp -
TOMCAT_6_0, APACHE and APACHE_2_2.  We instead use the APACHE_2
personality.
libhtp: remove libhtp from repo
Fix CLS configure check
Luajit: fix compilation and tests after libhtp upgrade
Code to enable cuda support for live mode pcap and af-packet.  Keep an eye
out on the mailing list and http://planet.suricata-ids.org for performance
and other profiling data.
In case of fragments, don't consider ports. Bug #847.
Check for local include first.
configure: check for iconv in htp embedded mode

At least on freebsd, suricata fails to build in htp embedded mode
due to iconv linking issue.
Add file needed for some autotools version.

It seems config.rpath is a file needed in some cases. If the
file is not present libhtp autogen.sh is failling.
Fix compilation warning

A goto could lead to the use de_ctx without declaring it.
autotool: INCLUDES usage is deprecated
autotools: AM_INIT_AUTOMAKE with args is deprecated