summaryrefslogtreecommitdiff
path: root/m4/ax_boost_program_options.m4
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2015-03-23 00:57:35 +0200
committerPeter Simons <simons@cryp.to>2015-04-21 21:46:53 +0200
commit93fbfa0accb463edc300c1d52bcccb8696934cf7 (patch)
tree3f04f43ac78019b4a010464997730c583331dd96 /m4/ax_boost_program_options.m4
parente97cc5830c898988f90a3b9fc8ce164c138c3a8d (diff)
downloadautoconf-archive-93fbfa0accb463edc300c1d52bcccb8696934cf7.tar.gz
Optimize boost program options detection
Boost program options_description depend on many heavy parts of boost leading to very long compilation times with it. For configure detection it is better ot use program_options/errors.hpp where error class has been right from begin.
Diffstat (limited to 'm4/ax_boost_program_options.m4')
-rw-r--r--m4/ax_boost_program_options.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_boost_program_options.m4 b/m4/ax_boost_program_options.m4
index 65a39c8..ed80250 100644
--- a/m4/ax_boost_program_options.m4
+++ b/m4/ax_boost_program_options.m4
@@ -63,9 +63,9 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
AC_CACHE_CHECK([whether the Boost::Program_Options library is available],
ax_cv_boost_program_options,
[AC_LANG_PUSH(C++)
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp>
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options/errors.hpp>
]],
- [[boost::program_options::options_description generic("Generic options");
+ [[boost::program_options::error err("Error message");
return 0;]])],
ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no)
AC_LANG_POP([C++])