Revision acc93efd configure.in

View differences:

configure.in
13 13
AC_ARG_WITH(sysconfig,[  --with-sysconfig=FILE   use specified BIRD system configuration file])
14 14
AC_ARG_WITH(protocols,[  --with-protocols=LIST   include specified routing protocols (default: all)],,[with_protocols="all"])
15 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"])
16 17
AC_ARG_VAR([FLEX], [location of the Flex program]) 
17 18
AC_ARG_VAR([BISON], [location of the Bison program]) 
18 19
AC_ARG_VAR([M4], [location of the M4 program]) 
......
105 106
else
106 107
	case "$ip:$host_os" in
107 108
		ipv4:linux*)	BIRD_CHECK_LINUX_VERSION
109
				default_iproutedir="/etc/iproute2"
108 110
				case $bird_cv_sys_linux_version in
109 111
					1.*|2.0.*)	sysdesc=linux-20 ;;
110 112
					*)		sysdesc=linux-22 ;;
111 113
					esac
112 114
				;;
113 115
		ipv6:linux*)	BIRD_CHECK_LINUX_VERSION
116
				default_iproutedir="/etc/iproute2"
114 117
				case $bird_cv_sys_linux_version in
115 118
					1.*|2.0.*)	AC_MSG_ERROR([This version of Linux doesn't support IPv6.]) ;;
116 119
					*)		sysdesc=linux-v6 ;;
......
154 157
AC_MSG_RESULT($sysdep_dirs)
155 158
AC_SUBST(sysdep_dirs)
156 159

  
160
if test "$with_iproutedir" = no ; then with_iproutedir= ; fi
161

  
162
if test -n "$given_iproutedir"
163
then iproutedir=$with_iproutedir
164
else iproutedir=$default_iproutedir
165
fi
166

  
167
AC_SUBST(iproutedir)
168

  
157 169
AC_MSG_CHECKING([protocols])
158 170
protocols=`echo "$with_protocols" | sed 's/,/ /g'`
159 171
if test "$protocols" = no ; then protocols= ; fi
......
234 246
AC_CONFIG_FILES($makefiles)
235 247
AC_OUTPUT
236 248

  
249
rm -f $objdir/sysdep/paths.h
250

  
237 251
cat >&AC_FD_MSG <<EOF
238 252

  
239 253
BIRD was configured with the following options:
240 254
	Source directory:	$srcdir
241 255
	Object directory:	$objdir
256
	Iproute2 directory:	$iproutedir
242 257
	System configuration:	$sysdesc
243 258
	Debugging:		$enable_debug
244 259
	Routing protocols:	$protocols

Also available in: Unified diff