FS-5956: fix __sputc included twice due to stdio.h inlining issue
FS-6165 --resolve

Conflicts:
	src/mod/endpoints/mod_sofia/sofia_reg.c
revert previous change that does not correct the issue.  opened a bug with apple on this issue https://bugreport.apple.com/problem/viewproblem #15938497
don't define inline to nothing
Start DBs before FS if possible

Thanks-to: Humberto Diógenes <hdiogenes@gmail.com>
mod_rayo: fixed output start-offset and max-time
mod_rayo: added platform-code to end reason
Install switch_curl.h to includes/

FS-6163 --resolve

Thanks-to: Davide Colombo <davec82@gmail.com>
Remove misplaced executable bit
mod_rayo: Translate XMPP messages to SIP messages

Call-bound XMPP messages are translated to SIP messages via
SWITCH_EVENT_SEND_MESSAGE in a similar manner to that described in
draft-ietf-stox-im-06. Messages with a type of "normal" are directed
to the caller. Other types receive a feature-not-implemented response
but it is envisaged that the "groupchat" type could be used to direct
the message to all joined parties.
FS-6171 mod_rayo: added support for normal/groupchat/headline message types for console testing
FS-6172 --resolve mod_rayo: fire input-timers-started during prompt lifecycle
Fix --disable-core-odbc-support

In commit ffc8e81b763c4e11e02309b99e2a4b4aa666e845, tc ensured that
configure would abort if libodbc was not found. However this resulted
in the library check being done twice, as well as rendering
--disable-core-odbc-support ineffective. If libodbc was found, it
would enable core ODBC support regardless. This fix ensures the check
is only done once or not at all if core ODBC support is explicitly
disabled.

Signed-off-by: Travis Cross <tc@traviscross.com>
Ensure we don't set HAVE_ODBC unless we really do
Improve configure ODBC handling
Fix ESL infinite loop on handle_recv() when errno is already set
system calls do not clear errno, just set it in case of failure, so we
gotta make sure the recv() syscall really failed by checking the return value
Fix configure ODBC logic

...and rewrite entire block for better clarity of purpose.

We might want to look more closely at the AX_LIB_ODBC macro as well.

This amends commit 60c56109bc57ec2b73dcced346ec3e7db8a18325.
Revert "Fix configure ODBC logic"

This reverts commit 46501075cd147790159e4c5f9240dd7e3a40da39.
Revert "Improve configure ODBC handling"

This reverts commit 60c56109bc57ec2b73dcced346ec3e7db8a18325, reversing
changes made to d7d5847ddaf5f9f85ed51b68f2b94db55e697f8d.
mod_rayo: fixed recording reference counts