summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2014-05-07 12:19:33 -0700
committerShawn Routhier <sar@isc.org>2014-05-07 12:19:33 -0700
commit00e9af8ee0d724e5dc6d15c43d8f602909981d66 (patch)
tree744a0fc908b52d45b7ed0941afdb61e4735526b2 /configure
parentd8c7c34ef64922f1b7d60c5bd5ac01d8ad5ffdca (diff)
downloadisc-dhcp-00e9af8ee0d724e5dc6d15c43d8f602909981d66.tar.gz
[master] Add configure option to incude PID in syslog entries
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index a0e69694..b41aeb4f 100755
--- a/configure
+++ b/configure
@@ -746,6 +746,7 @@ enable_early_chroot
enable_ipv4_pktinfo
enable_use_sockets
enable_secs_byteorder
+enable_log_pid
with_atf
with_srv_lease_file
with_srv6_lease_file
@@ -1414,6 +1415,7 @@ Optional Features:
--enable-use-sockets use the standard BSD socket API (default is no)
--enable-secs-byteorder Correct bad byteorders in the secs field (default is
no).
+ --enable-log-pid Include PIDs in syslog messages (default is no).
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -5400,6 +5402,20 @@ $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
fi
+# Include the PID in the log messages. This is useful when there may be multiple
+# instances of a program.
+# This is off by default
+# Check whether --enable-log_pid was given.
+if test "${enable_log_pid+set}" = set; then :
+ enableval=$enable_log_pid;
+fi
+
+if test "$enable_log_pid" = "yes" ; then
+
+$as_echo "#define USE_LOG_PID 1" >>confdefs.h
+
+fi
+
# Testing section
atf_path="no"