boost error for linux source - looking in the wrong place?

Gary Jennejohn gljennjohn at googlemail.com
Sun Nov 11 09:38:12 UTC 2012


On Sun, 11 Nov 2012 00:44:06 -0800 (PST)
Beeblebrox <zaphod at berentweb.com> wrote:

> I am trying to compile a linux source code on FreeBSD-9.1-PRERELEASE_amd64.
> at the ./configure stage I get this error:
> ------------------------------------
> checking boost/foreach.hpp usability... no
> checking boost/foreach.hpp presence... no
> checking for boost/foreach.hpp... no
> configure: error: "BOOST library is missing"
> ------------------------------------
> 
> But, I have /usr/local/include/boost/foreach.hpp
> /usr/local/include/boost/test/utils/foreach.hpp
> 
> So the folder where FreeBSD places this and the folder where configure looks
> (as linux) must be different. How can I correct this? The relevant code
> snippet from the configure file is:
> if test x"$ac_boost_inc" != x"no"; then
>   CFLAGS+=" -I$ac_boost_inc "
>   CXXFLAGS+=" -I$ac_boost_inc "
>   (
>     CPPFLAGS+=" -I$ac_boost_inc "
>     if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
>   { echo "$as_me:$LINENO: checking for boost/foreach.hpp" >&5
> echo $ECHO_N "checking for boost/foreach.hpp... $ECHO_C" >&6; }
> if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
>   echo $ECHO_N "(cached) $ECHO_C" >&6
> fi
> { echo "$as_me:$LINENO: result: $ac_cv_header_boost_foreach_hpp" >&5
> echo "${ECHO_T}$ac_cv_header_boost_foreach_hpp" >&6; }
> else
>   # Is the header compilable?
> { echo "$as_me:$LINENO: checking boost/foreach.hpp usability" >&5
> echo $ECHO_N "checking boost/foreach.hpp usability... $ECHO_C" >&6; }
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h.  */
> _ACEOF
> cat confdefs.h >>conftest.$ac_ext
> cat >>conftest.$ac_ext <<_ACEOF
> /* end confdefs.h.  */
> $ac_includes_default
> 

It seems pretty obvious that you have to set whatever command line
option sets ac_boost_inc to /usr/local/include/boost.

What does configure --help show?

-- 
Gary Jennejohn


More information about the freebsd-ports mailing list