… | |
… | |
5293 | |
5293 | |
5294 | fi |
5294 | fi |
5295 | done |
5295 | done |
5296 | |
5296 | |
5297 | |
5297 | |
|
|
5298 | for ac_func in clock_gettime |
|
|
5299 | do : |
5298 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
5300 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
5299 | if test "x$ac_cv_func_clock_gettime" = x""yes; then : |
5301 | if test "x$ac_cv_func_clock_gettime" = x""yes; then : |
|
|
5302 | cat >>confdefs.h <<_ACEOF |
|
|
5303 | #define HAVE_CLOCK_GETTIME 1 |
|
|
5304 | _ACEOF |
5300 | |
5305 | |
5301 | else |
5306 | else |
5302 | |
5307 | |
5303 | if test $(uname) = Linux; then |
5308 | if test $(uname) = Linux; then |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
… | |
… | |
5389 | done |
5394 | done |
5390 | |
5395 | |
5391 | fi |
5396 | fi |
5392 | |
5397 | |
5393 | fi |
5398 | fi |
|
|
5399 | done |
5394 | |
5400 | |
5395 | |
5401 | |
|
|
5402 | for ac_func in nanosleep |
|
|
5403 | do : |
5396 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5404 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
5397 | if test "x$ac_cv_func_nanosleep" = x""yes; then : |
5405 | if test "x$ac_cv_func_nanosleep" = x""yes; then : |
|
|
5406 | cat >>confdefs.h <<_ACEOF |
|
|
5407 | #define HAVE_NANOSLEEP 1 |
|
|
5408 | _ACEOF |
5398 | |
5409 | |
5399 | else |
5410 | else |
5400 | |
5411 | |
5401 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5412 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
… | |
… | |
5457 | done |
5468 | done |
5458 | |
5469 | |
5459 | fi |
5470 | fi |
5460 | |
5471 | |
5461 | fi |
5472 | fi |
|
|
5473 | done |
5462 | |
5474 | |
5463 | |
5475 | |
|
|
5476 | if test -z "$LIBEV_M4_AVOID_LIBM"; then |
|
|
5477 | LIBM=m |
|
|
5478 | fi |
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5 |
5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
5465 | $as_echo_n "checking for ceil in -lm... " >&6; } |
5480 | $as_echo_n "checking for library containing floor... " >&6; } |
5466 | if test "${ac_cv_lib_m_ceil+set}" = set; then : |
5481 | if test "${ac_cv_search_floor+set}" = set; then : |
5467 | $as_echo_n "(cached) " >&6 |
5482 | $as_echo_n "(cached) " >&6 |
5468 | else |
5483 | else |
5469 | ac_check_lib_save_LIBS=$LIBS |
5484 | ac_func_search_save_LIBS=$LIBS |
5470 | LIBS="-lm $LIBS" |
|
|
5471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5472 | /* end confdefs.h. */ |
5486 | /* end confdefs.h. */ |
5473 | |
5487 | |
5474 | /* Override any GCC internal prototype to avoid an error. |
5488 | /* Override any GCC internal prototype to avoid an error. |
5475 | Use char because int might match the return type of a GCC |
5489 | Use char because int might match the return type of a GCC |
5476 | builtin and then its argument prototype would still apply. */ |
5490 | builtin and then its argument prototype would still apply. */ |
5477 | #ifdef __cplusplus |
5491 | #ifdef __cplusplus |
5478 | extern "C" |
5492 | extern "C" |
5479 | #endif |
5493 | #endif |
5480 | char ceil (); |
5494 | char floor (); |
5481 | int |
5495 | int |
5482 | main () |
5496 | main () |
5483 | { |
5497 | { |
5484 | return ceil (); |
5498 | return floor (); |
5485 | ; |
5499 | ; |
5486 | return 0; |
5500 | return 0; |
5487 | } |
5501 | } |
5488 | _ACEOF |
5502 | _ACEOF |
|
|
5503 | for ac_lib in '' $LIBM; do |
|
|
5504 | if test -z "$ac_lib"; then |
|
|
5505 | ac_res="none required" |
|
|
5506 | else |
|
|
5507 | ac_res=-l$ac_lib |
|
|
5508 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
5509 | fi |
5489 | if ac_fn_cxx_try_link "$LINENO"; then : |
5510 | if ac_fn_cxx_try_link "$LINENO"; then : |
5490 | ac_cv_lib_m_ceil=yes |
5511 | ac_cv_search_floor=$ac_res |
5491 | else |
|
|
5492 | ac_cv_lib_m_ceil=no |
|
|
5493 | fi |
5512 | fi |
5494 | rm -f core conftest.err conftest.$ac_objext \ |
5513 | rm -f core conftest.err conftest.$ac_objext \ |
5495 | conftest$ac_exeext conftest.$ac_ext |
5514 | conftest$ac_exeext |
5496 | LIBS=$ac_check_lib_save_LIBS |
5515 | if test "${ac_cv_search_floor+set}" = set; then : |
|
|
5516 | break |
5497 | fi |
5517 | fi |
|
|
5518 | done |
|
|
5519 | if test "${ac_cv_search_floor+set}" = set; then : |
|
|
5520 | |
|
|
5521 | else |
|
|
5522 | ac_cv_search_floor=no |
|
|
5523 | fi |
|
|
5524 | rm conftest.$ac_ext |
|
|
5525 | LIBS=$ac_func_search_save_LIBS |
|
|
5526 | fi |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5 |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
5499 | $as_echo "$ac_cv_lib_m_ceil" >&6; } |
5528 | $as_echo "$ac_cv_search_floor" >&6; } |
5500 | if test "x$ac_cv_lib_m_ceil" = x""yes; then : |
5529 | ac_res=$ac_cv_search_floor |
5501 | cat >>confdefs.h <<_ACEOF |
5530 | if test "$ac_res" != no; then : |
5502 | #define HAVE_LIBM 1 |
5531 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5503 | _ACEOF |
|
|
5504 | |
5532 | |
5505 | LIBS="-lm $LIBS" |
5533 | $as_echo "#define HAVE_FLOOR 1" >>confdefs.h |
5506 | |
5534 | |
5507 | fi |
5535 | fi |
5508 | |
5536 | |
5509 | |
5537 | |
5510 | |
5538 | |
… | |
… | |
6420 | fi |
6448 | fi |
6421 | |
6449 | |
6422 | done |
6450 | done |
6423 | |
6451 | |
6424 | |
6452 | |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5 |
|
|
6426 | $as_echo_n "checking for XPointer... " >&6; } |
|
|
6427 | if test "${rxvt_cv_xpointer+set}" = set; then : |
|
|
6428 | $as_echo_n "(cached) " >&6 |
|
|
6429 | else |
|
|
6430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6431 | /* end confdefs.h. */ |
|
|
6432 | #include <X11/Xlib.h> |
|
|
6433 | int |
|
|
6434 | main () |
|
|
6435 | { |
|
|
6436 | XPointer dummy; |
|
|
6437 | ; |
|
|
6438 | return 0; |
|
|
6439 | } |
|
|
6440 | _ACEOF |
|
|
6441 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6442 | rxvt_cv_xpointer=yes |
|
|
6443 | else |
|
|
6444 | rxvt_cv_xpointer=no |
|
|
6445 | fi |
|
|
6446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6447 | fi |
|
|
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5 |
|
|
6449 | $as_echo "$rxvt_cv_xpointer" >&6; } |
|
|
6450 | if test x$rxvt_cv_xpointer = xyes; then |
|
|
6451 | |
|
|
6452 | $as_echo "#define HAVE_XPOINTER 1" >>confdefs.h |
|
|
6453 | |
|
|
6454 | fi |
|
|
6455 | |
|
|
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
6457 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
6454 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
6458 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
6455 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
6459 | $as_echo_n "(cached) " >&6 |
6456 | $as_echo_n "(cached) " >&6 |
6460 | else |
6457 | else |
… | |
… | |
7287 | $as_echo_n "checking for working Xlocale... " >&6; } |
7284 | $as_echo_n "checking for working Xlocale... " >&6; } |
7288 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
7285 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
7289 | $as_echo_n "(cached) " >&6 |
7286 | $as_echo_n "(cached) " >&6 |
7290 | else |
7287 | else |
7291 | if test "$cross_compiling" = yes; then : |
7288 | if test "$cross_compiling" = yes; then : |
7292 | : |
7289 | : |
7293 | else |
7290 | else |
7294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7295 | /* end confdefs.h. */ |
7292 | /* end confdefs.h. */ |
|
|
7293 | |
7296 | #include <X11/Xlib.h> |
7294 | #include <X11/Xlib.h> |
7297 | #include <stdlib.h> |
7295 | #include <stdlib.h> |
7298 | main() { |
7296 | int main() { |
7299 | char *p; |
7297 | char *p; |
7300 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
7298 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
7301 | exit (XSupportsLocale() ? 0 : 1); |
7299 | exit (XSupportsLocale() ? 0 : 1); |
7302 | else |
7300 | else |
7303 | exit (1);} |
7301 | exit (1); |
|
|
7302 | } |
|
|
7303 | |
7304 | _ACEOF |
7304 | _ACEOF |
7305 | if ac_fn_cxx_try_run "$LINENO"; then : |
7305 | if ac_fn_cxx_try_run "$LINENO"; then : |
7306 | rxvt_cv_func_xlocale=yes |
7306 | rxvt_cv_func_xlocale=yes |
7307 | else |
7307 | else |
7308 | rxvt_cv_func_xlocale=no |
7308 | rxvt_cv_func_xlocale=no |
7309 | fi |
7309 | fi |
7310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7311 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
7311 | conftest.$ac_objext conftest.beam conftest.$ac_ext |