]> git.ipfire.org Git - thirdparty/bird.git/blob - sysdep/config.h
e9f1063744eb9b4899ce8745414637a1f81783cf
[thirdparty/bird.git] / sysdep / config.h
1 /*
2 * This file contains all parameters dependent on the
3 * operating system and build-time configuration.
4 */
5
6 #ifndef _BIRD_CONFIG_H_
7 #define _BIRD_CONFIG_H_
8
9 /* BIRD version */
10 #define BIRD_VERSION "1.3.3"
11
12 /* Include parameters determined by configure script */
13 #include "sysdep/autoconf.h"
14
15 /* Include OS configuration file as chosen in autoconf.h */
16 #include SYSCONF_INCLUDE
17
18 #ifndef MACROS_ONLY
19
20 /*
21 * Of course we could add the paths to autoconf.h, but autoconf
22 * is stupid and puts make-specific substitutious to the paths.
23 */
24 #include "sysdep/paths.h"
25
26 /* Types */
27 typedef signed INTEGER_8 s8;
28 typedef unsigned INTEGER_8 u8;
29 typedef INTEGER_16 s16;
30 typedef unsigned INTEGER_16 u16;
31 typedef INTEGER_32 s32;
32 typedef unsigned INTEGER_32 u32;
33 typedef INTEGER_64 s64;
34 typedef unsigned INTEGER_64 u64;
35 typedef u8 byte;
36 typedef u16 word;
37
38 #endif
39
40 /* Path to configuration file */
41 #ifdef IPV6
42 # ifdef DEBUGGING
43 # define PATH_CONFIG "bird6.conf"
44 # define PATH_CONTROL_SOCKET "bird6.ctl"
45 # else
46 # define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
47 # define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
48 # endif
49 #else
50 # ifdef DEBUGGING
51 # define PATH_CONFIG "bird.conf"
52 # define PATH_CONTROL_SOCKET "bird.ctl"
53 # else
54 # define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
55 # define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
56 # endif
57 #endif
58
59 #endif