… | |
… | |
1667 | printf "%s\n" "$ac_res" >&6; } |
1667 | printf "%s\n" "$ac_res" >&6; } |
1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1669 | |
1669 | |
1670 | } # ac_fn_c_check_header_compile |
1670 | } # ac_fn_c_check_header_compile |
1671 | |
1671 | |
1672 | # ac_fn_c_try_link LINENO |
|
|
1673 | # ----------------------- |
|
|
1674 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1675 | ac_fn_c_try_link () |
|
|
1676 | { |
|
|
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1678 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
|
|
1679 | if { { ac_try="$ac_link" |
|
|
1680 | case "(($ac_try" in |
|
|
1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1682 | *) ac_try_echo=$ac_try;; |
|
|
1683 | esac |
|
|
1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1685 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1686 | (eval "$ac_link") 2>conftest.err |
|
|
1687 | ac_status=$? |
|
|
1688 | if test -s conftest.err; then |
|
|
1689 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1690 | cat conftest.er1 >&5 |
|
|
1691 | mv -f conftest.er1 conftest.err |
|
|
1692 | fi |
|
|
1693 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1694 | test $ac_status = 0; } && { |
|
|
1695 | test -z "$ac_c_werror_flag" || |
|
|
1696 | test ! -s conftest.err |
|
|
1697 | } && test -s conftest$ac_exeext && { |
|
|
1698 | test "$cross_compiling" = yes || |
|
|
1699 | test -x conftest$ac_exeext |
|
|
1700 | } |
|
|
1701 | then : |
|
|
1702 | ac_retval=0 |
|
|
1703 | else $as_nop |
|
|
1704 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1705 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1706 | |
|
|
1707 | ac_retval=1 |
|
|
1708 | fi |
|
|
1709 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
|
1710 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
|
1711 | # interfere with the next link command; also delete a directory that is |
|
|
1712 | # left behind by Apple's compiler. We do this before executing the actions. |
|
|
1713 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1714 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1715 | as_fn_set_status $ac_retval |
|
|
1716 | |
|
|
1717 | } # ac_fn_c_try_link |
|
|
1718 | |
|
|
1719 | # ac_fn_cxx_try_link LINENO |
1672 | # ac_fn_cxx_try_link LINENO |
1720 | # ------------------------- |
1673 | # ------------------------- |
1721 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1674 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1722 | ac_fn_cxx_try_link () |
1675 | ac_fn_cxx_try_link () |
1723 | { |
1676 | { |
… | |
… | |
4553 | ac_prog_cxx_stdcxx=no |
4506 | ac_prog_cxx_stdcxx=no |
4554 | if test x$ac_prog_cxx_stdcxx = xno |
4507 | if test x$ac_prog_cxx_stdcxx = xno |
4555 | then : |
4508 | then : |
4556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
4509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
4557 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
4510 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
4558 | if test ${ac_cv_prog_cxx_11+y} |
4511 | if test ${ac_cv_prog_cxx_cxx11+y} |
4559 | then : |
4512 | then : |
4560 | printf %s "(cached) " >&6 |
4513 | printf %s "(cached) " >&6 |
4561 | else $as_nop |
4514 | else $as_nop |
4562 | ac_cv_prog_cxx_11=no |
4515 | ac_cv_prog_cxx_cxx11=no |
4563 | ac_save_CXX=$CXX |
4516 | ac_save_CXX=$CXX |
4564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4565 | /* end confdefs.h. */ |
4518 | /* end confdefs.h. */ |
4566 | $ac_cxx_conftest_cxx11_program |
4519 | $ac_cxx_conftest_cxx11_program |
4567 | _ACEOF |
4520 | _ACEOF |
… | |
… | |
4599 | fi |
4552 | fi |
4600 | if test x$ac_prog_cxx_stdcxx = xno |
4553 | if test x$ac_prog_cxx_stdcxx = xno |
4601 | then : |
4554 | then : |
4602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
4555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
4603 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
4556 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
4604 | if test ${ac_cv_prog_cxx_98+y} |
4557 | if test ${ac_cv_prog_cxx_cxx98+y} |
4605 | then : |
4558 | then : |
4606 | printf %s "(cached) " >&6 |
4559 | printf %s "(cached) " >&6 |
4607 | else $as_nop |
4560 | else $as_nop |
4608 | ac_cv_prog_cxx_98=no |
4561 | ac_cv_prog_cxx_cxx98=no |
4609 | ac_save_CXX=$CXX |
4562 | ac_save_CXX=$CXX |
4610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4611 | /* end confdefs.h. */ |
4564 | /* end confdefs.h. */ |
4612 | $ac_cxx_conftest_cxx98_program |
4565 | $ac_cxx_conftest_cxx98_program |
4613 | _ACEOF |
4566 | _ACEOF |
… | |
… | |
4916 | |
4869 | |
4917 | fi |
4870 | fi |
4918 | if test $ac_cv_should_define__xopen_source = yes |
4871 | if test $ac_cv_should_define__xopen_source = yes |
4919 | then : |
4872 | then : |
4920 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
4873 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
4921 | |
|
|
4922 | fi |
|
|
4923 | |
|
|
4924 | |
|
|
4925 | |
|
|
4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
|
|
4927 | printf %s "checking for library containing strerror... " >&6; } |
|
|
4928 | if test ${ac_cv_search_strerror+y} |
|
|
4929 | then : |
|
|
4930 | printf %s "(cached) " >&6 |
|
|
4931 | else $as_nop |
|
|
4932 | ac_func_search_save_LIBS=$LIBS |
|
|
4933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4934 | /* end confdefs.h. */ |
|
|
4935 | |
|
|
4936 | /* Override any GCC internal prototype to avoid an error. |
|
|
4937 | Use char because int might match the return type of a GCC |
|
|
4938 | builtin and then its argument prototype would still apply. */ |
|
|
4939 | char strerror (); |
|
|
4940 | int |
|
|
4941 | main (void) |
|
|
4942 | { |
|
|
4943 | return strerror (); |
|
|
4944 | ; |
|
|
4945 | return 0; |
|
|
4946 | } |
|
|
4947 | _ACEOF |
|
|
4948 | for ac_lib in '' cposix |
|
|
4949 | do |
|
|
4950 | if test -z "$ac_lib"; then |
|
|
4951 | ac_res="none required" |
|
|
4952 | else |
|
|
4953 | ac_res=-l$ac_lib |
|
|
4954 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
4955 | fi |
|
|
4956 | if ac_fn_c_try_link "$LINENO" |
|
|
4957 | then : |
|
|
4958 | ac_cv_search_strerror=$ac_res |
|
|
4959 | fi |
|
|
4960 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4961 | conftest$ac_exeext |
|
|
4962 | if test ${ac_cv_search_strerror+y} |
|
|
4963 | then : |
|
|
4964 | break |
|
|
4965 | fi |
|
|
4966 | done |
|
|
4967 | if test ${ac_cv_search_strerror+y} |
|
|
4968 | then : |
|
|
4969 | |
|
|
4970 | else $as_nop |
|
|
4971 | ac_cv_search_strerror=no |
|
|
4972 | fi |
|
|
4973 | rm conftest.$ac_ext |
|
|
4974 | LIBS=$ac_func_search_save_LIBS |
|
|
4975 | fi |
|
|
4976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
|
|
4977 | printf "%s\n" "$ac_cv_search_strerror" >&6; } |
|
|
4978 | ac_res=$ac_cv_search_strerror |
|
|
4979 | if test "$ac_res" != no |
|
|
4980 | then : |
|
|
4981 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
4982 | |
4874 | |
4983 | fi |
4875 | fi |
4984 | |
4876 | |
4985 | ac_ext=cpp |
4877 | ac_ext=cpp |
4986 | ac_cpp='$CXXCPP $CPPFLAGS' |
4878 | ac_cpp='$CXXCPP $CPPFLAGS' |