4e26793db4f2a46adbc231a39a1402c78be1156a
[senf.git] / senf / config.hh
1 // $Id$
2 //
3 // Copyright (C) 2007
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 //     Stefan Bund <g0dil@berlios.de>
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
23 /** \file
24     \brief config public header */
25
26 #ifndef HH_config_
27 #define HH_config_ 1
28
29 // Custom includes
30 #include <boost/cstdint.hpp>
31 #include <limits.h>
32
33 //-/////////////////////////////////////////////////////////////////////////////////////////////////
34
35 namespace senf {
36 namespace config {
37
38     typedef boost::int_fast64_t time_type;
39
40 }}
41
42 # include "autoconf.hh"
43 # include "local_config.hh"
44 #
45 # ifndef SENF_ABSOLUTE_INCLUDE_PATH
46 #     define SENF_ABSOLUTE_INCLUDE_PATH(senf_relative_include_file_path) \
47           <senf/senf_relative_include_file_path>
48 # endif
49 #
50 # ifndef SENF_copy_n
51 #     ifdef HAVE_GNUCXX_COPYN
52 #         include <ext/algorithm>
53           namespace senf { namespace config { using __gnu_cxx::copy_n; }}
54 #     endif
55 #     ifdef HAVE_STD_COPYN
56 #         include <algorithm>
57           namespace senf { namespace config { using std::copy_n; }}
58 #     endif
59 #  endif
60 #
61 # ifndef SENF_MPL_RV_ALIGNMENT
62 #     define SENF_MPL_RV_ALIGNMENT 16
63 # endif
64 #
65 # if    !defined(SENF_BUFFER_USE_LOCALS) \
66      && !defined(SENF_BUFFER_USE_ALLOCA) \
67      && !defined(SENF_BUFFER_USE_NEW)
68 #     define SENF_BUFFER_USE_NEW 1
69 # endif
70 #
71 # ifndef SENF_SENFLOG_LIMIT
72 #     ifndef SENF_DEBUG
73 #         define SENF_SENFLOG_LIMIT senf::log::IMPORTANT
74 #     else
75 #         define SENF_SENFLOG_LIMIT senf::log::NOTICE
76 #     endif
77 # endif
78 #
79 # ifndef SENF_DEBUG_BACKTRACE_NUMCALLERS
80 #     define SENF_DEBUG_BACKTRACE_NUMCALLERS 64
81 # endif
82 #
83 # ifndef SENF_CONSOLE_MAX_COMMAND_ARITY
84 #     define SENF_CONSOLE_MAX_COMMAND_ARITY 6
85 # endif
86 #
87 # ifndef PHOENIX_LIMIT
88 #     define PHOENIX_LIMIT 6
89 # endif
90 #
91 # ifndef SENF_PACKET_ANNOTATION_SLOTS
92 #     define SENF_PACKET_ANNOTATION_SLOTS 8
93 # endif
94 #
95 # ifndef SENF_PACKET_ANNOTATION_SLOTSIZE
96 #     define SENF_PACKET_ANNOTATION_SLOTSIZE 16
97 # endif
98 #
99 # ifdef SENF_DEBUG
100 #     ifdef HAVE_EXECINFO_H
101 #          define SENF_BACKTRACE
102 #     endif
103 # endif
104 //-/////////////////////////////////////////////////////////////////////////////////////////////////
105 #endif
106
107 \f
108 // Local Variables:
109 // mode: c++
110 // fill-column: 100
111 // comment-column: 40
112 // c-file-style: "senf"
113 // indent-tabs-mode: nil
114 // ispell-local-dictionary: "american"
115 // compile-command: "scons -u all_tests"
116 // End: