Blame SOURCES/0001-rerun-autoconf-after-remove-BOOST_SYSTEM.patch

a9add1
From 6fa818c04cd6b011a281ab02ab861e84a94ee549 Mon Sep 17 00:00:00 2001
a9add1
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
a9add1
Date: Fri, 22 Jan 2016 14:38:59 +0000
a9add1
Subject: [PATCH] rerun autoconf after remove BOOST_SYSTEM
a9add1
a9add1
Change-Id: Id9afe7150ad721ba1d728cbb3e9b496d15f0896f
a9add1
---
a9add1
 external/liborcus/unusedheader.patch.0 | 2630 ++++++++++++++++++++++++++++++++
a9add1
 1 file changed, 2630 insertions(+)
a9add1
a9add1
diff --git a/external/liborcus/unusedheader.patch.0 b/external/liborcus/unusedheader.patch.0
a9add1
index 4f7a77b..54f2fe6 100644
a9add1
--- a/external/liborcus/unusedheader.patch.0
a9add1
+++ b/external/liborcus/unusedheader.patch.0
a9add1
@@ -9,3 +9,2633 @@
a9add1
  using namespace std;
a9add1
  
a9add1
  namespace orcus {
a9add1
+--- ./configure.orig	2016-01-22 14:33:55.601487405 +0000
a9add1
++++ ./configure	2016-01-22 14:35:45.219928835 +0000
a9add1
+@@ -640,10 +640,14 @@
a9add1
+ BOOST_FILESYSTEM_LIBS
a9add1
+ BOOST_FILESYSTEM_LDPATH
a9add1
+ BOOST_FILESYSTEM_LDFLAGS
a9add1
++BOOST_SYSTEM_LIBS
a9add1
++BOOST_SYSTEM_LDPATH
a9add1
++BOOST_SYSTEM_LDFLAGS
a9add1
+ BOOST_PROGRAM_OPTIONS_LIBS
a9add1
+ BOOST_PROGRAM_OPTIONS_LDPATH
a9add1
+ BOOST_PROGRAM_OPTIONS_LDFLAGS
a9add1
+ BOOST_IOSTREAMS_LIBS
a9add1
++BOOST_LDPATH
a9add1
+ BOOST_IOSTREAMS_LDPATH
a9add1
+ BOOST_IOSTREAMS_LDFLAGS
a9add1
+ WITH_TOOLS_FALSE
a9add1
+@@ -660,10 +664,6 @@
a9add1
+ ZLIB_CFLAGS
a9add1
+ HAVE_STATIC_LIB_FALSE
a9add1
+ HAVE_STATIC_LIB_TRUE
a9add1
+-BOOST_SYSTEM_LIBS
a9add1
+-BOOST_LDPATH
a9add1
+-BOOST_SYSTEM_LDPATH
a9add1
+-BOOST_SYSTEM_LDFLAGS
a9add1
+ BOOST_CPPFLAGS
a9add1
+ DISTCHECK_CONFIGURE_FLAGS
a9add1
+ BOOST_ROOT
a9add1
+@@ -807,14 +807,13 @@
a9add1
+ with_sysroot
a9add1
+ enable_libtool_lock
a9add1
+ with_boost
a9add1
+-enable_static_boost
a9add1
+-enable_werror
a9add1
+ enable_debug
a9add1
+ with_tools
a9add1
+ with_ods_filter
a9add1
+ with_xlsx_filter
a9add1
+ with_xls_xml_filter
a9add1
+ with_gnumeric_filter
a9add1
++enable_static_boost
a9add1
+ enable_spreadsheet_model
a9add1
+ '
a9add1
+       ac_precious_vars='build_alias
a9add1
+@@ -1469,10 +1468,9 @@
a9add1
+   --enable-fast-install[=PKGS]
a9add1
+                           optimize for fast installation [default=yes]
a9add1
+   --disable-libtool-lock  avoid locking (might break parallel builds)
a9add1
++  --enable-debug          Build with debug features in mind.]
a9add1
+   --enable-static-boost   Prefer the static boost libraries over the shared
a9add1
+                           ones [no]
a9add1
+-  --enable-werror         Treat all warnings as errors, useful for development
a9add1
+-  --enable-debug          Build with debug features in mind.]
a9add1
+   --disable-spreadsheet-model
a9add1
+                           Disable the spreadsheet model implementation in
a9add1
+                           orcus. Note that the spreadsheet-specific command
a9add1
+@@ -2592,7 +2590,7 @@
a9add1
+ 
a9add1
+ ac_config_headers="$ac_config_headers config.h"
a9add1
+ 
a9add1
+-am__api_version='1.14'
a9add1
++am__api_version='1.12'
a9add1
+ 
a9add1
+ ac_aux_dir=
a9add1
+ for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
a9add1
+@@ -2805,8 +2803,8 @@
a9add1
+   esac
a9add1
+ fi
a9add1
+ # Use eval to expand $SHELL
a9add1
+-if eval "$MISSING --is-lightweight"; then
a9add1
+-  am_missing_run="$MISSING "
a9add1
++if eval "$MISSING --run true"; then
a9add1
++  am_missing_run="$MISSING --run "
a9add1
+ else
a9add1
+   am_missing_run=
a9add1
+   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
a9add1
+@@ -3046,45 +3044,6 @@
a9add1
+ fi
a9add1
+ rmdir .tst 2>/dev/null
a9add1
+ 
a9add1
+-# Check whether --enable-silent-rules was given.
a9add1
+-if test "${enable_silent_rules+set}" = set; then :
a9add1
+-  enableval=$enable_silent_rules;
a9add1
+-fi
a9add1
+-
a9add1
+-case $enable_silent_rules in # (((
a9add1
+-  yes) AM_DEFAULT_VERBOSITY=0;;
a9add1
+-   no) AM_DEFAULT_VERBOSITY=1;;
a9add1
+-    *) AM_DEFAULT_VERBOSITY=1;;
a9add1
+-esac
a9add1
+-am_make=${MAKE-make}
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
a9add1
+-$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
a9add1
+-if ${am_cv_make_support_nested_variables+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
+-else
a9add1
+-  if $as_echo 'TRUE=$(BAR$(V))
a9add1
+-BAR0=false
a9add1
+-BAR1=true
a9add1
+-V=1
a9add1
+-am__doit:
a9add1
+-	@$(TRUE)
a9add1
+-.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
a9add1
+-  am_cv_make_support_nested_variables=yes
a9add1
+-else
a9add1
+-  am_cv_make_support_nested_variables=no
a9add1
+-fi
a9add1
+-fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
a9add1
+-$as_echo "$am_cv_make_support_nested_variables" >&6; }
a9add1
+-if test $am_cv_make_support_nested_variables = yes; then
a9add1
+-    AM_V='$(V)'
a9add1
+-  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
a9add1
+-else
a9add1
+-  AM_V=$AM_DEFAULT_VERBOSITY
a9add1
+-  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
a9add1
+-fi
a9add1
+-AM_BACKSLASH='\'
a9add1
+-
a9add1
+ if test "`cd $srcdir && pwd`" != "`pwd`"; then
a9add1
+   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
a9add1
+   # is not polluted with repeated "-I."
a9add1
+@@ -3135,70 +3094,19 @@
a9add1
+ 
a9add1
+ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
a9add1
+ 
a9add1
+-# For better backward compatibility.  To be removed once Automake 1.9.x
a9add1
+-# dies out for good.  For more background, see:
a9add1
+-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
a9add1
+-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
a9add1
+-mkdir_p='$(MKDIR_P)'
a9add1
+-
a9add1
++mkdir_p="$MKDIR_P"
a9add1
+ # We need awk for the "check" target.  The system "awk" is bad on
a9add1
+ # some platforms.
a9add1
+ # Always define AMTAR for backward compatibility.  Yes, it's still used
a9add1
+ # in the wild :-(  We should find a proper way to deprecate it ...
a9add1
+ AMTAR='$${TAR-tar}'
a9add1
+ 
a9add1
+-
a9add1
+-# We'll loop over all known methods to create a tar archive until one works.
a9add1
+-_am_tools='gnutar  pax cpio none'
a9add1
+-
a9add1
+ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
a9add1
+ 
a9add1
+ 
a9add1
+ 
a9add1
+ 
a9add1
+ 
a9add1
+-
a9add1
+-# POSIX will say in a future version that running "rm -f" with no argument
a9add1
+-# is OK; and we want to be able to make that assumption in our Makefile
a9add1
+-# recipes.  So use an aggressive probe to check that the usage we want is
a9add1
+-# actually supported "in the wild" to an acceptable degree.
a9add1
+-# See automake bug#10828.
a9add1
+-# To make any issue more visible, cause the running configure to be aborted
a9add1
+-# by default if the 'rm' program in use doesn't match our expectations; the
a9add1
+-# user can still override this though.
a9add1
+-if rm -f && rm -fr && rm -rf; then : OK; else
a9add1
+-  cat >&2 <<'END'
a9add1
+-Oops!
a9add1
+-
a9add1
+-Your 'rm' program seems unable to run without file operands specified
a9add1
+-on the command line, even when the '-f' option is present.  This is contrary
a9add1
+-to the behaviour of most rm programs out there, and not conforming with
a9add1
+-the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
a9add1
+-
a9add1
+-Please tell bug-automake@gnu.org about your system, including the value
a9add1
+-of your $PATH and any error possibly output before this message.  This
a9add1
+-can help us improve future automake versions.
a9add1
+-
a9add1
+-END
a9add1
+-  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
a9add1
+-    echo 'Configuration will proceed anyway, since you have set the' >&2
a9add1
+-    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
a9add1
+-    echo >&2
a9add1
+-  else
a9add1
+-    cat >&2 <<'END'
a9add1
+-Aborting the configuration process, to ensure you take notice of the issue.
a9add1
+-
a9add1
+-You can download and install GNU coreutils to get an 'rm' implementation
a9add1
+-that behaves properly: <http://www.gnu.org/software/coreutils/>.
a9add1
+-
a9add1
+-If you want to complete the configuration process using your problematic
a9add1
+-'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
a9add1
+-to "yes", and re-run configure.
a9add1
+-
a9add1
+-END
a9add1
+-    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
a9add1
+-  fi
a9add1
+-fi
a9add1
+ # Check whether --enable-silent-rules was given.
a9add1
+ if test "${enable_silent_rules+set}" = set; then :
a9add1
+   enableval=$enable_silent_rules;
a9add1
+@@ -4101,65 +4009,6 @@
a9add1
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ 
a9add1
+-ac_ext=c
a9add1
+-ac_cpp='$CPP $CPPFLAGS'
a9add1
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
a9add1
+-$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
a9add1
+-if ${am_cv_prog_cc_c_o+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
+-else
a9add1
+-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+-/* end confdefs.h.  */
a9add1
+-
a9add1
+-int
a9add1
+-main ()
a9add1
+-{
a9add1
+-
a9add1
+-  ;
a9add1
+-  return 0;
a9add1
+-}
a9add1
+-_ACEOF
a9add1
+-  # Make sure it works both with $CC and with simple cc.
a9add1
+-  # Following AC_PROG_CC_C_O, we do the test twice because some
a9add1
+-  # compilers refuse to overwrite an existing .o file with -o,
a9add1
+-  # though they will create one.
a9add1
+-  am_cv_prog_cc_c_o=yes
a9add1
+-  for am_i in 1 2; do
a9add1
+-    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
a9add1
+-   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
a9add1
+-   ac_status=$?
a9add1
+-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
a9add1
+-   (exit $ac_status); } \
a9add1
+-         && test -f conftest2.$ac_objext; then
a9add1
+-      : OK
a9add1
+-    else
a9add1
+-      am_cv_prog_cc_c_o=no
a9add1
+-      break
a9add1
+-    fi
a9add1
+-  done
a9add1
+-  rm -f core conftest*
a9add1
+-  unset am_i
a9add1
+-fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
a9add1
+-$as_echo "$am_cv_prog_cc_c_o" >&6; }
a9add1
+-if test "$am_cv_prog_cc_c_o" != yes; then
a9add1
+-   # Losing compiler, so override with the script.
a9add1
+-   # FIXME: It is wrong to rewrite CC.
a9add1
+-   # But if we don't then we get into trouble of one sort or another.
a9add1
+-   # A longer-term fix would be to have automake use am__CC in this case,
a9add1
+-   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
a9add1
+-   CC="$am_aux_dir/compile $CC"
a9add1
+-fi
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-
a9add1
+-
a9add1
+ depcc="$CC"   am_compiler_list=
a9add1
+ 
a9add1
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
a9add1
+@@ -7222,7 +7071,7 @@
a9add1
+   rm -rf conftest*
a9add1
+   ;;
a9add1
+ 
a9add1
+-x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a9add1
++x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
a9add1
+ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a9add1
+   # Find out which ABI we are using.
a9add1
+   echo 'int i;' > conftest.$ac_ext
a9add1
+@@ -7240,10 +7089,7 @@
a9add1
+ 	  x86_64-*linux*)
a9add1
+ 	    LD="${LD-ld} -m elf_i386"
a9add1
+ 	    ;;
a9add1
+-	  powerpc64le-*linux*)
a9add1
+-	    LD="${LD-ld} -m elf32lppclinux"
a9add1
+-	    ;;
a9add1
+-	  powerpc64-*linux*)
a9add1
++	  ppc64-*linux*|powerpc64-*linux*)
a9add1
+ 	    LD="${LD-ld} -m elf32ppclinux"
a9add1
+ 	    ;;
a9add1
+ 	  s390x-*linux*)
a9add1
+@@ -7262,10 +7108,7 @@
a9add1
+ 	  x86_64-*linux*)
a9add1
+ 	    LD="${LD-ld} -m elf_x86_64"
a9add1
+ 	    ;;
a9add1
+-	  powerpcle-*linux*)
a9add1
+-	    LD="${LD-ld} -m elf64lppc"
a9add1
+-	    ;;
a9add1
+-	  powerpc-*linux*)
a9add1
++	  ppc*-*linux*|powerpc*-*linux*)
a9add1
+ 	    LD="${LD-ld} -m elf64ppc"
a9add1
+ 	    ;;
a9add1
+ 	  s390*-*linux*|s390*-*tpf*)
a9add1
+@@ -11288,14 +11131,10 @@
a9add1
+   # before this can be enabled.
a9add1
+   hardcode_into_libs=yes
a9add1
+ 
a9add1
+-  # Add ABI-specific directories to the system library path.
a9add1
+-  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
a9add1
+-
a9add1
+   # Append ld.so.conf contents to the search path
a9add1
+   if test -f /etc/ld.so.conf; then
a9add1
+     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
a9add1
+-    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
a9add1
+-
a9add1
++    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a9add1
+   fi
a9add1
+ 
a9add1
+   # We used to test for /lib/ld.so.1 and disable shared libraries on
a9add1
+@@ -15123,14 +14962,10 @@
a9add1
+   # before this can be enabled.
a9add1
+   hardcode_into_libs=yes
a9add1
+ 
a9add1
+-  # Add ABI-specific directories to the system library path.
a9add1
+-  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
a9add1
+-
a9add1
+   # Append ld.so.conf contents to the search path
a9add1
+   if test -f /etc/ld.so.conf; then
a9add1
+     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
a9add1
+-    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
a9add1
+-
a9add1
++    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a9add1
+   fi
a9add1
+ 
a9add1
+   # We used to test for /lib/ld.so.1 and disable shared libraries on
a9add1
+@@ -16203,7 +16038,7 @@
a9add1
+ # ======================
a9add1
+ # Set required ixion api
a9add1
+ # ======================
a9add1
+-IXION_REQUIRED_API_VERSION=0.10
a9add1
++IXION_REQUIRED_API_VERSION=0.8
a9add1
+ 
a9add1
+ 
a9add1
+ # =============
a9add1
+@@ -16212,7 +16047,7 @@
a9add1
+ ORCUS_API_VERSION=0.8
a9add1
+ 
a9add1
+ 
a9add1
+-echo "$as_me: this is boost.m4 serial 24" >&5
a9add1
++echo "$as_me: this is boost.m4 serial 18" >&5
a9add1
+ boost_save_IFS=$IFS
a9add1
+ boost_version_req=1.36
a9add1
+ IFS=.
a9add1
+@@ -16356,30 +16191,17 @@
a9add1
+ if ${boost_cv_lib_version+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-       ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
++       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+ /* end confdefs.h.  */
a9add1
+ #include <boost/version.hpp>
a9add1
+ boost-lib-version = BOOST_LIB_VERSION
a9add1
+ _ACEOF
a9add1
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a9add1
+-  grep -v '#' |
a9add1
+-  grep -Ev '^(conftest.cpp| *command-line arguments :)' |
a9add1
+   tr -d '\r' |
a9add1
+-  tr -s '\n' ' ' |
a9add1
+-  $SED -n -e "/^ *boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
a9add1
++  $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
a9add1
+   boost_cv_lib_version=`cat conftest.i`
a9add1
+ fi
a9add1
+ rm -rf conftest*
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ 
a9add1
+ fi
a9add1
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
a9add1
+@@ -16388,536 +16210,40 @@
a9add1
+     boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
a9add1
+     case $boost_major_version in #(
a9add1
+       '' | *[!0-9]*)
a9add1
+-        as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
a9add1
++        as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
a9add1
+         ;;
a9add1
+     esac
a9add1
+ fi
a9add1
+ CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+ 
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
a9add1
+-$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
a9add1
+-if ${boost_cv_lib_tag+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
++
a9add1
++# =========================================================
a9add1
++# Determine if we are going to build static lib (for MinGW)
a9add1
++# =========================================================
a9add1
++ if test "$enable_shared" = no -a "$enable_static" = yes; then
a9add1
++  HAVE_STATIC_LIB_TRUE=
a9add1
++  HAVE_STATIC_LIB_FALSE='#'
a9add1
+ else
a9add1
+-  boost_cv_lib_tag=unknown
a9add1
+-if test x$boost_cv_inc_path != xno; then
a9add1
+-  ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-  # The following tests are mostly inspired by boost/config/auto_link.hpp
a9add1
+-  # The list is sorted to most recent/common to oldest compiler (in order
a9add1
+-  # to increase the likelihood of finding the right compiler with the
a9add1
+-  # least number of compilation attempt).
a9add1
+-  # Beware that some tests are sensible to the order (for instance, we must
a9add1
+-  # look for MinGW before looking for GCC3).
a9add1
+-  # I used one compilation test per compiler with a #error to recognize
a9add1
+-  # each compiler so that it works even when cross-compiling (let me know
a9add1
+-  # if you know a better approach).
a9add1
+-  # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
a9add1
+-  #   como, edg, kcc, bck, mp, sw, tru, xlc
a9add1
+-  # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
a9add1
+-  # the same defines as GCC's).
a9add1
+-  for i in \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
a9add1
+-  (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
a9add1
+-     && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
+-         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
a9add1
+-    "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
a9add1
+-    "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
a9add1
+-    "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
a9add1
+-    "defined __BORLANDC__ @ bcb" \
a9add1
+-    "defined __ICC && (defined __unix || defined ) @ il" \
a9add1
+-    "defined __ICL @ iw" \
a9add1
+-    "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
a9add1
+-    "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
a9add1
+-    "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
a9add1
+-    "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
a9add1
+-    "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
a9add1
+-    "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
a9add1
+-  do
a9add1
+-    boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
a9add1
+-    boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
a9add1
+-    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+-/* end confdefs.h.  */
a9add1
++  HAVE_STATIC_LIB_TRUE='#'
a9add1
++  HAVE_STATIC_LIB_FALSE=
a9add1
++fi
a9add1
+ 
a9add1
+-#if $boost_tag_test
a9add1
+-/* OK */
a9add1
+-#else
a9add1
+-# error $boost_tag_test
a9add1
+-#endif
a9add1
+ 
a9add1
+-int
a9add1
+-main ()
a9add1
+-{
a9add1
++# =====
a9add1
++# Debug
a9add1
++# =====
a9add1
++# Check whether --enable-debug was given.
a9add1
++if test "${enable_debug+set}" = set; then :
a9add1
++  enableval=$enable_debug; enable_debug="$enableval"
a9add1
++else
a9add1
++  enable_debug=no
a9add1
+ 
a9add1
+-  ;
a9add1
+-  return 0;
a9add1
+-}
a9add1
+-_ACEOF
a9add1
+-if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+-  boost_cv_lib_tag=$boost_tag; break
a9add1
+-fi
a9add1
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9add1
+-  done
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-  case $boost_cv_lib_tag in #(
a9add1
+-    # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
a9add1
+-    # to "gcc41" for instance.
a9add1
+-    *-gcc | *'-gcc ') :;; #(  Don't re-add -gcc: it's already in there.
a9add1
+-    gcc*)
a9add1
+-      boost_tag_x=
a9add1
+-      case $host_os in #(
a9add1
+-        darwin*)
a9add1
+-          if test $boost_major_version -ge 136; then
a9add1
+-            # The `x' added in r46793 of Boost.
a9add1
+-            boost_tag_x=x
a9add1
+-          fi;;
a9add1
+-      esac
a9add1
+-      # We can specify multiple tags in this variable because it's used by
a9add1
+-      # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
a9add1
+-      boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
a9add1
+-      ;; #(
a9add1
+-    unknown)
a9add1
+-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
a9add1
+-$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
a9add1
+-      boost_cv_lib_tag=
a9add1
+-      ;;
a9add1
+-  esac
a9add1
+ fi
a9add1
+-fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
a9add1
+-$as_echo "$boost_cv_lib_tag" >&6; }
a9add1
+-# Check whether --enable-static-boost was given.
a9add1
+-if test "${enable_static_boost+set}" = set; then :
a9add1
+-  enableval=$enable_static_boost; enable_static_boost=yes
a9add1
+-else
a9add1
+-  enable_static_boost=no
a9add1
+-fi
a9add1
+-
a9add1
+-# Check whether we do better use `mt' even though we weren't ask to.
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+-/* end confdefs.h.  */
a9add1
+-
a9add1
+-#if defined _REENTRANT || defined _MT || defined __MT__
a9add1
+-/* use -mt */
a9add1
+-#else
a9add1
+-# error MT not needed
a9add1
+-#endif
a9add1
+-
a9add1
+-int
a9add1
+-main ()
a9add1
+-{
a9add1
+-
a9add1
+-  ;
a9add1
+-  return 0;
a9add1
+-}
a9add1
+-_ACEOF
a9add1
+-if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+-  boost_guess_use_mt=:
a9add1
+-else
a9add1
+-  boost_guess_use_mt=false
a9add1
+-fi
a9add1
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-
a9add1
+-if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
a9add1
+-else
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
a9add1
+-else
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+-CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
a9add1
+-if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
a9add1
+-
a9add1
+-$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
a9add1
+-
a9add1
+-else
a9add1
+-  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
a9add1
+-fi
a9add1
+-
a9add1
+-
a9add1
+-CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-fi
a9add1
+-
a9add1
+-boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+-CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
a9add1
+-$as_echo_n "checking for the Boost system library... " >&6; }
a9add1
+-if ${boost_cv_lib_system+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
+-else
a9add1
+-  boost_cv_lib_system=no
a9add1
+-  case "" in #(
a9add1
+-    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
+-    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
+-    (*) boost_mt=; boost_rtopt=;;
a9add1
+-  esac
a9add1
+-  if test $enable_static_boost = yes; then
a9add1
+-    boost_rtopt="s$boost_rtopt"
a9add1
+-  fi
a9add1
+-  # Find the proper debug variant depending on what we've been asked to find.
a9add1
+-  case $boost_rtopt in #(
a9add1
+-    (*d*) boost_rt_d=$boost_rtopt;; #(
a9add1
+-    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
+-      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
a9add1
+-    (*) boost_rt_d='-d';;
a9add1
+-  esac
a9add1
+-  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
a9add1
+-  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
a9add1
+-  $boost_guess_use_mt && boost_mt=-mt
a9add1
+-  # Look for the abs path the static archive.
a9add1
+-  # $libext is computed by Libtool but let's make sure it's non empty.
a9add1
+-  test -z "$libext" &&
a9add1
+-    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
a9add1
+-  boost_save_ac_objext=$ac_objext
a9add1
+-  # Generate the test file.
a9add1
+-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+-/* end confdefs.h.  */
a9add1
+-#include <boost/system/error_code.hpp>
a9add1
+-
a9add1
+-int
a9add1
+-main ()
a9add1
+-{
a9add1
+-boost::system::error_code e; e.clear();
a9add1
+-  ;
a9add1
+-  return 0;
a9add1
+-}
a9add1
+-_ACEOF
a9add1
+-  if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+-  ac_objext=do_not_rm_me_plz
a9add1
+-else
a9add1
+-  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
a9add1
+-fi
a9add1
+-rm -f core conftest.err conftest.$ac_objext
a9add1
+-  ac_objext=$boost_save_ac_objext
a9add1
+-  boost_failed_libs=
a9add1
+-# Don't bother to ident the following nested for loops, only the 2
a9add1
+-# innermost ones matter.
a9add1
+-for boost_lib_ in system; do
a9add1
+-for boost_tag_ in -$boost_cv_lib_tag ''; do
a9add1
+-for boost_ver_ in -$boost_cv_lib_version ''; do
a9add1
+-for boost_mt_ in $boost_mt -mt ''; do
a9add1
+-for boost_rtopt_ in $boost_rtopt '' -d; do
a9add1
+-  for boost_lib in \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_ver_
a9add1
+-  do
a9add1
+-    # Avoid testing twice the same lib
a9add1
+-    case $boost_failed_libs in #(
a9add1
+-      (*@$boost_lib@*) continue;;
a9add1
+-    esac
a9add1
+-    # If with_boost is empty, we'll search in /lib first, which is not quite
a9add1
+-    # right so instead we'll try to a location based on where the headers are.
a9add1
+-    boost_tmp_lib=$with_boost
a9add1
+-    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
a9add1
+-    for boost_ldpath in "$boost_tmp_lib/lib" '' \
a9add1
+-             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
a9add1
+-             "$with_boost" C:/Boost/lib /lib*
a9add1
+-    do
a9add1
+-      # Don't waste time with directories that don't exist.
a9add1
+-      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
a9add1
+-        continue
a9add1
+-      fi
a9add1
+-      boost_save_LDFLAGS=$LDFLAGS
a9add1
+-      # Are we looking for a static library?
a9add1
+-      case $boost_ldpath:$boost_rtopt_ in #(
a9add1
+-        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
+-          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
+-          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
a9add1
+-        (*) # No: use -lboost_foo to find the shared library.
a9add1
+-          boost_cv_lib_system_LIBS="-l$boost_lib";;
a9add1
+-      esac
a9add1
+-      boost_save_LIBS=$LIBS
a9add1
+-      LIBS="$boost_cv_lib_system_LIBS $LIBS"
a9add1
+-      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
a9add1
+-      rm -f conftest$ac_exeext
a9add1
+-boost_save_ac_ext=$ac_ext
a9add1
+-boost_use_source=:
a9add1
+-# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+-# tries to link the existing object file instead of compiling from source.
a9add1
+-test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
a9add1
+-if { { ac_try="$ac_link"
a9add1
+-case "(($ac_try" in
a9add1
+-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
a9add1
+-  *) ac_try_echo=$ac_try;;
a9add1
+-esac
a9add1
+-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
a9add1
+-$as_echo "$ac_try_echo"; } >&5
a9add1
+-  (eval "$ac_link") 2>conftest.err
a9add1
+-  ac_status=$?
a9add1
+-  if test -s conftest.err; then
a9add1
+-    grep -v '^ *+' conftest.err >conftest.er1
a9add1
+-    cat conftest.er1 >&5
a9add1
+-    mv -f conftest.er1 conftest.err
a9add1
+-  fi
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+-  test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
+-       } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
+-       }; then :
a9add1
+-  boost_cv_lib_system=yes
a9add1
+-else
a9add1
+-  if $boost_use_source; then
a9add1
+-         $as_echo "$as_me: failed program was:" >&5
a9add1
+-sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+-
a9add1
+-       fi
a9add1
+-       boost_cv_lib_system=no
a9add1
+-fi
a9add1
+-ac_objext=$boost_save_ac_objext
a9add1
+-ac_ext=$boost_save_ac_ext
a9add1
+-rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+-      conftest$ac_exeext
a9add1
+-      ac_objext=$boost_save_ac_objext
a9add1
+-      LDFLAGS=$boost_save_LDFLAGS
a9add1
+-      LIBS=$boost_save_LIBS
a9add1
+-      if test x"$boost_cv_lib_system" = xyes; then
a9add1
+-        # Check or used cached result of whether or not using -R or
a9add1
+-        # -rpath makes sense.  Some implementations of ld, such as for
a9add1
+-        # Mac OSX, require -rpath but -R is the flag known to work on
a9add1
+-        # other systems.  https://github.com/tsuna/boost.m4/issues/19
a9add1
+-        if ${boost_cv_rpath_link_ldflag+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
+-else
a9add1
+-  case $boost_ldpath in
a9add1
+-           '') # Nothing to do.
a9add1
+-             boost_cv_rpath_link_ldflag=
a9add1
+-             boost_rpath_link_ldflag_found=yes;;
a9add1
+-           *)
a9add1
+-            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
+-              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-              LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
a9add1
+-              rm -f conftest$ac_exeext
a9add1
+-boost_save_ac_ext=$ac_ext
a9add1
+-boost_use_source=:
a9add1
+-# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+-# tries to link the existing object file instead of compiling from source.
a9add1
+-test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
a9add1
+-if { { ac_try="$ac_link"
a9add1
+-case "(($ac_try" in
a9add1
+-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
a9add1
+-  *) ac_try_echo=$ac_try;;
a9add1
+-esac
a9add1
+-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
a9add1
+-$as_echo "$ac_try_echo"; } >&5
a9add1
+-  (eval "$ac_link") 2>conftest.err
a9add1
+-  ac_status=$?
a9add1
+-  if test -s conftest.err; then
a9add1
+-    grep -v '^ *+' conftest.err >conftest.er1
a9add1
+-    cat conftest.er1 >&5
a9add1
+-    mv -f conftest.er1 conftest.err
a9add1
+-  fi
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+-  test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
+-       } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
+-       }; then :
a9add1
+-  boost_rpath_link_ldflag_found=yes
a9add1
+-                break
a9add1
+-else
a9add1
+-  if $boost_use_source; then
a9add1
+-         $as_echo "$as_me: failed program was:" >&5
a9add1
+-sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+-
a9add1
+-       fi
a9add1
+-       boost_rpath_link_ldflag_found=no
a9add1
+-fi
a9add1
+-ac_objext=$boost_save_ac_objext
a9add1
+-ac_ext=$boost_save_ac_ext
a9add1
+-rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+-      conftest$ac_exeext
a9add1
+-            done
a9add1
+-            ;;
a9add1
+-          esac
a9add1
+-          if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
a9add1
+-  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
a9add1
+-fi
a9add1
+-          LDFLAGS=$boost_save_LDFLAGS
a9add1
+-          LIBS=$boost_save_LIBS
a9add1
+-
a9add1
+-fi
a9add1
+-
a9add1
+-        test x"$boost_ldpath" != x &&
a9add1
+-          boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-        boost_cv_lib_system_LDPATH="$boost_ldpath"
a9add1
+-        break 7
a9add1
+-      else
a9add1
+-        boost_failed_libs="$boost_failed_libs@$boost_lib@"
a9add1
+-      fi
a9add1
+-    done
a9add1
+-  done
a9add1
+-done
a9add1
+-done
a9add1
+-done
a9add1
+-done
a9add1
+-done # boost_lib_
a9add1
+-rm -f conftest.$ac_objext
a9add1
+-
a9add1
+-fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
a9add1
+-$as_echo "$boost_cv_lib_system" >&6; }
a9add1
+-case $boost_cv_lib_system in #(
a9add1
+-  (no) $as_echo "$as_me: failed program was:" >&5
a9add1
+-sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+-
a9add1
+-    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
a9add1
+-    ;;
a9add1
+-esac
a9add1
+-BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
a9add1
+-BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
+-BOOST_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
+-BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
a9add1
+-CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-fi
a9add1
+-
a9add1
+-
a9add1
+-
a9add1
+-
a9add1
+-# ==============
a9add1
+-# Werror support
a9add1
+-# ==============
a9add1
+-# Check whether --enable-werror was given.
a9add1
+-if test "${enable_werror+set}" = set; then :
a9add1
+-  enableval=$enable_werror; enable_werror="$enableval"
a9add1
+-else
a9add1
+-  enable_werror=no
a9add1
+-
a9add1
+-fi
a9add1
+-
a9add1
+-if test x"$enable_werror" == "xyes"; then :
a9add1
+-
a9add1
+-	CXXFLAGS="$CXXFLAGS -Werror"
a9add1
+-
a9add1
+-fi
a9add1
+-
a9add1
+-# =========================================================
a9add1
+-# Determine if we are going to build static lib (for MinGW)
a9add1
+-# =========================================================
a9add1
+- if test "$enable_shared" = no -a "$enable_static" = yes; then
a9add1
+-  HAVE_STATIC_LIB_TRUE=
a9add1
+-  HAVE_STATIC_LIB_FALSE='#'
a9add1
+-else
a9add1
+-  HAVE_STATIC_LIB_TRUE='#'
a9add1
+-  HAVE_STATIC_LIB_FALSE=
a9add1
+-fi
a9add1
+-
a9add1
+-
a9add1
+-# =====
a9add1
+-# Debug
a9add1
+-# =====
a9add1
+-# Check whether --enable-debug was given.
a9add1
+-if test "${enable_debug+set}" = set; then :
a9add1
+-  enableval=$enable_debug; enable_debug="$enableval"
a9add1
+-else
a9add1
+-  enable_debug=no
a9add1
+-
a9add1
+-fi
a9add1
+-
a9add1
+-if test "x$enable_debug" != "xno"; then :
a9add1
+-
a9add1
+-	CXXFLAGS="$CXXFLAGS -g"
a9add1
+-
a9add1
++
a9add1
++if test "x$enable_debug" != "xno"; then :
a9add1
++
a9add1
++	CXXFLAGS="$CXXFLAGS -g"
a9add1
++
a9add1
+ else
a9add1
+ 
a9add1
+ 
a9add1
+@@ -17123,7 +16449,151 @@
a9add1
+   WITH_TOOLS_TRUE='#'
a9add1
+   WITH_TOOLS_FALSE=
a9add1
+ fi
a9add1
+-
a9add1
++
a9add1
++
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
a9add1
++$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
a9add1
++if ${boost_cv_lib_tag+:} false; then :
a9add1
++  $as_echo_n "(cached) " >&6
a9add1
++else
a9add1
++  boost_cv_lib_tag=unknown
a9add1
++if test x$boost_cv_inc_path != xno; then
a9add1
++  ac_ext=cpp
a9add1
++ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
++  # The following tests are mostly inspired by boost/config/auto_link.hpp
a9add1
++  # The list is sorted to most recent/common to oldest compiler (in order
a9add1
++  # to increase the likelihood of finding the right compiler with the
a9add1
++  # least number of compilation attempt).
a9add1
++  # Beware that some tests are sensible to the order (for instance, we must
a9add1
++  # look for MinGW before looking for GCC3).
a9add1
++  # I used one compilation test per compiler with a #error to recognize
a9add1
++  # each compiler so that it works even when cross-compiling (let me know
a9add1
++  # if you know a better approach).
a9add1
++  # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
a9add1
++  #   como, edg, kcc, bck, mp, sw, tru, xlc
a9add1
++  # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
a9add1
++  # the same defines as GCC's).
a9add1
++  for i in \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
a9add1
++     && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
a9add1
++         || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
a9add1
++    "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
a9add1
++    "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
a9add1
++    "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
a9add1
++    "defined __BORLANDC__ @ bcb" \
a9add1
++    "defined __ICC && (defined __unix || defined ) @ il" \
a9add1
++    "defined __ICL @ iw" \
a9add1
++    "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
a9add1
++    "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
a9add1
++    "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
a9add1
++    "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
a9add1
++    "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
a9add1
++    "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
a9add1
++  do
a9add1
++    boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
a9add1
++    boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
a9add1
++    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
++/* end confdefs.h.  */
a9add1
++
a9add1
++#if $boost_tag_test
a9add1
++/* OK */
a9add1
++#else
a9add1
++# error $boost_tag_test
a9add1
++#endif
a9add1
++
a9add1
++int
a9add1
++main ()
a9add1
++{
a9add1
++
a9add1
++  ;
a9add1
++  return 0;
a9add1
++}
a9add1
++_ACEOF
a9add1
++if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
++  boost_cv_lib_tag=$boost_tag; break
a9add1
++fi
a9add1
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9add1
++  done
a9add1
++ac_ext=cpp
a9add1
++ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
++  case $boost_cv_lib_tag in #(
a9add1
++    # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
a9add1
++    # to "gcc41" for instance.
a9add1
++    *-gcc | *'-gcc ') :;; #(  Don't re-add -gcc: it's already in there.
a9add1
++    gcc*)
a9add1
++      boost_tag_x=
a9add1
++      case $host_os in #(
a9add1
++        darwin*)
a9add1
++          if test $boost_major_version -ge 136; then
a9add1
++            # The `x' added in r46793 of Boost.
a9add1
++            boost_tag_x=x
a9add1
++          fi;;
a9add1
++      esac
a9add1
++      # We can specify multiple tags in this variable because it's used by
a9add1
++      # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
a9add1
++      boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
a9add1
++      ;; #(
a9add1
++    unknown)
a9add1
++      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
a9add1
++$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
a9add1
++      boost_cv_lib_tag=
a9add1
++      ;;
a9add1
++  esac
a9add1
++fi
a9add1
++fi
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
a9add1
++$as_echo "$boost_cv_lib_tag" >&6; }
a9add1
++# Check whether --enable-static-boost was given.
a9add1
++if test "${enable_static_boost+set}" = set; then :
a9add1
++  enableval=$enable_static_boost; enable_static_boost=yes
a9add1
++else
a9add1
++  enable_static_boost=no
a9add1
++fi
a9add1
++
a9add1
++# Check whether we do better use `mt' even though we weren't ask to.
a9add1
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
++/* end confdefs.h.  */
a9add1
++
a9add1
++#if defined _REENTRANT || defined _MT || defined __MT__
a9add1
++/* use -mt */
a9add1
++#else
a9add1
++# error MT not needed
a9add1
++#endif
a9add1
++
a9add1
++int
a9add1
++main ()
a9add1
++{
a9add1
++
a9add1
++  ;
a9add1
++  return 0;
a9add1
++}
a9add1
++_ACEOF
a9add1
++if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
++  boost_guess_use_mt=:
a9add1
++else
a9add1
++  boost_guess_use_mt=false
a9add1
++fi
a9add1
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9add1
+ 
a9add1
+ if test "x$with_gnumeric_filter" != "xno"; then :
a9add1
+ 
a9add1
+@@ -17167,6 +16637,13 @@
a9add1
+ 
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
++# Now let's try to find the library.  The algorithm is as follows: first look
a9add1
++# for a given library name according to the user's PREFERRED-RT-OPT.  For each
a9add1
++# library name, we prefer to use the ones that carry the tag (toolset name).
a9add1
++# Each library is searched through the various standard paths were Boost is
a9add1
++# usually installed.  If we can't find the standard variants, we try to
a9add1
++# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
a9add1
++# but there's -obviously- libboost_threads-mt.dylib).
a9add1
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost iostreams library" >&5
a9add1
+ $as_echo_n "checking for the Boost iostreams library... " >&6; }
a9add1
+ if ${boost_cv_lib_iostreams+:} false; then :
a9add1
+@@ -17174,19 +16651,19 @@
a9add1
+ else
a9add1
+   boost_cv_lib_iostreams=no
a9add1
+   case "" in #(
a9add1
+-    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
+-    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
+-    (*) boost_mt=; boost_rtopt=;;
a9add1
++    mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
++    mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
++    *) boost_mt=; boost_rtopt=;;
a9add1
+   esac
a9add1
+   if test $enable_static_boost = yes; then
a9add1
+     boost_rtopt="s$boost_rtopt"
a9add1
+   fi
a9add1
+   # Find the proper debug variant depending on what we've been asked to find.
a9add1
+   case $boost_rtopt in #(
a9add1
+-    (*d*) boost_rt_d=$boost_rtopt;; #(
a9add1
+-    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
++    *d*) boost_rt_d=$boost_rtopt;; #(
a9add1
++    *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
+       boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
a9add1
+-    (*) boost_rt_d='-d';;
a9add1
++    *) boost_rt_d='-d';;
a9add1
+   esac
a9add1
+   # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
a9add1
+   test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
a9add1
+@@ -17217,22 +16694,21 @@
a9add1
+ rm -f core conftest.err conftest.$ac_objext
a9add1
+   ac_objext=$boost_save_ac_objext
a9add1
+   boost_failed_libs=
a9add1
+-# Don't bother to ident the following nested for loops, only the 2
a9add1
+-# innermost ones matter.
a9add1
+-for boost_lib_ in iostreams; do
a9add1
++# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
a9add1
++# matter.
a9add1
+ for boost_tag_ in -$boost_cv_lib_tag ''; do
a9add1
+ for boost_ver_ in -$boost_cv_lib_version ''; do
a9add1
+ for boost_mt_ in $boost_mt -mt ''; do
a9add1
+ for boost_rtopt_ in $boost_rtopt '' -d; do
a9add1
+   for boost_lib in \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_ver_
a9add1
++    boost_iostreams$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_iostreams$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_iostreams$boost_tag_$boost_mt_$boost_ver_ \
a9add1
++    boost_iostreams$boost_tag_$boost_ver_
a9add1
+   do
a9add1
+     # Avoid testing twice the same lib
a9add1
+     case $boost_failed_libs in #(
a9add1
+-      (*@$boost_lib@*) continue;;
a9add1
++      *@$boost_lib@*) continue;;
a9add1
+     esac
a9add1
+     # If with_boost is empty, we'll search in /lib first, which is not quite
a9add1
+     # right so instead we'll try to a location based on where the headers are.
a9add1
+@@ -17242,17 +16718,14 @@
a9add1
+              /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
a9add1
+              "$with_boost" C:/Boost/lib /lib*
a9add1
+     do
a9add1
+-      # Don't waste time with directories that don't exist.
a9add1
+-      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
a9add1
+-        continue
a9add1
+-      fi
a9add1
++      test -e "$boost_ldpath" || continue
a9add1
+       boost_save_LDFLAGS=$LDFLAGS
a9add1
+       # Are we looking for a static library?
a9add1
+       case $boost_ldpath:$boost_rtopt_ in #(
a9add1
+-        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
++        *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
+           boost_cv_lib_iostreams_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
+           test -e "$boost_cv_lib_iostreams_LIBS" || continue;; #(
a9add1
+-        (*) # No: use -lboost_foo to find the shared library.
a9add1
++        *) # No: use -lboost_foo to find the shared library.
a9add1
+           boost_cv_lib_iostreams_LIBS="-l$boost_lib";;
a9add1
+       esac
a9add1
+       boost_save_LIBS=$LIBS
a9add1
+@@ -17281,11 +16754,11 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+   boost_cv_lib_iostreams=yes
a9add1
+ else
a9add1
+@@ -17304,22 +16777,17 @@
a9add1
+       LDFLAGS=$boost_save_LDFLAGS
a9add1
+       LIBS=$boost_save_LIBS
a9add1
+       if test x"$boost_cv_lib_iostreams" = xyes; then
a9add1
+-        # Check or used cached result of whether or not using -R or
a9add1
+-        # -rpath makes sense.  Some implementations of ld, such as for
a9add1
+-        # Mac OSX, require -rpath but -R is the flag known to work on
a9add1
+-        # other systems.  https://github.com/tsuna/boost.m4/issues/19
a9add1
++        # Check or used cached result of whether or not using -R or -rpath makes sense.
a9add1
++        # Some implementations of ld, such as for Mac OSX, require -rpath but
a9add1
++        # -R is the flag known to work on other systems.
a9add1
++        # https://github.com/tsuna/boost.m4/issues/19
a9add1
+         if ${boost_cv_rpath_link_ldflag+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  case $boost_ldpath in
a9add1
+-           '') # Nothing to do.
a9add1
+-             boost_cv_rpath_link_ldflag=
a9add1
+-             boost_rpath_link_ldflag_found=yes;;
a9add1
+-           *)
a9add1
+-            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
+-              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-              LIBS="$boost_save_LIBS $boost_cv_lib_iostreams_LIBS"
a9add1
+-              rm -f conftest$ac_exeext
a9add1
++  for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
++            LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++            LIBS="$boost_save_LIBS $boost_cv_lib_iostreams_LIBS"
a9add1
++            rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+ boost_use_source=:
a9add1
+ # If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+@@ -17342,14 +16810,14 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+   boost_rpath_link_ldflag_found=yes
a9add1
+-                break
a9add1
++              break
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+@@ -17362,9 +16830,7 @@
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+ rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+       conftest$ac_exeext
a9add1
+-            done
a9add1
+-            ;;
a9add1
+-          esac
a9add1
++          done
a9add1
+           if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
a9add1
+   as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
a9add1
+ fi
a9add1
+@@ -17373,10 +16839,9 @@
a9add1
+ 
a9add1
+ fi
a9add1
+ 
a9add1
+-        test x"$boost_ldpath" != x &&
a9add1
+-          boost_cv_lib_iostreams_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++        boost_cv_lib_iostreams_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+         boost_cv_lib_iostreams_LDPATH="$boost_ldpath"
a9add1
+-        break 7
a9add1
++        break 6
a9add1
+       else
a9add1
+         boost_failed_libs="$boost_failed_libs@$boost_lib@"
a9add1
+       fi
a9add1
+@@ -17386,314 +16851,22 @@
a9add1
+ done
a9add1
+ done
a9add1
+ done
a9add1
+-done # boost_lib_
a9add1
+ rm -f conftest.$ac_objext
a9add1
+ 
a9add1
+ fi
a9add1
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_iostreams" >&5
a9add1
+ $as_echo "$boost_cv_lib_iostreams" >&6; }
a9add1
+ case $boost_cv_lib_iostreams in #(
a9add1
+-  (no) $as_echo "$as_me: failed program was:" >&5
a9add1
++  no) $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+     as_fn_error $? "cannot find the flags to link with Boost iostreams" "$LINENO" 5
a9add1
+     ;;
a9add1
+ esac
a9add1
+-BOOST_IOSTREAMS_LDFLAGS=$boost_cv_lib_iostreams_LDFLAGS
a9add1
+-BOOST_IOSTREAMS_LDPATH=$boost_cv_lib_iostreams_LDPATH
a9add1
+-BOOST_LDPATH=$boost_cv_lib_iostreams_LDPATH
a9add1
+-BOOST_IOSTREAMS_LIBS=$boost_cv_lib_iostreams_LIBS
a9add1
+-CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-fi
a9add1
+-
a9add1
+-
a9add1
+-
a9add1
+-
a9add1
+-fi
a9add1
+-
a9add1
+-if test "x$with_tools" != "xno"; then :
a9add1
+-
a9add1
+-        if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for the Boost program_options library" >&6;}
a9add1
+-else
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;}
a9add1
+-else
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+-CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
a9add1
+-if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then :
a9add1
+-
a9add1
+-$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h
a9add1
+-
a9add1
+-else
a9add1
+-  as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5
a9add1
+-fi
a9add1
+-
a9add1
+-
a9add1
+-CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+-ac_ext=cpp
a9add1
+-ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
a9add1
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+-fi
a9add1
+-
a9add1
+-boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+-CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
a9add1
+-$as_echo_n "checking for the Boost program_options library... " >&6; }
a9add1
+-if ${boost_cv_lib_program_options+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
+-else
a9add1
+-  boost_cv_lib_program_options=no
a9add1
+-  case "" in #(
a9add1
+-    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
+-    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
+-    (*) boost_mt=; boost_rtopt=;;
a9add1
+-  esac
a9add1
+-  if test $enable_static_boost = yes; then
a9add1
+-    boost_rtopt="s$boost_rtopt"
a9add1
+-  fi
a9add1
+-  # Find the proper debug variant depending on what we've been asked to find.
a9add1
+-  case $boost_rtopt in #(
a9add1
+-    (*d*) boost_rt_d=$boost_rtopt;; #(
a9add1
+-    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
+-      boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
a9add1
+-    (*) boost_rt_d='-d';;
a9add1
+-  esac
a9add1
+-  # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
a9add1
+-  test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
a9add1
+-  $boost_guess_use_mt && boost_mt=-mt
a9add1
+-  # Look for the abs path the static archive.
a9add1
+-  # $libext is computed by Libtool but let's make sure it's non empty.
a9add1
+-  test -z "$libext" &&
a9add1
+-    as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
a9add1
+-  boost_save_ac_objext=$ac_objext
a9add1
+-  # Generate the test file.
a9add1
+-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+-/* end confdefs.h.  */
a9add1
+-#include <boost/program_options.hpp>
a9add1
+-
a9add1
+-int
a9add1
+-main ()
a9add1
+-{
a9add1
+-boost::program_options::options_description d("test");
a9add1
+-  ;
a9add1
+-  return 0;
a9add1
+-}
a9add1
+-_ACEOF
a9add1
+-  if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+-  ac_objext=do_not_rm_me_plz
a9add1
+-else
a9add1
+-  as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5
a9add1
+-fi
a9add1
+-rm -f core conftest.err conftest.$ac_objext
a9add1
+-  ac_objext=$boost_save_ac_objext
a9add1
+-  boost_failed_libs=
a9add1
+-# Don't bother to ident the following nested for loops, only the 2
a9add1
+-# innermost ones matter.
a9add1
+-for boost_lib_ in program_options; do
a9add1
+-for boost_tag_ in -$boost_cv_lib_tag ''; do
a9add1
+-for boost_ver_ in -$boost_cv_lib_version ''; do
a9add1
+-for boost_mt_ in $boost_mt -mt ''; do
a9add1
+-for boost_rtopt_ in $boost_rtopt '' -d; do
a9add1
+-  for boost_lib in \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_ver_
a9add1
+-  do
a9add1
+-    # Avoid testing twice the same lib
a9add1
+-    case $boost_failed_libs in #(
a9add1
+-      (*@$boost_lib@*) continue;;
a9add1
+-    esac
a9add1
+-    # If with_boost is empty, we'll search in /lib first, which is not quite
a9add1
+-    # right so instead we'll try to a location based on where the headers are.
a9add1
+-    boost_tmp_lib=$with_boost
a9add1
+-    test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
a9add1
+-    for boost_ldpath in "$boost_tmp_lib/lib" '' \
a9add1
+-             /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
a9add1
+-             "$with_boost" C:/Boost/lib /lib*
a9add1
+-    do
a9add1
+-      # Don't waste time with directories that don't exist.
a9add1
+-      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
a9add1
+-        continue
a9add1
+-      fi
a9add1
+-      boost_save_LDFLAGS=$LDFLAGS
a9add1
+-      # Are we looking for a static library?
a9add1
+-      case $boost_ldpath:$boost_rtopt_ in #(
a9add1
+-        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
+-          boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
+-          test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
a9add1
+-        (*) # No: use -lboost_foo to find the shared library.
a9add1
+-          boost_cv_lib_program_options_LIBS="-l$boost_lib";;
a9add1
+-      esac
a9add1
+-      boost_save_LIBS=$LIBS
a9add1
+-      LIBS="$boost_cv_lib_program_options_LIBS $LIBS"
a9add1
+-      test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
a9add1
+-      rm -f conftest$ac_exeext
a9add1
+-boost_save_ac_ext=$ac_ext
a9add1
+-boost_use_source=:
a9add1
+-# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+-# tries to link the existing object file instead of compiling from source.
a9add1
+-test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
a9add1
+-if { { ac_try="$ac_link"
a9add1
+-case "(($ac_try" in
a9add1
+-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
a9add1
+-  *) ac_try_echo=$ac_try;;
a9add1
+-esac
a9add1
+-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
a9add1
+-$as_echo "$ac_try_echo"; } >&5
a9add1
+-  (eval "$ac_link") 2>conftest.err
a9add1
+-  ac_status=$?
a9add1
+-  if test -s conftest.err; then
a9add1
+-    grep -v '^ *+' conftest.err >conftest.er1
a9add1
+-    cat conftest.er1 >&5
a9add1
+-    mv -f conftest.er1 conftest.err
a9add1
+-  fi
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+-  test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
+-       } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
+-       }; then :
a9add1
+-  boost_cv_lib_program_options=yes
a9add1
+-else
a9add1
+-  if $boost_use_source; then
a9add1
+-         $as_echo "$as_me: failed program was:" >&5
a9add1
+-sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+-
a9add1
+-       fi
a9add1
+-       boost_cv_lib_program_options=no
a9add1
+-fi
a9add1
+-ac_objext=$boost_save_ac_objext
a9add1
+-ac_ext=$boost_save_ac_ext
a9add1
+-rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+-      conftest$ac_exeext
a9add1
+-      ac_objext=$boost_save_ac_objext
a9add1
+-      LDFLAGS=$boost_save_LDFLAGS
a9add1
+-      LIBS=$boost_save_LIBS
a9add1
+-      if test x"$boost_cv_lib_program_options" = xyes; then
a9add1
+-        # Check or used cached result of whether or not using -R or
a9add1
+-        # -rpath makes sense.  Some implementations of ld, such as for
a9add1
+-        # Mac OSX, require -rpath but -R is the flag known to work on
a9add1
+-        # other systems.  https://github.com/tsuna/boost.m4/issues/19
a9add1
+-        if ${boost_cv_rpath_link_ldflag+:} false; then :
a9add1
+-  $as_echo_n "(cached) " >&6
a9add1
+-else
a9add1
+-  case $boost_ldpath in
a9add1
+-           '') # Nothing to do.
a9add1
+-             boost_cv_rpath_link_ldflag=
a9add1
+-             boost_rpath_link_ldflag_found=yes;;
a9add1
+-           *)
a9add1
+-            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
+-              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-              LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS"
a9add1
+-              rm -f conftest$ac_exeext
a9add1
+-boost_save_ac_ext=$ac_ext
a9add1
+-boost_use_source=:
a9add1
+-# If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+-# tries to link the existing object file instead of compiling from source.
a9add1
+-test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
a9add1
+-if { { ac_try="$ac_link"
a9add1
+-case "(($ac_try" in
a9add1
+-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
a9add1
+-  *) ac_try_echo=$ac_try;;
a9add1
+-esac
a9add1
+-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
a9add1
+-$as_echo "$ac_try_echo"; } >&5
a9add1
+-  (eval "$ac_link") 2>conftest.err
a9add1
+-  ac_status=$?
a9add1
+-  if test -s conftest.err; then
a9add1
+-    grep -v '^ *+' conftest.err >conftest.er1
a9add1
+-    cat conftest.er1 >&5
a9add1
+-    mv -f conftest.er1 conftest.err
a9add1
+-  fi
a9add1
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+-  test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
+-       } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
+-       }; then :
a9add1
+-  boost_rpath_link_ldflag_found=yes
a9add1
+-                break
a9add1
+-else
a9add1
+-  if $boost_use_source; then
a9add1
+-         $as_echo "$as_me: failed program was:" >&5
a9add1
+-sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+-
a9add1
+-       fi
a9add1
+-       boost_rpath_link_ldflag_found=no
a9add1
+-fi
a9add1
+-ac_objext=$boost_save_ac_objext
a9add1
+-ac_ext=$boost_save_ac_ext
a9add1
+-rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+-      conftest$ac_exeext
a9add1
+-            done
a9add1
+-            ;;
a9add1
+-          esac
a9add1
+-          if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
a9add1
+-  as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
a9add1
+-fi
a9add1
+-          LDFLAGS=$boost_save_LDFLAGS
a9add1
+-          LIBS=$boost_save_LIBS
a9add1
+-
a9add1
+-fi
a9add1
+-
a9add1
+-        test x"$boost_ldpath" != x &&
a9add1
+-          boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-        boost_cv_lib_program_options_LDPATH="$boost_ldpath"
a9add1
+-        break 7
a9add1
+-      else
a9add1
+-        boost_failed_libs="$boost_failed_libs@$boost_lib@"
a9add1
+-      fi
a9add1
+-    done
a9add1
+-  done
a9add1
+-done
a9add1
+-done
a9add1
+-done
a9add1
+-done
a9add1
+-done # boost_lib_
a9add1
+-rm -f conftest.$ac_objext
a9add1
+-
a9add1
+-fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
a9add1
+-$as_echo "$boost_cv_lib_program_options" >&6; }
a9add1
+-case $boost_cv_lib_program_options in #(
a9add1
+-  (no) $as_echo "$as_me: failed program was:" >&5
a9add1
+-sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+-
a9add1
+-    as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5
a9add1
+-    ;;
a9add1
+-esac
a9add1
+-BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS
a9add1
+-BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH
a9add1
+-BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH
a9add1
+-BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS
a9add1
++BOOST_IOSTREAMS_LDFLAGS=$boost_cv_lib_iostreams_LDFLAGS
a9add1
++BOOST_IOSTREAMS_LDPATH=$boost_cv_lib_iostreams_LDPATH
a9add1
++BOOST_LDPATH=$boost_cv_lib_iostreams_LDPATH
a9add1
++BOOST_IOSTREAMS_LIBS=$boost_cv_lib_iostreams_LIBS
a9add1
+ CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -17704,13 +16877,14 @@
a9add1
+ 
a9add1
+ 
a9add1
+ 
a9add1
+-        # Do we have to check for Boost.System?  This link-time dependency was
a9add1
+-# added as of 1.35.0.  If we have a version <1.35, we must not attempt to
a9add1
+-# find Boost.System as it didn't exist by then.
a9add1
+-if test $boost_major_version -ge 135; then
a9add1
+-  if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
a9add1
++
a9add1
++fi
a9add1
++
a9add1
++if test "x$with_tools" != "xno"; then :
a9add1
++
a9add1
++        if test x"$boost_cv_inc_path" = xno; then
a9add1
++  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5
a9add1
++$as_echo "$as_me: Boost not available, not searching for the Boost program_options library" >&6;}
a9add1
+ else
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -17718,8 +16892,8 @@
a9add1
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
a9add1
++  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5
a9add1
++$as_echo "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;}
a9add1
+ else
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -17728,13 +16902,13 @@
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
a9add1
+-if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
a9add1
++ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
a9add1
++if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then :
a9add1
+ 
a9add1
+-$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
a9add1
++$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h
a9add1
+ 
a9add1
+ else
a9add1
+-  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
a9add1
++  as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5
a9add1
+ fi
a9add1
+ 
a9add1
+ 
a9add1
+@@ -17748,26 +16922,33 @@
a9add1
+ 
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
a9add1
+-$as_echo_n "checking for the Boost system library... " >&6; }
a9add1
+-if ${boost_cv_lib_system+:} false; then :
a9add1
++# Now let's try to find the library.  The algorithm is as follows: first look
a9add1
++# for a given library name according to the user's PREFERRED-RT-OPT.  For each
a9add1
++# library name, we prefer to use the ones that carry the tag (toolset name).
a9add1
++# Each library is searched through the various standard paths were Boost is
a9add1
++# usually installed.  If we can't find the standard variants, we try to
a9add1
++# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
a9add1
++# but there's -obviously- libboost_threads-mt.dylib).
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
a9add1
++$as_echo_n "checking for the Boost program_options library... " >&6; }
a9add1
++if ${boost_cv_lib_program_options+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  boost_cv_lib_system=no
a9add1
++  boost_cv_lib_program_options=no
a9add1
+   case "" in #(
a9add1
+-    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
+-    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
+-    (*) boost_mt=; boost_rtopt=;;
a9add1
++    mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
++    mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
++    *) boost_mt=; boost_rtopt=;;
a9add1
+   esac
a9add1
+   if test $enable_static_boost = yes; then
a9add1
+     boost_rtopt="s$boost_rtopt"
a9add1
+   fi
a9add1
+   # Find the proper debug variant depending on what we've been asked to find.
a9add1
+   case $boost_rtopt in #(
a9add1
+-    (*d*) boost_rt_d=$boost_rtopt;; #(
a9add1
+-    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
++    *d*) boost_rt_d=$boost_rtopt;; #(
a9add1
++    *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
+       boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
a9add1
+-    (*) boost_rt_d='-d';;
a9add1
++    *) boost_rt_d='-d';;
a9add1
+   esac
a9add1
+   # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
a9add1
+   test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
a9add1
+@@ -17780,12 +16961,12 @@
a9add1
+   # Generate the test file.
a9add1
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+ /* end confdefs.h.  */
a9add1
+-#include <boost/system/error_code.hpp>
a9add1
++#include <boost/program_options.hpp>
a9add1
+ 
a9add1
+ int
a9add1
+ main ()
a9add1
+ {
a9add1
+-boost::system::error_code e; e.clear();
a9add1
++boost::program_options::options_description d("test");
a9add1
+   ;
a9add1
+   return 0;
a9add1
+ }
a9add1
+@@ -17793,27 +16974,26 @@
a9add1
+   if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+   ac_objext=do_not_rm_me_plz
a9add1
+ else
a9add1
+-  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
a9add1
++  as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5
a9add1
+ fi
a9add1
+ rm -f core conftest.err conftest.$ac_objext
a9add1
+   ac_objext=$boost_save_ac_objext
a9add1
+   boost_failed_libs=
a9add1
+-# Don't bother to ident the following nested for loops, only the 2
a9add1
+-# innermost ones matter.
a9add1
+-for boost_lib_ in system; do
a9add1
++# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
a9add1
++# matter.
a9add1
+ for boost_tag_ in -$boost_cv_lib_tag ''; do
a9add1
+ for boost_ver_ in -$boost_cv_lib_version ''; do
a9add1
+ for boost_mt_ in $boost_mt -mt ''; do
a9add1
+ for boost_rtopt_ in $boost_rtopt '' -d; do
a9add1
+   for boost_lib in \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_ver_
a9add1
++    boost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_program_options$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_program_options$boost_tag_$boost_mt_$boost_ver_ \
a9add1
++    boost_program_options$boost_tag_$boost_ver_
a9add1
+   do
a9add1
+     # Avoid testing twice the same lib
a9add1
+     case $boost_failed_libs in #(
a9add1
+-      (*@$boost_lib@*) continue;;
a9add1
++      *@$boost_lib@*) continue;;
a9add1
+     esac
a9add1
+     # If with_boost is empty, we'll search in /lib first, which is not quite
a9add1
+     # right so instead we'll try to a location based on where the headers are.
a9add1
+@@ -17823,21 +17003,18 @@
a9add1
+              /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
a9add1
+              "$with_boost" C:/Boost/lib /lib*
a9add1
+     do
a9add1
+-      # Don't waste time with directories that don't exist.
a9add1
+-      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
a9add1
+-        continue
a9add1
+-      fi
a9add1
++      test -e "$boost_ldpath" || continue
a9add1
+       boost_save_LDFLAGS=$LDFLAGS
a9add1
+       # Are we looking for a static library?
a9add1
+       case $boost_ldpath:$boost_rtopt_ in #(
a9add1
+-        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
+-          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
+-          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
a9add1
+-        (*) # No: use -lboost_foo to find the shared library.
a9add1
+-          boost_cv_lib_system_LIBS="-l$boost_lib";;
a9add1
++        *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
++          boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
++          test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
a9add1
++        *) # No: use -lboost_foo to find the shared library.
a9add1
++          boost_cv_lib_program_options_LIBS="-l$boost_lib";;
a9add1
+       esac
a9add1
+       boost_save_LIBS=$LIBS
a9add1
+-      LIBS="$boost_cv_lib_system_LIBS $LIBS"
a9add1
++      LIBS="$boost_cv_lib_program_options_LIBS $LIBS"
a9add1
+       test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
a9add1
+       rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+@@ -17862,20 +17039,20 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+-  boost_cv_lib_system=yes
a9add1
++  boost_cv_lib_program_options=yes
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+        fi
a9add1
+-       boost_cv_lib_system=no
a9add1
++       boost_cv_lib_program_options=no
a9add1
+ fi
a9add1
+ ac_objext=$boost_save_ac_objext
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+@@ -17884,23 +17061,18 @@
a9add1
+       ac_objext=$boost_save_ac_objext
a9add1
+       LDFLAGS=$boost_save_LDFLAGS
a9add1
+       LIBS=$boost_save_LIBS
a9add1
+-      if test x"$boost_cv_lib_system" = xyes; then
a9add1
+-        # Check or used cached result of whether or not using -R or
a9add1
+-        # -rpath makes sense.  Some implementations of ld, such as for
a9add1
+-        # Mac OSX, require -rpath but -R is the flag known to work on
a9add1
+-        # other systems.  https://github.com/tsuna/boost.m4/issues/19
a9add1
++      if test x"$boost_cv_lib_program_options" = xyes; then
a9add1
++        # Check or used cached result of whether or not using -R or -rpath makes sense.
a9add1
++        # Some implementations of ld, such as for Mac OSX, require -rpath but
a9add1
++        # -R is the flag known to work on other systems.
a9add1
++        # https://github.com/tsuna/boost.m4/issues/19
a9add1
+         if ${boost_cv_rpath_link_ldflag+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  case $boost_ldpath in
a9add1
+-           '') # Nothing to do.
a9add1
+-             boost_cv_rpath_link_ldflag=
a9add1
+-             boost_rpath_link_ldflag_found=yes;;
a9add1
+-           *)
a9add1
+-            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
+-              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-              LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
a9add1
+-              rm -f conftest$ac_exeext
a9add1
++  for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
++            LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++            LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS"
a9add1
++            rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+ boost_use_source=:
a9add1
+ # If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+@@ -17923,14 +17095,14 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+   boost_rpath_link_ldflag_found=yes
a9add1
+-                break
a9add1
++              break
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+@@ -17943,9 +17115,7 @@
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+ rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+       conftest$ac_exeext
a9add1
+-            done
a9add1
+-            ;;
a9add1
+-          esac
a9add1
++          done
a9add1
+           if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
a9add1
+   as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
a9add1
+ fi
a9add1
+@@ -17954,10 +17124,9 @@
a9add1
+ 
a9add1
+ fi
a9add1
+ 
a9add1
+-        test x"$boost_ldpath" != x &&
a9add1
+-          boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-        boost_cv_lib_system_LDPATH="$boost_ldpath"
a9add1
+-        break 7
a9add1
++        boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++        boost_cv_lib_program_options_LDPATH="$boost_ldpath"
a9add1
++        break 6
a9add1
+       else
a9add1
+         boost_failed_libs="$boost_failed_libs@$boost_lib@"
a9add1
+       fi
a9add1
+@@ -17967,23 +17136,22 @@
a9add1
+ done
a9add1
+ done
a9add1
+ done
a9add1
+-done # boost_lib_
a9add1
+ rm -f conftest.$ac_objext
a9add1
+ 
a9add1
+ fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
a9add1
+-$as_echo "$boost_cv_lib_system" >&6; }
a9add1
+-case $boost_cv_lib_system in #(
a9add1
+-  (no) $as_echo "$as_me: failed program was:" >&5
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
a9add1
++$as_echo "$boost_cv_lib_program_options" >&6; }
a9add1
++case $boost_cv_lib_program_options in #(
a9add1
++  no) $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+-    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
a9add1
++    as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5
a9add1
+     ;;
a9add1
+ esac
a9add1
+-BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
a9add1
+-BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
+-BOOST_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
+-BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
a9add1
++BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS
a9add1
++BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH
a9add1
++BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH
a9add1
++BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS
a9add1
+ CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -17994,14 +17162,13 @@
a9add1
+ 
a9add1
+ 
a9add1
+ 
a9add1
+-fi # end of the Boost.System check.
a9add1
+-boost_filesystem_save_LIBS=$LIBS
a9add1
+-boost_filesystem_save_LDFLAGS=$LDFLAGS
a9add1
+-LIBS="$LIBS $BOOST_SYSTEM_LIBS"
a9add1
+-LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
a9add1
++        # Do we have to check for Boost.System?  This link-time dependency was
a9add1
++# added as of 1.35.0.  If we have a version <1.35, we must not attempt to
a9add1
++# find Boost.System as it didn't exist by then.
a9add1
++if test $boost_major_version -ge 135; then
a9add1
+ if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost filesystem library" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for the Boost filesystem library" >&6;}
a9add1
++  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
a9add1
++$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
a9add1
+ else
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -18009,8 +17176,8 @@
a9add1
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/filesystem/path.hpp" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for boost/filesystem/path.hpp" >&6;}
a9add1
++  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
a9add1
++$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
a9add1
+ else
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -18019,13 +17186,13 @@
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default"
a9add1
+-if test "x$ac_cv_header_boost_filesystem_path_hpp" = xyes; then :
a9add1
++ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
a9add1
++if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
a9add1
+ 
a9add1
+-$as_echo "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h
a9add1
++$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
a9add1
+ 
a9add1
+ else
a9add1
+-  as_fn_error $? "cannot find boost/filesystem/path.hpp" "$LINENO" 5
a9add1
++  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
a9add1
+ fi
a9add1
+ 
a9add1
+ 
a9add1
+@@ -18039,26 +17206,33 @@
a9add1
+ 
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5
a9add1
+-$as_echo_n "checking for the Boost filesystem library... " >&6; }
a9add1
+-if ${boost_cv_lib_filesystem+:} false; then :
a9add1
++# Now let's try to find the library.  The algorithm is as follows: first look
a9add1
++# for a given library name according to the user's PREFERRED-RT-OPT.  For each
a9add1
++# library name, we prefer to use the ones that carry the tag (toolset name).
a9add1
++# Each library is searched through the various standard paths were Boost is
a9add1
++# usually installed.  If we can't find the standard variants, we try to
a9add1
++# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
a9add1
++# but there's -obviously- libboost_threads-mt.dylib).
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
a9add1
++$as_echo_n "checking for the Boost system library... " >&6; }
a9add1
++if ${boost_cv_lib_system+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  boost_cv_lib_filesystem=no
a9add1
++  boost_cv_lib_system=no
a9add1
+   case "" in #(
a9add1
+-    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
+-    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
+-    (*) boost_mt=; boost_rtopt=;;
a9add1
++    mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
++    mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
++    *) boost_mt=; boost_rtopt=;;
a9add1
+   esac
a9add1
+   if test $enable_static_boost = yes; then
a9add1
+     boost_rtopt="s$boost_rtopt"
a9add1
+   fi
a9add1
+   # Find the proper debug variant depending on what we've been asked to find.
a9add1
+   case $boost_rtopt in #(
a9add1
+-    (*d*) boost_rt_d=$boost_rtopt;; #(
a9add1
+-    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
++    *d*) boost_rt_d=$boost_rtopt;; #(
a9add1
++    *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
+       boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
a9add1
+-    (*) boost_rt_d='-d';;
a9add1
++    *) boost_rt_d='-d';;
a9add1
+   esac
a9add1
+   # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
a9add1
+   test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
a9add1
+@@ -18071,12 +17245,12 @@
a9add1
+   # Generate the test file.
a9add1
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+ /* end confdefs.h.  */
a9add1
+-#include <boost/filesystem/path.hpp>
a9add1
++#include <boost/system/error_code.hpp>
a9add1
+ 
a9add1
+ int
a9add1
+ main ()
a9add1
+ {
a9add1
+-boost::filesystem::path p;
a9add1
++boost::system::error_code e; e.clear();
a9add1
+   ;
a9add1
+   return 0;
a9add1
+ }
a9add1
+@@ -18084,27 +17258,26 @@
a9add1
+   if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+   ac_objext=do_not_rm_me_plz
a9add1
+ else
a9add1
+-  as_fn_error $? "cannot compile a test that uses Boost filesystem" "$LINENO" 5
a9add1
++  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
a9add1
+ fi
a9add1
+ rm -f core conftest.err conftest.$ac_objext
a9add1
+   ac_objext=$boost_save_ac_objext
a9add1
+   boost_failed_libs=
a9add1
+-# Don't bother to ident the following nested for loops, only the 2
a9add1
+-# innermost ones matter.
a9add1
+-for boost_lib_ in filesystem; do
a9add1
++# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
a9add1
++# matter.
a9add1
+ for boost_tag_ in -$boost_cv_lib_tag ''; do
a9add1
+ for boost_ver_ in -$boost_cv_lib_version ''; do
a9add1
+ for boost_mt_ in $boost_mt -mt ''; do
a9add1
+ for boost_rtopt_ in $boost_rtopt '' -d; do
a9add1
+   for boost_lib in \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_ver_
a9add1
++    boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_system$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_system$boost_tag_$boost_mt_$boost_ver_ \
a9add1
++    boost_system$boost_tag_$boost_ver_
a9add1
+   do
a9add1
+     # Avoid testing twice the same lib
a9add1
+     case $boost_failed_libs in #(
a9add1
+-      (*@$boost_lib@*) continue;;
a9add1
++      *@$boost_lib@*) continue;;
a9add1
+     esac
a9add1
+     # If with_boost is empty, we'll search in /lib first, which is not quite
a9add1
+     # right so instead we'll try to a location based on where the headers are.
a9add1
+@@ -18114,21 +17287,18 @@
a9add1
+              /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
a9add1
+              "$with_boost" C:/Boost/lib /lib*
a9add1
+     do
a9add1
+-      # Don't waste time with directories that don't exist.
a9add1
+-      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
a9add1
+-        continue
a9add1
+-      fi
a9add1
++      test -e "$boost_ldpath" || continue
a9add1
+       boost_save_LDFLAGS=$LDFLAGS
a9add1
+       # Are we looking for a static library?
a9add1
+       case $boost_ldpath:$boost_rtopt_ in #(
a9add1
+-        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
+-          boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
+-          test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #(
a9add1
+-        (*) # No: use -lboost_foo to find the shared library.
a9add1
+-          boost_cv_lib_filesystem_LIBS="-l$boost_lib";;
a9add1
++        *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
++          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
++          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
a9add1
++        *) # No: use -lboost_foo to find the shared library.
a9add1
++          boost_cv_lib_system_LIBS="-l$boost_lib";;
a9add1
+       esac
a9add1
+       boost_save_LIBS=$LIBS
a9add1
+-      LIBS="$boost_cv_lib_filesystem_LIBS $LIBS"
a9add1
++      LIBS="$boost_cv_lib_system_LIBS $LIBS"
a9add1
+       test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
a9add1
+       rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+@@ -18153,20 +17323,20 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+-  boost_cv_lib_filesystem=yes
a9add1
++  boost_cv_lib_system=yes
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+        fi
a9add1
+-       boost_cv_lib_filesystem=no
a9add1
++       boost_cv_lib_system=no
a9add1
+ fi
a9add1
+ ac_objext=$boost_save_ac_objext
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+@@ -18175,23 +17345,18 @@
a9add1
+       ac_objext=$boost_save_ac_objext
a9add1
+       LDFLAGS=$boost_save_LDFLAGS
a9add1
+       LIBS=$boost_save_LIBS
a9add1
+-      if test x"$boost_cv_lib_filesystem" = xyes; then
a9add1
+-        # Check or used cached result of whether or not using -R or
a9add1
+-        # -rpath makes sense.  Some implementations of ld, such as for
a9add1
+-        # Mac OSX, require -rpath but -R is the flag known to work on
a9add1
+-        # other systems.  https://github.com/tsuna/boost.m4/issues/19
a9add1
++      if test x"$boost_cv_lib_system" = xyes; then
a9add1
++        # Check or used cached result of whether or not using -R or -rpath makes sense.
a9add1
++        # Some implementations of ld, such as for Mac OSX, require -rpath but
a9add1
++        # -R is the flag known to work on other systems.
a9add1
++        # https://github.com/tsuna/boost.m4/issues/19
a9add1
+         if ${boost_cv_rpath_link_ldflag+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  case $boost_ldpath in
a9add1
+-           '') # Nothing to do.
a9add1
+-             boost_cv_rpath_link_ldflag=
a9add1
+-             boost_rpath_link_ldflag_found=yes;;
a9add1
+-           *)
a9add1
+-            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
+-              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-              LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS"
a9add1
+-              rm -f conftest$ac_exeext
a9add1
++  for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
++            LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++            LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
a9add1
++            rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+ boost_use_source=:
a9add1
+ # If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+@@ -18214,14 +17379,14 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+   boost_rpath_link_ldflag_found=yes
a9add1
+-                break
a9add1
++              break
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+@@ -18234,9 +17399,7 @@
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+ rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+       conftest$ac_exeext
a9add1
+-            done
a9add1
+-            ;;
a9add1
+-          esac
a9add1
++          done
a9add1
+           if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
a9add1
+   as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
a9add1
+ fi
a9add1
+@@ -18245,10 +17408,9 @@
a9add1
+ 
a9add1
+ fi
a9add1
+ 
a9add1
+-        test x"$boost_ldpath" != x &&
a9add1
+-          boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-        boost_cv_lib_filesystem_LDPATH="$boost_ldpath"
a9add1
+-        break 7
a9add1
++        boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++        boost_cv_lib_system_LDPATH="$boost_ldpath"
a9add1
++        break 6
a9add1
+       else
a9add1
+         boost_failed_libs="$boost_failed_libs@$boost_lib@"
a9add1
+       fi
a9add1
+@@ -18258,23 +17420,22 @@
a9add1
+ done
a9add1
+ done
a9add1
+ done
a9add1
+-done # boost_lib_
a9add1
+ rm -f conftest.$ac_objext
a9add1
+ 
a9add1
+ fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5
a9add1
+-$as_echo "$boost_cv_lib_filesystem" >&6; }
a9add1
+-case $boost_cv_lib_filesystem in #(
a9add1
+-  (no) $as_echo "$as_me: failed program was:" >&5
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
a9add1
++$as_echo "$boost_cv_lib_system" >&6; }
a9add1
++case $boost_cv_lib_system in #(
a9add1
++  no) $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+-    as_fn_error $? "cannot find the flags to link with Boost filesystem" "$LINENO" 5
a9add1
++    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
a9add1
+     ;;
a9add1
+ esac
a9add1
+-BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS
a9add1
+-BOOST_FILESYSTEM_LDPATH=$boost_cv_lib_filesystem_LDPATH
a9add1
+-BOOST_LDPATH=$boost_cv_lib_filesystem_LDPATH
a9add1
+-BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS
a9add1
++BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
a9add1
++BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
++BOOST_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
++BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
a9add1
+ CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -18283,16 +17444,16 @@
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ fi
a9add1
+ 
a9add1
+-if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
a9add1
+-  BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
a9add1
+-fi
a9add1
+-LIBS=$boost_filesystem_save_LIBS
a9add1
+-LDFLAGS=$boost_filesystem_save_LDFLAGS
a9add1
+ 
a9add1
+ 
a9add1
+-        if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
a9add1
++fi # end of the Boost.System check.
a9add1
++boost_filesystem_save_LIBS=$LIBS
a9add1
++boost_filesystem_save_LDFLAGS=$LDFLAGS
a9add1
++LIBS="$LIBS $BOOST_SYSTEM_LIBS"
a9add1
++LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
a9add1
++if test x"$boost_cv_inc_path" = xno; then
a9add1
++  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost filesystem library" >&5
a9add1
++$as_echo "$as_me: Boost not available, not searching for the Boost filesystem library" >&6;}
a9add1
+ else
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -18300,8 +17461,8 @@
a9add1
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ if test x"$boost_cv_inc_path" = xno; then
a9add1
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
a9add1
+-$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
a9add1
++  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/filesystem/path.hpp" >&5
a9add1
++$as_echo "$as_me: Boost not available, not searching for boost/filesystem/path.hpp" >&6;}
a9add1
+ else
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -18310,13 +17471,13 @@
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
a9add1
+-if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
a9add1
++ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default"
a9add1
++if test "x$ac_cv_header_boost_filesystem_path_hpp" = xyes; then :
a9add1
+ 
a9add1
+-$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
a9add1
++$as_echo "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h
a9add1
+ 
a9add1
+ else
a9add1
+-  as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
a9add1
++  as_fn_error $? "cannot find boost/filesystem/path.hpp" "$LINENO" 5
a9add1
+ fi
a9add1
+ 
a9add1
+ 
a9add1
+@@ -18330,26 +17491,33 @@
a9add1
+ 
a9add1
+ boost_save_CPPFLAGS=$CPPFLAGS
a9add1
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
a9add1
+-$as_echo_n "checking for the Boost system library... " >&6; }
a9add1
+-if ${boost_cv_lib_system+:} false; then :
a9add1
++# Now let's try to find the library.  The algorithm is as follows: first look
a9add1
++# for a given library name according to the user's PREFERRED-RT-OPT.  For each
a9add1
++# library name, we prefer to use the ones that carry the tag (toolset name).
a9add1
++# Each library is searched through the various standard paths were Boost is
a9add1
++# usually installed.  If we can't find the standard variants, we try to
a9add1
++# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
a9add1
++# but there's -obviously- libboost_threads-mt.dylib).
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5
a9add1
++$as_echo_n "checking for the Boost filesystem library... " >&6; }
a9add1
++if ${boost_cv_lib_filesystem+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  boost_cv_lib_system=no
a9add1
++  boost_cv_lib_filesystem=no
a9add1
+   case "" in #(
a9add1
+-    (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
+-    (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
+-    (*) boost_mt=; boost_rtopt=;;
a9add1
++    mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
a9add1
++    mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
a9add1
++    *) boost_mt=; boost_rtopt=;;
a9add1
+   esac
a9add1
+   if test $enable_static_boost = yes; then
a9add1
+     boost_rtopt="s$boost_rtopt"
a9add1
+   fi
a9add1
+   # Find the proper debug variant depending on what we've been asked to find.
a9add1
+   case $boost_rtopt in #(
a9add1
+-    (*d*) boost_rt_d=$boost_rtopt;; #(
a9add1
+-    (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
++    *d*) boost_rt_d=$boost_rtopt;; #(
a9add1
++    *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
a9add1
+       boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
a9add1
+-    (*) boost_rt_d='-d';;
a9add1
++    *) boost_rt_d='-d';;
a9add1
+   esac
a9add1
+   # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
a9add1
+   test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
a9add1
+@@ -18362,12 +17530,12 @@
a9add1
+   # Generate the test file.
a9add1
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9add1
+ /* end confdefs.h.  */
a9add1
+-#include <boost/system/error_code.hpp>
a9add1
++#include <boost/filesystem/path.hpp>
a9add1
+ 
a9add1
+ int
a9add1
+ main ()
a9add1
+ {
a9add1
+-boost::system::error_code e; e.clear();
a9add1
++boost::filesystem::path p;
a9add1
+   ;
a9add1
+   return 0;
a9add1
+ }
a9add1
+@@ -18375,27 +17543,26 @@
a9add1
+   if ac_fn_cxx_try_compile "$LINENO"; then :
a9add1
+   ac_objext=do_not_rm_me_plz
a9add1
+ else
a9add1
+-  as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
a9add1
++  as_fn_error $? "cannot compile a test that uses Boost filesystem" "$LINENO" 5
a9add1
+ fi
a9add1
+ rm -f core conftest.err conftest.$ac_objext
a9add1
+   ac_objext=$boost_save_ac_objext
a9add1
+   boost_failed_libs=
a9add1
+-# Don't bother to ident the following nested for loops, only the 2
a9add1
+-# innermost ones matter.
a9add1
+-for boost_lib_ in system; do
a9add1
++# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
a9add1
++# matter.
a9add1
+ for boost_tag_ in -$boost_cv_lib_tag ''; do
a9add1
+ for boost_ver_ in -$boost_cv_lib_version ''; do
a9add1
+ for boost_mt_ in $boost_mt -mt ''; do
a9add1
+ for boost_rtopt_ in $boost_rtopt '' -d; do
a9add1
+   for boost_lib in \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
a9add1
+-    boost_$boost_lib_$boost_tag_$boost_ver_
a9add1
++    boost_filesystem$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_filesystem$boost_tag_$boost_rtopt_$boost_ver_ \
a9add1
++    boost_filesystem$boost_tag_$boost_mt_$boost_ver_ \
a9add1
++    boost_filesystem$boost_tag_$boost_ver_
a9add1
+   do
a9add1
+     # Avoid testing twice the same lib
a9add1
+     case $boost_failed_libs in #(
a9add1
+-      (*@$boost_lib@*) continue;;
a9add1
++      *@$boost_lib@*) continue;;
a9add1
+     esac
a9add1
+     # If with_boost is empty, we'll search in /lib first, which is not quite
a9add1
+     # right so instead we'll try to a location based on where the headers are.
a9add1
+@@ -18405,21 +17572,18 @@
a9add1
+              /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
a9add1
+              "$with_boost" C:/Boost/lib /lib*
a9add1
+     do
a9add1
+-      # Don't waste time with directories that don't exist.
a9add1
+-      if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
a9add1
+-        continue
a9add1
+-      fi
a9add1
++      test -e "$boost_ldpath" || continue
a9add1
+       boost_save_LDFLAGS=$LDFLAGS
a9add1
+       # Are we looking for a static library?
a9add1
+       case $boost_ldpath:$boost_rtopt_ in #(
a9add1
+-        (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
+-          boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
+-          test -e "$boost_cv_lib_system_LIBS" || continue;; #(
a9add1
+-        (*) # No: use -lboost_foo to find the shared library.
a9add1
+-          boost_cv_lib_system_LIBS="-l$boost_lib";;
a9add1
++        *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
a9add1
++          boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext"
a9add1
++          test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #(
a9add1
++        *) # No: use -lboost_foo to find the shared library.
a9add1
++          boost_cv_lib_filesystem_LIBS="-l$boost_lib";;
a9add1
+       esac
a9add1
+       boost_save_LIBS=$LIBS
a9add1
+-      LIBS="$boost_cv_lib_system_LIBS $LIBS"
a9add1
++      LIBS="$boost_cv_lib_filesystem_LIBS $LIBS"
a9add1
+       test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
a9add1
+       rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+@@ -18444,20 +17608,20 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+-  boost_cv_lib_system=yes
a9add1
++  boost_cv_lib_filesystem=yes
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+        fi
a9add1
+-       boost_cv_lib_system=no
a9add1
++       boost_cv_lib_filesystem=no
a9add1
+ fi
a9add1
+ ac_objext=$boost_save_ac_objext
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+@@ -18466,23 +17630,18 @@
a9add1
+       ac_objext=$boost_save_ac_objext
a9add1
+       LDFLAGS=$boost_save_LDFLAGS
a9add1
+       LIBS=$boost_save_LIBS
a9add1
+-      if test x"$boost_cv_lib_system" = xyes; then
a9add1
+-        # Check or used cached result of whether or not using -R or
a9add1
+-        # -rpath makes sense.  Some implementations of ld, such as for
a9add1
+-        # Mac OSX, require -rpath but -R is the flag known to work on
a9add1
+-        # other systems.  https://github.com/tsuna/boost.m4/issues/19
a9add1
++      if test x"$boost_cv_lib_filesystem" = xyes; then
a9add1
++        # Check or used cached result of whether or not using -R or -rpath makes sense.
a9add1
++        # Some implementations of ld, such as for Mac OSX, require -rpath but
a9add1
++        # -R is the flag known to work on other systems.
a9add1
++        # https://github.com/tsuna/boost.m4/issues/19
a9add1
+         if ${boost_cv_rpath_link_ldflag+:} false; then :
a9add1
+   $as_echo_n "(cached) " >&6
a9add1
+ else
a9add1
+-  case $boost_ldpath in
a9add1
+-           '') # Nothing to do.
a9add1
+-             boost_cv_rpath_link_ldflag=
a9add1
+-             boost_rpath_link_ldflag_found=yes;;
a9add1
+-           *)
a9add1
+-            for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
+-              LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-              LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
a9add1
+-              rm -f conftest$ac_exeext
a9add1
++  for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
a9add1
++            LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++            LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS"
a9add1
++            rm -f conftest$ac_exeext
a9add1
+ boost_save_ac_ext=$ac_ext
a9add1
+ boost_use_source=:
a9add1
+ # If we already have a .o, re-use it.  We change $ac_ext so that $ac_link
a9add1
+@@ -18505,14 +17664,14 @@
a9add1
+   fi
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; } && {
a9add1
+-         test -z "$ac_cxx_werror_flag" ||
a9add1
+-         test ! -s conftest.err
a9add1
++	 test -z "$ac_cxx_werror_flag" ||
a9add1
++	 test ! -s conftest.err
a9add1
+        } && test -s conftest$ac_exeext && {
a9add1
+-         test "$cross_compiling" = yes ||
a9add1
+-         $as_executable_p conftest$ac_exeext
a9add1
++	 test "$cross_compiling" = yes ||
a9add1
++	 $as_executable_p conftest$ac_exeext
a9add1
+        }; then :
a9add1
+   boost_rpath_link_ldflag_found=yes
a9add1
+-                break
a9add1
++              break
a9add1
+ else
a9add1
+   if $boost_use_source; then
a9add1
+          $as_echo "$as_me: failed program was:" >&5
a9add1
+@@ -18525,9 +17684,7 @@
a9add1
+ ac_ext=$boost_save_ac_ext
a9add1
+ rm -f core conftest.err conftest_ipa8_conftest.oo \
a9add1
+       conftest$ac_exeext
a9add1
+-            done
a9add1
+-            ;;
a9add1
+-          esac
a9add1
++          done
a9add1
+           if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
a9add1
+   as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
a9add1
+ fi
a9add1
+@@ -18536,10 +17693,9 @@
a9add1
+ 
a9add1
+ fi
a9add1
+ 
a9add1
+-        test x"$boost_ldpath" != x &&
a9add1
+-          boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
+-        boost_cv_lib_system_LDPATH="$boost_ldpath"
a9add1
+-        break 7
a9add1
++        boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
a9add1
++        boost_cv_lib_filesystem_LDPATH="$boost_ldpath"
a9add1
++        break 6
a9add1
+       else
a9add1
+         boost_failed_libs="$boost_failed_libs@$boost_lib@"
a9add1
+       fi
a9add1
+@@ -18549,23 +17705,22 @@
a9add1
+ done
a9add1
+ done
a9add1
+ done
a9add1
+-done # boost_lib_
a9add1
+ rm -f conftest.$ac_objext
a9add1
+ 
a9add1
+ fi
a9add1
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
a9add1
+-$as_echo "$boost_cv_lib_system" >&6; }
a9add1
+-case $boost_cv_lib_system in #(
a9add1
+-  (no) $as_echo "$as_me: failed program was:" >&5
a9add1
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5
a9add1
++$as_echo "$boost_cv_lib_filesystem" >&6; }
a9add1
++case $boost_cv_lib_filesystem in #(
a9add1
++  no) $as_echo "$as_me: failed program was:" >&5
a9add1
+ sed 's/^/| /' conftest.$ac_ext >&5
a9add1
+ 
a9add1
+-    as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
a9add1
++    as_fn_error $? "cannot find the flags to link with Boost filesystem" "$LINENO" 5
a9add1
+     ;;
a9add1
+ esac
a9add1
+-BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
a9add1
+-BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
+-BOOST_LDPATH=$boost_cv_lib_system_LDPATH
a9add1
+-BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
a9add1
++BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS
a9add1
++BOOST_FILESYSTEM_LDPATH=$boost_cv_lib_filesystem_LDPATH
a9add1
++BOOST_LDPATH=$boost_cv_lib_filesystem_LDPATH
a9add1
++BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS
a9add1
+ CPPFLAGS=$boost_save_CPPFLAGS
a9add1
+ ac_ext=cpp
a9add1
+ ac_cpp='$CXXCPP $CPPFLAGS'
a9add1
+@@ -18574,6 +17729,12 @@
a9add1
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a9add1
+ fi
a9add1
+ 
a9add1
++if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
a9add1
++    BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
a9add1
++
a9add1
++fi
a9add1
++LIBS=$boost_filesystem_save_LIBS
a9add1
++LDFLAGS=$boost_filesystem_save_LDFLAGS
a9add1
+ 
a9add1
+ 
a9add1
+ 
a9add1
+@@ -18591,12 +17752,12 @@
a9add1
+     pkg_cv_MDDS_CFLAGS="$MDDS_CFLAGS"
a9add1
+  elif test -n "$PKG_CONFIG"; then
a9add1
+     if test -n "$PKG_CONFIG" && \
a9add1
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.11.0\""; } >&5
a9add1
+-  ($PKG_CONFIG --exists --print-errors "mdds >= 0.11.0") 2>&5
a9add1
++    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.8.0\""; } >&5
a9add1
++  ($PKG_CONFIG --exists --print-errors "mdds >= 0.8.0") 2>&5
a9add1
+   ac_status=$?
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; }; then
a9add1
+-  pkg_cv_MDDS_CFLAGS=`$PKG_CONFIG --cflags "mdds >= 0.11.0" 2>/dev/null`
a9add1
++  pkg_cv_MDDS_CFLAGS=`$PKG_CONFIG --cflags "mdds >= 0.8.0" 2>/dev/null`
a9add1
+ 		      test "x$?" != "x0" && pkg_failed=yes
a9add1
+ else
a9add1
+   pkg_failed=yes
a9add1
+@@ -18608,12 +17769,12 @@
a9add1
+     pkg_cv_MDDS_LIBS="$MDDS_LIBS"
a9add1
+  elif test -n "$PKG_CONFIG"; then
a9add1
+     if test -n "$PKG_CONFIG" && \
a9add1
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.11.0\""; } >&5
a9add1
+-  ($PKG_CONFIG --exists --print-errors "mdds >= 0.11.0") 2>&5
a9add1
++    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.8.0\""; } >&5
a9add1
++  ($PKG_CONFIG --exists --print-errors "mdds >= 0.8.0") 2>&5
a9add1
+   ac_status=$?
a9add1
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a9add1
+   test $ac_status = 0; }; then
a9add1
+-  pkg_cv_MDDS_LIBS=`$PKG_CONFIG --libs "mdds >= 0.11.0" 2>/dev/null`
a9add1
++  pkg_cv_MDDS_LIBS=`$PKG_CONFIG --libs "mdds >= 0.8.0" 2>/dev/null`
a9add1
+ 		      test "x$?" != "x0" && pkg_failed=yes
a9add1
+ else
a9add1
+   pkg_failed=yes
a9add1
+@@ -18634,14 +17795,14 @@
a9add1
+         _pkg_short_errors_supported=no
a9add1
+ fi
a9add1
+         if test $_pkg_short_errors_supported = yes; then
a9add1
+-	        MDDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mdds >= 0.11.0" 2>&1`
a9add1
++	        MDDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mdds >= 0.8.0" 2>&1`
a9add1
+         else
a9add1
+-	        MDDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mdds >= 0.11.0" 2>&1`
a9add1
++	        MDDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mdds >= 0.8.0" 2>&1`
a9add1
+         fi
a9add1
+ 	# Put the nasty error message in config.log where it belongs
a9add1
+ 	echo "$MDDS_PKG_ERRORS" >&5
a9add1
+ 
a9add1
+-	as_fn_error $? "Package requirements (mdds >= 0.11.0) were not met:
a9add1
++	as_fn_error $? "Package requirements (mdds >= 0.8.0) were not met:
a9add1
+ 
a9add1
+ $MDDS_PKG_ERRORS
a9add1
+ 
a9add1
+@@ -20538,7 +19699,7 @@
a9add1
+ 
a9add1
+   case $ac_file$ac_mode in
a9add1
+     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
a9add1
+-  # Older Autoconf quotes --file arguments for eval, but not when files
a9add1
++  # Autoconf 2.62 quotes --file arguments for eval, but not when files
a9add1
+   # are listed without --file.  Let's play safe and only enable the eval
a9add1
+   # if we detect the quoting.
a9add1
+   case $CONFIG_FILES in
a9add1
+@@ -20589,7 +19750,7 @@
a9add1
+     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
a9add1
+     test -z "$DEPDIR" && continue
a9add1
+     am__include=`sed -n 's/^am__include = //p' < "$mf"`
a9add1
+-    test -z "$am__include" && continue
a9add1
++    test -z "am__include" && continue
a9add1
+     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
a9add1
+     # Find all dependency output files, they are included files with
a9add1
+     # $(DEPDIR) in their names.  We invoke sed twice because it is the
a9add1
+@@ -21476,7 +20637,6 @@
a9add1
+ ==============================================================================
a9add1
+ Build configuration:
a9add1
+ 	debug:               $enable_debug
a9add1
+-	werror:              $enable_werror
a9add1
+ 	spreadsheet-model:   $enable_spreadsheet_model
a9add1
+         gnumeric-filter:     $with_gnumeric_filter
a9add1
+         ods-filter:          $with_ods_filter
a9add1
+@@ -21489,7 +20649,6 @@
a9add1
+ ==============================================================================
a9add1
+ Build configuration:
a9add1
+ 	debug:               $enable_debug
a9add1
+-	werror:              $enable_werror
a9add1
+ 	spreadsheet-model:   $enable_spreadsheet_model
a9add1
+         gnumeric-filter:     $with_gnumeric_filter
a9add1
+         ods-filter:          $with_ods_filter
a9add1
-- 
a9add1
2.5.0
a9add1