Author: viethen Date: Fri Mar 23 13:58:56 2012 New Revision: 2952 Log: Make config.h include the location of the "ip" utility. Modified: trunk/configure.ac Modified: trunk/configure.ac ============================================================================== --- trunk/configure.ac Fri Mar 23 13:45:58 2012 (r2951) +++ trunk/configure.ac Fri Mar 23 13:58:56 2012 (r2952) @@ -98,6 +98,8 @@ # default location of lock file (Linux in mind) AC_DEFINE([PISA_LOCKDIR_PATH], ["/var/lock"]) AH_TEMPLATE(PISA_LOCKDIR_PATH, [location of lock files as needed by pisacd and pisasd]) +AC_DEFINE([IP_PATHNAME], ["/sbin/ip"]) +AH_TEMPLATE(IP_PATHNAME, [location of the "ip" binary]) # platform-specific settings AS_CASE([$host], @@ -105,7 +107,8 @@ [AC_DEFINE([PISA_LOCKDIR_PATH], ["/tmp"])], [*-*-freebsd*], [AC_SUBST(AM_CPPFLAGS, "$AM_CPPFLAGS -D__BSD_VISIBLE")] [AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wno-error=strict-aliasing")] - [AC_DEFINE([PISA_LOCKDIR_PATH], ["/tmp"])]) + [AC_DEFINE([PISA_LOCKDIR_PATH], ["/tmp"])], + [*-openwrt-linux*], [AC_DEFINE([IP_PATHNAME], ["/usr/sbin/ip"])]) # If no --prefix option is passed to configure, $prefix is empty. But we want # to expand $sysconfdir, which defaults to ${prefix}/etc. So set $prefix. -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa