jash-kothari-forks / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
0 stars 0 forks source link

configure fails to find #494

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On Linux Mint Nadia 14

with libtorrent-rasterbar 0.16.9

if the environmental variable CONFIG_SHELL is set to Bourne shell

export CONFIG_SHELL="/bin/sh"

configure fails to find the Boost system library.

...
Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using 
--with-boost-system=lib

The configure process should not rely on Bash but should work with plain Bourne 
shell or equivalent, eg dash.

Original issue reported on code.google.com by jgmil...@pt.LU on 2 Jul 2013 at 12:36

GoogleCodeExporter commented 8 years ago
I'm not all that familiar with the automake/autoconf build process. Are you 
suggesting dropping all dependencies on $CONFIG_SHELL ?

Can you get it to work by changing something? if so, what's your change?

Original comment by arvid.no...@gmail.com on 3 Jul 2013 at 5:06

GoogleCodeExporter commented 8 years ago
Thanks for the quick response.

No, I am not suggesting dropping all dependencies on CONFIG_SHELL.   ;)

Thinking more about the issue, it could actually be that the autconf rules 
install on the system have some Bashisms related to the Boost system libraries, 
and thus it is not something the libtorrent-rasterbar autoconf files can solve.

The very simple hack to fix the problem is

CONFIG_SHELL="/bin/bash"
export CONFIG_SHELL

and all works as it should.

Perhaps drawing attention to this might help others who are trying to build 
libtorrent-rasterbar in Bourne shell only, particularly with a Bourne shell 
build script (detar, config, make, make install, stow as I am doing).

I have run into this issue with a number of other packages which I build from 
source, and have had to set CONFIG_SHELL to /bin/bash because at some point one 
of the configure tests fails if CONFIG_SHELL is set to /bin/sh, viz

amule
gst-editing-services
gst-ffmpeg
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gst-python
gstreamer-qt
gstreamer
gst-rtsp-server
libtorrent-rasterbar
spacefm
uget
out of a total of 261 packages.

Original comment by jgmil...@pt.LU on 4 Jul 2013 at 10:35