config.h 1.36 KB
Newer Older
1
/*
2 3
 *	This file contains all parameters dependent on the
 *	operating system and build-time configuration.
4 5 6 7 8
 */

#ifndef _BIRD_CONFIG_H_
#define _BIRD_CONFIG_H_

9
/* BIRD version */
10
#define BIRD_VERSION "1.3.4"
11

12 13
/* Include parameters determined by configure script */
#include "sysdep/autoconf.h"
14

15 16
/* Include OS configuration file as chosen in autoconf.h */
#include SYSCONF_INCLUDE
17

18 19
#ifndef MACROS_ONLY

20 21 22 23
/*
 *  Of course we could add the paths to autoconf.h, but autoconf
 *  is stupid and puts make-specific substitutious to the paths.
 */
24 25
#include "sysdep/paths.h"

26
/* Types */
27 28 29 30 31 32
typedef signed INTEGER_8 s8;
typedef unsigned INTEGER_8 u8;
typedef INTEGER_16 s16;
typedef unsigned INTEGER_16 u16;
typedef INTEGER_32 s32;
typedef unsigned INTEGER_32 u32;
33 34
typedef INTEGER_64 s64;
typedef unsigned INTEGER_64 u64;
35 36 37
typedef u8 byte;
typedef u16 word;

38 39
#endif

40
/* Path to configuration file */
41 42
#ifdef IPV6
#  ifdef DEBUGGING
43 44
#    define PATH_CONFIG "bird6.conf"
#    define PATH_CONTROL_SOCKET "bird6.ctl"
45
#  else
46 47
#    define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
#    define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
48
#  endif
49
#else
50 51 52 53 54 55 56
#  ifdef DEBUGGING
#    define PATH_CONFIG "bird.conf"
#    define PATH_CONTROL_SOCKET "bird.ctl"
#  else
#    define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
#    define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
#  endif
57
#endif
58

59
#endif