>
> > This is a known deficiency in the coupling between libtool and autoconf,
> > which needs fixing at some point. In the mean time how about (wild
guess
> > here!):
>
> > save_CC=$CC
> > CC="${SHELL-/bin/sh} ${top_srcdir)/libtool $CC"
> > AC_TRY_LINK(blah)
> > CC=$save_CC
>
> This doesn't work. libtool needs two-pass compile&link, whereas
> AC_TRY_LINK assumes $CC can take a source file and generate an
> executable directly out of it.
>
Gary second suggestion worked after removing the back slashes:
save_CXX=$CXX
CXX="${SHELL-/bin/sh} ${srcdir}/libtool $CXX"
AC_TRY_LINK(blah)
CXX=$save_CXX
It seems ok as looking at the config.log it's a one liner which does both
the compile and link in one go. As such it's correctly converting the
library dependecies on it. Btw, what would be your solution?
Simon