Changeset 10682
- Timestamp:
- 05/12/11 19:10:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure
r10562 r10682 811 811 QT4DIR 812 812 BOOST_THREAD_LIB 813 BOOST_SYSTEM_LIB814 813 BOOST_REGEX_LIB 815 814 BOOST_PROGRAM_OPTIONS_LIB … … 817 816 BOOST_DATE_TIME_LIB 818 817 BOOST_ASIO_LIB 818 BOOST_SYSTEM_LIB 819 819 BOOST_LDFLAGS 820 820 BOOST_CPPFLAGS … … 1037 1037 with_boost 1038 1038 with_boost_libdir 1039 with_boost_system 1039 1040 with_boost_asio 1040 1041 with_boost_date_time … … 1042 1043 with_boost_program_options 1043 1044 with_boost_regex 1044 with_boost_system1045 1045 with_boost_thread 1046 1046 with_qt4 … … 1749 1749 fails and you know exactly where your boost 1750 1750 libraries are located. 1751 --with-boost-system[=special-lib] 1752 use the System library from boost - it is possible 1753 to specify a certain library for the linker e.g. 1754 --with-boost-system=boost_system-gcc-mt 1751 1755 --with-boost-asio[=special-lib] 1752 1756 use the ASIO library from boost - it is possible to … … 1771 1775 specify a certain library for the linker e.g. 1772 1776 --with-boost-regex=boost_regex-gcc-mt-d-1_33_1 1773 --with-boost-system[=special-lib]1774 use the System library from boost - it is possible1775 to specify a certain library for the linker e.g.1776 --with-boost-system=boost_system-gcc-mt1777 1777 --with-boost-thread[=special-lib] 1778 1778 use the Thread library from boost - it is possible … … 18786 18786 18787 18787 18788 18789 18790 # Check whether --with-boost-asio was given. 18791 if test "${with_boost_asio+set}" = set; then : 18792 withval=$with_boost_asio; 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BOOST_CPPFLAGS" >&5 18789 $as_echo_n "checking for BOOST_CPPFLAGS... " >&6; } 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_CPPFLAGS" >&5 18791 $as_echo "$BOOST_CPPFLAGS" >&6; } 18792 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BOOST_LDFLAGS" >&5 18794 $as_echo_n "checking for BOOST_LDFLAGS... " >&6; } 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_LDFLAGS" >&5 18796 $as_echo "$BOOST_LDFLAGS" >&6; } 18797 18798 # Keep this order AX_BOOST_FILESYSTEM needs AX_BOOST_SYSTEM_LIB 18799 18800 18801 # Check whether --with-boost-system was given. 18802 if test "${with_boost_system+set}" = set; then : 18803 withval=$with_boost_system; 18793 18804 if test "$withval" = "no"; then 18794 18805 want_boost="no" 18795 18806 elif test "$withval" = "yes"; then 18796 18807 want_boost="yes" 18797 ax_boost_user_ asio_lib=""18808 ax_boost_user_system_lib="" 18798 18809 else 18799 18810 want_boost="yes" 18800 ax_boost_user_ asio_lib="$withval"18811 ax_boost_user_system_lib="$withval" 18801 18812 fi 18802 18813 … … 18808 18819 18809 18820 if test "x$want_boost" = "xyes"; then 18821 18810 18822 18811 18823 CPPFLAGS_SAVED="$CPPFLAGS" … … 18817 18829 export LDFLAGS 18818 18830 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost:: ASIOlibrary is available" >&518820 $as_echo_n "checking whether the Boost:: ASIOlibrary is available... " >&6; }18821 if test "${ax_cv_boost_ asio+set}" = set; then :18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5 18832 $as_echo_n "checking whether the Boost::System library is available... " >&6; } 18833 if test "${ax_cv_boost_system+set}" = set; then : 18822 18834 $as_echo_n "(cached) " >&6 18823 18835 else … … 18828 18840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18829 18841 18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18842 CXXFLAGS_SAVE=$CXXFLAGS 18843 18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18831 18845 /* end confdefs.h. */ 18832 #include <boost/asio.hpp> 18833 18846 #include <boost/system/error_code.hpp> 18834 18847 int 18835 18848 main () 18836 18849 { 18837 18838 18839 boost::asio::io_service io; 18840 boost::system::error_code timer_result; 18841 boost::asio::deadline_timer t(io); 18842 t.cancel(); 18843 io.run_one(); 18844 return 0; 18845 18850 boost::system::system_category 18846 18851 ; 18847 18852 return 0; … … 18849 18854 _ACEOF 18850 18855 if ac_fn_cxx_try_compile "$LINENO"; then : 18851 ax_cv_boost_ asio=yes18852 else 18853 ax_cv_boost_ asio=no18856 ax_cv_boost_system=yes 18857 else 18858 ax_cv_boost_system=no 18854 18859 fi 18855 18860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18856 ac_ext=cpp 18861 CXXFLAGS=$CXXFLAGS_SAVE 18862 ac_ext=cpp 18857 18863 ac_cpp='$CXXCPP $CPPFLAGS' 18858 18864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 18862 18868 18863 18869 fi 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5 18865 $as_echo "$ax_cv_boost_asio" >&6; } 18866 if test "x$ax_cv_boost_asio" = "xyes"; then 18867 18868 $as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h 18869 18870 BN=boost_system 18871 if test "x$ax_boost_user_asio_lib" = "x"; then 18872 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \ 18873 lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \ 18874 $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do 18875 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 18877 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 18878 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 18879 $as_echo_n "(cached) " >&6 18880 else 18881 ac_check_lib_save_LIBS=$LIBS 18882 LIBS="-l$ax_lib $LIBS" 18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884 /* end confdefs.h. */ 18885 18886 18887 int 18888 main () 18889 { 18890 return main (); 18891 ; 18892 return 0; 18893 } 18894 _ACEOF 18895 if ac_fn_cxx_try_link "$LINENO"; then : 18896 eval "$as_ac_Lib=yes" 18897 else 18898 eval "$as_ac_Lib=no" 18899 fi 18900 rm -f core conftest.err conftest.$ac_objext \ 18901 conftest$ac_exeext conftest.$ac_ext 18902 LIBS=$ac_check_lib_save_LIBS 18903 fi 18904 eval ac_res=\$$as_ac_Lib 18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18906 $as_echo "$ac_res" >&6; } 18907 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18908 BOOST_ASIO_LIB="-l$ax_lib" link_thread="yes" break 18909 else 18910 link_thread="no" 18911 fi 18912 18913 done 18914 else 18915 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do 18916 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 18918 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 18919 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 18920 $as_echo_n "(cached) " >&6 18921 else 18922 ac_check_lib_save_LIBS=$LIBS 18923 LIBS="-l$ax_lib $LIBS" 18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18925 /* end confdefs.h. */ 18926 18927 18928 int 18929 main () 18930 { 18931 return main (); 18932 ; 18933 return 0; 18934 } 18935 _ACEOF 18936 if ac_fn_cxx_try_link "$LINENO"; then : 18937 eval "$as_ac_Lib=yes" 18938 else 18939 eval "$as_ac_Lib=no" 18940 fi 18941 rm -f core conftest.err conftest.$ac_objext \ 18942 conftest$ac_exeext conftest.$ac_ext 18943 LIBS=$ac_check_lib_save_LIBS 18944 fi 18945 eval ac_res=\$$as_ac_Lib 18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18947 $as_echo "$ac_res" >&6; } 18948 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18949 BOOST_ASIO_LIB="-l$ax_lib" link_asio="yes" break 18950 else 18951 link_asio="no" 18952 fi 18953 18954 done 18955 18956 fi 18957 if test "x$link_asio" = "xno"; then 18958 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 18959 fi 18960 fi 18961 18962 CPPFLAGS="$CPPFLAGS_SAVED" 18963 LDFLAGS="$LDFLAGS_SAVED" 18964 fi 18965 18966 18967 18968 # Check whether --with-boost-date-time was given. 18969 if test "${with_boost_date_time+set}" = set; then : 18970 withval=$with_boost_date_time; 18971 if test "$withval" = "no"; then 18972 want_boost="no" 18973 elif test "$withval" = "yes"; then 18974 want_boost="yes" 18975 ax_boost_user_date_time_lib="" 18976 else 18977 want_boost="yes" 18978 ax_boost_user_date_time_lib="$withval" 18979 fi 18980 18981 else 18982 want_boost="yes" 18983 18984 fi 18985 18986 18987 if test "x$want_boost" = "xyes"; then 18988 18989 CPPFLAGS_SAVED="$CPPFLAGS" 18990 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18991 export CPPFLAGS 18992 18993 LDFLAGS_SAVED="$LDFLAGS" 18994 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 18995 export LDFLAGS 18996 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Date_Time library is available" >&5 18998 $as_echo_n "checking whether the Boost::Date_Time library is available... " >&6; } 18999 if test "${ax_cv_boost_date_time+set}" = set; then : 19000 $as_echo_n "(cached) " >&6 19001 else 19002 ac_ext=cpp 19003 ac_cpp='$CXXCPP $CPPFLAGS' 19004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19007 19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19009 /* end confdefs.h. */ 19010 #include <boost/date_time/gregorian/gregorian_types.hpp> 19011 int 19012 main () 19013 { 19014 using namespace boost::gregorian; date d(2002,Jan,10); 19015 return 0; 19016 19017 ; 19018 return 0; 19019 } 19020 _ACEOF 19021 if ac_fn_cxx_try_compile "$LINENO"; then : 19022 ax_cv_boost_date_time=yes 19023 else 19024 ax_cv_boost_date_time=no 19025 fi 19026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19027 ac_ext=cpp 19028 ac_cpp='$CXXCPP $CPPFLAGS' 19029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19032 19033 19034 fi 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_date_time" >&5 19036 $as_echo "$ax_cv_boost_date_time" >&6; } 19037 if test "x$ax_cv_boost_date_time" = "xyes"; then 19038 19039 $as_echo "#define HAVE_BOOST_DATE_TIME /**/" >>confdefs.h 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5 18871 $as_echo "$ax_cv_boost_system" >&6; } 18872 if test "x$ax_cv_boost_system" = "xyes"; then 18873 18874 18875 18876 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h 19040 18877 19041 18878 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19042 if test "x$ax_boost_user_date_time_lib" = "x"; then 19043 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do 18879 18880 LDFLAGS_SAVE=$LDFLAGS 18881 if test "x$ax_boost_user_system_lib" = "x"; then 18882 for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do 19044 18883 ax_lib=${libextension} 19045 18884 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19082 18921 $as_echo "$ac_res" >&6; } 19083 18922 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19084 BOOST_ DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break19085 else 19086 link_ date_time="no"18923 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break 18924 else 18925 link_system="no" 19087 18926 fi 19088 18927 19089 18928 done 19090 if test "x$link_ date_time" != "xyes"; then19091 for libextension in `ls $BOOSTLIBDIR/boost_ date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do18929 if test "x$link_system" != "xyes"; then 18930 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do 19092 18931 ax_lib=${libextension} 19093 18932 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19130 18969 $as_echo "$ac_res" >&6; } 19131 18970 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19132 BOOST_ DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break19133 else 19134 link_ date_time="no"18971 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break 18972 else 18973 link_system="no" 19135 18974 fi 19136 18975 … … 19139 18978 19140 18979 else 19141 for ax_lib in $ax_boost_user_date_time_lib boost_date_time-$ax_boost_user_date_time_lib; do 19142 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19144 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19145 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19146 $as_echo_n "(cached) " >&6 19147 else 19148 ac_check_lib_save_LIBS=$LIBS 19149 LIBS="-l$ax_lib $LIBS" 19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19151 /* end confdefs.h. */ 19152 19153 19154 int 19155 main () 19156 { 19157 return main (); 19158 ; 19159 return 0; 19160 } 19161 _ACEOF 19162 if ac_fn_cxx_try_link "$LINENO"; then : 19163 eval "$as_ac_Lib=yes" 19164 else 19165 eval "$as_ac_Lib=no" 19166 fi 19167 rm -f core conftest.err conftest.$ac_objext \ 19168 conftest$ac_exeext conftest.$ac_ext 19169 LIBS=$ac_check_lib_save_LIBS 19170 fi 19171 eval ac_res=\$$as_ac_Lib 19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19173 $as_echo "$ac_res" >&6; } 19174 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19175 BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break 19176 else 19177 link_date_time="no" 19178 fi 19179 19180 done 19181 19182 fi 19183 if test "x$link_date_time" != "xyes"; then 19184 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19185 fi 19186 fi 19187 19188 CPPFLAGS="$CPPFLAGS_SAVED" 19189 LDFLAGS="$LDFLAGS_SAVED" 19190 fi 19191 19192 19193 19194 # Check whether --with-boost-filesystem was given. 19195 if test "${with_boost_filesystem+set}" = set; then : 19196 withval=$with_boost_filesystem; 19197 if test "$withval" = "no"; then 19198 want_boost="no" 19199 elif test "$withval" = "yes"; then 19200 want_boost="yes" 19201 ax_boost_user_filesystem_lib="" 19202 else 19203 want_boost="yes" 19204 ax_boost_user_filesystem_lib="$withval" 19205 fi 19206 19207 else 19208 want_boost="yes" 19209 19210 fi 19211 19212 19213 if test "x$want_boost" = "xyes"; then 19214 19215 CPPFLAGS_SAVED="$CPPFLAGS" 19216 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19217 export CPPFLAGS 19218 19219 LDFLAGS_SAVED="$LDFLAGS" 19220 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19221 export LDFLAGS 19222 19223 LIBS_SAVED=$LIBS 19224 LIBS="$LIBS $BOOST_SYSTEM_LIB" 19225 export LIBS 19226 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5 19228 $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; } 19229 if test "${ax_cv_boost_filesystem+set}" = set; then : 19230 $as_echo_n "(cached) " >&6 19231 else 19232 ac_ext=cpp 19233 ac_cpp='$CXXCPP $CPPFLAGS' 19234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19237 19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19239 /* end confdefs.h. */ 19240 #include <boost/filesystem/path.hpp> 19241 int 19242 main () 19243 { 19244 using namespace boost::filesystem; 19245 path my_path( "foo/bar/data.txt" ); 19246 return 0; 19247 ; 19248 return 0; 19249 } 19250 _ACEOF 19251 if ac_fn_cxx_try_compile "$LINENO"; then : 19252 ax_cv_boost_filesystem=yes 19253 else 19254 ax_cv_boost_filesystem=no 19255 fi 19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19257 ac_ext=cpp 19258 ac_cpp='$CXXCPP $CPPFLAGS' 19259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19262 19263 19264 fi 19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5 19266 $as_echo "$ax_cv_boost_filesystem" >&6; } 19267 if test "x$ax_cv_boost_filesystem" = "xyes"; then 19268 19269 $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h 19270 19271 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19272 if test "x$ax_boost_user_filesystem_lib" = "x"; then 19273 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do 19274 ax_lib=${libextension} 19275 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 18980 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do 18981 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 19276 18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 19277 18983 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } … … 19312 19018 $as_echo "$ac_res" >&6; } 19313 19019 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19314 BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break 19315 else 19316 link_filesystem="no" 19020 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break 19021 else 19022 link_system="no" 19023 fi 19024 19025 done 19026 19027 fi 19028 if test "x$link_system" = "xno"; then 19029 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19030 fi 19031 fi 19032 19033 CPPFLAGS="$CPPFLAGS_SAVED" 19034 LDFLAGS="$LDFLAGS_SAVED" 19035 fi 19036 19037 19038 19039 # Check whether --with-boost-asio was given. 19040 if test "${with_boost_asio+set}" = set; then : 19041 withval=$with_boost_asio; 19042 if test "$withval" = "no"; then 19043 want_boost="no" 19044 elif test "$withval" = "yes"; then 19045 want_boost="yes" 19046 ax_boost_user_asio_lib="" 19047 else 19048 want_boost="yes" 19049 ax_boost_user_asio_lib="$withval" 19050 fi 19051 19052 else 19053 want_boost="yes" 19054 19055 fi 19056 19057 19058 if test "x$want_boost" = "xyes"; then 19059 19060 CPPFLAGS_SAVED="$CPPFLAGS" 19061 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19062 export CPPFLAGS 19063 19064 LDFLAGS_SAVED="$LDFLAGS" 19065 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19066 export LDFLAGS 19067 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5 19069 $as_echo_n "checking whether the Boost::ASIO library is available... " >&6; } 19070 if test "${ax_cv_boost_asio+set}" = set; then : 19071 $as_echo_n "(cached) " >&6 19072 else 19073 ac_ext=cpp 19074 ac_cpp='$CXXCPP $CPPFLAGS' 19075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19078 19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19080 /* end confdefs.h. */ 19081 #include <boost/asio.hpp> 19082 19083 int 19084 main () 19085 { 19086 19087 19088 boost::asio::io_service io; 19089 boost::system::error_code timer_result; 19090 boost::asio::deadline_timer t(io); 19091 t.cancel(); 19092 io.run_one(); 19093 return 0; 19094 19095 ; 19096 return 0; 19097 } 19098 _ACEOF 19099 if ac_fn_cxx_try_compile "$LINENO"; then : 19100 ax_cv_boost_asio=yes 19101 else 19102 ax_cv_boost_asio=no 19103 fi 19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19105 ac_ext=cpp 19106 ac_cpp='$CXXCPP $CPPFLAGS' 19107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19110 19111 19112 fi 19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5 19114 $as_echo "$ax_cv_boost_asio" >&6; } 19115 if test "x$ax_cv_boost_asio" = "xyes"; then 19116 19117 $as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h 19118 19119 BN=boost_system 19120 if test "x$ax_boost_user_asio_lib" = "x"; then 19121 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \ 19122 lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \ 19123 $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do 19124 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19126 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19127 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19128 $as_echo_n "(cached) " >&6 19129 else 19130 ac_check_lib_save_LIBS=$LIBS 19131 LIBS="-l$ax_lib $LIBS" 19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19133 /* end confdefs.h. */ 19134 19135 19136 int 19137 main () 19138 { 19139 return main (); 19140 ; 19141 return 0; 19142 } 19143 _ACEOF 19144 if ac_fn_cxx_try_link "$LINENO"; then : 19145 eval "$as_ac_Lib=yes" 19146 else 19147 eval "$as_ac_Lib=no" 19148 fi 19149 rm -f core conftest.err conftest.$ac_objext \ 19150 conftest$ac_exeext conftest.$ac_ext 19151 LIBS=$ac_check_lib_save_LIBS 19152 fi 19153 eval ac_res=\$$as_ac_Lib 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19155 $as_echo "$ac_res" >&6; } 19156 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19157 BOOST_ASIO_LIB="-l$ax_lib" link_thread="yes" break 19158 else 19159 link_thread="no" 19317 19160 fi 19318 19161 19319 19162 done 19320 if test "x$link_program_options" != "xyes"; then 19321 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do 19163 else 19164 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do 19165 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19167 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19168 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19169 $as_echo_n "(cached) " >&6 19170 else 19171 ac_check_lib_save_LIBS=$LIBS 19172 LIBS="-l$ax_lib $LIBS" 19173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19174 /* end confdefs.h. */ 19175 19176 19177 int 19178 main () 19179 { 19180 return main (); 19181 ; 19182 return 0; 19183 } 19184 _ACEOF 19185 if ac_fn_cxx_try_link "$LINENO"; then : 19186 eval "$as_ac_Lib=yes" 19187 else 19188 eval "$as_ac_Lib=no" 19189 fi 19190 rm -f core conftest.err conftest.$ac_objext \ 19191 conftest$ac_exeext conftest.$ac_ext 19192 LIBS=$ac_check_lib_save_LIBS 19193 fi 19194 eval ac_res=\$$as_ac_Lib 19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19196 $as_echo "$ac_res" >&6; } 19197 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19198 BOOST_ASIO_LIB="-l$ax_lib" link_asio="yes" break 19199 else 19200 link_asio="no" 19201 fi 19202 19203 done 19204 19205 fi 19206 if test "x$link_asio" = "xno"; then 19207 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19208 fi 19209 fi 19210 19211 CPPFLAGS="$CPPFLAGS_SAVED" 19212 LDFLAGS="$LDFLAGS_SAVED" 19213 fi 19214 19215 19216 19217 # Check whether --with-boost-date-time was given. 19218 if test "${with_boost_date_time+set}" = set; then : 19219 withval=$with_boost_date_time; 19220 if test "$withval" = "no"; then 19221 want_boost="no" 19222 elif test "$withval" = "yes"; then 19223 want_boost="yes" 19224 ax_boost_user_date_time_lib="" 19225 else 19226 want_boost="yes" 19227 ax_boost_user_date_time_lib="$withval" 19228 fi 19229 19230 else 19231 want_boost="yes" 19232 19233 fi 19234 19235 19236 if test "x$want_boost" = "xyes"; then 19237 19238 CPPFLAGS_SAVED="$CPPFLAGS" 19239 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19240 export CPPFLAGS 19241 19242 LDFLAGS_SAVED="$LDFLAGS" 19243 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19244 export LDFLAGS 19245 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Date_Time library is available" >&5 19247 $as_echo_n "checking whether the Boost::Date_Time library is available... " >&6; } 19248 if test "${ax_cv_boost_date_time+set}" = set; then : 19249 $as_echo_n "(cached) " >&6 19250 else 19251 ac_ext=cpp 19252 ac_cpp='$CXXCPP $CPPFLAGS' 19253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19256 19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19258 /* end confdefs.h. */ 19259 #include <boost/date_time/gregorian/gregorian_types.hpp> 19260 int 19261 main () 19262 { 19263 using namespace boost::gregorian; date d(2002,Jan,10); 19264 return 0; 19265 19266 ; 19267 return 0; 19268 } 19269 _ACEOF 19270 if ac_fn_cxx_try_compile "$LINENO"; then : 19271 ax_cv_boost_date_time=yes 19272 else 19273 ax_cv_boost_date_time=no 19274 fi 19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19276 ac_ext=cpp 19277 ac_cpp='$CXXCPP $CPPFLAGS' 19278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19281 19282 19283 fi 19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_date_time" >&5 19285 $as_echo "$ax_cv_boost_date_time" >&6; } 19286 if test "x$ax_cv_boost_date_time" = "xyes"; then 19287 19288 $as_echo "#define HAVE_BOOST_DATE_TIME /**/" >>confdefs.h 19289 19290 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19291 if test "x$ax_boost_user_date_time_lib" = "x"; then 19292 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do 19322 19293 ax_lib=${libextension} 19323 19294 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19360 19331 $as_echo "$ac_res" >&6; } 19361 19332 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19362 BOOST_ FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break19363 else 19364 link_ filesystem="no"19333 BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break 19334 else 19335 link_date_time="no" 19365 19336 fi 19366 19337 19367 19338 done 19368 fi 19369 else19370 for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do19371 19339 if test "x$link_date_time" != "xyes"; then 19340 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do 19341 ax_lib=${libextension} 19342 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 19372 19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 19373 19344 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } … … 19408 19379 $as_echo "$ac_res" >&6; } 19409 19380 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19410 BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break 19411 else 19412 link_filesystem="no" 19381 BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break 19382 else 19383 link_date_time="no" 19384 fi 19385 19386 done 19387 fi 19388 19389 else 19390 for ax_lib in $ax_boost_user_date_time_lib boost_date_time-$ax_boost_user_date_time_lib; do 19391 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19393 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19394 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19395 $as_echo_n "(cached) " >&6 19396 else 19397 ac_check_lib_save_LIBS=$LIBS 19398 LIBS="-l$ax_lib $LIBS" 19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19400 /* end confdefs.h. */ 19401 19402 19403 int 19404 main () 19405 { 19406 return main (); 19407 ; 19408 return 0; 19409 } 19410 _ACEOF 19411 if ac_fn_cxx_try_link "$LINENO"; then : 19412 eval "$as_ac_Lib=yes" 19413 else 19414 eval "$as_ac_Lib=no" 19415 fi 19416 rm -f core conftest.err conftest.$ac_objext \ 19417 conftest$ac_exeext conftest.$ac_ext 19418 LIBS=$ac_check_lib_save_LIBS 19419 fi 19420 eval ac_res=\$$as_ac_Lib 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19422 $as_echo "$ac_res" >&6; } 19423 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19424 BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break 19425 else 19426 link_date_time="no" 19413 19427 fi 19414 19428 … … 19416 19430 19417 19431 fi 19418 if test "x$link_ filesystem" != "xyes"; then19432 if test "x$link_date_time" != "xyes"; then 19419 19433 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19420 19434 fi … … 19422 19436 19423 19437 CPPFLAGS="$CPPFLAGS_SAVED" 19424 LDFLAGS="$LDFLAGS_SAVED" 19425 LIBS="$LIBS_SAVED" 19438 LDFLAGS="$LDFLAGS_SAVED" 19426 19439 fi 19427 19440 19428 19441 19429 19442 19430 # Check whether --with-boost- program-optionswas given.19431 if test "${with_boost_ program_options+set}" = set; then :19432 withval=$with_boost_ program_options;19443 # Check whether --with-boost-filesystem was given. 19444 if test "${with_boost_filesystem+set}" = set; then : 19445 withval=$with_boost_filesystem; 19433 19446 if test "$withval" = "no"; then 19434 19447 want_boost="no" 19435 19448 elif test "$withval" = "yes"; then 19436 19449 want_boost="yes" 19437 ax_boost_user_ program_options_lib=""19450 ax_boost_user_filesystem_lib="" 19438 19451 else 19439 19452 want_boost="yes" 19440 ax_boost_user_ program_options_lib="$withval"19453 ax_boost_user_filesystem_lib="$withval" 19441 19454 fi 19442 19455 … … 19449 19462 if test "x$want_boost" = "xyes"; then 19450 19463 19451 export want_boost19452 19464 CPPFLAGS_SAVED="$CPPFLAGS" 19453 19465 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19454 19466 export CPPFLAGS 19467 19455 19468 LDFLAGS_SAVED="$LDFLAGS" 19456 19469 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19457 19470 export LDFLAGS 19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5 19459 $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; } 19460 if test "${ax_cv_boost_program_options+set}" = set; then : 19471 19472 LIBS_SAVED=$LIBS 19473 LIBS="$LIBS $BOOST_SYSTEM_LIB" 19474 export LIBS 19475 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5 19477 $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; } 19478 if test "${ax_cv_boost_filesystem+set}" = set; then : 19461 19479 $as_echo_n "(cached) " >&6 19462 19480 else … … 19467 19485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19468 19486 19469 19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19470 19488 /* end confdefs.h. */ 19471 #include <boost/program_options.hpp> 19472 19489 #include <boost/filesystem/path.hpp> 19473 19490 int 19474 19491 main () 19475 19492 { 19476 boost::program_options::options_description generic("Generic options"); 19493 using namespace boost::filesystem; 19494 path my_path( "foo/bar/data.txt" ); 19477 19495 return 0; 19478 19496 ; … … 19481 19499 _ACEOF 19482 19500 if ac_fn_cxx_try_compile "$LINENO"; then : 19483 ax_cv_boost_ program_options=yes19484 else 19485 ax_cv_boost_ program_options=no19501 ax_cv_boost_filesystem=yes 19502 else 19503 ax_cv_boost_filesystem=no 19486 19504 fi 19487 19505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19488 19506 ac_ext=cpp 19489 19507 ac_cpp='$CXXCPP $CPPFLAGS' 19490 19508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 19494 19512 19495 19513 fi 19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_ program_options" >&519497 $as_echo "$ax_cv_boost_ program_options" >&6; }19498 if test " $ax_cv_boost_program_options" = yes; then19499 19500 $as_echo "#define HAVE_BOOST_ PROGRAM_OPTIONS/**/" >>confdefs.h19501 19502 19503 if test "x$ax_boost_user_program_options_lib" = "x"; then19504 for libextension in `ls $BOOSTLIBDIR/libboost_ program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5 19515 $as_echo "$ax_cv_boost_filesystem" >&6; } 19516 if test "x$ax_cv_boost_filesystem" = "xyes"; then 19517 19518 $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h 19519 19520 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19521 if test "x$ax_boost_user_filesystem_lib" = "x"; then 19522 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do 19505 19523 ax_lib=${libextension} 19506 19524 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19543 19561 $as_echo "$ac_res" >&6; } 19544 19562 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19545 BOOST_ PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break19546 else 19547 link_ program_options="no"19563 BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break 19564 else 19565 link_filesystem="no" 19548 19566 fi 19549 19567 19550 19568 done 19551 19569 if test "x$link_program_options" != "xyes"; then 19552 for libextension in `ls $BOOSTLIBDIR/boost_ program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do19570 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do 19553 19571 ax_lib=${libextension} 19554 19572 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19591 19609 $as_echo "$ac_res" >&6; } 19592 19610 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19593 BOOST_ PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break19594 else 19595 link_ program_options="no"19611 BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break 19612 else 19613 link_filesystem="no" 19596 19614 fi 19597 19615 19598 19616 done 19599 fi 19600 else 19601 for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do 19602 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19604 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19605 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19606 $as_echo_n "(cached) " >&6 19607 else 19608 ac_check_lib_save_LIBS=$LIBS 19609 LIBS="-l$ax_lib $LIBS" 19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19611 /* end confdefs.h. */ 19612 19613 19614 int 19615 main () 19616 { 19617 return main (); 19618 ; 19619 return 0; 19620 } 19621 _ACEOF 19622 if ac_fn_cxx_try_link "$LINENO"; then : 19623 eval "$as_ac_Lib=yes" 19624 else 19625 eval "$as_ac_Lib=no" 19626 fi 19627 rm -f core conftest.err conftest.$ac_objext \ 19628 conftest$ac_exeext conftest.$ac_ext 19629 LIBS=$ac_check_lib_save_LIBS 19630 fi 19631 eval ac_res=\$$as_ac_Lib 19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19633 $as_echo "$ac_res" >&6; } 19634 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19635 BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break 19636 else 19637 link_program_options="no" 19638 fi 19639 19640 done 19641 fi 19642 if test "x$link_program_options" != "xyes"; then 19643 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19644 fi 19645 fi 19646 CPPFLAGS="$CPPFLAGS_SAVED" 19647 LDFLAGS="$LDFLAGS_SAVED" 19648 fi 19649 19650 19651 19652 # Check whether --with-boost-regex was given. 19653 if test "${with_boost_regex+set}" = set; then : 19654 withval=$with_boost_regex; 19655 if test "$withval" = "no"; then 19656 want_boost="no" 19657 elif test "$withval" = "yes"; then 19658 want_boost="yes" 19659 ax_boost_user_regex_lib="" 19660 else 19661 want_boost="yes" 19662 ax_boost_user_regex_lib="$withval" 19663 fi 19664 19665 else 19666 want_boost="yes" 19667 19668 fi 19669 19670 19671 if test "x$want_boost" = "xyes"; then 19672 19673 CPPFLAGS_SAVED="$CPPFLAGS" 19674 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19675 export CPPFLAGS 19676 19677 LDFLAGS_SAVED="$LDFLAGS" 19678 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19679 export LDFLAGS 19680 19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Regex library is available" >&5 19682 $as_echo_n "checking whether the Boost::Regex library is available... " >&6; } 19683 if test "${ax_cv_boost_regex+set}" = set; then : 19684 $as_echo_n "(cached) " >&6 19685 else 19686 ac_ext=cpp 19687 ac_cpp='$CXXCPP $CPPFLAGS' 19688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19691 19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19693 /* end confdefs.h. */ 19694 #include <boost/regex.hpp> 19695 19696 int 19697 main () 19698 { 19699 boost::regex r(); return 0; 19700 ; 19701 return 0; 19702 } 19703 _ACEOF 19704 if ac_fn_cxx_try_compile "$LINENO"; then : 19705 ax_cv_boost_regex=yes 19706 else 19707 ax_cv_boost_regex=no 19708 fi 19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19710 ac_ext=cpp 19711 ac_cpp='$CXXCPP $CPPFLAGS' 19712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19715 19716 19717 fi 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_regex" >&5 19719 $as_echo "$ax_cv_boost_regex" >&6; } 19720 if test "x$ax_cv_boost_regex" = "xyes"; then 19721 19722 $as_echo "#define HAVE_BOOST_REGEX /**/" >>confdefs.h 19723 19724 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19725 if test "x$ax_boost_user_regex_lib" = "x"; then 19726 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do 19727 ax_lib=${libextension} 19728 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 19617 fi 19618 else 19619 for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do 19620 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 19729 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 19730 19622 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } … … 19765 19657 $as_echo "$ac_res" >&6; } 19766 19658 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19767 BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break 19768 else 19769 link_regex="no" 19770 fi 19771 19772 done 19773 if test "x$link_regex" != "xyes"; then 19774 for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do 19659 BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break 19660 else 19661 link_filesystem="no" 19662 fi 19663 19664 done 19665 19666 fi 19667 if test "x$link_filesystem" != "xyes"; then 19668 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19669 fi 19670 fi 19671 19672 CPPFLAGS="$CPPFLAGS_SAVED" 19673 LDFLAGS="$LDFLAGS_SAVED" 19674 LIBS="$LIBS_SAVED" 19675 fi 19676 19677 19678 19679 # Check whether --with-boost-program-options was given. 19680 if test "${with_boost_program_options+set}" = set; then : 19681 withval=$with_boost_program_options; 19682 if test "$withval" = "no"; then 19683 want_boost="no" 19684 elif test "$withval" = "yes"; then 19685 want_boost="yes" 19686 ax_boost_user_program_options_lib="" 19687 else 19688 want_boost="yes" 19689 ax_boost_user_program_options_lib="$withval" 19690 fi 19691 19692 else 19693 want_boost="yes" 19694 19695 fi 19696 19697 19698 if test "x$want_boost" = "xyes"; then 19699 19700 export want_boost 19701 CPPFLAGS_SAVED="$CPPFLAGS" 19702 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19703 export CPPFLAGS 19704 LDFLAGS_SAVED="$LDFLAGS" 19705 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19706 export LDFLAGS 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5 19708 $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; } 19709 if test "${ax_cv_boost_program_options+set}" = set; then : 19710 $as_echo_n "(cached) " >&6 19711 else 19712 ac_ext=cpp 19713 ac_cpp='$CXXCPP $CPPFLAGS' 19714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19717 19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19719 /* end confdefs.h. */ 19720 #include <boost/program_options.hpp> 19721 19722 int 19723 main () 19724 { 19725 boost::program_options::options_description generic("Generic options"); 19726 return 0; 19727 ; 19728 return 0; 19729 } 19730 _ACEOF 19731 if ac_fn_cxx_try_compile "$LINENO"; then : 19732 ax_cv_boost_program_options=yes 19733 else 19734 ax_cv_boost_program_options=no 19735 fi 19736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19737 ac_ext=cpp 19738 ac_cpp='$CXXCPP $CPPFLAGS' 19739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19742 19743 19744 fi 19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5 19746 $as_echo "$ax_cv_boost_program_options" >&6; } 19747 if test "$ax_cv_boost_program_options" = yes; then 19748 19749 $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h 19750 19751 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19752 if test "x$ax_boost_user_program_options_lib" = "x"; then 19753 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do 19775 19754 ax_lib=${libextension} 19776 19755 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19813 19792 $as_echo "$ac_res" >&6; } 19814 19793 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19815 BOOST_ REGEX_LIB="-l$ax_lib"; link_regex="yes"; break19816 else 19817 link_ regex="no"19794 BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break 19795 else 19796 link_program_options="no" 19818 19797 fi 19819 19798 19820 19799 done 19821 fi 19822 19823 else 19824 for ax_lib in $ax_boost_user_regex_lib boost_regex-$ax_boost_user_regex_lib; do 19825 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19827 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19828 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19829 $as_echo_n "(cached) " >&6 19830 else 19831 ac_check_lib_save_LIBS=$LIBS 19832 LIBS="-l$ax_lib $LIBS" 19833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19834 /* end confdefs.h. */ 19835 19836 19837 int 19838 main () 19839 { 19840 return main (); 19841 ; 19842 return 0; 19843 } 19844 _ACEOF 19845 if ac_fn_cxx_try_link "$LINENO"; then : 19846 eval "$as_ac_Lib=yes" 19847 else 19848 eval "$as_ac_Lib=no" 19849 fi 19850 rm -f core conftest.err conftest.$ac_objext \ 19851 conftest$ac_exeext conftest.$ac_ext 19852 LIBS=$ac_check_lib_save_LIBS 19853 fi 19854 eval ac_res=\$$as_ac_Lib 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19856 $as_echo "$ac_res" >&6; } 19857 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19858 BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break 19859 else 19860 link_regex="no" 19861 fi 19862 19863 done 19864 fi 19865 if test "x$link_regex" != "xyes"; then 19866 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19867 fi 19868 fi 19869 19870 CPPFLAGS="$CPPFLAGS_SAVED" 19871 LDFLAGS="$LDFLAGS_SAVED" 19872 fi 19873 19874 19875 19876 # Check whether --with-boost-system was given. 19877 if test "${with_boost_system+set}" = set; then : 19878 withval=$with_boost_system; 19879 if test "$withval" = "no"; then 19880 want_boost="no" 19881 elif test "$withval" = "yes"; then 19882 want_boost="yes" 19883 ax_boost_user_system_lib="" 19884 else 19885 want_boost="yes" 19886 ax_boost_user_system_lib="$withval" 19887 fi 19888 19889 else 19890 want_boost="yes" 19891 19892 fi 19893 19894 19895 if test "x$want_boost" = "xyes"; then 19896 19897 19898 CPPFLAGS_SAVED="$CPPFLAGS" 19899 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19900 export CPPFLAGS 19901 19902 LDFLAGS_SAVED="$LDFLAGS" 19903 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19904 export LDFLAGS 19905 19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5 19907 $as_echo_n "checking whether the Boost::System library is available... " >&6; } 19908 if test "${ax_cv_boost_system+set}" = set; then : 19909 $as_echo_n "(cached) " >&6 19910 else 19911 ac_ext=cpp 19912 ac_cpp='$CXXCPP $CPPFLAGS' 19913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19916 19917 CXXFLAGS_SAVE=$CXXFLAGS 19918 19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19920 /* end confdefs.h. */ 19921 #include <boost/system/error_code.hpp> 19922 int 19923 main () 19924 { 19925 boost::system::system_category 19926 ; 19927 return 0; 19928 } 19929 _ACEOF 19930 if ac_fn_cxx_try_compile "$LINENO"; then : 19931 ax_cv_boost_system=yes 19932 else 19933 ax_cv_boost_system=no 19934 fi 19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19936 CXXFLAGS=$CXXFLAGS_SAVE 19937 ac_ext=cpp 19938 ac_cpp='$CXXCPP $CPPFLAGS' 19939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19942 19943 19944 fi 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5 19946 $as_echo "$ax_cv_boost_system" >&6; } 19947 if test "x$ax_cv_boost_system" = "xyes"; then 19948 19949 19950 19951 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h 19952 19953 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19954 19955 LDFLAGS_SAVE=$LDFLAGS 19956 if test "x$ax_boost_user_system_lib" = "x"; then 19957 for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do 19800 if test "x$link_program_options" != "xyes"; then 19801 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do 19958 19802 ax_lib=${libextension} 19959 19803 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 19996 19840 $as_echo "$ac_res" >&6; } 19997 19841 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19998 BOOST_ SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break19999 else 20000 link_ system="no"19842 BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break 19843 else 19844 link_program_options="no" 20001 19845 fi 20002 19846 20003 19847 done 20004 if test "x$link_system" != "xyes"; then 20005 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do 19848 fi 19849 else 19850 for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do 19851 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 19853 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 19854 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 19855 $as_echo_n "(cached) " >&6 19856 else 19857 ac_check_lib_save_LIBS=$LIBS 19858 LIBS="-l$ax_lib $LIBS" 19859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19860 /* end confdefs.h. */ 19861 19862 19863 int 19864 main () 19865 { 19866 return main (); 19867 ; 19868 return 0; 19869 } 19870 _ACEOF 19871 if ac_fn_cxx_try_link "$LINENO"; then : 19872 eval "$as_ac_Lib=yes" 19873 else 19874 eval "$as_ac_Lib=no" 19875 fi 19876 rm -f core conftest.err conftest.$ac_objext \ 19877 conftest$ac_exeext conftest.$ac_ext 19878 LIBS=$ac_check_lib_save_LIBS 19879 fi 19880 eval ac_res=\$$as_ac_Lib 19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19882 $as_echo "$ac_res" >&6; } 19883 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19884 BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break 19885 else 19886 link_program_options="no" 19887 fi 19888 19889 done 19890 fi 19891 if test "x$link_program_options" != "xyes"; then 19892 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 19893 fi 19894 fi 19895 CPPFLAGS="$CPPFLAGS_SAVED" 19896 LDFLAGS="$LDFLAGS_SAVED" 19897 fi 19898 19899 19900 19901 # Check whether --with-boost-regex was given. 19902 if test "${with_boost_regex+set}" = set; then : 19903 withval=$with_boost_regex; 19904 if test "$withval" = "no"; then 19905 want_boost="no" 19906 elif test "$withval" = "yes"; then 19907 want_boost="yes" 19908 ax_boost_user_regex_lib="" 19909 else 19910 want_boost="yes" 19911 ax_boost_user_regex_lib="$withval" 19912 fi 19913 19914 else 19915 want_boost="yes" 19916 19917 fi 19918 19919 19920 if test "x$want_boost" = "xyes"; then 19921 19922 CPPFLAGS_SAVED="$CPPFLAGS" 19923 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19924 export CPPFLAGS 19925 19926 LDFLAGS_SAVED="$LDFLAGS" 19927 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19928 export LDFLAGS 19929 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Regex library is available" >&5 19931 $as_echo_n "checking whether the Boost::Regex library is available... " >&6; } 19932 if test "${ax_cv_boost_regex+set}" = set; then : 19933 $as_echo_n "(cached) " >&6 19934 else 19935 ac_ext=cpp 19936 ac_cpp='$CXXCPP $CPPFLAGS' 19937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19940 19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19942 /* end confdefs.h. */ 19943 #include <boost/regex.hpp> 19944 19945 int 19946 main () 19947 { 19948 boost::regex r(); return 0; 19949 ; 19950 return 0; 19951 } 19952 _ACEOF 19953 if ac_fn_cxx_try_compile "$LINENO"; then : 19954 ax_cv_boost_regex=yes 19955 else 19956 ax_cv_boost_regex=no 19957 fi 19958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19959 ac_ext=cpp 19960 ac_cpp='$CXXCPP $CPPFLAGS' 19961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19964 19965 19966 fi 19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_regex" >&5 19968 $as_echo "$ax_cv_boost_regex" >&6; } 19969 if test "x$ax_cv_boost_regex" = "xyes"; then 19970 19971 $as_echo "#define HAVE_BOOST_REGEX /**/" >>confdefs.h 19972 19973 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 19974 if test "x$ax_boost_user_regex_lib" = "x"; then 19975 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do 20006 19976 ax_lib=${libextension} 20007 19977 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 20044 20014 $as_echo "$ac_res" >&6; } 20045 20015 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 20046 BOOST_ SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break20047 else 20048 link_ system="no"20016 BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break 20017 else 20018 link_regex="no" 20049 20019 fi 20050 20020 20051 20021 done 20052 fi 20053 20054 else 20055 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do 20056 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 20022 if test "x$link_regex" != "xyes"; then 20023 for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do 20024 ax_lib=${libextension} 20025 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 20057 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20058 20027 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } … … 20093 20062 $as_echo "$ac_res" >&6; } 20094 20063 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 20095 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break 20096 else 20097 link_system="no" 20098 fi 20099 20100 done 20101 20064 BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break 20065 else 20066 link_regex="no" 20067 fi 20068 20069 done 20070 fi 20071 20072 else 20073 for ax_lib in $ax_boost_user_regex_lib boost_regex-$ax_boost_user_regex_lib; do 20074 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 20076 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 20077 if eval "test \"\${$as_ac_Lib+set}\"" = set; then : 20078 $as_echo_n "(cached) " >&6 20079 else 20080 ac_check_lib_save_LIBS=$LIBS 20081 LIBS="-l$ax_lib $LIBS" 20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20083 /* end confdefs.h. */ 20084 20085 20086 int 20087 main () 20088 { 20089 return main (); 20090 ; 20091 return 0; 20092 } 20093 _ACEOF 20094 if ac_fn_cxx_try_link "$LINENO"; then : 20095 eval "$as_ac_Lib=yes" 20096 else 20097 eval "$as_ac_Lib=no" 20098 fi 20099 rm -f core conftest.err conftest.$ac_objext \ 20100 conftest$ac_exeext conftest.$ac_ext 20101 LIBS=$ac_check_lib_save_LIBS 20102 fi 20103 eval ac_res=\$$as_ac_Lib 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20105 $as_echo "$ac_res" >&6; } 20106 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 20107 BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break 20108 else 20109 link_regex="no" 20110 fi 20111 20112 done 20102 20113 fi 20103 if test "x$link_ system" = "xno"; then20114 if test "x$link_regex" != "xyes"; then 20104 20115 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 20105 20116 fi … … 20387 20398 #AX_BOOST_WSERIALIZATION 20388 20399 20389 LDFLAGS+=" "$BOOST_LDFLAGS" " 20390 LDFLAGS+=" -lboost_date_time" 20391 LDFLAGS+=" -lboost_filesystem" 20392 LDFLAGS+=" -lboost_program_options" 20393 LDFLAGS+=" -lboost_regex" 20394 LDFLAGS+=" -lboost_system" 20395 LDFLAGS+=" -lboost_thread " 20400 LDFLAGS+=" "$BOOST_LDFLAGS 20401 LDFLAGS+=" "$BOOST_SYSTEM_LIB 20402 LDFLAGS+=" "$BOOST_ASIO_LIB 20403 LDFLAGS+=" "$BOOST_DATE_TIME_LIB 20404 LDFLAGS+=" "$BOOST_FILESYSTEM_LIB 20405 LDFLAGS+=" "$BOOST_PROGRAM_OPTIONS_LIB 20406 LDFLAGS+=" "$BOOST_REGEX_LIB 20407 LDFLAGS+=" "$BOOST_THREAD_LIB" " 20396 20408 20397 20409 CPPFLAGS+=" "$BOOST_CPPFLAGS" " … … 21597 21609 21598 21610 cat > conftest.$ac_ext <<EOF 21599 #line 21 599"configure"21611 #line 21611 "configure" 21600 21612 #include "confdefs.h" 21601 21613 #include <qglobal.h>
Note:
See TracChangeset
for help on using the changeset viewer.