From: Vincent Bernat Date: Wed, 7 May 2014 11:12:53 +0000 (+0200) Subject: configure: make default socket location configurable in configure X-Git-Tag: 0.7.9~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a3a36239b5d11737efb8d331c2dda87940eee3a;p=thirdparty%2Flldpd.git configure: make default socket location configurable in configure This closes #63. --- diff --git a/configure.ac b/configure.ac index dc2e1db9..8823f54a 100644 --- a/configure.ac +++ b/configure.ac @@ -233,6 +233,7 @@ if test "x$runstatedir" = x; then AC_SUBST([runstatedir], ['${localstatedir}/run']) fi lldp_ARG_WITH([privsep-chroot], [Which directory to use to chroot lldpd], [${runstatedir}/lldpd]) +lldp_ARG_WITH([lldpd-ctl-socket], [Path to socket for communication with lldpd], [${runstatedir}/lldpd.socket]) # CDP/FDP/EDP/SONMP lldp_ARG_ENABLE([cdp], [Cisco Discovery Protocol], [yes]) diff --git a/src/ctl.h b/src/ctl.h index 9dc65e3f..2272c428 100644 --- a/src/ctl.h +++ b/src/ctl.h @@ -18,8 +18,6 @@ #ifndef _CTL_H #define _CTL_H -#define LLDPD_CTL_SOCKET "/var/run/lldpd.socket" - #if HAVE_CONFIG_H # include #endif