… | |
… | |
2223 | fi |
2223 | fi |
2224 | |
2224 | |
2225 | |
2225 | |
2226 | # Define the identity of the package. |
2226 | # Define the identity of the package. |
2227 | PACKAGE=gvpe |
2227 | PACKAGE=gvpe |
2228 | VERSION=2.01 |
2228 | VERSION=2.2 |
2229 | |
2229 | |
2230 | |
2230 | |
2231 | cat >>confdefs.h <<_ACEOF |
2231 | cat >>confdefs.h <<_ACEOF |
2232 | #define PACKAGE "$PACKAGE" |
2232 | #define PACKAGE "$PACKAGE" |
2233 | _ACEOF |
2233 | _ACEOF |
… | |
… | |
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 |
9949 | |
9960 | |
9950 | for ac_func in clock_gettime |
9961 | for ac_func in clock_gettime |
9951 | do |
9962 | do |
9952 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9953 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9964 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
… | |
… | |
10038 | _ACEOF |
10049 | _ACEOF |
10039 | |
10050 | |
10040 | fi |
10051 | fi |
10041 | done |
10052 | done |
10042 | |
10053 | |
|
|
10054 | fi |
|
|
10055 | |
|
|
10056 | fi |
|
|
10057 | |
|
|
10058 | |
|
|
10059 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
10060 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
10061 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10063 | else |
|
|
10064 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10065 | /* confdefs.h. */ |
|
|
10066 | _ACEOF |
|
|
10067 | cat confdefs.h >>conftest.$ac_ext |
|
|
10068 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10069 | /* end confdefs.h. */ |
|
|
10070 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
10071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10072 | #define nanosleep innocuous_nanosleep |
|
|
10073 | |
|
|
10074 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10075 | which can conflict with char nanosleep (); below. |
|
|
10076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10077 | <limits.h> exists even on freestanding compilers. */ |
|
|
10078 | |
|
|
10079 | #ifdef __STDC__ |
|
|
10080 | # include <limits.h> |
|
|
10081 | #else |
|
|
10082 | # include <assert.h> |
|
|
10083 | #endif |
|
|
10084 | |
|
|
10085 | #undef nanosleep |
|
|
10086 | |
|
|
10087 | /* Override any GCC internal prototype to avoid an error. |
|
|
10088 | Use char because int might match the return type of a GCC |
|
|
10089 | builtin and then its argument prototype would still apply. */ |
|
|
10090 | #ifdef __cplusplus |
|
|
10091 | extern "C" |
|
|
10092 | #endif |
|
|
10093 | char nanosleep (); |
|
|
10094 | /* The GNU C library defines this for functions which it implements |
|
|
10095 | to always fail with ENOSYS. Some functions are actually named |
|
|
10096 | something starting with __ and the normal name is an alias. */ |
|
|
10097 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
10098 | choke me |
|
|
10099 | #endif |
|
|
10100 | |
|
|
10101 | int |
|
|
10102 | main () |
|
|
10103 | { |
|
|
10104 | return nanosleep (); |
|
|
10105 | ; |
|
|
10106 | return 0; |
|
|
10107 | } |
|
|
10108 | _ACEOF |
|
|
10109 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10110 | if { (ac_try="$ac_link" |
|
|
10111 | case "(($ac_try" in |
|
|
10112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10113 | *) ac_try_echo=$ac_try;; |
|
|
10114 | esac |
|
|
10115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10116 | (eval "$ac_link") 2>conftest.er1 |
|
|
10117 | ac_status=$? |
|
|
10118 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10119 | rm -f conftest.er1 |
|
|
10120 | cat conftest.err >&5 |
|
|
10121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10122 | (exit $ac_status); } && { |
|
|
10123 | test -z "$ac_c_werror_flag" || |
|
|
10124 | test ! -s conftest.err |
|
|
10125 | } && test -s conftest$ac_exeext && |
|
|
10126 | $as_test_x conftest$ac_exeext; then |
|
|
10127 | ac_cv_func_nanosleep=yes |
|
|
10128 | else |
|
|
10129 | echo "$as_me: failed program was:" >&5 |
|
|
10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10131 | |
|
|
10132 | ac_cv_func_nanosleep=no |
|
|
10133 | fi |
|
|
10134 | |
|
|
10135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10136 | conftest$ac_exeext conftest.$ac_ext |
|
|
10137 | fi |
|
|
10138 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
10139 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
10140 | if test $ac_cv_func_nanosleep = yes; then |
|
|
10141 | : |
|
|
10142 | else |
|
|
10143 | |
|
|
10144 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
10145 | |
|
|
10146 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
10147 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
10148 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10150 | else |
|
|
10151 | ac_check_lib_save_LIBS=$LIBS |
|
|
10152 | LIBS="-lrt $LIBS" |
|
|
10153 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10154 | /* confdefs.h. */ |
|
|
10155 | _ACEOF |
|
|
10156 | cat confdefs.h >>conftest.$ac_ext |
|
|
10157 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10158 | /* end confdefs.h. */ |
|
|
10159 | |
|
|
10160 | /* Override any GCC internal prototype to avoid an error. |
|
|
10161 | Use char because int might match the return type of a GCC |
|
|
10162 | builtin and then its argument prototype would still apply. */ |
|
|
10163 | #ifdef __cplusplus |
|
|
10164 | extern "C" |
|
|
10165 | #endif |
|
|
10166 | char nanosleep (); |
|
|
10167 | int |
|
|
10168 | main () |
|
|
10169 | { |
|
|
10170 | return nanosleep (); |
|
|
10171 | ; |
|
|
10172 | return 0; |
|
|
10173 | } |
|
|
10174 | _ACEOF |
|
|
10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10176 | if { (ac_try="$ac_link" |
|
|
10177 | case "(($ac_try" in |
|
|
10178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10179 | *) ac_try_echo=$ac_try;; |
|
|
10180 | esac |
|
|
10181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10182 | (eval "$ac_link") 2>conftest.er1 |
|
|
10183 | ac_status=$? |
|
|
10184 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10185 | rm -f conftest.er1 |
|
|
10186 | cat conftest.err >&5 |
|
|
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10188 | (exit $ac_status); } && { |
|
|
10189 | test -z "$ac_c_werror_flag" || |
|
|
10190 | test ! -s conftest.err |
|
|
10191 | } && test -s conftest$ac_exeext && |
|
|
10192 | $as_test_x conftest$ac_exeext; then |
|
|
10193 | ac_cv_lib_rt_nanosleep=yes |
|
|
10194 | else |
|
|
10195 | echo "$as_me: failed program was:" >&5 |
|
|
10196 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10197 | |
|
|
10198 | ac_cv_lib_rt_nanosleep=no |
|
|
10199 | fi |
|
|
10200 | |
|
|
10201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10202 | conftest$ac_exeext conftest.$ac_ext |
|
|
10203 | LIBS=$ac_check_lib_save_LIBS |
|
|
10204 | fi |
|
|
10205 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
10206 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
10207 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
10208 | cat >>confdefs.h <<_ACEOF |
|
|
10209 | #define HAVE_LIBRT 1 |
|
|
10210 | _ACEOF |
|
|
10211 | |
|
|
10212 | LIBS="-lrt $LIBS" |
|
|
10213 | |
|
|
10214 | fi |
|
|
10215 | |
|
|
10216 | unset ac_cv_func_nanosleep |
|
|
10217 | |
|
|
10218 | for ac_func in nanosleep |
|
|
10219 | do |
|
|
10220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10221 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10223 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10225 | else |
|
|
10226 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10227 | /* confdefs.h. */ |
|
|
10228 | _ACEOF |
|
|
10229 | cat confdefs.h >>conftest.$ac_ext |
|
|
10230 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10231 | /* end confdefs.h. */ |
|
|
10232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10234 | #define $ac_func innocuous_$ac_func |
|
|
10235 | |
|
|
10236 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10237 | which can conflict with char $ac_func (); below. |
|
|
10238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10239 | <limits.h> exists even on freestanding compilers. */ |
|
|
10240 | |
|
|
10241 | #ifdef __STDC__ |
|
|
10242 | # include <limits.h> |
|
|
10243 | #else |
|
|
10244 | # include <assert.h> |
|
|
10245 | #endif |
|
|
10246 | |
|
|
10247 | #undef $ac_func |
|
|
10248 | |
|
|
10249 | /* Override any GCC internal prototype to avoid an error. |
|
|
10250 | Use char because int might match the return type of a GCC |
|
|
10251 | builtin and then its argument prototype would still apply. */ |
|
|
10252 | #ifdef __cplusplus |
|
|
10253 | extern "C" |
|
|
10254 | #endif |
|
|
10255 | char $ac_func (); |
|
|
10256 | /* The GNU C library defines this for functions which it implements |
|
|
10257 | to always fail with ENOSYS. Some functions are actually named |
|
|
10258 | something starting with __ and the normal name is an alias. */ |
|
|
10259 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10260 | choke me |
|
|
10261 | #endif |
|
|
10262 | |
|
|
10263 | int |
|
|
10264 | main () |
|
|
10265 | { |
|
|
10266 | return $ac_func (); |
|
|
10267 | ; |
|
|
10268 | return 0; |
|
|
10269 | } |
|
|
10270 | _ACEOF |
|
|
10271 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10272 | if { (ac_try="$ac_link" |
|
|
10273 | case "(($ac_try" in |
|
|
10274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10275 | *) ac_try_echo=$ac_try;; |
|
|
10276 | esac |
|
|
10277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10278 | (eval "$ac_link") 2>conftest.er1 |
|
|
10279 | ac_status=$? |
|
|
10280 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10281 | rm -f conftest.er1 |
|
|
10282 | cat conftest.err >&5 |
|
|
10283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10284 | (exit $ac_status); } && { |
|
|
10285 | test -z "$ac_c_werror_flag" || |
|
|
10286 | test ! -s conftest.err |
|
|
10287 | } && test -s conftest$ac_exeext && |
|
|
10288 | $as_test_x conftest$ac_exeext; then |
|
|
10289 | eval "$as_ac_var=yes" |
|
|
10290 | else |
|
|
10291 | echo "$as_me: failed program was:" >&5 |
|
|
10292 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10293 | |
|
|
10294 | eval "$as_ac_var=no" |
|
|
10295 | fi |
|
|
10296 | |
|
|
10297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10298 | conftest$ac_exeext conftest.$ac_ext |
|
|
10299 | fi |
|
|
10300 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10302 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10303 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10304 | cat >>confdefs.h <<_ACEOF |
|
|
10305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10306 | _ACEOF |
|
|
10307 | |
|
|
10308 | fi |
|
|
10309 | done |
|
|
10310 | |
|
|
10311 | fi |
10043 | |
10312 | |
10044 | fi |
10313 | fi |
10045 | |
10314 | |
10046 | |
10315 | |
10047 | |
10316 | |
… | |
… | |
11218 | |
11487 | |
11219 | if $CXX -v --help 2>&1 | grep -q fno-rtti; then |
11488 | if $CXX -v --help 2>&1 | grep -q fno-rtti; then |
11220 | CXXFLAGS="$CXXFLAGS -fno-rtti" |
11489 | CXXFLAGS="$CXXFLAGS -fno-rtti" |
11221 | fi |
11490 | fi |
11222 | |
11491 | |
11223 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
11492 | #if $CXX -v --help 2>&1 | grep -q fexceptions; then |
11224 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
11493 | # CXXFLAGS="$CXXFLAGS -fno-exceptions" |
11225 | fi |
11494 | #fi |
11226 | |
11495 | |
11227 | LIBS="$EXTRA_LIBS $LIBS" |
11496 | LIBS="$EXTRA_LIBS $LIBS" |
11228 | |
11497 | |
11229 | |
11498 | |
11230 | |
11499 | |