Tuesday, April 13, 2010

Linking to libsmbclient shared library to a project which uses automake

Well, I wasted two hours of my life today to figure this out, so I am posting it to make sure that does not happen again.

Linking to libsmbclient shared library to a project which uses automake.

  1. Add the following line to the configure.in
  2. AC_CHECK_LIB(smbclient, smbc_init_context)


  3. Call configure and remake the whole thing.


You should then be able to use libsmbclient.h in your code.

No comments: