… | |
… | |
7675 | done |
7675 | done |
7676 | |
7676 | |
7677 | |
7677 | |
7678 | |
7678 | |
7679 | |
7679 | |
|
|
7680 | |
7680 | for ac_header in ext/hash_map clocale |
7681 | for ac_header in tr1/unordered_map ext/hash_map clocale |
7681 | do |
7682 | do |
7682 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7683 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7684 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7684 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7685 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7686 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
9552 | |
9553 | |
9553 | |
9554 | |
9554 | |
9555 | |
9555 | |
9556 | |
9556 | |
9557 | |
9557 | for ac_header in sys/epoll.h sys/event.h sys/queue.h |
9558 | |
|
|
9559 | |
|
|
9560 | |
|
|
9561 | |
|
|
9562 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
9558 | do |
9563 | do |
9559 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9564 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9560 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9561 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9566 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9562 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9567 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
9694 | done |
9699 | done |
9695 | |
9700 | |
9696 | |
9701 | |
9697 | |
9702 | |
9698 | |
9703 | |
9699 | for ac_func in epoll_ctl kqueue |
9704 | |
|
|
9705 | |
|
|
9706 | |
|
|
9707 | |
|
|
9708 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
9700 | do |
9709 | do |
9701 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9710 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9702 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9711 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9703 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9712 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9704 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9713 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9873 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
9882 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
9874 | if test $ac_cv_func_clock_gettime = yes; then |
9883 | if test $ac_cv_func_clock_gettime = yes; then |
9875 | : |
9884 | : |
9876 | else |
9885 | else |
9877 | |
9886 | |
|
|
9887 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
9878 | |
9888 | |
9879 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9889 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9880 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
9890 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
9881 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
9891 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
9882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
9944 | |
9954 | |
9945 | LIBS="-lrt $LIBS" |
9955 | LIBS="-lrt $LIBS" |
9946 | |
9956 | |
9947 | fi |
9957 | fi |
9948 | |
9958 | |
|
|
9959 | unset ac_cv_func_clock_gettime |
|
|
9960 | |
|
|
9961 | for ac_func in clock_gettime |
|
|
9962 | do |
|
|
9963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9964 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
9966 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9968 | else |
|
|
9969 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9970 | /* confdefs.h. */ |
|
|
9971 | _ACEOF |
|
|
9972 | cat confdefs.h >>conftest.$ac_ext |
|
|
9973 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9974 | /* end confdefs.h. */ |
|
|
9975 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9977 | #define $ac_func innocuous_$ac_func |
|
|
9978 | |
|
|
9979 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9980 | which can conflict with char $ac_func (); below. |
|
|
9981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9982 | <limits.h> exists even on freestanding compilers. */ |
|
|
9983 | |
|
|
9984 | #ifdef __STDC__ |
|
|
9985 | # include <limits.h> |
|
|
9986 | #else |
|
|
9987 | # include <assert.h> |
|
|
9988 | #endif |
|
|
9989 | |
|
|
9990 | #undef $ac_func |
|
|
9991 | |
|
|
9992 | /* Override any GCC internal prototype to avoid an error. |
|
|
9993 | Use char because int might match the return type of a GCC |
|
|
9994 | builtin and then its argument prototype would still apply. */ |
|
|
9995 | #ifdef __cplusplus |
|
|
9996 | extern "C" |
|
|
9997 | #endif |
|
|
9998 | char $ac_func (); |
|
|
9999 | /* The GNU C library defines this for functions which it implements |
|
|
10000 | to always fail with ENOSYS. Some functions are actually named |
|
|
10001 | something starting with __ and the normal name is an alias. */ |
|
|
10002 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10003 | choke me |
|
|
10004 | #endif |
|
|
10005 | |
|
|
10006 | int |
|
|
10007 | main () |
|
|
10008 | { |
|
|
10009 | return $ac_func (); |
|
|
10010 | ; |
|
|
10011 | return 0; |
|
|
10012 | } |
|
|
10013 | _ACEOF |
|
|
10014 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10015 | if { (ac_try="$ac_link" |
|
|
10016 | case "(($ac_try" in |
|
|
10017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10018 | *) ac_try_echo=$ac_try;; |
|
|
10019 | esac |
|
|
10020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10021 | (eval "$ac_link") 2>conftest.er1 |
|
|
10022 | ac_status=$? |
|
|
10023 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10024 | rm -f conftest.er1 |
|
|
10025 | cat conftest.err >&5 |
|
|
10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10027 | (exit $ac_status); } && { |
|
|
10028 | test -z "$ac_c_werror_flag" || |
|
|
10029 | test ! -s conftest.err |
|
|
10030 | } && test -s conftest$ac_exeext && |
|
|
10031 | $as_test_x conftest$ac_exeext; then |
|
|
10032 | eval "$as_ac_var=yes" |
|
|
10033 | else |
|
|
10034 | echo "$as_me: failed program was:" >&5 |
|
|
10035 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10036 | |
|
|
10037 | eval "$as_ac_var=no" |
|
|
10038 | fi |
|
|
10039 | |
|
|
10040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10041 | conftest$ac_exeext conftest.$ac_ext |
|
|
10042 | fi |
|
|
10043 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10045 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10046 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10047 | cat >>confdefs.h <<_ACEOF |
|
|
10048 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10049 | _ACEOF |
|
|
10050 | |
|
|
10051 | fi |
|
|
10052 | done |
|
|
10053 | |
|
|
10054 | fi |
|
|
10055 | |
|
|
10056 | fi |
|
|
10057 | |
|
|
10058 | |
|
|
10059 | |
|
|
10060 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
10061 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
10062 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
10063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10064 | else |
|
|
10065 | ac_check_lib_save_LIBS=$LIBS |
|
|
10066 | LIBS="-lm $LIBS" |
|
|
10067 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10068 | /* confdefs.h. */ |
|
|
10069 | _ACEOF |
|
|
10070 | cat confdefs.h >>conftest.$ac_ext |
|
|
10071 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10072 | /* end confdefs.h. */ |
|
|
10073 | |
|
|
10074 | /* Override any GCC internal prototype to avoid an error. |
|
|
10075 | Use char because int might match the return type of a GCC |
|
|
10076 | builtin and then its argument prototype would still apply. */ |
|
|
10077 | #ifdef __cplusplus |
|
|
10078 | extern "C" |
|
|
10079 | #endif |
|
|
10080 | char ceil (); |
|
|
10081 | int |
|
|
10082 | main () |
|
|
10083 | { |
|
|
10084 | return ceil (); |
|
|
10085 | ; |
|
|
10086 | return 0; |
|
|
10087 | } |
|
|
10088 | _ACEOF |
|
|
10089 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10090 | if { (ac_try="$ac_link" |
|
|
10091 | case "(($ac_try" in |
|
|
10092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10093 | *) ac_try_echo=$ac_try;; |
|
|
10094 | esac |
|
|
10095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10096 | (eval "$ac_link") 2>conftest.er1 |
|
|
10097 | ac_status=$? |
|
|
10098 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10099 | rm -f conftest.er1 |
|
|
10100 | cat conftest.err >&5 |
|
|
10101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10102 | (exit $ac_status); } && { |
|
|
10103 | test -z "$ac_c_werror_flag" || |
|
|
10104 | test ! -s conftest.err |
|
|
10105 | } && test -s conftest$ac_exeext && |
|
|
10106 | $as_test_x conftest$ac_exeext; then |
|
|
10107 | ac_cv_lib_m_ceil=yes |
|
|
10108 | else |
|
|
10109 | echo "$as_me: failed program was:" >&5 |
|
|
10110 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10111 | |
|
|
10112 | ac_cv_lib_m_ceil=no |
|
|
10113 | fi |
|
|
10114 | |
|
|
10115 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10116 | conftest$ac_exeext conftest.$ac_ext |
|
|
10117 | LIBS=$ac_check_lib_save_LIBS |
|
|
10118 | fi |
|
|
10119 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
10120 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
10121 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
10122 | cat >>confdefs.h <<_ACEOF |
|
|
10123 | #define HAVE_LIBM 1 |
|
|
10124 | _ACEOF |
|
|
10125 | |
|
|
10126 | LIBS="-lm $LIBS" |
9949 | |
10127 | |
9950 | fi |
10128 | fi |
9951 | |
10129 | |
9952 | |
10130 | |
9953 | |
10131 | |
… | |
… | |
11055 | fi |
11233 | fi |
11056 | |
11234 | |
11057 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
11235 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
11058 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
11236 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
11059 | fi |
11237 | fi |
|
|
11238 | |
|
|
11239 | LIBS="$EXTRA_LIBS $LIBS" |
11060 | |
11240 | |
11061 | |
11241 | |
11062 | |
11242 | |
11063 | |
11243 | |
11064 | ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" |
11244 | ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" |