if test "$enable_ipv6" = yes ; then
ip=ipv6
+ SUFFIX6=6
if test "$with_protocols" = all ; then
with_protocols=bgp,pipe,rip,static
fi
else
ip=ipv4
+ SUFFIX6=""
if test "$with_protocols" = all ; then
with_protocols=bgp,ospf,pipe,rip,static
fi
fi
AC_SUBST(CLIENT)
AC_SUBST(CLIENT_LIBS)
+AC_SUBST(SUFFIX6)
mkdir -p $objdir/sysdep
AC_CONFIG_HEADERS([$objdir/sysdep/autoconf.h:sysdep/autoconf.h.in])
/* Path to configuration file */
#ifdef IPV6
# ifdef DEBUGGING
-# define PATH_CONFIG "bird-6.conf"
-# define PATH_CONTROL_SOCKET "bird-6.ctl"
+# define PATH_CONFIG "bird6.conf"
+# define PATH_CONTROL_SOCKET "bird6.ctl"
# else
-# define PATH_CONFIG PATH_CONFIG_DIR "/bird-6.conf"
-# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird-6.ctl"
+# define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
+# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
# endif
#else
# ifdef DEBUGGING
install: all
$(INSTALL) -d $(sbindir) $(sysconfdir) $(localstatedir)
- $(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/
+ $(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/bird@SUFFIX6@
if test -n "@CLIENT@" ; then \
- $(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/ ; \
+ $(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/birdc@SUFFIX6@ ; \
fi
- if ! test -f $(sysconfdir)/bird.conf ; then \
- $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird.conf ; \
+ if ! test -f $(sysconfdir)/bird.@SUFFIX6@conf ; then \
+ $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird@SUFFIX6@.conf ; \
else \
echo "Not overwriting old bird.conf" ; \
fi