autoconf: fix link of libwbclient
authorJeff Layton <jlayton@samba.org>
Sat, 7 Dec 2013 13:54:59 +0000 (08:54 -0500)
committerJeff Layton <jlayton@samba.org>
Sat, 7 Dec 2013 13:54:59 +0000 (08:54 -0500)
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>
aclocal/idmap.m4

index c5727f6cbaa6ae106a9c087dac5a9b157e7cc08d..3ccdae3ab968203e43b1cc8eec806d9de3922790 100644 (file)
@@ -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