configure ignores SMBCLIENT_LIBS-variable
Status: Beta
Brought to you by:
kshevetskiy
The configure-script's test for -lsmbclient
ignores the SMBCLIENT_LIBS
variable. For example, on my machine Samba's libraries are under /opt/lib/samba4
. Yet, running:
env SMBCLIENT_LIBS="-L/opt/lib/samba4" ./configure
yields:
... checking for FUSE... yes checking for GLIB... yes checking for LIBSECRET... yes checking for SMBCLIENT... yes checking for smbc_setOptionUseCCache in -lsmbclient... no Error!!! libsmbclient >= 3.5 required.
Because the value of the environment variable is not placed on the test-linker's command-line. The work-around is to add the flag to the LDFLAGS
instead.
You should use pkg-config for this task.
Try something like
PKG_CONFIG_PATH=/opt/lib/samba4/lib/pkgconfig:$PKG_CONFIG_PATH ./configure
There is no
/opt/lib/samba4/lib/pkgconfig
on my system, but invokingpkgconf --libs smbclient
outputs the correct information without any special hacks.At any rate, the
SMBCLIENT_LIBS
should work to overwrite whateverpkgconf
outputs, should not it? And it does not -- not quite...hm, you have no smbclient.pc file et all?