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

Beeblebrox zaphod at
Sun Nov 11 08:44:07 UTC 2012

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

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
{ echo "$as_me:$LINENO: result: $ac_cv_header_boost_foreach_hpp" >&5
echo "${ECHO_T}$ac_cv_header_boost_foreach_hpp" >&6; }
  # 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.  */
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

View this message in context:
Sent from the freebsd-ports mailing list archive at

More information about the freebsd-ports mailing list