config.h.in
author Myhailo Danylenko <isbear@ukrpost.net>
Sat, 05 Mar 2016 15:43:04 +0200
changeset 59 19cfaceda6bb
parent 57 37ed3c7ac1b6
child 63 c17f3295f52c
permissions -rw-r--r--
ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
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
54
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    25
// define this, if you are building with liblua 5.2
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    26
#cmakedefine HAVE_LUA52
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    27
57
37ed3c7ac1b6 ssl: Support for SHA256 fingerprints (v0.9.3)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 54
diff changeset
    28
// 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
    29
#cmakedefine HAVE_LM_SHA256_FINGERPRINTS
37ed3c7ac1b6 ssl: Support for SHA256 fingerprints (v0.9.3)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 54
diff changeset
    30
6
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    31
// 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
    32
#cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    33
31
afcdbbce5002 Autodetect if unregister_reply_handler is present
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    34
// 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
    35
#cmakedefine HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER
afcdbbce5002 Autodetect if unregister_reply_handler is present
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    36
59
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_ca ()
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_CA
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    39
19cfaceda6bb ssl: Add ssl:ca_path and ssl:cipher_list methods (v0.9.4)
Myhailo Danylenko <isbear@ukrpost.net>
parents: 57
diff changeset
    40
// 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
    41
#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
    42
54
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    43
#ifndef HAVE_LUA52
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    44
#  define lua_rawlen lua_objlen
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    45
#  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
    46
#endif
6bef2082e5f9 v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents: 31
diff changeset
    47
5
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    48
#ifdef DEBUG
23
13f03e604c8a License notes
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    49
#  include <glib.h>
6
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    50
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    51
#  ifndef LLM_LOG_PREFIX
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    52
#    define LLM_LOG_PREFIX ( "lua-lm" )
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    53
#  endif
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    54
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    55
#  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
    56
#  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
    57
#  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
    58
#  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
    59
#else
6
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    60
#  define D(FORMAT...) { /* FORMAT */ }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    61
#  define I(FORMAT...) { /* FORMAT */ }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    62
#  define W(FORMAT...) { /* FORMAT */ }
90073cbb535d Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents: 5
diff changeset
    63
#  define E(FORMAT...) { /* FORMAT */ }
5
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    64
#endif
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    65
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    66
#endif
e617c9cf6dd3 Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    67