summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2013-12-07 08:54:59 -0500
committerJeff Layton <jlayton@samba.org>2013-12-07 08:54:59 -0500
commit2152ccc3d61e5248c70360020a0aa279a24f852c (patch)
tree08913e6db781b41a50176b4fc8d88289416c35bf
parent3aa83995d7c0ef632fe0af3d032e48691a5ce781 (diff)
downloadcifs-utils-2152ccc3d61e5248c70360020a0aa279a24f852c.tar.gz
cifs-utils-2152ccc3d61e5248c70360020a0aa279a24f852c.tar.bz2
cifs-utils-2152ccc3d61e5248c70360020a0aa279a24f852c.zip
autoconf: fix link of libwbclient
It's currently getting added to $LIBS and being linked into places that we don't need it. Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r--aclocal/idmap.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/aclocal/idmap.m4 b/aclocal/idmap.m4
index c5727f6..3ccdae3 100644
--- a/aclocal/idmap.m4
+++ b/aclocal/idmap.m4
@@ -21,6 +21,7 @@ fi
if test $enable_cifsacl != "no" -o $enable_cifsacl != "no"; then
ac_wbc_save_LDFLAGS="$LDFLAGS"
+ ac_wbc_save_LIBS="$LIBS"
LDFLAGS="$LDFLAGS $WBCLIENT_LIBS"
AC_CHECK_LIB(wbclient, wbcSidsToUnixIds, , [
if test "$enable_cifsidmap" = "yes"; then
@@ -37,6 +38,7 @@ if test $enable_cifsacl != "no" -o $enable_cifsacl != "no"; then
fi
])
LDFLAGS=$ac_wbc_save_LDFLAGS
+ LIBS=$ac_wbc_save_LIBS
fi
if test $enable_cifsacl != "no"; then