[pkg-boost-devel] problem for libraries names between ax_boost.m4 and debian packages

Gauthier Quesnel quesnel at lil.univ-littoral.fr
Fri May 25 18:53:08 UTC 2007


Hi all,

I use the autoconf-archive [1] m4 scripts with the autotools to detect
the installed libboost-* librairies. This script tests the following
dynamic libraries names (for instance the filesystem): 

% autoreconf -fi
% ./configure --prefix=~/usr
  [...]
 checking whether the Boost::Filesystem library is available... yes
 checking for main in -lboost_filesystem... no
 checking for main in -lboost_filesystem-gcc... no
 checking for main in -lboost_filesystem-gcc-mt... no
 checking for main in -lboost_filesystem-gcc-mt-s... no
 checking for main in -lboost_filesystem-gcc-s... no
 checking for main in -llibboost_filesystem... no
 checking for main in -llibboost_filesystem-gcc... no
 checking for main in -llibboost_filesystem-gcc-mt... no
 checking for main in -llibboost_filesystem-gcc-mt-s... no
 checking for main in -llibboost_filesystem-gcc-s... no
 checking for main in -lboost_filesystem-mgw... no
 checking for main in -lboost_filesystem-mgw... (cached) no
 checking for main in -lboost_filesystem-mgw-mt... no
 checking for main in -lboost_filesystem-mgw-mt-s... no
 checking for main in -lboost_filesystem-mgw-s... no
 configure: Could not link against boost_filesystem-mgw-s !
 [...]

On the Debian Sid with automake1.10/autoconf2.61-4/boost 1.34

% dpkg -L libboost-filesystem1.34.0 libboost-filesystem-dev | grep .so
  /usr/lib/libboost_filesystem-gcc41-1_34.so.1.34.0
  /usr/lib/libboost_filesystem-gcc41-mt-1_34.so.1.34.0
  /usr/lib/libboost_filesystem-gcc41-mt-1_34.so
  /usr/lib/libboost_filesystem-gcc41-1_34.so
  /usr/lib/libboost_filesystem-mt.so
  /usr/lib/libboost_filesystem-st.so

The ax_boost.m4 script does not detect the correct library because the
"debian libraries names" are not defined in the script. Now, my
question:
	what is the best way to correct this ?
	* modify the ax_boost*.m4 script or
	* modify the debian packages ?
	:-)

Thanks,

Gauthier.

[1] http://autoconf-archive.cryp.to/macros-by-category.html#BOOST



More information about the pkg-boost-devel mailing list