Commit ce591f76 authored by W. Trevor King's avatar W. Trevor King Committed by Greg Kroah-Hartman

staging: usbip: userspace: allow `configure --with-tcp-wrappers`

When `--with-tcp-wrappers` is passed to `configure`, the previous code
always reset LIBS to $saved_LIBS, regardless of whether libwrap was
found or not.  The current code makes the `--with-tcp-wrappers` case
look more like the default case, and it only resets LIBS if libwrap
was not found.
Signed-off-by: default avatarW. Trevor King <wking@tremily.us>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93efc55b
...@@ -56,11 +56,11 @@ AC_ARG_WITH([tcp-wrappers], ...@@ -56,11 +56,11 @@ AC_ARG_WITH([tcp-wrappers],
[AS_HELP_STRING([--with-tcp-wrappers], [AS_HELP_STRING([--with-tcp-wrappers],
[use the libwrap (TCP wrappers) library])], [use the libwrap (TCP wrappers) library])],
dnl [ACTION-IF-GIVEN] dnl [ACTION-IF-GIVEN]
[saved_LIBS="$LIBS" [if test "$withval" = "yes"; then
if test "$withval" = "yes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_MSG_CHECKING([for hosts_access in -lwrap]) AC_MSG_CHECKING([for hosts_access in -lwrap])
LIBS="-lwrap $LIBS" saved_LIBS="$LIBS"
LIBS="-lwrap $saved_LIBS"
AC_TRY_LINK( AC_TRY_LINK(
[int hosts_access(); int allow_severity, deny_severity;], [int hosts_access(); int allow_severity, deny_severity;],
[hosts_access()], [hosts_access()],
...@@ -69,9 +69,9 @@ AC_ARG_WITH([tcp-wrappers], ...@@ -69,9 +69,9 @@ AC_ARG_WITH([tcp-wrappers],
[use tcp wrapper]) wrap_LIB="-lwrap"], [use tcp wrapper]) wrap_LIB="-lwrap"],
[AC_MSG_RESULT([not found]); exit 1]) [AC_MSG_RESULT([not found]); exit 1])
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no]);
fi LIBS="$saved_LIBS"
LIBS="$saved_LIBS"], fi],
dnl [ACTION-IF-NOT-GIVEN] dnl [ACTION-IF-NOT-GIVEN]
[AC_MSG_RESULT([(default)]) [AC_MSG_RESULT([(default)])
AC_MSG_CHECKING([for hosts_access in -lwrap]) AC_MSG_CHECKING([for hosts_access in -lwrap])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment