Revision 71652572

View differences:

INSTALL
9 9
for control socket is /usr/local/var/run/bird.ctl . You can change that
10 10
by --sysconfdir and --localstatedir configure options.
11 11

  
12
To compile current development BIRD source code from Git repository, you
13
also need Git (to download the source code) and Autoconf (to generate
14
the configure script and associated files using 'autoreconf' tool):
15

  
16
$ git clone git://git.nic.cz/bird.git
17
$ cd bird
18
$ autoreconf
19

  
20
Then continue as in usual installation above.
21

  
12 22

  
13 23
Requirements
14 24
============
15 25

  
16 26
For compiling BIRD you need these programs and libraries:
17 27

  
18
 - GNU C Compiler
28
 - GNU C Compiler (or LLVM Clang)
19 29
 - GNU Make
20 30
 - GNU Bison
21 31
 - GNU M4
configure.ac
241 241
esac
242 242

  
243 243
AC_CHECK_HEADERS_ONCE([alloca.h syslog.h])
244

  
245
AC_MSG_CHECKING(whether 'struct sockaddr' has sa_len)
246
AC_COMPILE_IFELSE([
247
  AC_LANG_PROGRAM(
248
    [[
249
      #include <sys/types.h>
250
      #include <sys/socket.h>
251
    ]],
252
    [[
253
      static struct sockaddr sa;
254
      int i = sizeof(sa.sa_len);
255
    ]]
256
  )],
257
  [
258
    AC_MSG_RESULT(yes)
259
    AC_DEFINE(HAVE_SIN_LEN,,sin_len)
260
  ],
261
  [AC_MSG_RESULT(no)]
262
)
244
AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [#include <sys/socket.h>])
263 245

  
264 246
AC_C_BIGENDIAN(
265 247
  [AC_DEFINE([CPU_BIG_ENDIAN], [1], [Define to 1 if cpu is big endian])],
sysdep/unix/io.c
516 516
sockaddr_fill4(struct sockaddr_in *sa, ip_addr a, uint port)
517 517
{
518 518
  memset(sa, 0, sizeof(struct sockaddr_in));
519
#ifdef HAVE_SIN_LEN
519
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
520 520
  sa->sin_len = sizeof(struct sockaddr_in);
521 521
#endif
522 522
  sa->sin_family = AF_INET;

Also available in: Unified diff