]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
configure: make default socket location configurable in configure
authorVincent Bernat <vincent@bernat.im>
Wed, 7 May 2014 11:12:53 +0000 (13:12 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 7 May 2014 11:33:13 +0000 (13:33 +0200)
This closes #63.

configure.ac
src/ctl.h

index dc2e1db9918f52fb69fdf8b5128b97235b35b634..8823f54aa436d5a157cf5230524ce3071d67339d 100644 (file)
@@ -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])
index 9dc65e3f577dd25be61ea0a4e2428f18ee6c682a..2272c428916159cffea8b542f0e6b984abc3f25d 100644 (file)
--- 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 <config.h>
 #endif