config.h.in
author Myhailo Danylenko <isbear@ukrpost.net>
Wed, 16 Mar 2016 01:53:56 +0200
changeset 66 a40beb82130c
parent 63 c17f3295f52c
permissions -rw-r--r--
node: Use new loudmouth feature - public attribute list (v0.9.7)
23
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     1
59
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
     2
/* Copyright 2009-2016 Myhailo Danylenko
23
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     3
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     4
This file is part of lua-lm.
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     5
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     6
lua-lm is free software: you can redistribute it and/or modify
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     7
it under the terms of the GNU General Public License as published by
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     8
the Free Software Foundation, either version 2 of the License, or
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
     9
(at your option) any later version.
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    10
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    11
This program is distributed in the hope that it will be useful,
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    14
GNU General Public License for more details.
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    15
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    16
You should have received a copy of the GNU General Public License
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    17
along with this program.  If not, see <http://www.gnu.org/licenses/>. */
5
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    18
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    19
#ifndef LLM_CONFIG_H
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    20
#define LLM_CONFIG_H
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    21
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    22
// define this to enable debugging output
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    23
#cmakedefine DEBUG
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    24
57
37ed3c7ac1b6 ssl: Support for SHA256 fingerprints (v0.9.3)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 54
diff changeset
    25
// define this, if your loudmouth uses SHA256 fingerprints
37ed3c7ac1b6 ssl: Support for SHA256 fingerprints (v0.9.3)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 54
diff changeset
    26
#cmakedefine HAVE_LM_SHA256_FINGERPRINTS
37ed3c7ac1b6 ssl: Support for SHA256 fingerprints (v0.9.3)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 54
diff changeset
    27
6
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    28
// define this, if your loudmouth have lm_connection_get_keep_alive_rate ()
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    29
#cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    30
31
afcdbbce5002 Autodetect if unregister_reply_handler is present
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    31
// define this, if your loudmouth have lm_connection_unregister_reply_handler ()
afcdbbce5002 Autodetect if unregister_reply_handler is present
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    32
#cmakedefine HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER
afcdbbce5002 Autodetect if unregister_reply_handler is present
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    33
59
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    34
// define this, if your loudmouth have lm_ssl_set_ca ()
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    35
#cmakedefine HAVE_LM_SSL_SET_CA
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    36
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    37
// define this, if your loudmouth have lm_ssl_set_cipher_list ()
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    38
#cmakedefine HAVE_LM_SSL_SET_CIPHER_LIST
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    39
66
a40beb82130c node: Use new loudmouth feature - public attribute list (v0.9.7)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 63
diff changeset
    40
// define this, if your loudmouth have LmMessageNodeAttribute
a40beb82130c node: Use new loudmouth feature - public attribute list (v0.9.7)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 63
diff changeset
    41
#cmakedefine HAVE_LM_MESSAGE_NODE_ATTRIBUTE
a40beb82130c node: Use new loudmouth feature - public attribute list (v0.9.7)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 63
diff changeset
    42
63
c17f3295f52c lua: Add compatibility with lua 5.3
Myhailo Danylenko <isbear@ukrpost.net>
parents: 59
diff changeset
    43
// building against lua 5.1
c17f3295f52c lua: Add compatibility with lua 5.3
Myhailo Danylenko <isbear@ukrpost.net>
parents: 59
diff changeset
    44
#cmakedefine LUA51_COMPATIBILITY
c17f3295f52c lua: Add compatibility with lua 5.3
Myhailo Danylenko <isbear@ukrpost.net>
parents: 59
diff changeset
    45
c17f3295f52c lua: Add compatibility with lua 5.3
Myhailo Danylenko <isbear@ukrpost.net>
parents: 59
diff changeset
    46
#ifdef LUA51_COMPATIBILITY
54
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    47
#  define lua_rawlen lua_objlen
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    48
#  define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    49
#endif
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    50
5
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    51
#ifdef DEBUG
23
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    52
#  include <glib.h>
6
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    53
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    54
#  ifndef LLM_LOG_PREFIX
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    55
#    define LLM_LOG_PREFIX ( "lua-lm" )
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    56
#  endif
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    57
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    58
#  define D(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    59
#  define I(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    60
#  define W(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    61
#  define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); }
5
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    62
#else
6
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    63
#  define D(FORMAT...) { /* FORMAT */ }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    64
#  define I(FORMAT...) { /* FORMAT */ }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    65
#  define W(FORMAT...) { /* FORMAT */ }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    66
#  define E(FORMAT...) { /* FORMAT */ }
5
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    67
#endif
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    68
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    69
#endif
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    70