… | |
… | |
597 | IF_PERL |
597 | IF_PERL |
598 | PERLPRIVLIBEXP |
598 | PERLPRIVLIBEXP |
599 | PERLFLAGS |
599 | PERLFLAGS |
600 | PERLLIB |
600 | PERLLIB |
601 | PERL |
601 | PERL |
|
|
602 | PIXBUF_LIBS |
|
|
603 | PIXBUF_CFLAGS |
602 | XFT_CONFIG |
604 | XFT_CONFIG |
603 | STARTUP_NOTIFICATION_LIBS |
605 | STARTUP_NOTIFICATION_LIBS |
604 | STARTUP_NOTIFICATION_CFLAGS |
606 | STARTUP_NOTIFICATION_CFLAGS |
605 | PIXBUF_LIBS |
|
|
606 | PIXBUF_CFLAGS |
|
|
607 | PKG_CONFIG |
607 | PKG_CONFIG |
608 | X_EXTRA_LIBS |
608 | X_EXTRA_LIBS |
609 | X_LIBS |
609 | X_LIBS |
610 | X_PRE_LIBS |
610 | X_PRE_LIBS |
611 | X_CFLAGS |
611 | X_CFLAGS |
… | |
… | |
6242 | LDFLAGS=$ac_save_LDFLAGS |
6242 | LDFLAGS=$ac_save_LDFLAGS |
6243 | |
6243 | |
6244 | fi |
6244 | fi |
6245 | |
6245 | |
6246 | |
6246 | |
6247 | image_lib=none |
6247 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6248 | STARTUP_NOTIFICATION_LIBS= |
6248 | |
6249 | |
6249 | PIXBUF_CFLAGS= |
|
|
6250 | PIXBUF_LIBS= |
|
|
6251 | |
|
|
6252 | if test x$support_pixbuf = xyes; then |
6250 | if test x$support_startup_notification = xyes; then |
6253 | support_pixbuf=no |
6251 | support_startup_notification=no |
6254 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6252 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6255 | set dummy pkg-config; ac_word=$2 |
6253 | set dummy pkg-config; ac_word=$2 |
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6257 | $as_echo_n "checking for $ac_word... " >&6; } |
6255 | $as_echo_n "checking for $ac_word... " >&6; } |
6258 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
6256 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6291 | $as_echo "no" >&6; } |
6289 | $as_echo "no" >&6; } |
6292 | fi |
6290 | fi |
6293 | |
6291 | |
6294 | |
6292 | |
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
6296 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
6294 | $as_echo_n "checking for libstartup-notification... " >&6; } |
6297 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
6295 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
6298 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
6296 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
6299 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
6297 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
6300 | support_pixbuf=yes |
6298 | support_startup_notification=yes |
6301 | fi |
6299 | fi |
6302 | |
6300 | |
6303 | if test x$support_pixbuf = xyes; then |
6301 | if test x$support_startup_notification = xyes; then |
6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6305 | $as_echo "ok" >&6; } |
6303 | $as_echo "ok" >&6; } |
6306 | image_lib=gdk-pixbuf |
|
|
6307 | |
6304 | |
6308 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
6305 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
6309 | |
|
|
6310 | |
|
|
6311 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6312 | |
6306 | |
6313 | else |
6307 | else |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6315 | $as_echo "no" >&6; } |
6309 | $as_echo "no" >&6; } |
6316 | fi |
6310 | fi |
6317 | fi |
6311 | fi |
6318 | |
6312 | |
6319 | |
6313 | |
6320 | |
6314 | |
6321 | |
6315 | |
6322 | STARTUP_NOTIFICATION_CFLAGS= |
6316 | for ac_header in \ |
6323 | STARTUP_NOTIFICATION_LIBS= |
6317 | sys/byteorder.h \ |
|
|
6318 | sys/ioctl.h \ |
|
|
6319 | sys/sockio.h \ |
|
|
6320 | sys/strredir.h \ |
|
|
6321 | stdint.h \ |
|
|
6322 | wchar.h \ |
6324 | |
6323 | |
|
|
6324 | do : |
|
|
6325 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6326 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6327 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6328 | cat >>confdefs.h <<_ACEOF |
|
|
6329 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6330 | _ACEOF |
|
|
6331 | |
|
|
6332 | fi |
|
|
6333 | |
|
|
6334 | done |
|
|
6335 | |
|
|
6336 | |
|
|
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6338 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6339 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6340 | $as_echo_n "(cached) " >&6 |
|
|
6341 | else |
|
|
6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6343 | /* end confdefs.h. */ |
|
|
6344 | |
|
|
6345 | #define XLIB_ILLEGAL_ACCESS |
|
|
6346 | #include <X11/Xlib.h> |
|
|
6347 | |
|
|
6348 | int |
|
|
6349 | main () |
|
|
6350 | { |
|
|
6351 | |
|
|
6352 | Display *dpy; |
|
|
6353 | dpy->xdefaults = (char *)0; |
|
|
6354 | |
|
|
6355 | ; |
|
|
6356 | return 0; |
|
|
6357 | } |
|
|
6358 | _ACEOF |
|
|
6359 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6360 | rxvt_cv_xlib_illegal_access=yes |
|
|
6361 | else |
|
|
6362 | rxvt_cv_xlib_illegal_access=no |
|
|
6363 | |
|
|
6364 | fi |
|
|
6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6366 | fi |
|
|
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6368 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6369 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6370 | |
|
|
6371 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6372 | |
|
|
6373 | fi |
|
|
6374 | |
|
|
6375 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6376 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6377 | |
|
|
6378 | else |
|
|
6379 | |
|
|
6380 | cat >>confdefs.h <<_ACEOF |
|
|
6381 | #define mode_t int |
|
|
6382 | _ACEOF |
|
|
6383 | |
|
|
6384 | fi |
|
|
6385 | |
|
|
6386 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6387 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6388 | |
|
|
6389 | else |
|
|
6390 | |
|
|
6391 | cat >>confdefs.h <<_ACEOF |
|
|
6392 | #define pid_t int |
|
|
6393 | _ACEOF |
|
|
6394 | |
|
|
6395 | fi |
|
|
6396 | |
|
|
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6398 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6399 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6400 | $as_echo_n "(cached) " >&6 |
|
|
6401 | else |
|
|
6402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6403 | /* end confdefs.h. */ |
|
|
6404 | #include <sys/types.h> |
|
|
6405 | |
|
|
6406 | _ACEOF |
|
|
6407 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6408 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6409 | ac_cv_type_uid_t=yes |
|
|
6410 | else |
|
|
6411 | ac_cv_type_uid_t=no |
|
|
6412 | fi |
|
|
6413 | rm -f conftest* |
|
|
6414 | |
|
|
6415 | fi |
|
|
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6417 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6418 | if test $ac_cv_type_uid_t = no; then |
|
|
6419 | |
|
|
6420 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6421 | |
|
|
6422 | |
|
|
6423 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6424 | |
|
|
6425 | fi |
|
|
6426 | |
|
|
6427 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6428 | case $ac_cv_c_int16_t in #( |
|
|
6429 | no|yes) ;; #( |
|
|
6430 | *) |
|
|
6431 | |
|
|
6432 | cat >>confdefs.h <<_ACEOF |
|
|
6433 | #define int16_t $ac_cv_c_int16_t |
|
|
6434 | _ACEOF |
|
|
6435 | ;; |
|
|
6436 | esac |
|
|
6437 | |
|
|
6438 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6439 | case $ac_cv_c_uint16_t in #( |
|
|
6440 | no|yes) ;; #( |
|
|
6441 | *) |
|
|
6442 | |
|
|
6443 | |
|
|
6444 | cat >>confdefs.h <<_ACEOF |
|
|
6445 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6446 | _ACEOF |
|
|
6447 | ;; |
|
|
6448 | esac |
|
|
6449 | |
|
|
6450 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6451 | case $ac_cv_c_int32_t in #( |
|
|
6452 | no|yes) ;; #( |
|
|
6453 | *) |
|
|
6454 | |
|
|
6455 | cat >>confdefs.h <<_ACEOF |
|
|
6456 | #define int32_t $ac_cv_c_int32_t |
|
|
6457 | _ACEOF |
|
|
6458 | ;; |
|
|
6459 | esac |
|
|
6460 | |
|
|
6461 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6462 | case $ac_cv_c_uint32_t in #( |
|
|
6463 | no|yes) ;; #( |
|
|
6464 | *) |
|
|
6465 | |
|
|
6466 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6467 | |
|
|
6468 | |
|
|
6469 | cat >>confdefs.h <<_ACEOF |
|
|
6470 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6471 | _ACEOF |
|
|
6472 | ;; |
|
|
6473 | esac |
|
|
6474 | |
|
|
6475 | |
|
|
6476 | for ac_func in unsetenv |
|
|
6477 | do : |
|
|
6478 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6479 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6480 | cat >>confdefs.h <<_ACEOF |
|
|
6481 | #define HAVE_UNSETENV 1 |
|
|
6482 | _ACEOF |
|
|
6483 | |
|
|
6484 | fi |
|
|
6485 | done |
|
|
6486 | |
|
|
6487 | |
|
|
6488 | |
|
|
6489 | support_utmp=yes |
|
|
6490 | support_wtmp=yes |
|
|
6491 | support_lastlog=yes |
|
|
6492 | |
|
|
6493 | # Check whether --enable-utmp was given. |
|
|
6494 | if test "${enable_utmp+set}" = set; then : |
|
|
6495 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6496 | support_utmp=$enableval |
|
|
6497 | fi |
|
|
6498 | fi |
|
|
6499 | |
|
|
6500 | |
|
|
6501 | # Check whether --enable-wtmp was given. |
|
|
6502 | if test "${enable_wtmp+set}" = set; then : |
|
|
6503 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6504 | support_wtmp=$enableval |
|
|
6505 | fi |
|
|
6506 | fi |
|
|
6507 | |
|
|
6508 | |
|
|
6509 | # Check whether --enable-lastlog was given. |
|
|
6510 | if test "${enable_lastlog+set}" = set; then : |
|
|
6511 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6512 | support_lastlog=$enableval |
|
|
6513 | fi |
|
|
6514 | fi |
|
|
6515 | |
|
|
6516 | |
6325 | if test x$support_startup_notification = xyes; then |
6517 | if test x$support_utmp = xyes; then |
6326 | support_startup_notification=no |
6518 | |
|
|
6519 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6520 | |
|
|
6521 | fi |
|
|
6522 | if test x$support_wtmp = xyes; then |
|
|
6523 | |
|
|
6524 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6525 | |
|
|
6526 | fi |
|
|
6527 | if test x$support_lastlog = xyes; then |
|
|
6528 | |
|
|
6529 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6530 | |
|
|
6531 | fi |
|
|
6532 | |
|
|
6533 | for ac_func in \ |
|
|
6534 | updwtmp \ |
|
|
6535 | updwtmpx \ |
|
|
6536 | updlastlogx \ |
|
|
6537 | |
|
|
6538 | do : |
|
|
6539 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6540 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6541 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6542 | cat >>confdefs.h <<_ACEOF |
|
|
6543 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6544 | _ACEOF |
|
|
6545 | |
|
|
6546 | fi |
|
|
6547 | done |
|
|
6548 | |
|
|
6549 | |
|
|
6550 | for ac_header in lastlog.h |
|
|
6551 | do : |
|
|
6552 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6553 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6554 | cat >>confdefs.h <<_ACEOF |
|
|
6555 | #define HAVE_LASTLOG_H 1 |
|
|
6556 | _ACEOF |
|
|
6557 | |
|
|
6558 | fi |
|
|
6559 | |
|
|
6560 | done |
|
|
6561 | |
|
|
6562 | |
|
|
6563 | case $host in |
|
|
6564 | *-*-solaris*) |
|
|
6565 | |
|
|
6566 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6567 | |
|
|
6568 | ;; |
|
|
6569 | esac |
|
|
6570 | |
|
|
6571 | |
|
|
6572 | for ac_header in utmp.h |
|
|
6573 | do : |
|
|
6574 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6575 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6576 | cat >>confdefs.h <<_ACEOF |
|
|
6577 | #define HAVE_UTMP_H 1 |
|
|
6578 | _ACEOF |
|
|
6579 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6580 | #include <sys/types.h> |
|
|
6581 | #include <utmp.h> |
|
|
6582 | |
|
|
6583 | " |
|
|
6584 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6585 | |
|
|
6586 | cat >>confdefs.h <<_ACEOF |
|
|
6587 | #define HAVE_STRUCT_UTMP 1 |
|
|
6588 | _ACEOF |
|
|
6589 | |
|
|
6590 | |
|
|
6591 | fi |
|
|
6592 | |
|
|
6593 | |
|
|
6594 | |
|
|
6595 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6596 | # ------------------------------------------------------ |
|
|
6597 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6598 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6599 | ac_fn_cxx_check_member () |
|
|
6600 | { |
|
|
6601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6603 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6604 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6605 | $as_echo_n "(cached) " >&6 |
|
|
6606 | else |
|
|
6607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6608 | /* end confdefs.h. */ |
|
|
6609 | $5 |
|
|
6610 | int |
|
|
6611 | main () |
|
|
6612 | { |
|
|
6613 | static $2 ac_aggr; |
|
|
6614 | if (ac_aggr.$3) |
|
|
6615 | return 0; |
|
|
6616 | ; |
|
|
6617 | return 0; |
|
|
6618 | } |
|
|
6619 | _ACEOF |
|
|
6620 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6621 | eval "$4=yes" |
|
|
6622 | else |
|
|
6623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6624 | /* end confdefs.h. */ |
|
|
6625 | $5 |
|
|
6626 | int |
|
|
6627 | main () |
|
|
6628 | { |
|
|
6629 | static $2 ac_aggr; |
|
|
6630 | if (sizeof ac_aggr.$3) |
|
|
6631 | return 0; |
|
|
6632 | ; |
|
|
6633 | return 0; |
|
|
6634 | } |
|
|
6635 | _ACEOF |
|
|
6636 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6637 | eval "$4=yes" |
|
|
6638 | else |
|
|
6639 | eval "$4=no" |
|
|
6640 | fi |
|
|
6641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6642 | fi |
|
|
6643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6644 | fi |
|
|
6645 | eval ac_res=\$$4 |
|
|
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6647 | $as_echo "$ac_res" >&6; } |
|
|
6648 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6649 | |
|
|
6650 | } # ac_fn_cxx_check_member |
|
|
6651 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6652 | #include <sys/types.h> |
|
|
6653 | #include <utmp.h> |
|
|
6654 | |
|
|
6655 | " |
|
|
6656 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6657 | |
|
|
6658 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6659 | |
|
|
6660 | fi |
|
|
6661 | |
|
|
6662 | |
|
|
6663 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6664 | #include <sys/types.h> |
|
|
6665 | #include <utmp.h> |
|
|
6666 | |
|
|
6667 | " |
|
|
6668 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6669 | |
|
|
6670 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6671 | |
|
|
6672 | fi |
|
|
6673 | |
|
|
6674 | |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | done |
|
|
6678 | |
|
|
6679 | |
|
|
6680 | for ac_header in utmpx.h |
|
|
6681 | do : |
|
|
6682 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6683 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6684 | cat >>confdefs.h <<_ACEOF |
|
|
6685 | #define HAVE_UTMPX_H 1 |
|
|
6686 | _ACEOF |
|
|
6687 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6688 | #include <sys/types.h> |
|
|
6689 | #include <utmpx.h> |
|
|
6690 | |
|
|
6691 | " |
|
|
6692 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6693 | |
|
|
6694 | cat >>confdefs.h <<_ACEOF |
|
|
6695 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6696 | _ACEOF |
|
|
6697 | |
|
|
6698 | |
|
|
6699 | fi |
|
|
6700 | |
|
|
6701 | |
|
|
6702 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6703 | #include <sys/types.h> |
|
|
6704 | #include <utmpx.h> |
|
|
6705 | |
|
|
6706 | " |
|
|
6707 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6708 | |
|
|
6709 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6710 | |
|
|
6711 | fi |
|
|
6712 | |
|
|
6713 | |
|
|
6714 | fi |
|
|
6715 | |
|
|
6716 | done |
|
|
6717 | |
|
|
6718 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6719 | #include <sys/types.h> |
|
|
6720 | #include <utmp.h> |
|
|
6721 | #ifdef HAVE_LASTLOG_H |
|
|
6722 | #include <lastlog.h> |
|
|
6723 | #endif |
|
|
6724 | |
|
|
6725 | " |
|
|
6726 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6727 | |
|
|
6728 | cat >>confdefs.h <<_ACEOF |
|
|
6729 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6730 | _ACEOF |
|
|
6731 | |
|
|
6732 | |
|
|
6733 | fi |
|
|
6734 | |
|
|
6735 | |
|
|
6736 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6737 | #include <sys/types.h> |
|
|
6738 | #include <utmpx.h> |
|
|
6739 | #ifdef HAVE_LASTLOG_H |
|
|
6740 | #include <lastlog.h> |
|
|
6741 | #endif |
|
|
6742 | |
|
|
6743 | " |
|
|
6744 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6745 | |
|
|
6746 | cat >>confdefs.h <<_ACEOF |
|
|
6747 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6748 | _ACEOF |
|
|
6749 | |
|
|
6750 | |
|
|
6751 | fi |
|
|
6752 | |
|
|
6753 | |
|
|
6754 | |
|
|
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6756 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6757 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6758 | $as_echo_n "(cached) " >&6 |
|
|
6759 | else |
|
|
6760 | |
|
|
6761 | if test "$cross_compiling" != yes; then |
|
|
6762 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6763 | if test -f "$file"; then |
|
|
6764 | pt_cv_path_utmp=$file |
|
|
6765 | break |
|
|
6766 | fi |
|
|
6767 | done |
|
|
6768 | fi |
|
|
6769 | fi |
|
|
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6771 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6772 | if test x$pt_cv_path_utmp != x; then |
|
|
6773 | |
|
|
6774 | cat >>confdefs.h <<_ACEOF |
|
|
6775 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6776 | _ACEOF |
|
|
6777 | |
|
|
6778 | elif test "$cross_compiling" = yes; then |
|
|
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6780 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6781 | fi |
|
|
6782 | |
|
|
6783 | |
|
|
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6785 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6786 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6787 | $as_echo_n "(cached) " >&6 |
|
|
6788 | else |
|
|
6789 | |
|
|
6790 | if test "$cross_compiling" != yes; then |
|
|
6791 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6792 | if test -f "$file"; then |
|
|
6793 | pt_cv_path_wtmp=$file |
|
|
6794 | break |
|
|
6795 | fi |
|
|
6796 | done |
|
|
6797 | fi |
|
|
6798 | fi |
|
|
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6800 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6801 | if test x$pt_cv_path_wtmp != x; then |
|
|
6802 | |
|
|
6803 | cat >>confdefs.h <<_ACEOF |
|
|
6804 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6805 | _ACEOF |
|
|
6806 | |
|
|
6807 | elif test "$cross_compiling" = yes; then |
|
|
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
6809 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
6810 | fi |
|
|
6811 | |
|
|
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
6813 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
6814 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
6815 | $as_echo_n "(cached) " >&6 |
|
|
6816 | else |
|
|
6817 | |
|
|
6818 | if test "$cross_compiling" != yes; then |
|
|
6819 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
6820 | if test -f "$file"; then |
|
|
6821 | pt_cv_path_wtmpx=$file |
|
|
6822 | break |
|
|
6823 | fi |
|
|
6824 | done |
|
|
6825 | fi |
|
|
6826 | fi |
|
|
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
6828 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
6829 | if test x$pt_cv_path_wtmpx != x; then |
|
|
6830 | |
|
|
6831 | cat >>confdefs.h <<_ACEOF |
|
|
6832 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
6833 | _ACEOF |
|
|
6834 | |
|
|
6835 | elif test "$cross_compiling" = yes; then |
|
|
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
6837 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
6838 | fi |
|
|
6839 | |
|
|
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
6841 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
6842 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
6843 | $as_echo_n "(cached) " >&6 |
|
|
6844 | else |
|
|
6845 | |
|
|
6846 | if test "$cross_compiling" != yes; then |
|
|
6847 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
6848 | if test -f "$file"; then |
|
|
6849 | pt_cv_path_lastlog=$file |
|
|
6850 | break |
|
|
6851 | fi |
|
|
6852 | done |
|
|
6853 | fi |
|
|
6854 | fi |
|
|
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
6856 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
6857 | if test x$pt_cv_path_lastlog != x; then |
|
|
6858 | |
|
|
6859 | cat >>confdefs.h <<_ACEOF |
|
|
6860 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
6861 | _ACEOF |
|
|
6862 | |
|
|
6863 | elif test "$cross_compiling" = yes; then |
|
|
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
6865 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
6866 | fi |
|
|
6867 | |
|
|
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
6869 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
6870 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
6871 | $as_echo_n "(cached) " >&6 |
|
|
6872 | else |
|
|
6873 | |
|
|
6874 | if test "$cross_compiling" != yes; then |
|
|
6875 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
6876 | if test -f "$file"; then |
|
|
6877 | pt_cv_path_lastlogx=$file |
|
|
6878 | break |
|
|
6879 | fi |
|
|
6880 | done |
|
|
6881 | fi |
|
|
6882 | fi |
|
|
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
6884 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
6885 | if test x$pt_cv_path_lastlogx != x; then |
|
|
6886 | |
|
|
6887 | cat >>confdefs.h <<_ACEOF |
|
|
6888 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
6889 | _ACEOF |
|
|
6890 | |
|
|
6891 | elif test "$cross_compiling" = yes; then |
|
|
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
6893 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
6894 | fi |
|
|
6895 | |
|
|
6896 | |
|
|
6897 | |
|
|
6898 | |
|
|
6899 | save_LIBS=$LIBS |
|
|
6900 | save_CFLAGS=$CFLAGS |
|
|
6901 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
6902 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
6903 | if test x$support_xim = xyes; then |
|
|
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
6905 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
6906 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
6907 | $as_echo_n "(cached) " >&6 |
|
|
6908 | else |
|
|
6909 | if test "$cross_compiling" = yes; then : |
|
|
6910 | : |
|
|
6911 | else |
|
|
6912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6913 | /* end confdefs.h. */ |
|
|
6914 | |
|
|
6915 | #include <X11/Xlib.h> |
|
|
6916 | #include <stdlib.h> |
|
|
6917 | int main() { |
|
|
6918 | char *p; |
|
|
6919 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
6920 | exit (XSupportsLocale() ? 0 : 1); |
|
|
6921 | else |
|
|
6922 | exit (1); |
|
|
6923 | } |
|
|
6924 | |
|
|
6925 | _ACEOF |
|
|
6926 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6927 | rxvt_cv_func_xlocale=yes |
|
|
6928 | else |
|
|
6929 | rxvt_cv_func_xlocale=no |
|
|
6930 | fi |
|
|
6931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6932 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6933 | fi |
|
|
6934 | |
|
|
6935 | fi |
|
|
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
6937 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
6938 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
6939 | |
|
|
6940 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
6941 | |
|
|
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
6943 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
6944 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
6945 | $as_echo_n "(cached) " >&6 |
|
|
6946 | else |
|
|
6947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6948 | /* end confdefs.h. */ |
|
|
6949 | |
|
|
6950 | #include <X11/Xlib.h> |
|
|
6951 | |
|
|
6952 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
6953 | |
|
|
6954 | void f() { |
|
|
6955 | XIMCallback cb; |
|
|
6956 | cb.callback = im_destroy_cb; |
|
|
6957 | } |
|
|
6958 | |
|
|
6959 | _ACEOF |
|
|
6960 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6961 | rxvt_cv_broken_ximcb=yes |
|
|
6962 | else |
|
|
6963 | rxvt_cv_broken_ximcb=no |
|
|
6964 | fi |
|
|
6965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6966 | fi |
|
|
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
6968 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
6969 | |
|
|
6970 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
6971 | |
|
|
6972 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
6973 | |
|
|
6974 | fi |
|
|
6975 | fi |
|
|
6976 | fi |
|
|
6977 | |
|
|
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
6979 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
6980 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
6981 | $as_echo_n "(cached) " >&6 |
|
|
6982 | else |
|
|
6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6984 | /* end confdefs.h. */ |
|
|
6985 | #define X_LOCALE 1 |
|
|
6986 | #include <X11/Xlocale.h> |
|
|
6987 | int |
|
|
6988 | main () |
|
|
6989 | { |
|
|
6990 | setlocale(LC_CTYPE, ""); |
|
|
6991 | ; |
|
|
6992 | return 0; |
|
|
6993 | } |
|
|
6994 | _ACEOF |
|
|
6995 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
6996 | rxvt_cv_func_xsetlocale=yes |
|
|
6997 | else |
|
|
6998 | rxvt_cv_func_xsetlocale=no |
|
|
6999 | fi |
|
|
7000 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7001 | conftest$ac_exeext conftest.$ac_ext |
|
|
7002 | fi |
|
|
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7004 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7005 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7006 | |
|
|
7007 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7008 | |
|
|
7009 | fi |
|
|
7010 | LIBS=$save_LIBS |
|
|
7011 | CFLAGS=$save_CFLAGS |
|
|
7012 | |
|
|
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7014 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7015 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7016 | $as_echo_n "(cached) " >&6 |
|
|
7017 | else |
|
|
7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7019 | /* end confdefs.h. */ |
|
|
7020 | #include <langinfo.h> |
|
|
7021 | int |
|
|
7022 | main () |
|
|
7023 | { |
|
|
7024 | nl_langinfo(CODESET); |
|
|
7025 | ; |
|
|
7026 | return 0; |
|
|
7027 | } |
|
|
7028 | _ACEOF |
|
|
7029 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7030 | rxvt_cv_func_nl_langinfo=yes |
|
|
7031 | else |
|
|
7032 | rxvt_cv_func_nl_langinfo=no |
|
|
7033 | fi |
|
|
7034 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7035 | conftest$ac_exeext conftest.$ac_ext |
|
|
7036 | fi |
|
|
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7038 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7039 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7040 | |
|
|
7041 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7042 | |
|
|
7043 | fi |
|
|
7044 | |
|
|
7045 | |
|
|
7046 | case $host in |
|
|
7047 | *-*-solaris*) |
|
|
7048 | |
|
|
7049 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7050 | |
|
|
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7052 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7053 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7054 | $as_echo_n "(cached) " >&6 |
|
|
7055 | else |
|
|
7056 | ac_func_search_save_LIBS=$LIBS |
|
|
7057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7058 | /* end confdefs.h. */ |
|
|
7059 | |
|
|
7060 | /* Override any GCC internal prototype to avoid an error. |
|
|
7061 | Use char because int might match the return type of a GCC |
|
|
7062 | builtin and then its argument prototype would still apply. */ |
|
|
7063 | #ifdef __cplusplus |
|
|
7064 | extern "C" |
|
|
7065 | #endif |
|
|
7066 | char sendmsg (); |
|
|
7067 | int |
|
|
7068 | main () |
|
|
7069 | { |
|
|
7070 | return sendmsg (); |
|
|
7071 | ; |
|
|
7072 | return 0; |
|
|
7073 | } |
|
|
7074 | _ACEOF |
|
|
7075 | for ac_lib in '' socket; do |
|
|
7076 | if test -z "$ac_lib"; then |
|
|
7077 | ac_res="none required" |
|
|
7078 | else |
|
|
7079 | ac_res=-l$ac_lib |
|
|
7080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7081 | fi |
|
|
7082 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7083 | ac_cv_search_sendmsg=$ac_res |
|
|
7084 | fi |
|
|
7085 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7086 | conftest$ac_exeext |
|
|
7087 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7088 | break |
|
|
7089 | fi |
|
|
7090 | done |
|
|
7091 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7092 | |
|
|
7093 | else |
|
|
7094 | ac_cv_search_sendmsg=no |
|
|
7095 | fi |
|
|
7096 | rm conftest.$ac_ext |
|
|
7097 | LIBS=$ac_func_search_save_LIBS |
|
|
7098 | fi |
|
|
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7100 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7101 | ac_res=$ac_cv_search_sendmsg |
|
|
7102 | if test "$ac_res" != no; then : |
|
|
7103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7104 | |
|
|
7105 | fi |
|
|
7106 | |
|
|
7107 | ;; |
|
|
7108 | esac |
|
|
7109 | |
|
|
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7111 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7112 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7113 | $as_echo_n "(cached) " >&6 |
|
|
7114 | else |
|
|
7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7116 | /* end confdefs.h. */ |
|
|
7117 | |
|
|
7118 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7119 | #include <sys/types.h> |
|
|
7120 | #include <sys/socket.h> |
|
|
7121 | #include <sys/uio.h> |
|
|
7122 | |
|
|
7123 | int |
|
|
7124 | main () |
|
|
7125 | { |
|
|
7126 | |
|
|
7127 | { |
|
|
7128 | msghdr msg; |
|
|
7129 | iovec iov; |
|
|
7130 | char buf [100]; |
|
|
7131 | char data = 0; |
|
|
7132 | |
|
|
7133 | iov.iov_base = &data; |
|
|
7134 | iov.iov_len = 1; |
|
|
7135 | |
|
|
7136 | msg.msg_iov = &iov; |
|
|
7137 | msg.msg_iovlen = 1; |
|
|
7138 | msg.msg_control = buf; |
|
|
7139 | msg.msg_controllen = sizeof buf; |
|
|
7140 | |
|
|
7141 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7142 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7143 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7144 | cmsg->cmsg_len = 100; |
|
|
7145 | |
|
|
7146 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7147 | |
|
|
7148 | return sendmsg (3, &msg, 0); |
|
|
7149 | } |
|
|
7150 | |
|
|
7151 | ; |
|
|
7152 | return 0; |
|
|
7153 | } |
|
|
7154 | _ACEOF |
|
|
7155 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7156 | pt_cv_can_pass_fds=yes |
|
|
7157 | else |
|
|
7158 | pt_cv_can_pass_fds=no |
|
|
7159 | fi |
|
|
7160 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7161 | conftest$ac_exeext conftest.$ac_ext |
|
|
7162 | fi |
|
|
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7164 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7165 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7166 | |
|
|
7167 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7168 | |
|
|
7169 | else |
|
|
7170 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7171 | fi |
|
|
7172 | |
|
|
7173 | |
|
|
7174 | |
|
|
7175 | for ac_header in \ |
|
|
7176 | pty.h \ |
|
|
7177 | util.h \ |
|
|
7178 | libutil.h \ |
|
|
7179 | sys/ioctl.h \ |
|
|
7180 | stropts.h \ |
|
|
7181 | |
|
|
7182 | do : |
|
|
7183 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7184 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7185 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7186 | cat >>confdefs.h <<_ACEOF |
|
|
7187 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7188 | _ACEOF |
|
|
7189 | |
|
|
7190 | fi |
|
|
7191 | |
|
|
7192 | done |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | for ac_func in \ |
|
|
7196 | revoke \ |
|
|
7197 | _getpty \ |
|
|
7198 | getpt \ |
|
|
7199 | posix_openpt \ |
|
|
7200 | isastream \ |
|
|
7201 | setuid \ |
|
|
7202 | seteuid \ |
|
|
7203 | setreuid \ |
|
|
7204 | setresuid \ |
|
|
7205 | |
|
|
7206 | do : |
|
|
7207 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7208 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7209 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7210 | cat >>confdefs.h <<_ACEOF |
|
|
7211 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7212 | _ACEOF |
|
|
7213 | |
|
|
7214 | fi |
|
|
7215 | done |
|
|
7216 | |
|
|
7217 | |
|
|
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7219 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7221 | /* end confdefs.h. */ |
|
|
7222 | #include <stdlib.h> |
|
|
7223 | int |
|
|
7224 | main () |
|
|
7225 | { |
|
|
7226 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7227 | ; |
|
|
7228 | return 0; |
|
|
7229 | } |
|
|
7230 | _ACEOF |
|
|
7231 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7232 | unix98_pty=yes |
|
|
7233 | |
|
|
7234 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7235 | |
|
|
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7237 | $as_echo "yes" >&6; } |
|
|
7238 | else |
|
|
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7240 | $as_echo "no" >&6; } |
|
|
7241 | fi |
|
|
7242 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7243 | conftest$ac_exeext conftest.$ac_ext |
|
|
7244 | |
|
|
7245 | if test -z "$unix98_pty"; then |
|
|
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7247 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7248 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7249 | $as_echo_n "(cached) " >&6 |
|
|
7250 | else |
|
|
7251 | ac_func_search_save_LIBS=$LIBS |
|
|
7252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7253 | /* end confdefs.h. */ |
|
|
7254 | |
|
|
7255 | /* Override any GCC internal prototype to avoid an error. |
|
|
7256 | Use char because int might match the return type of a GCC |
|
|
7257 | builtin and then its argument prototype would still apply. */ |
|
|
7258 | #ifdef __cplusplus |
|
|
7259 | extern "C" |
|
|
7260 | #endif |
|
|
7261 | char openpty (); |
|
|
7262 | int |
|
|
7263 | main () |
|
|
7264 | { |
|
|
7265 | return openpty (); |
|
|
7266 | ; |
|
|
7267 | return 0; |
|
|
7268 | } |
|
|
7269 | _ACEOF |
|
|
7270 | for ac_lib in '' util; do |
|
|
7271 | if test -z "$ac_lib"; then |
|
|
7272 | ac_res="none required" |
|
|
7273 | else |
|
|
7274 | ac_res=-l$ac_lib |
|
|
7275 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7276 | fi |
|
|
7277 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7278 | ac_cv_search_openpty=$ac_res |
|
|
7279 | fi |
|
|
7280 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7281 | conftest$ac_exeext |
|
|
7282 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7283 | break |
|
|
7284 | fi |
|
|
7285 | done |
|
|
7286 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7287 | |
|
|
7288 | else |
|
|
7289 | ac_cv_search_openpty=no |
|
|
7290 | fi |
|
|
7291 | rm conftest.$ac_ext |
|
|
7292 | LIBS=$ac_func_search_save_LIBS |
|
|
7293 | fi |
|
|
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7295 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7296 | ac_res=$ac_cv_search_openpty |
|
|
7297 | if test "$ac_res" != no; then : |
|
|
7298 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7299 | |
|
|
7300 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7301 | |
|
|
7302 | fi |
|
|
7303 | |
|
|
7304 | fi |
|
|
7305 | |
|
|
7306 | |
|
|
7307 | |
|
|
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7309 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7310 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7311 | $as_echo_n "(cached) " >&6 |
|
|
7312 | else |
|
|
7313 | if test "$cross_compiling" = yes; then : |
|
|
7314 | pt_cv_tty_group=no |
|
|
7315 | else |
|
|
7316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7317 | /* end confdefs.h. */ |
|
|
7318 | |
|
|
7319 | #include <sys/types.h> |
|
|
7320 | #include <sys/stat.h> |
|
|
7321 | #include <unistd.h> |
|
|
7322 | #include <grp.h> |
|
|
7323 | |
|
|
7324 | int main() |
|
|
7325 | { |
|
|
7326 | struct stat st; |
|
|
7327 | struct group *gr; |
|
|
7328 | char *tty; |
|
|
7329 | gr = getgrnam("tty"); |
|
|
7330 | tty = ttyname(0); |
|
|
7331 | if (gr != 0 |
|
|
7332 | && tty != 0 |
|
|
7333 | && (stat(tty, &st)) == 0 |
|
|
7334 | && st.st_gid == gr->gr_gid) |
|
|
7335 | return 0; |
|
|
7336 | else |
|
|
7337 | return 1; |
|
|
7338 | } |
|
|
7339 | _ACEOF |
|
|
7340 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7341 | pt_cv_tty_group=yes |
|
|
7342 | else |
|
|
7343 | pt_cv_tty_group=no |
|
|
7344 | fi |
|
|
7345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7346 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7347 | fi |
|
|
7348 | |
|
|
7349 | fi |
|
|
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7351 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7352 | if test x$pt_cv_tty_group = xyes; then |
|
|
7353 | |
|
|
7354 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7355 | |
|
|
7356 | fi |
|
|
7357 | |
|
|
7358 | support_image=no |
|
|
7359 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
|
|
7360 | support_image=yes |
|
|
7361 | fi |
|
|
7362 | if test x$support_xft = xyes || test x$support_image = xyes; then |
|
|
7363 | rxvt_have_xrender=no |
6327 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7364 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6328 | set dummy pkg-config; ac_word=$2 |
7365 | set dummy pkg-config; ac_word=$2 |
6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6330 | $as_echo_n "checking for $ac_word... " >&6; } |
7367 | $as_echo_n "checking for $ac_word... " >&6; } |
6331 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7368 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6364 | $as_echo "no" >&6; } |
7401 | $as_echo "no" >&6; } |
6365 | fi |
7402 | fi |
6366 | |
7403 | |
6367 | |
7404 | |
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
|
|
6369 | $as_echo_n "checking for libstartup-notification... " >&6; } |
|
|
6370 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
7405 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
6371 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
7406 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
6372 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
7407 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
6373 | support_startup_notification=yes |
7408 | rxvt_have_xrender=yes |
6374 | fi |
|
|
6375 | |
7409 | |
6376 | if test x$support_startup_notification = xyes; then |
|
|
6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6378 | $as_echo "ok" >&6; } |
|
|
6379 | |
|
|
6380 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6381 | |
|
|
6382 | else |
|
|
6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6384 | $as_echo "no" >&6; } |
|
|
6385 | fi |
|
|
6386 | fi |
|
|
6387 | |
|
|
6388 | |
|
|
6389 | |
|
|
6390 | |
|
|
6391 | for ac_header in \ |
|
|
6392 | sys/byteorder.h \ |
|
|
6393 | sys/ioctl.h \ |
|
|
6394 | sys/sockio.h \ |
|
|
6395 | sys/strredir.h \ |
|
|
6396 | stdint.h \ |
|
|
6397 | wchar.h \ |
|
|
6398 | |
|
|
6399 | do : |
|
|
6400 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6401 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6402 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6403 | cat >>confdefs.h <<_ACEOF |
|
|
6404 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6405 | _ACEOF |
|
|
6406 | |
|
|
6407 | fi |
|
|
6408 | |
|
|
6409 | done |
|
|
6410 | |
|
|
6411 | |
|
|
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6413 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6414 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6415 | $as_echo_n "(cached) " >&6 |
|
|
6416 | else |
|
|
6417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6418 | /* end confdefs.h. */ |
|
|
6419 | |
|
|
6420 | #define XLIB_ILLEGAL_ACCESS |
|
|
6421 | #include <X11/Xlib.h> |
|
|
6422 | |
|
|
6423 | int |
|
|
6424 | main () |
|
|
6425 | { |
|
|
6426 | |
|
|
6427 | Display *dpy; |
|
|
6428 | dpy->xdefaults = (char *)0; |
|
|
6429 | |
|
|
6430 | ; |
|
|
6431 | return 0; |
|
|
6432 | } |
|
|
6433 | _ACEOF |
|
|
6434 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6435 | rxvt_cv_xlib_illegal_access=yes |
|
|
6436 | else |
|
|
6437 | rxvt_cv_xlib_illegal_access=no |
|
|
6438 | |
|
|
6439 | fi |
|
|
6440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6441 | fi |
|
|
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6443 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6444 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6445 | |
|
|
6446 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6447 | |
|
|
6448 | fi |
|
|
6449 | |
|
|
6450 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6451 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6452 | |
|
|
6453 | else |
|
|
6454 | |
|
|
6455 | cat >>confdefs.h <<_ACEOF |
|
|
6456 | #define mode_t int |
|
|
6457 | _ACEOF |
|
|
6458 | |
|
|
6459 | fi |
|
|
6460 | |
|
|
6461 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6462 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6463 | |
|
|
6464 | else |
|
|
6465 | |
|
|
6466 | cat >>confdefs.h <<_ACEOF |
|
|
6467 | #define pid_t int |
|
|
6468 | _ACEOF |
|
|
6469 | |
|
|
6470 | fi |
|
|
6471 | |
|
|
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6473 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6474 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6475 | $as_echo_n "(cached) " >&6 |
|
|
6476 | else |
|
|
6477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6478 | /* end confdefs.h. */ |
|
|
6479 | #include <sys/types.h> |
|
|
6480 | |
|
|
6481 | _ACEOF |
|
|
6482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6483 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6484 | ac_cv_type_uid_t=yes |
|
|
6485 | else |
|
|
6486 | ac_cv_type_uid_t=no |
|
|
6487 | fi |
|
|
6488 | rm -f conftest* |
|
|
6489 | |
|
|
6490 | fi |
|
|
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6492 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6493 | if test $ac_cv_type_uid_t = no; then |
|
|
6494 | |
|
|
6495 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6496 | |
|
|
6497 | |
|
|
6498 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6499 | |
|
|
6500 | fi |
|
|
6501 | |
|
|
6502 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6503 | case $ac_cv_c_int16_t in #( |
|
|
6504 | no|yes) ;; #( |
|
|
6505 | *) |
|
|
6506 | |
|
|
6507 | cat >>confdefs.h <<_ACEOF |
|
|
6508 | #define int16_t $ac_cv_c_int16_t |
|
|
6509 | _ACEOF |
|
|
6510 | ;; |
|
|
6511 | esac |
|
|
6512 | |
|
|
6513 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6514 | case $ac_cv_c_uint16_t in #( |
|
|
6515 | no|yes) ;; #( |
|
|
6516 | *) |
|
|
6517 | |
|
|
6518 | |
|
|
6519 | cat >>confdefs.h <<_ACEOF |
|
|
6520 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6521 | _ACEOF |
|
|
6522 | ;; |
|
|
6523 | esac |
|
|
6524 | |
|
|
6525 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6526 | case $ac_cv_c_int32_t in #( |
|
|
6527 | no|yes) ;; #( |
|
|
6528 | *) |
|
|
6529 | |
|
|
6530 | cat >>confdefs.h <<_ACEOF |
|
|
6531 | #define int32_t $ac_cv_c_int32_t |
|
|
6532 | _ACEOF |
|
|
6533 | ;; |
|
|
6534 | esac |
|
|
6535 | |
|
|
6536 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6537 | case $ac_cv_c_uint32_t in #( |
|
|
6538 | no|yes) ;; #( |
|
|
6539 | *) |
|
|
6540 | |
|
|
6541 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6542 | |
|
|
6543 | |
|
|
6544 | cat >>confdefs.h <<_ACEOF |
|
|
6545 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6546 | _ACEOF |
|
|
6547 | ;; |
|
|
6548 | esac |
|
|
6549 | |
|
|
6550 | |
|
|
6551 | for ac_func in unsetenv |
|
|
6552 | do : |
|
|
6553 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6554 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6555 | cat >>confdefs.h <<_ACEOF |
|
|
6556 | #define HAVE_UNSETENV 1 |
|
|
6557 | _ACEOF |
|
|
6558 | |
|
|
6559 | fi |
|
|
6560 | done |
|
|
6561 | |
|
|
6562 | |
|
|
6563 | |
|
|
6564 | support_utmp=yes |
|
|
6565 | support_wtmp=yes |
|
|
6566 | support_lastlog=yes |
|
|
6567 | |
|
|
6568 | # Check whether --enable-utmp was given. |
|
|
6569 | if test "${enable_utmp+set}" = set; then : |
|
|
6570 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6571 | support_utmp=$enableval |
|
|
6572 | fi |
|
|
6573 | fi |
|
|
6574 | |
|
|
6575 | |
|
|
6576 | # Check whether --enable-wtmp was given. |
|
|
6577 | if test "${enable_wtmp+set}" = set; then : |
|
|
6578 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6579 | support_wtmp=$enableval |
|
|
6580 | fi |
|
|
6581 | fi |
|
|
6582 | |
|
|
6583 | |
|
|
6584 | # Check whether --enable-lastlog was given. |
|
|
6585 | if test "${enable_lastlog+set}" = set; then : |
|
|
6586 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6587 | support_lastlog=$enableval |
|
|
6588 | fi |
|
|
6589 | fi |
|
|
6590 | |
|
|
6591 | |
|
|
6592 | if test x$support_utmp = xyes; then |
|
|
6593 | |
|
|
6594 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6595 | |
|
|
6596 | fi |
|
|
6597 | if test x$support_wtmp = xyes; then |
|
|
6598 | |
|
|
6599 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6600 | |
|
|
6601 | fi |
|
|
6602 | if test x$support_lastlog = xyes; then |
|
|
6603 | |
|
|
6604 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6605 | |
|
|
6606 | fi |
|
|
6607 | |
|
|
6608 | for ac_func in \ |
|
|
6609 | updwtmp \ |
|
|
6610 | updwtmpx \ |
|
|
6611 | updlastlogx \ |
|
|
6612 | |
|
|
6613 | do : |
|
|
6614 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6615 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6616 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6617 | cat >>confdefs.h <<_ACEOF |
|
|
6618 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6619 | _ACEOF |
|
|
6620 | |
|
|
6621 | fi |
|
|
6622 | done |
|
|
6623 | |
|
|
6624 | |
|
|
6625 | for ac_header in lastlog.h |
|
|
6626 | do : |
|
|
6627 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6628 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6629 | cat >>confdefs.h <<_ACEOF |
|
|
6630 | #define HAVE_LASTLOG_H 1 |
|
|
6631 | _ACEOF |
|
|
6632 | |
|
|
6633 | fi |
|
|
6634 | |
|
|
6635 | done |
|
|
6636 | |
|
|
6637 | |
|
|
6638 | case $host in |
|
|
6639 | *-*-solaris*) |
|
|
6640 | |
|
|
6641 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6642 | |
|
|
6643 | ;; |
|
|
6644 | esac |
|
|
6645 | |
|
|
6646 | |
|
|
6647 | for ac_header in utmp.h |
|
|
6648 | do : |
|
|
6649 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6650 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6651 | cat >>confdefs.h <<_ACEOF |
|
|
6652 | #define HAVE_UTMP_H 1 |
|
|
6653 | _ACEOF |
|
|
6654 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6655 | #include <sys/types.h> |
|
|
6656 | #include <utmp.h> |
|
|
6657 | |
|
|
6658 | " |
|
|
6659 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6660 | |
|
|
6661 | cat >>confdefs.h <<_ACEOF |
|
|
6662 | #define HAVE_STRUCT_UTMP 1 |
|
|
6663 | _ACEOF |
|
|
6664 | |
|
|
6665 | |
|
|
6666 | fi |
|
|
6667 | |
|
|
6668 | |
|
|
6669 | |
|
|
6670 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6671 | # ------------------------------------------------------ |
|
|
6672 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6673 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6674 | ac_fn_cxx_check_member () |
|
|
6675 | { |
|
|
6676 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6678 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6679 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6680 | $as_echo_n "(cached) " >&6 |
|
|
6681 | else |
|
|
6682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6683 | /* end confdefs.h. */ |
|
|
6684 | $5 |
|
|
6685 | int |
|
|
6686 | main () |
|
|
6687 | { |
|
|
6688 | static $2 ac_aggr; |
|
|
6689 | if (ac_aggr.$3) |
|
|
6690 | return 0; |
|
|
6691 | ; |
|
|
6692 | return 0; |
|
|
6693 | } |
|
|
6694 | _ACEOF |
|
|
6695 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6696 | eval "$4=yes" |
|
|
6697 | else |
|
|
6698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6699 | /* end confdefs.h. */ |
|
|
6700 | $5 |
|
|
6701 | int |
|
|
6702 | main () |
|
|
6703 | { |
|
|
6704 | static $2 ac_aggr; |
|
|
6705 | if (sizeof ac_aggr.$3) |
|
|
6706 | return 0; |
|
|
6707 | ; |
|
|
6708 | return 0; |
|
|
6709 | } |
|
|
6710 | _ACEOF |
|
|
6711 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6712 | eval "$4=yes" |
|
|
6713 | else |
|
|
6714 | eval "$4=no" |
|
|
6715 | fi |
|
|
6716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6717 | fi |
|
|
6718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6719 | fi |
|
|
6720 | eval ac_res=\$$4 |
|
|
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6722 | $as_echo "$ac_res" >&6; } |
|
|
6723 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6724 | |
|
|
6725 | } # ac_fn_cxx_check_member |
|
|
6726 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6727 | #include <sys/types.h> |
|
|
6728 | #include <utmp.h> |
|
|
6729 | |
|
|
6730 | " |
|
|
6731 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6732 | |
|
|
6733 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6734 | |
|
|
6735 | fi |
|
|
6736 | |
|
|
6737 | |
|
|
6738 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6739 | #include <sys/types.h> |
|
|
6740 | #include <utmp.h> |
|
|
6741 | |
|
|
6742 | " |
|
|
6743 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6744 | |
|
|
6745 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6746 | |
|
|
6747 | fi |
|
|
6748 | |
|
|
6749 | |
|
|
6750 | fi |
|
|
6751 | |
|
|
6752 | done |
|
|
6753 | |
|
|
6754 | |
|
|
6755 | for ac_header in utmpx.h |
|
|
6756 | do : |
|
|
6757 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6758 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6759 | cat >>confdefs.h <<_ACEOF |
|
|
6760 | #define HAVE_UTMPX_H 1 |
|
|
6761 | _ACEOF |
|
|
6762 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6763 | #include <sys/types.h> |
|
|
6764 | #include <utmpx.h> |
|
|
6765 | |
|
|
6766 | " |
|
|
6767 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6768 | |
|
|
6769 | cat >>confdefs.h <<_ACEOF |
|
|
6770 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6771 | _ACEOF |
|
|
6772 | |
|
|
6773 | |
|
|
6774 | fi |
|
|
6775 | |
|
|
6776 | |
|
|
6777 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6778 | #include <sys/types.h> |
|
|
6779 | #include <utmpx.h> |
|
|
6780 | |
|
|
6781 | " |
|
|
6782 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6783 | |
|
|
6784 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6785 | |
|
|
6786 | fi |
|
|
6787 | |
|
|
6788 | |
|
|
6789 | fi |
|
|
6790 | |
|
|
6791 | done |
|
|
6792 | |
|
|
6793 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6794 | #include <sys/types.h> |
|
|
6795 | #include <utmp.h> |
|
|
6796 | #ifdef HAVE_LASTLOG_H |
|
|
6797 | #include <lastlog.h> |
|
|
6798 | #endif |
|
|
6799 | |
|
|
6800 | " |
|
|
6801 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6802 | |
|
|
6803 | cat >>confdefs.h <<_ACEOF |
|
|
6804 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6805 | _ACEOF |
|
|
6806 | |
|
|
6807 | |
|
|
6808 | fi |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6812 | #include <sys/types.h> |
|
|
6813 | #include <utmpx.h> |
|
|
6814 | #ifdef HAVE_LASTLOG_H |
|
|
6815 | #include <lastlog.h> |
|
|
6816 | #endif |
|
|
6817 | |
|
|
6818 | " |
|
|
6819 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6820 | |
|
|
6821 | cat >>confdefs.h <<_ACEOF |
|
|
6822 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6823 | _ACEOF |
|
|
6824 | |
|
|
6825 | |
|
|
6826 | fi |
|
|
6827 | |
|
|
6828 | |
|
|
6829 | |
|
|
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6831 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6832 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6833 | $as_echo_n "(cached) " >&6 |
|
|
6834 | else |
|
|
6835 | |
|
|
6836 | if test "$cross_compiling" != yes; then |
|
|
6837 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6838 | if test -f "$file"; then |
|
|
6839 | pt_cv_path_utmp=$file |
|
|
6840 | break |
|
|
6841 | fi |
|
|
6842 | done |
|
|
6843 | fi |
|
|
6844 | fi |
|
|
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6846 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6847 | if test x$pt_cv_path_utmp != x; then |
|
|
6848 | |
|
|
6849 | cat >>confdefs.h <<_ACEOF |
|
|
6850 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6851 | _ACEOF |
|
|
6852 | |
|
|
6853 | elif test "$cross_compiling" = yes; then |
|
|
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6855 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6856 | fi |
|
|
6857 | |
|
|
6858 | |
|
|
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6860 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6861 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6862 | $as_echo_n "(cached) " >&6 |
|
|
6863 | else |
|
|
6864 | |
|
|
6865 | if test "$cross_compiling" != yes; then |
|
|
6866 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6867 | if test -f "$file"; then |
|
|
6868 | pt_cv_path_wtmp=$file |
|
|
6869 | break |
|
|
6870 | fi |
|
|
6871 | done |
|
|
6872 | fi |
|
|
6873 | fi |
|
|
6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6875 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6876 | if test x$pt_cv_path_wtmp != x; then |
|
|
6877 | |
|
|
6878 | cat >>confdefs.h <<_ACEOF |
|
|
6879 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6880 | _ACEOF |
|
|
6881 | |
|
|
6882 | elif test "$cross_compiling" = yes; then |
|
|
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
6884 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
6885 | fi |
|
|
6886 | |
|
|
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
6888 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
6889 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
6890 | $as_echo_n "(cached) " >&6 |
|
|
6891 | else |
|
|
6892 | |
|
|
6893 | if test "$cross_compiling" != yes; then |
|
|
6894 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
6895 | if test -f "$file"; then |
|
|
6896 | pt_cv_path_wtmpx=$file |
|
|
6897 | break |
|
|
6898 | fi |
|
|
6899 | done |
|
|
6900 | fi |
|
|
6901 | fi |
|
|
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
6903 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
6904 | if test x$pt_cv_path_wtmpx != x; then |
|
|
6905 | |
|
|
6906 | cat >>confdefs.h <<_ACEOF |
|
|
6907 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
6908 | _ACEOF |
|
|
6909 | |
|
|
6910 | elif test "$cross_compiling" = yes; then |
|
|
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
6912 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
6913 | fi |
|
|
6914 | |
|
|
6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
6916 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
6917 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
6918 | $as_echo_n "(cached) " >&6 |
|
|
6919 | else |
|
|
6920 | |
|
|
6921 | if test "$cross_compiling" != yes; then |
|
|
6922 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
6923 | if test -f "$file"; then |
|
|
6924 | pt_cv_path_lastlog=$file |
|
|
6925 | break |
|
|
6926 | fi |
|
|
6927 | done |
|
|
6928 | fi |
|
|
6929 | fi |
|
|
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
6931 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
6932 | if test x$pt_cv_path_lastlog != x; then |
|
|
6933 | |
|
|
6934 | cat >>confdefs.h <<_ACEOF |
|
|
6935 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
6936 | _ACEOF |
|
|
6937 | |
|
|
6938 | elif test "$cross_compiling" = yes; then |
|
|
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
6940 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
6941 | fi |
|
|
6942 | |
|
|
6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
6944 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
6945 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
6946 | $as_echo_n "(cached) " >&6 |
|
|
6947 | else |
|
|
6948 | |
|
|
6949 | if test "$cross_compiling" != yes; then |
|
|
6950 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
6951 | if test -f "$file"; then |
|
|
6952 | pt_cv_path_lastlogx=$file |
|
|
6953 | break |
|
|
6954 | fi |
|
|
6955 | done |
|
|
6956 | fi |
|
|
6957 | fi |
|
|
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
6959 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
6960 | if test x$pt_cv_path_lastlogx != x; then |
|
|
6961 | |
|
|
6962 | cat >>confdefs.h <<_ACEOF |
|
|
6963 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
6964 | _ACEOF |
|
|
6965 | |
|
|
6966 | elif test "$cross_compiling" = yes; then |
|
|
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
6968 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
6969 | fi |
|
|
6970 | |
|
|
6971 | |
|
|
6972 | |
|
|
6973 | |
|
|
6974 | save_LIBS=$LIBS |
7410 | save_LIBS="$LIBS" |
6975 | save_CFLAGS=$CFLAGS |
7411 | LIBS="$LIBS $X_LIBS" |
6976 | CFLAGS="$CFLAGS $X_CFLAGS" |
7412 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
6977 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7413 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
6978 | if test x$support_xim = xyes; then |
|
|
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
6980 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
6981 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
6982 | $as_echo_n "(cached) " >&6 |
|
|
6983 | else |
|
|
6984 | if test "$cross_compiling" = yes; then : |
|
|
6985 | : |
|
|
6986 | else |
|
|
6987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6988 | /* end confdefs.h. */ |
|
|
6989 | |
7414 | |
6990 | #include <X11/Xlib.h> |
|
|
6991 | #include <stdlib.h> |
|
|
6992 | int main() { |
|
|
6993 | char *p; |
|
|
6994 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
6995 | exit (XSupportsLocale() ? 0 : 1); |
|
|
6996 | else |
|
|
6997 | exit (1); |
|
|
6998 | } |
|
|
6999 | |
|
|
7000 | _ACEOF |
|
|
7001 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7002 | rxvt_cv_func_xlocale=yes |
|
|
7003 | else |
|
|
7004 | rxvt_cv_func_xlocale=no |
|
|
7005 | fi |
|
|
7006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7007 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7008 | fi |
|
|
7009 | |
|
|
7010 | fi |
|
|
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
7012 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
7013 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
7014 | |
|
|
7015 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
7016 | |
|
|
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
7018 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
7019 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
7020 | $as_echo_n "(cached) " >&6 |
|
|
7021 | else |
|
|
7022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7023 | /* end confdefs.h. */ |
|
|
7024 | |
|
|
7025 | #include <X11/Xlib.h> |
|
|
7026 | |
|
|
7027 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
7028 | |
|
|
7029 | void f() { |
|
|
7030 | XIMCallback cb; |
|
|
7031 | cb.callback = im_destroy_cb; |
|
|
7032 | } |
|
|
7033 | |
|
|
7034 | _ACEOF |
|
|
7035 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
7036 | rxvt_cv_broken_ximcb=yes |
|
|
7037 | else |
|
|
7038 | rxvt_cv_broken_ximcb=no |
|
|
7039 | fi |
|
|
7040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7041 | fi |
|
|
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
7043 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
7044 | |
|
|
7045 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
7046 | |
|
|
7047 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
7048 | |
|
|
7049 | fi |
|
|
7050 | fi |
|
|
7051 | fi |
|
|
7052 | |
|
|
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
7054 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
7055 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
7056 | $as_echo_n "(cached) " >&6 |
|
|
7057 | else |
|
|
7058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7059 | /* end confdefs.h. */ |
|
|
7060 | #define X_LOCALE 1 |
|
|
7061 | #include <X11/Xlocale.h> |
|
|
7062 | int |
|
|
7063 | main () |
|
|
7064 | { |
|
|
7065 | setlocale(LC_CTYPE, ""); |
|
|
7066 | ; |
|
|
7067 | return 0; |
|
|
7068 | } |
|
|
7069 | _ACEOF |
|
|
7070 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7071 | rxvt_cv_func_xsetlocale=yes |
|
|
7072 | else |
|
|
7073 | rxvt_cv_func_xsetlocale=no |
|
|
7074 | fi |
|
|
7075 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7076 | conftest$ac_exeext conftest.$ac_ext |
|
|
7077 | fi |
|
|
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7079 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7080 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7081 | |
|
|
7082 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7083 | |
|
|
7084 | fi |
|
|
7085 | LIBS=$save_LIBS |
|
|
7086 | CFLAGS=$save_CFLAGS |
|
|
7087 | |
|
|
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7089 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7090 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7091 | $as_echo_n "(cached) " >&6 |
|
|
7092 | else |
|
|
7093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7094 | /* end confdefs.h. */ |
|
|
7095 | #include <langinfo.h> |
|
|
7096 | int |
|
|
7097 | main () |
|
|
7098 | { |
|
|
7099 | nl_langinfo(CODESET); |
|
|
7100 | ; |
|
|
7101 | return 0; |
|
|
7102 | } |
|
|
7103 | _ACEOF |
|
|
7104 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7105 | rxvt_cv_func_nl_langinfo=yes |
|
|
7106 | else |
|
|
7107 | rxvt_cv_func_nl_langinfo=no |
|
|
7108 | fi |
|
|
7109 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7110 | conftest$ac_exeext conftest.$ac_ext |
|
|
7111 | fi |
|
|
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7113 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7114 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7115 | |
|
|
7116 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7117 | |
|
|
7118 | fi |
|
|
7119 | |
|
|
7120 | |
|
|
7121 | case $host in |
|
|
7122 | *-*-solaris*) |
|
|
7123 | |
|
|
7124 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7125 | |
|
|
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7127 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7128 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7129 | $as_echo_n "(cached) " >&6 |
|
|
7130 | else |
|
|
7131 | ac_func_search_save_LIBS=$LIBS |
|
|
7132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7133 | /* end confdefs.h. */ |
|
|
7134 | |
|
|
7135 | /* Override any GCC internal prototype to avoid an error. |
|
|
7136 | Use char because int might match the return type of a GCC |
|
|
7137 | builtin and then its argument prototype would still apply. */ |
|
|
7138 | #ifdef __cplusplus |
|
|
7139 | extern "C" |
|
|
7140 | #endif |
|
|
7141 | char sendmsg (); |
|
|
7142 | int |
|
|
7143 | main () |
|
|
7144 | { |
|
|
7145 | return sendmsg (); |
|
|
7146 | ; |
|
|
7147 | return 0; |
|
|
7148 | } |
|
|
7149 | _ACEOF |
|
|
7150 | for ac_lib in '' socket; do |
|
|
7151 | if test -z "$ac_lib"; then |
|
|
7152 | ac_res="none required" |
|
|
7153 | else |
7415 | else |
7154 | ac_res=-l$ac_lib |
|
|
7155 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7156 | fi |
|
|
7157 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7158 | ac_cv_search_sendmsg=$ac_res |
|
|
7159 | fi |
|
|
7160 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7161 | conftest$ac_exeext |
|
|
7162 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7163 | break |
|
|
7164 | fi |
|
|
7165 | done |
|
|
7166 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7167 | |
|
|
7168 | else |
|
|
7169 | ac_cv_search_sendmsg=no |
|
|
7170 | fi |
|
|
7171 | rm conftest.$ac_ext |
|
|
7172 | LIBS=$ac_func_search_save_LIBS |
|
|
7173 | fi |
|
|
7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7175 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7176 | ac_res=$ac_cv_search_sendmsg |
|
|
7177 | if test "$ac_res" != no; then : |
|
|
7178 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7179 | |
|
|
7180 | fi |
|
|
7181 | |
|
|
7182 | ;; |
|
|
7183 | esac |
|
|
7184 | |
|
|
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7186 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7187 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7188 | $as_echo_n "(cached) " >&6 |
|
|
7189 | else |
|
|
7190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7191 | /* end confdefs.h. */ |
|
|
7192 | |
|
|
7193 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7194 | #include <sys/types.h> |
|
|
7195 | #include <sys/socket.h> |
|
|
7196 | #include <sys/uio.h> |
|
|
7197 | |
|
|
7198 | int |
|
|
7199 | main () |
|
|
7200 | { |
|
|
7201 | |
|
|
7202 | { |
|
|
7203 | msghdr msg; |
|
|
7204 | iovec iov; |
|
|
7205 | char buf [100]; |
|
|
7206 | char data = 0; |
|
|
7207 | |
|
|
7208 | iov.iov_base = &data; |
|
|
7209 | iov.iov_len = 1; |
|
|
7210 | |
|
|
7211 | msg.msg_iov = &iov; |
|
|
7212 | msg.msg_iovlen = 1; |
|
|
7213 | msg.msg_control = buf; |
|
|
7214 | msg.msg_controllen = sizeof buf; |
|
|
7215 | |
|
|
7216 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7217 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7218 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7219 | cmsg->cmsg_len = 100; |
|
|
7220 | |
|
|
7221 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7222 | |
|
|
7223 | return sendmsg (3, &msg, 0); |
|
|
7224 | } |
|
|
7225 | |
|
|
7226 | ; |
|
|
7227 | return 0; |
|
|
7228 | } |
|
|
7229 | _ACEOF |
|
|
7230 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7231 | pt_cv_can_pass_fds=yes |
|
|
7232 | else |
|
|
7233 | pt_cv_can_pass_fds=no |
|
|
7234 | fi |
|
|
7235 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7236 | conftest$ac_exeext conftest.$ac_ext |
|
|
7237 | fi |
|
|
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7239 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7240 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7241 | |
|
|
7242 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7243 | |
|
|
7244 | else |
|
|
7245 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7246 | fi |
|
|
7247 | |
|
|
7248 | |
|
|
7249 | |
|
|
7250 | for ac_header in \ |
|
|
7251 | pty.h \ |
|
|
7252 | util.h \ |
|
|
7253 | libutil.h \ |
|
|
7254 | sys/ioctl.h \ |
|
|
7255 | stropts.h \ |
|
|
7256 | |
|
|
7257 | do : |
|
|
7258 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7259 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7260 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7261 | cat >>confdefs.h <<_ACEOF |
|
|
7262 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7263 | _ACEOF |
|
|
7264 | |
|
|
7265 | fi |
|
|
7266 | |
|
|
7267 | done |
|
|
7268 | |
|
|
7269 | |
|
|
7270 | for ac_func in \ |
|
|
7271 | revoke \ |
|
|
7272 | _getpty \ |
|
|
7273 | getpt \ |
|
|
7274 | posix_openpt \ |
|
|
7275 | isastream \ |
|
|
7276 | setuid \ |
|
|
7277 | seteuid \ |
|
|
7278 | setreuid \ |
|
|
7279 | setresuid \ |
|
|
7280 | |
|
|
7281 | do : |
|
|
7282 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7283 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7284 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7285 | cat >>confdefs.h <<_ACEOF |
|
|
7286 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7287 | _ACEOF |
|
|
7288 | |
|
|
7289 | fi |
|
|
7290 | done |
|
|
7291 | |
|
|
7292 | |
|
|
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7294 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7296 | /* end confdefs.h. */ |
|
|
7297 | #include <stdlib.h> |
|
|
7298 | int |
|
|
7299 | main () |
|
|
7300 | { |
|
|
7301 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7302 | ; |
|
|
7303 | return 0; |
|
|
7304 | } |
|
|
7305 | _ACEOF |
|
|
7306 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7307 | unix98_pty=yes |
|
|
7308 | |
|
|
7309 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7310 | |
|
|
7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7312 | $as_echo "yes" >&6; } |
|
|
7313 | else |
|
|
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7315 | $as_echo "no" >&6; } |
|
|
7316 | fi |
|
|
7317 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7318 | conftest$ac_exeext conftest.$ac_ext |
|
|
7319 | |
|
|
7320 | if test -z "$unix98_pty"; then |
|
|
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7322 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7323 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7324 | $as_echo_n "(cached) " >&6 |
|
|
7325 | else |
|
|
7326 | ac_func_search_save_LIBS=$LIBS |
|
|
7327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7328 | /* end confdefs.h. */ |
|
|
7329 | |
|
|
7330 | /* Override any GCC internal prototype to avoid an error. |
|
|
7331 | Use char because int might match the return type of a GCC |
|
|
7332 | builtin and then its argument prototype would still apply. */ |
|
|
7333 | #ifdef __cplusplus |
|
|
7334 | extern "C" |
|
|
7335 | #endif |
|
|
7336 | char openpty (); |
|
|
7337 | int |
|
|
7338 | main () |
|
|
7339 | { |
|
|
7340 | return openpty (); |
|
|
7341 | ; |
|
|
7342 | return 0; |
|
|
7343 | } |
|
|
7344 | _ACEOF |
|
|
7345 | for ac_lib in '' util; do |
|
|
7346 | if test -z "$ac_lib"; then |
|
|
7347 | ac_res="none required" |
|
|
7348 | else |
|
|
7349 | ac_res=-l$ac_lib |
|
|
7350 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7351 | fi |
|
|
7352 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7353 | ac_cv_search_openpty=$ac_res |
|
|
7354 | fi |
|
|
7355 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7356 | conftest$ac_exeext |
|
|
7357 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7358 | break |
|
|
7359 | fi |
|
|
7360 | done |
|
|
7361 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7362 | |
|
|
7363 | else |
|
|
7364 | ac_cv_search_openpty=no |
|
|
7365 | fi |
|
|
7366 | rm conftest.$ac_ext |
|
|
7367 | LIBS=$ac_func_search_save_LIBS |
|
|
7368 | fi |
|
|
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7370 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7371 | ac_res=$ac_cv_search_openpty |
|
|
7372 | if test "$ac_res" != no; then : |
|
|
7373 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7374 | |
|
|
7375 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7376 | |
|
|
7377 | fi |
|
|
7378 | |
|
|
7379 | fi |
|
|
7380 | |
|
|
7381 | |
|
|
7382 | |
|
|
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7384 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7385 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7386 | $as_echo_n "(cached) " >&6 |
|
|
7387 | else |
|
|
7388 | if test "$cross_compiling" = yes; then : |
|
|
7389 | pt_cv_tty_group=no |
|
|
7390 | else |
|
|
7391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7392 | /* end confdefs.h. */ |
|
|
7393 | |
|
|
7394 | #include <sys/types.h> |
|
|
7395 | #include <sys/stat.h> |
|
|
7396 | #include <unistd.h> |
|
|
7397 | #include <grp.h> |
|
|
7398 | |
|
|
7399 | int main() |
|
|
7400 | { |
|
|
7401 | struct stat st; |
|
|
7402 | struct group *gr; |
|
|
7403 | char *tty; |
|
|
7404 | gr = getgrnam("tty"); |
|
|
7405 | tty = ttyname(0); |
|
|
7406 | if (gr != 0 |
|
|
7407 | && tty != 0 |
|
|
7408 | && (stat(tty, &st)) == 0 |
|
|
7409 | && st.st_gid == gr->gr_gid) |
|
|
7410 | return 0; |
|
|
7411 | else |
|
|
7412 | return 1; |
|
|
7413 | } |
|
|
7414 | _ACEOF |
|
|
7415 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7416 | pt_cv_tty_group=yes |
|
|
7417 | else |
|
|
7418 | pt_cv_tty_group=no |
|
|
7419 | fi |
|
|
7420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7421 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7422 | fi |
|
|
7423 | |
|
|
7424 | fi |
|
|
7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7426 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7427 | if test x$pt_cv_tty_group = xyes; then |
|
|
7428 | |
|
|
7429 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7430 | |
|
|
7431 | fi |
|
|
7432 | |
|
|
7433 | if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then |
|
|
7434 | rxvt_have_xrender=no |
7416 | rxvt_have_xrender=no |
|
|
7417 | fi |
|
|
7418 | |
|
|
7419 | |
|
|
7420 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
|
|
7421 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
|
|
7422 | |
|
|
7423 | else |
|
|
7424 | rxvt_have_xrender=no |
|
|
7425 | fi |
|
|
7426 | |
|
|
7427 | LIBS="$save_LIBS" |
|
|
7428 | fi |
|
|
7429 | fi |
|
|
7430 | |
|
|
7431 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7435 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7432 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7436 | set dummy pkg-config; ac_word=$2 |
7433 | set dummy pkg-config; ac_word=$2 |
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7438 | $as_echo_n "checking for $ac_word... " >&6; } |
7435 | $as_echo_n "checking for $ac_word... " >&6; } |
7439 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7436 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7472 | $as_echo "no" >&6; } |
7469 | $as_echo "no" >&6; } |
7473 | fi |
7470 | fi |
7474 | |
7471 | |
7475 | |
7472 | |
7476 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7473 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7477 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
7474 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7478 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
7475 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7479 | rxvt_have_xrender=yes |
7476 | else |
|
|
7477 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7478 | set dummy xft-config; ac_word=$2 |
|
|
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7480 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7481 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7482 | $as_echo_n "(cached) " >&6 |
|
|
7483 | else |
|
|
7484 | case $XFT_CONFIG in |
|
|
7485 | [\\/]* | ?:[\\/]*) |
|
|
7486 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7487 | ;; |
|
|
7488 | *) |
|
|
7489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7490 | for as_dir in $PATH |
|
|
7491 | do |
|
|
7492 | IFS=$as_save_IFS |
|
|
7493 | test -z "$as_dir" && as_dir=. |
|
|
7494 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7496 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7498 | break 2 |
|
|
7499 | fi |
|
|
7500 | done |
|
|
7501 | done |
|
|
7502 | IFS=$as_save_IFS |
7480 | |
7503 | |
|
|
7504 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
7505 | ;; |
|
|
7506 | esac |
|
|
7507 | fi |
|
|
7508 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7509 | if test -n "$XFT_CONFIG"; then |
|
|
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
|
|
7511 | $as_echo "$XFT_CONFIG" >&6; } |
|
|
7512 | else |
|
|
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7514 | $as_echo "no" >&6; } |
|
|
7515 | fi |
|
|
7516 | |
|
|
7517 | |
|
|
7518 | if test $XFT_CONFIG != no; then |
|
|
7519 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7520 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7521 | fi |
|
|
7522 | fi |
|
|
7523 | |
|
|
7524 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7525 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7526 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7527 | fi |
|
|
7528 | |
7481 | save_LIBS="$LIBS" |
7529 | save_LIBS="$LIBS" |
7482 | LIBS="$LIBS $X_LIBS" |
7530 | LIBS="$LIBS $X_LIBS" |
|
|
7531 | for ac_header in X11/Xft/Xft.h |
|
|
7532 | do : |
7483 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
7533 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
7484 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
7534 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7535 | cat >>confdefs.h <<_ACEOF |
|
|
7536 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7537 | _ACEOF |
7485 | |
7538 | |
7486 | else |
7539 | else |
7487 | rxvt_have_xrender=no |
7540 | support_xft=no |
7488 | fi |
7541 | fi |
7489 | |
7542 | |
|
|
7543 | done |
7490 | |
7544 | |
7491 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
7492 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
7546 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
7493 | |
7547 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7548 | $as_echo_n "(cached) " >&6 |
7494 | else |
7549 | else |
7495 | rxvt_have_xrender=no |
7550 | ac_check_lib_save_LIBS=$LIBS |
7496 | fi |
7551 | LIBS="-lXft $LIBS" |
|
|
7552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7553 | /* end confdefs.h. */ |
7497 | |
7554 | |
|
|
7555 | /* Override any GCC internal prototype to avoid an error. |
|
|
7556 | Use char because int might match the return type of a GCC |
|
|
7557 | builtin and then its argument prototype would still apply. */ |
|
|
7558 | #ifdef __cplusplus |
|
|
7559 | extern "C" |
|
|
7560 | #endif |
|
|
7561 | char XftDrawString32 (); |
|
|
7562 | int |
|
|
7563 | main () |
|
|
7564 | { |
|
|
7565 | return XftDrawString32 (); |
|
|
7566 | ; |
|
|
7567 | return 0; |
|
|
7568 | } |
|
|
7569 | _ACEOF |
|
|
7570 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7571 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7572 | else |
|
|
7573 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7574 | fi |
|
|
7575 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7576 | conftest$ac_exeext conftest.$ac_ext |
|
|
7577 | LIBS=$ac_check_lib_save_LIBS |
|
|
7578 | fi |
|
|
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7580 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7581 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7582 | : |
|
|
7583 | else |
|
|
7584 | support_xft=no |
|
|
7585 | fi |
|
|
7586 | |
|
|
7587 | for ac_header in fontconfig/fontconfig.h |
|
|
7588 | do : |
|
|
7589 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7590 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7591 | cat >>confdefs.h <<_ACEOF |
|
|
7592 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7593 | _ACEOF |
|
|
7594 | |
|
|
7595 | else |
|
|
7596 | support_xft=no |
|
|
7597 | fi |
|
|
7598 | |
|
|
7599 | done |
|
|
7600 | |
|
|
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7602 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7603 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7604 | $as_echo_n "(cached) " >&6 |
|
|
7605 | else |
|
|
7606 | ac_check_lib_save_LIBS=$LIBS |
|
|
7607 | LIBS="-lfontconfig $LIBS" |
|
|
7608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7609 | /* end confdefs.h. */ |
|
|
7610 | |
|
|
7611 | /* Override any GCC internal prototype to avoid an error. |
|
|
7612 | Use char because int might match the return type of a GCC |
|
|
7613 | builtin and then its argument prototype would still apply. */ |
|
|
7614 | #ifdef __cplusplus |
|
|
7615 | extern "C" |
|
|
7616 | #endif |
|
|
7617 | char FcPatternGet (); |
|
|
7618 | int |
|
|
7619 | main () |
|
|
7620 | { |
|
|
7621 | return FcPatternGet (); |
|
|
7622 | ; |
|
|
7623 | return 0; |
|
|
7624 | } |
|
|
7625 | _ACEOF |
|
|
7626 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7627 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7628 | else |
|
|
7629 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7630 | fi |
|
|
7631 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7632 | conftest$ac_exeext conftest.$ac_ext |
|
|
7633 | LIBS=$ac_check_lib_save_LIBS |
|
|
7634 | fi |
|
|
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7636 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7637 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7638 | : |
|
|
7639 | else |
|
|
7640 | support_xft=no |
|
|
7641 | fi |
|
|
7642 | |
7498 | LIBS="$save_LIBS" |
7643 | LIBS="$save_LIBS" |
7499 | fi |
|
|
7500 | fi |
|
|
7501 | |
7644 | |
|
|
7645 | if test x$support_xft = xyes; then |
|
|
7646 | |
|
|
7647 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7648 | |
|
|
7649 | fi |
|
|
7650 | fi |
|
|
7651 | |
|
|
7652 | image_lib=none |
|
|
7653 | |
|
|
7654 | PIXBUF_CFLAGS= |
|
|
7655 | PIXBUF_LIBS= |
|
|
7656 | |
7502 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7657 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7658 | LIBS="$LIBS -lm" |
|
|
7659 | |
|
|
7660 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7661 | |
|
|
7662 | |
|
|
7663 | if test x$support_inheritpixmap = xyes; then |
|
|
7664 | |
|
|
7665 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7666 | |
|
|
7667 | fi |
|
|
7668 | |
|
|
7669 | if test x$support_pixbuf = xyes; then |
|
|
7670 | support_pixbuf=no |
7503 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7671 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7504 | set dummy pkg-config; ac_word=$2 |
7672 | set dummy pkg-config; ac_word=$2 |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7506 | $as_echo_n "checking for $ac_word... " >&6; } |
7674 | $as_echo_n "checking for $ac_word... " >&6; } |
7507 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7675 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7508 | $as_echo_n "(cached) " >&6 |
7676 | $as_echo_n "(cached) " >&6 |
… | |
… | |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7540 | $as_echo "no" >&6; } |
7708 | $as_echo "no" >&6; } |
7541 | fi |
7709 | fi |
7542 | |
7710 | |
7543 | |
7711 | |
|
|
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
|
|
7713 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
7544 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7714 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
7545 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7715 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
7546 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7716 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
7547 | else |
7717 | support_pixbuf=yes |
7548 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7549 | set dummy xft-config; ac_word=$2 |
|
|
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7551 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7552 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7553 | $as_echo_n "(cached) " >&6 |
|
|
7554 | else |
|
|
7555 | case $XFT_CONFIG in |
|
|
7556 | [\\/]* | ?:[\\/]*) |
|
|
7557 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7558 | ;; |
|
|
7559 | *) |
|
|
7560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7561 | for as_dir in $PATH |
|
|
7562 | do |
|
|
7563 | IFS=$as_save_IFS |
|
|
7564 | test -z "$as_dir" && as_dir=. |
|
|
7565 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7567 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7569 | break 2 |
|
|
7570 | fi |
7718 | fi |
7571 | done |
|
|
7572 | done |
|
|
7573 | IFS=$as_save_IFS |
|
|
7574 | |
7719 | |
7575 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
7720 | if test x$support_pixbuf = xyes; then |
7576 | ;; |
|
|
7577 | esac |
|
|
7578 | fi |
|
|
7579 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7580 | if test -n "$XFT_CONFIG"; then |
|
|
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7582 | $as_echo "$XFT_CONFIG" >&6; } |
7722 | $as_echo "ok" >&6; } |
7583 | else |
7723 | image_lib=gdk-pixbuf |
|
|
7724 | |
|
|
7725 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
|
|
7726 | |
|
|
7727 | |
|
|
7728 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
7729 | |
|
|
7730 | else |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7585 | $as_echo "no" >&6; } |
7732 | $as_echo "no" >&6; } |
7586 | fi |
|
|
7587 | |
|
|
7588 | |
|
|
7589 | if test $XFT_CONFIG != no; then |
|
|
7590 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7591 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7592 | fi |
7733 | fi |
7593 | fi |
7734 | fi |
7594 | |
|
|
7595 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7596 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7597 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7598 | fi |
|
|
7599 | |
|
|
7600 | save_LIBS="$LIBS" |
|
|
7601 | LIBS="$LIBS $X_LIBS" |
|
|
7602 | for ac_header in X11/Xft/Xft.h |
|
|
7603 | do : |
|
|
7604 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
|
|
7605 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7606 | cat >>confdefs.h <<_ACEOF |
|
|
7607 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7608 | _ACEOF |
|
|
7609 | |
|
|
7610 | else |
|
|
7611 | support_xft=no |
|
|
7612 | fi |
7735 | fi |
7613 | |
7736 | |
7614 | done |
|
|
7615 | |
7737 | |
7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
|
|
7617 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
|
|
7618 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7619 | $as_echo_n "(cached) " >&6 |
|
|
7620 | else |
|
|
7621 | ac_check_lib_save_LIBS=$LIBS |
|
|
7622 | LIBS="-lXft $LIBS" |
|
|
7623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7624 | /* end confdefs.h. */ |
|
|
7625 | |
7738 | |
7626 | /* Override any GCC internal prototype to avoid an error. |
|
|
7627 | Use char because int might match the return type of a GCC |
|
|
7628 | builtin and then its argument prototype would still apply. */ |
|
|
7629 | #ifdef __cplusplus |
|
|
7630 | extern "C" |
|
|
7631 | #endif |
|
|
7632 | char XftDrawString32 (); |
|
|
7633 | int |
|
|
7634 | main () |
|
|
7635 | { |
|
|
7636 | return XftDrawString32 (); |
|
|
7637 | ; |
|
|
7638 | return 0; |
|
|
7639 | } |
|
|
7640 | _ACEOF |
|
|
7641 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7642 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7643 | else |
|
|
7644 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7645 | fi |
|
|
7646 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7647 | conftest$ac_exeext conftest.$ac_ext |
|
|
7648 | LIBS=$ac_check_lib_save_LIBS |
|
|
7649 | fi |
|
|
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7651 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7652 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7653 | : |
|
|
7654 | else |
|
|
7655 | support_xft=no |
|
|
7656 | fi |
|
|
7657 | |
7739 | |
7658 | for ac_header in fontconfig/fontconfig.h |
|
|
7659 | do : |
|
|
7660 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7661 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7662 | cat >>confdefs.h <<_ACEOF |
|
|
7663 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7664 | _ACEOF |
|
|
7665 | |
|
|
7666 | else |
|
|
7667 | support_xft=no |
|
|
7668 | fi |
|
|
7669 | |
|
|
7670 | done |
|
|
7671 | |
|
|
7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7673 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7674 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7675 | $as_echo_n "(cached) " >&6 |
|
|
7676 | else |
|
|
7677 | ac_check_lib_save_LIBS=$LIBS |
|
|
7678 | LIBS="-lfontconfig $LIBS" |
|
|
7679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7680 | /* end confdefs.h. */ |
|
|
7681 | |
|
|
7682 | /* Override any GCC internal prototype to avoid an error. |
|
|
7683 | Use char because int might match the return type of a GCC |
|
|
7684 | builtin and then its argument prototype would still apply. */ |
|
|
7685 | #ifdef __cplusplus |
|
|
7686 | extern "C" |
|
|
7687 | #endif |
|
|
7688 | char FcPatternGet (); |
|
|
7689 | int |
|
|
7690 | main () |
|
|
7691 | { |
|
|
7692 | return FcPatternGet (); |
|
|
7693 | ; |
|
|
7694 | return 0; |
|
|
7695 | } |
|
|
7696 | _ACEOF |
|
|
7697 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7698 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7699 | else |
|
|
7700 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7701 | fi |
|
|
7702 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7703 | conftest$ac_exeext conftest.$ac_ext |
|
|
7704 | LIBS=$ac_check_lib_save_LIBS |
|
|
7705 | fi |
|
|
7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7707 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7708 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7709 | : |
|
|
7710 | else |
|
|
7711 | support_xft=no |
|
|
7712 | fi |
|
|
7713 | |
|
|
7714 | LIBS="$save_LIBS" |
|
|
7715 | |
|
|
7716 | if test x$support_xft = xyes; then |
|
|
7717 | |
|
|
7718 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7719 | |
|
|
7720 | fi |
|
|
7721 | fi |
|
|
7722 | if test x$support_styles = xyes; then |
7740 | if test x$support_styles = xyes; then |
7723 | |
7741 | |
7724 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7742 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7725 | |
7743 | |
7726 | fi |
7744 | fi |
… | |
… | |
7735 | |
7753 | |
7736 | fi |
7754 | fi |
7737 | if test x$support_fading = xyes; then |
7755 | if test x$support_fading = xyes; then |
7738 | |
7756 | |
7739 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7757 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7740 | |
|
|
7741 | fi |
|
|
7742 | if test x$support_inheritpixmap = xyes; then |
|
|
7743 | if test x$rxvt_have_xrender = xyes; then |
|
|
7744 | LIBS="$LIBS -lm" |
|
|
7745 | |
|
|
7746 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7747 | |
|
|
7748 | fi |
|
|
7749 | |
|
|
7750 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7751 | |
7758 | |
7752 | fi |
7759 | fi |
7753 | if test x$support_keepscrolling = xno; then |
7760 | if test x$support_keepscrolling = xno; then |
7754 | |
7761 | |
7755 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
7762 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |