Revision ab188fb7 configure.in

View differences:

configure.in
6 6
AC_INIT(conf/confbase.Y)
7 7
AC_CONFIG_AUX_DIR(tools)
8 8

  
9
AC_ARG_ENABLE(debug,[  --enable-debug          enable internal debugging routines (default: disabled)],,enable_debug=no)
10
AC_ARG_ENABLE(memcheck,[  --enable-memcheck       check memory allocations when debugging (default: enabled)],,enable_memcheck=yes)
11
AC_ARG_ENABLE(client,[  --enable-client         enable building of BIRD client (default: enabled)],,enable_client=yes)
12
AC_ARG_ENABLE(ipv6,[  --enable-ipv6           enable building of IPv6 version (default: disabled)],,enable_ipv6=no)
13
AC_ARG_WITH(sysconfig,[  --with-sysconfig=FILE   use specified BIRD system configuration file])
14
AC_ARG_WITH(protocols,[  --with-protocols=LIST   include specified routing protocols (default: all)],,[with_protocols="all"])
15
AC_ARG_WITH(sysinclude,[  --with-sysinclude=PATH  search for system includes on specified place])
16
AC_ARG_WITH(iproutedir,[  --with-iproutedir=PATH  path to iproute2 config files (default: /etc/iproute2)],[given_iproutedir="yes"])
17
AC_ARG_VAR([FLEX], [location of the Flex program]) 
18
AC_ARG_VAR([BISON], [location of the Bison program]) 
19
AC_ARG_VAR([M4], [location of the M4 program]) 
9
AC_ARG_ENABLE(debug,	[  --enable-debug          enable internal debugging routines (default: disabled)],,enable_debug=no)
10
AC_ARG_ENABLE(memcheck,	[  --enable-memcheck       check memory allocations when debugging (default: enabled)],,enable_memcheck=yes)
11
AC_ARG_ENABLE(client,	[  --enable-client         enable building of BIRD client (default: enabled)],,enable_client=yes)
12
AC_ARG_ENABLE(ipv6,	[  --enable-ipv6           enable building of IPv6 version (default: disabled)],,enable_ipv6=no)
13
AC_ARG_WITH(suffix,	[  --with-suffix=STRING    use specified suffix for BIRD files (default: 6 for IPv6 version)],[given_suffix="yes"])
14
AC_ARG_WITH(sysconfig,	[  --with-sysconfig=FILE   use specified BIRD system configuration file])
15
AC_ARG_WITH(protocols,	[  --with-protocols=LIST   include specified routing protocols (default: all)],,[with_protocols="all"])
16
AC_ARG_WITH(sysinclude,	[  --with-sysinclude=PATH  search for system includes on specified place])
17
AC_ARG_WITH(runtimedir,	[  --with-runtimedir=PATH  path for runtime files (default: $(localstatedir)/run)],[runtimedir="$with_runtimedir"],[runtimedir="\$(localstatedir)/run"])
18
AC_ARG_WITH(iproutedir,	[  --with-iproutedir=PATH  path to iproute2 config files (default: /etc/iproute2)],[given_iproutedir="yes"])
19
AC_ARG_VAR([FLEX], [location of the Flex program])
20
AC_ARG_VAR([BISON], [location of the Bison program])
21
AC_ARG_VAR([M4], [location of the M4 program])
22

  
20 23

  
21 24
if test "$srcdir" = . ; then
22 25
	# Building in current directory => create obj directory holding all objects
......
39 42
AC_SUBST(objdir)
40 43
AC_SUBST(exedir)
41 44
AC_SUBST(srcdir_rel_mf)
45
AC_SUBST(runtimedir)
42 46

  
43 47
if test "$enable_ipv6" = yes ; then
44 48
	ip=ipv6
45
	SUFFIX6=6
49
	SUFFIX=6
46 50
	all_protocols=bgp,ospf,pipe,radv,rip,static
47 51
else
48 52
	ip=ipv4
49
	SUFFIX6=""
53
	SUFFIX=""
50 54
	all_protocols=bgp,ospf,pipe,rip,static
51 55
fi
52 56

  
57
if test "$given_suffix" = yes ; then
58
   	SUFFIX="$with_suffix"
59
fi
60
AC_SUBST(SUFFIX)
61

  
53 62
if test "$with_protocols" = all ; then
54 63
	with_protocols="$all_protocols"
55 64
fi
56 65

  
66
if test "$enable_debug" = yes ; then
67
	CONFIG_FILE="bird$SUFFIX.conf"
68
	CONTROL_SOCKET="bird$SUFFIX.ctl"
69
else
70
	CONFIG_FILE="\$(sysconfdir)/bird$SUFFIX.conf"
71
	CONTROL_SOCKET="$runtimedir/bird$SUFFIX.ctl"
72
fi
73
AC_SUBST(CONFIG_FILE)
74
AC_SUBST(CONTROL_SOCKET)
75

  
57 76
AC_SEARCH_LIBS(clock_gettime,[c rt posix4])
58 77

  
59 78
AC_CANONICAL_HOST
......
225 244
fi
226 245
AC_SUBST(CLIENT)
227 246
AC_SUBST(CLIENT_LIBS)
228
AC_SUBST(SUFFIX6)
229 247

  
230 248
mkdir -p $objdir/sysdep
231 249
AC_CONFIG_HEADERS([$objdir/sysdep/autoconf.h:sysdep/autoconf.h.in])

Also available in: Unified diff