make: If on OS X, add /opt/local/include, etc. to paths. This will find boost, etc. on OS X.
diff --git a/configure b/configure
index c7d181b..f72da90 100755
--- a/configure
+++ b/configure
@@ -16023,6 +16023,24 @@
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+# Special case.
+case "$host" in
+ *-darwin* | *-macos10*)
+ if test -d /opt/local ; then
+ CFLAGS="$CFLAGS -I/opt/local/include"
+ CXXFLAGS="$CXXFLAGS -I/opt/local/include"
+ CPPFLAGS="$CPPFLAGS -I/opt/local/include"
+ LDFLAGS="$LDFLAGS -L/opt/local/lib"
+ elif test -d /sw ; then
+ CFLAGS="$CFLAGS -I/sw/include"
+ CXXFLAGS="$CXXFLAGS -I/sw/include"
+ CPPFLAGS="$CPPFLAGS -I/sw/include"
+ LDFLAGS="$LDFLAGS -L/sw/lib"
+ fi
+ ;;
+esac
+
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :
diff --git a/configure.ac b/configure.ac
index ec2f280..6700637 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,24 @@
AM_PROG_CC_C_O
AC_PROG_OBJCXX
AC_LANG([C++])
+
+# Special case.
+case "$host" in
+ *-darwin* | *-macos10*)
+ if test -d /opt/local ; then
+ CFLAGS="$CFLAGS -I/opt/local/include"
+ CXXFLAGS="$CXXFLAGS -I/opt/local/include"
+ CPPFLAGS="$CPPFLAGS -I/opt/local/include"
+ LDFLAGS="$LDFLAGS -L/opt/local/lib"
+ elif test -d /sw ; then
+ CFLAGS="$CFLAGS -I/sw/include"
+ CXXFLAGS="$CXXFLAGS -I/sw/include"
+ CPPFLAGS="$CPPFLAGS -I/sw/include"
+ LDFLAGS="$LDFLAGS -L/sw/lib"
+ fi
+ ;;
+esac
+
AC_TYPE_SIZE_T
AC_TYPE_INT8_T
AC_TYPE_INT16_T