Skip to content

Commit

Permalink
Fix feature request 13460
Browse files Browse the repository at this point in the history
  • Loading branch information
timystery committed Mar 27, 2017
1 parent c7abccb commit 1fe2ce3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions configure.ac.in
Expand Up @@ -159,9 +159,15 @@ if test x"$enable_netcat" = x"yes"; then
NETCAT_HOST=localhost
HDDTEMP_PORT=7634

AC_MSG_CHECKING([for hddtemp being queryable via netcat])
NETCAT_RUN=([`"$NETCAT_PATH" "$NETCAT_HOST" "$HDDTEMP_PORT" 2> /dev/null`])
AC_MSG_RESULT([$NETCAT_RUN])
AC_ARG_ENABLE([pathchecks], [AC_HELP_STRING([--enable-pathchecks], [Enable checks for paths, access and execution @<:@default=yes@:>@])],
[
NETCAT_RUN=skip
], [
AC_MSG_CHECKING([for hddtemp being queryable via netcat])
NETCAT_RUN=([`"$NETCAT_PATH" "$NETCAT_HOST" "$HDDTEMP_PORT" 2> /dev/null`])
AC_MSG_RESULT([$NETCAT_RUN])
])

if test x"$NETCAT_RUN" = x""; then
enable_netcat=no
dnl AC_DEFINE([HAVE_NETCAT], [0], [Define to 1 if hddtemp daemon is queried via netcat])
Expand Down

0 comments on commit 1fe2ce3

Please sign in to comment.