… | |
… | |
659 | GREP |
659 | GREP |
660 | STARTUP_NOTIFICATION_LIBS |
660 | STARTUP_NOTIFICATION_LIBS |
661 | STARTUP_NOTIFICATION_CFLAGS |
661 | STARTUP_NOTIFICATION_CFLAGS |
662 | PIXBUF_LIBS |
662 | PIXBUF_LIBS |
663 | PIXBUF_CFLAGS |
663 | PIXBUF_CFLAGS |
|
|
664 | PTYTTY_LIBS |
|
|
665 | PTYTTY_CFLAGS |
664 | PKG_CONFIG |
666 | PKG_CONFIG |
665 | X_EXTRA_LIBS |
667 | X_EXTRA_LIBS |
666 | X_LIBS |
668 | X_LIBS |
667 | X_PRE_LIBS |
669 | X_PRE_LIBS |
668 | X_CFLAGS |
670 | X_CFLAGS |
… | |
… | |
773 | enable_text_blink |
775 | enable_text_blink |
774 | enable_pointer_blank |
776 | enable_pointer_blank |
775 | with_term |
777 | with_term |
776 | with_terminfo |
778 | with_terminfo |
777 | with_x |
779 | with_x |
778 | enable_utmp |
|
|
779 | enable_wtmp |
|
|
780 | enable_lastlog |
|
|
781 | ' |
780 | ' |
782 | ac_precious_vars='build_alias |
781 | ac_precious_vars='build_alias |
783 | host_alias |
782 | host_alias |
784 | target_alias |
783 | target_alias |
785 | CC |
784 | CC |
… | |
… | |
1447 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1446 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1448 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1447 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1449 | --enable-smart-resize enable smart growth/shrink behaviour |
1448 | --enable-smart-resize enable smart growth/shrink behaviour |
1450 | --enable-text-blink enable blinking text |
1449 | --enable-text-blink enable blinking text |
1451 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1450 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1452 | --enable-utmp enable utmp (utmpx) support |
|
|
1453 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1454 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
1455 | |
1451 | |
1456 | Optional Packages: |
1452 | Optional Packages: |
1457 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1453 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1458 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1454 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1459 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1455 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
… | |
… | |
2040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2041 | printf "%s\n" "$ac_res" >&6; } |
2037 | printf "%s\n" "$ac_res" >&6; } |
2042 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2038 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2043 | |
2039 | |
2044 | } # ac_fn_c_find_uintX_t |
2040 | } # ac_fn_c_find_uintX_t |
2045 | |
|
|
2046 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
2047 | # ------------------------------------------------------ |
|
|
2048 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
2049 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
2050 | ac_fn_cxx_check_member () |
|
|
2051 | { |
|
|
2052 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
2053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
2054 | printf %s "checking for $2.$3... " >&6; } |
|
|
2055 | if eval test \${$4+y} |
|
|
2056 | then : |
|
|
2057 | printf %s "(cached) " >&6 |
|
|
2058 | else $as_nop |
|
|
2059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2060 | /* end confdefs.h. */ |
|
|
2061 | $5 |
|
|
2062 | int |
|
|
2063 | main (void) |
|
|
2064 | { |
|
|
2065 | static $2 ac_aggr; |
|
|
2066 | if (ac_aggr.$3) |
|
|
2067 | return 0; |
|
|
2068 | ; |
|
|
2069 | return 0; |
|
|
2070 | } |
|
|
2071 | _ACEOF |
|
|
2072 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2073 | then : |
|
|
2074 | eval "$4=yes" |
|
|
2075 | else $as_nop |
|
|
2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2077 | /* end confdefs.h. */ |
|
|
2078 | $5 |
|
|
2079 | int |
|
|
2080 | main (void) |
|
|
2081 | { |
|
|
2082 | static $2 ac_aggr; |
|
|
2083 | if (sizeof ac_aggr.$3) |
|
|
2084 | return 0; |
|
|
2085 | ; |
|
|
2086 | return 0; |
|
|
2087 | } |
|
|
2088 | _ACEOF |
|
|
2089 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2090 | then : |
|
|
2091 | eval "$4=yes" |
|
|
2092 | else $as_nop |
|
|
2093 | eval "$4=no" |
|
|
2094 | fi |
|
|
2095 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2096 | fi |
|
|
2097 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2098 | fi |
|
|
2099 | eval ac_res=\$$4 |
|
|
2100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
2101 | printf "%s\n" "$ac_res" >&6; } |
|
|
2102 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2103 | |
|
|
2104 | } # ac_fn_cxx_check_member |
|
|
2105 | |
2041 | |
2106 | # ac_fn_cxx_try_run LINENO |
2042 | # ac_fn_cxx_try_run LINENO |
2107 | # ------------------------ |
2043 | # ------------------------ |
2108 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
2044 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
2109 | # executables *can* be run. |
2045 | # executables *can* be run. |
… | |
… | |
6997 | else |
6933 | else |
6998 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
6934 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
6999 | fi |
6935 | fi |
7000 | |
6936 | |
7001 | |
6937 | |
|
|
6938 | |
|
|
6939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty" >&5 |
|
|
6940 | printf %s "checking for libptytty... " >&6; } |
|
|
6941 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then |
|
|
6942 | PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`" |
|
|
6943 | PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`" |
|
|
6944 | |
|
|
6945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6946 | printf "%s\n" "ok" >&6; } |
|
|
6947 | : |
|
|
6948 | else |
|
|
6949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6950 | printf "%s\n" "no" >&6; } |
|
|
6951 | |
|
|
6952 | as_fn_error $? "unable to find libptytty" "$LINENO" 5 |
|
|
6953 | |
|
|
6954 | fi |
|
|
6955 | |
|
|
6956 | |
|
|
6957 | |
|
|
6958 | |
|
|
6959 | |
7002 | image_lib=none |
6960 | image_lib=none |
7003 | |
6961 | |
7004 | PIXBUF_CFLAGS= |
6962 | PIXBUF_CFLAGS= |
7005 | PIXBUF_LIBS= |
6963 | PIXBUF_LIBS= |
7006 | |
6964 | |
… | |
… | |
7432 | |
7390 | |
7433 | fi |
7391 | fi |
7434 | |
7392 | |
7435 | |
7393 | |
7436 | |
7394 | |
7437 | support_utmp=yes |
|
|
7438 | support_wtmp=yes |
|
|
7439 | support_lastlog=yes |
|
|
7440 | |
|
|
7441 | # Check whether --enable-utmp was given. |
|
|
7442 | if test ${enable_utmp+y} |
|
|
7443 | then : |
|
|
7444 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7445 | support_utmp=$enableval |
|
|
7446 | fi |
|
|
7447 | fi |
|
|
7448 | |
|
|
7449 | |
|
|
7450 | # Check whether --enable-wtmp was given. |
|
|
7451 | if test ${enable_wtmp+y} |
|
|
7452 | then : |
|
|
7453 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7454 | support_wtmp=$enableval |
|
|
7455 | fi |
|
|
7456 | fi |
|
|
7457 | |
|
|
7458 | |
|
|
7459 | # Check whether --enable-lastlog was given. |
|
|
7460 | if test ${enable_lastlog+y} |
|
|
7461 | then : |
|
|
7462 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7463 | support_lastlog=$enableval |
|
|
7464 | fi |
|
|
7465 | fi |
|
|
7466 | |
|
|
7467 | |
|
|
7468 | if test x$support_utmp = xyes; then |
|
|
7469 | |
|
|
7470 | printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
7471 | |
|
|
7472 | fi |
|
|
7473 | if test x$support_wtmp = xyes; then |
|
|
7474 | |
|
|
7475 | printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
7476 | |
|
|
7477 | fi |
|
|
7478 | if test x$support_lastlog = xyes; then |
|
|
7479 | |
|
|
7480 | printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
7481 | |
|
|
7482 | fi |
|
|
7483 | |
|
|
7484 | ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp" |
|
|
7485 | if test "x$ac_cv_func_updwtmp" = xyes |
|
|
7486 | then : |
|
|
7487 | printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h |
|
|
7488 | |
|
|
7489 | fi |
|
|
7490 | ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx" |
|
|
7491 | if test "x$ac_cv_func_updwtmpx" = xyes |
|
|
7492 | then : |
|
|
7493 | printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h |
|
|
7494 | |
|
|
7495 | fi |
|
|
7496 | ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx" |
|
|
7497 | if test "x$ac_cv_func_updlastlogx" = xyes |
|
|
7498 | then : |
|
|
7499 | printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h |
|
|
7500 | |
|
|
7501 | fi |
|
|
7502 | |
|
|
7503 | |
|
|
7504 | ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
7505 | if test "x$ac_cv_header_lastlog_h" = xyes |
|
|
7506 | then : |
|
|
7507 | printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h |
|
|
7508 | |
|
|
7509 | fi |
|
|
7510 | |
|
|
7511 | |
|
|
7512 | case $host in |
|
|
7513 | *-*-solaris*) |
|
|
7514 | |
|
|
7515 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
7516 | |
|
|
7517 | ;; |
|
|
7518 | esac |
|
|
7519 | |
|
|
7520 | |
|
|
7521 | for ac_header in utmp.h |
|
|
7522 | do : |
|
|
7523 | ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
7524 | if test "x$ac_cv_header_utmp_h" = xyes |
|
|
7525 | then : |
|
|
7526 | printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h |
|
|
7527 | |
|
|
7528 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
7529 | #include <sys/types.h> |
|
|
7530 | #include <utmp.h> |
|
|
7531 | |
|
|
7532 | " |
|
|
7533 | if test "x$ac_cv_type_struct_utmp" = xyes |
|
|
7534 | then : |
|
|
7535 | |
|
|
7536 | printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h |
|
|
7537 | |
|
|
7538 | |
|
|
7539 | fi |
|
|
7540 | |
|
|
7541 | |
|
|
7542 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
7543 | #include <sys/types.h> |
|
|
7544 | #include <utmp.h> |
|
|
7545 | |
|
|
7546 | " |
|
|
7547 | if test "x$ac_cv_member_struct_utmp_ut_host" = xyes |
|
|
7548 | then : |
|
|
7549 | |
|
|
7550 | printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
7551 | |
|
|
7552 | fi |
|
|
7553 | |
|
|
7554 | |
|
|
7555 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
7556 | #include <sys/types.h> |
|
|
7557 | #include <utmp.h> |
|
|
7558 | |
|
|
7559 | " |
|
|
7560 | if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes |
|
|
7561 | then : |
|
|
7562 | |
|
|
7563 | printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
7564 | |
|
|
7565 | fi |
|
|
7566 | |
|
|
7567 | |
|
|
7568 | fi |
|
|
7569 | |
|
|
7570 | done |
|
|
7571 | |
|
|
7572 | for ac_header in utmpx.h |
|
|
7573 | do : |
|
|
7574 | ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
7575 | if test "x$ac_cv_header_utmpx_h" = xyes |
|
|
7576 | then : |
|
|
7577 | printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h |
|
|
7578 | |
|
|
7579 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
7580 | #include <sys/types.h> |
|
|
7581 | #include <utmpx.h> |
|
|
7582 | |
|
|
7583 | " |
|
|
7584 | if test "x$ac_cv_type_struct_utmpx" = xyes |
|
|
7585 | then : |
|
|
7586 | |
|
|
7587 | printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h |
|
|
7588 | |
|
|
7589 | |
|
|
7590 | fi |
|
|
7591 | |
|
|
7592 | |
|
|
7593 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
7594 | #include <sys/types.h> |
|
|
7595 | #include <utmpx.h> |
|
|
7596 | |
|
|
7597 | " |
|
|
7598 | if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes |
|
|
7599 | then : |
|
|
7600 | |
|
|
7601 | printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
7602 | |
|
|
7603 | fi |
|
|
7604 | |
|
|
7605 | |
|
|
7606 | fi |
|
|
7607 | |
|
|
7608 | done |
|
|
7609 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
7610 | #include <sys/types.h> |
|
|
7611 | #include <utmp.h> |
|
|
7612 | #ifdef HAVE_LASTLOG_H |
|
|
7613 | #include <lastlog.h> |
|
|
7614 | #endif |
|
|
7615 | |
|
|
7616 | " |
|
|
7617 | if test "x$ac_cv_type_struct_lastlog" = xyes |
|
|
7618 | then : |
|
|
7619 | |
|
|
7620 | printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h |
|
|
7621 | |
|
|
7622 | |
|
|
7623 | fi |
|
|
7624 | |
|
|
7625 | |
|
|
7626 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
7627 | #include <sys/types.h> |
|
|
7628 | #include <utmpx.h> |
|
|
7629 | #ifdef HAVE_LASTLOG_H |
|
|
7630 | #include <lastlog.h> |
|
|
7631 | #endif |
|
|
7632 | |
|
|
7633 | " |
|
|
7634 | if test "x$ac_cv_type_struct_lastlogx" = xyes |
|
|
7635 | then : |
|
|
7636 | |
|
|
7637 | printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h |
|
|
7638 | |
|
|
7639 | |
|
|
7640 | fi |
|
|
7641 | |
|
|
7642 | |
|
|
7643 | |
|
|
7644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
7645 | printf %s "checking for a fallback location of utmp... " >&6; } |
|
|
7646 | if test ${pt_cv_path_utmp+y} |
|
|
7647 | then : |
|
|
7648 | printf %s "(cached) " >&6 |
|
|
7649 | else $as_nop |
|
|
7650 | |
|
|
7651 | if test "$cross_compiling" != yes; then |
|
|
7652 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
7653 | if test -f "$file"; then |
|
|
7654 | pt_cv_path_utmp=$file |
|
|
7655 | break |
|
|
7656 | fi |
|
|
7657 | done |
|
|
7658 | fi |
|
|
7659 | fi |
|
|
7660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
7661 | printf "%s\n" "$pt_cv_path_utmp" >&6; } |
|
|
7662 | if test x$pt_cv_path_utmp != x; then |
|
|
7663 | |
|
|
7664 | printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h |
|
|
7665 | |
|
|
7666 | elif test "$cross_compiling" = yes; then |
|
|
7667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
7668 | printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
7669 | fi |
|
|
7670 | |
|
|
7671 | |
|
|
7672 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
7673 | printf %s "checking for a fallback location of wtmp... " >&6; } |
|
|
7674 | if test ${pt_cv_path_wtmp+y} |
|
|
7675 | then : |
|
|
7676 | printf %s "(cached) " >&6 |
|
|
7677 | else $as_nop |
|
|
7678 | |
|
|
7679 | if test "$cross_compiling" != yes; then |
|
|
7680 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
7681 | if test -f "$file"; then |
|
|
7682 | pt_cv_path_wtmp=$file |
|
|
7683 | break |
|
|
7684 | fi |
|
|
7685 | done |
|
|
7686 | fi |
|
|
7687 | fi |
|
|
7688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
7689 | printf "%s\n" "$pt_cv_path_wtmp" >&6; } |
|
|
7690 | if test x$pt_cv_path_wtmp != x; then |
|
|
7691 | |
|
|
7692 | printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h |
|
|
7693 | |
|
|
7694 | elif test "$cross_compiling" = yes; then |
|
|
7695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7696 | printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
7697 | fi |
|
|
7698 | |
|
|
7699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
7700 | printf %s "checking for a fallback location of wtmpx... " >&6; } |
|
|
7701 | if test ${pt_cv_path_wtmpx+y} |
|
|
7702 | then : |
|
|
7703 | printf %s "(cached) " >&6 |
|
|
7704 | else $as_nop |
|
|
7705 | |
|
|
7706 | if test "$cross_compiling" != yes; then |
|
|
7707 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
7708 | if test -f "$file"; then |
|
|
7709 | pt_cv_path_wtmpx=$file |
|
|
7710 | break |
|
|
7711 | fi |
|
|
7712 | done |
|
|
7713 | fi |
|
|
7714 | fi |
|
|
7715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
7716 | printf "%s\n" "$pt_cv_path_wtmpx" >&6; } |
|
|
7717 | if test x$pt_cv_path_wtmpx != x; then |
|
|
7718 | |
|
|
7719 | printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h |
|
|
7720 | |
|
|
7721 | elif test "$cross_compiling" = yes; then |
|
|
7722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7723 | printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
7724 | fi |
|
|
7725 | |
|
|
7726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
7727 | printf %s "checking for a fallback location of lastlog... " >&6; } |
|
|
7728 | if test ${pt_cv_path_lastlog+y} |
|
|
7729 | then : |
|
|
7730 | printf %s "(cached) " >&6 |
|
|
7731 | else $as_nop |
|
|
7732 | |
|
|
7733 | if test "$cross_compiling" != yes; then |
|
|
7734 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
7735 | if test -f "$file"; then |
|
|
7736 | pt_cv_path_lastlog=$file |
|
|
7737 | break |
|
|
7738 | fi |
|
|
7739 | done |
|
|
7740 | fi |
|
|
7741 | fi |
|
|
7742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
7743 | printf "%s\n" "$pt_cv_path_lastlog" >&6; } |
|
|
7744 | if test x$pt_cv_path_lastlog != x; then |
|
|
7745 | |
|
|
7746 | printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h |
|
|
7747 | |
|
|
7748 | elif test "$cross_compiling" = yes; then |
|
|
7749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7750 | printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
7751 | fi |
|
|
7752 | |
|
|
7753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
7754 | printf %s "checking for a fallback location of lastlogx... " >&6; } |
|
|
7755 | if test ${pt_cv_path_lastlogx+y} |
|
|
7756 | then : |
|
|
7757 | printf %s "(cached) " >&6 |
|
|
7758 | else $as_nop |
|
|
7759 | |
|
|
7760 | if test "$cross_compiling" != yes; then |
|
|
7761 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
7762 | if test -f "$file"; then |
|
|
7763 | pt_cv_path_lastlogx=$file |
|
|
7764 | break |
|
|
7765 | fi |
|
|
7766 | done |
|
|
7767 | fi |
|
|
7768 | fi |
|
|
7769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
7770 | printf "%s\n" "$pt_cv_path_lastlogx" >&6; } |
|
|
7771 | if test x$pt_cv_path_lastlogx != x; then |
|
|
7772 | |
|
|
7773 | printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h |
|
|
7774 | |
|
|
7775 | elif test "$cross_compiling" = yes; then |
|
|
7776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7777 | printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
7778 | fi |
|
|
7779 | |
|
|
7780 | |
|
|
7781 | |
|
|
7782 | |
7395 | |
7783 | save_LIBS=$LIBS |
7396 | save_LIBS=$LIBS |
7784 | save_CXXFLAGS=$CXXFLAGS |
7397 | save_CXXFLAGS=$CXXFLAGS |
7785 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7398 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7786 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7399 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
… | |
… | |
7930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
7543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
7931 | printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } |
7544 | printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } |
7932 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
7545 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
7933 | |
7546 | |
7934 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7547 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7935 | |
|
|
7936 | fi |
|
|
7937 | |
|
|
7938 | |
|
|
7939 | |
|
|
7940 | case $host in |
|
|
7941 | *-*-solaris*) |
|
|
7942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7943 | /* end confdefs.h. */ |
|
|
7944 | |
|
|
7945 | #if __STDC_VERSION__ >= 199901L |
|
|
7946 | error |
|
|
7947 | #endif |
|
|
7948 | |
|
|
7949 | int |
|
|
7950 | main (void) |
|
|
7951 | { |
|
|
7952 | |
|
|
7953 | ; |
|
|
7954 | return 0; |
|
|
7955 | } |
|
|
7956 | _ACEOF |
|
|
7957 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7958 | then : |
|
|
7959 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7960 | |
|
|
7961 | else $as_nop |
|
|
7962 | printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h |
|
|
7963 | |
|
|
7964 | fi |
|
|
7965 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7967 | printf %s "checking for library containing sendmsg... " >&6; } |
|
|
7968 | if test ${ac_cv_search_sendmsg+y} |
|
|
7969 | then : |
|
|
7970 | printf %s "(cached) " >&6 |
|
|
7971 | else $as_nop |
|
|
7972 | ac_func_search_save_LIBS=$LIBS |
|
|
7973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7974 | /* end confdefs.h. */ |
|
|
7975 | |
|
|
7976 | namespace conftest { |
|
|
7977 | extern "C" int sendmsg (); |
|
|
7978 | } |
|
|
7979 | int |
|
|
7980 | main (void) |
|
|
7981 | { |
|
|
7982 | return conftest::sendmsg (); |
|
|
7983 | ; |
|
|
7984 | return 0; |
|
|
7985 | } |
|
|
7986 | _ACEOF |
|
|
7987 | for ac_lib in '' socket |
|
|
7988 | do |
|
|
7989 | if test -z "$ac_lib"; then |
|
|
7990 | ac_res="none required" |
|
|
7991 | else |
|
|
7992 | ac_res=-l$ac_lib |
|
|
7993 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7994 | fi |
|
|
7995 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7996 | then : |
|
|
7997 | ac_cv_search_sendmsg=$ac_res |
|
|
7998 | fi |
|
|
7999 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8000 | conftest$ac_exeext |
|
|
8001 | if test ${ac_cv_search_sendmsg+y} |
|
|
8002 | then : |
|
|
8003 | break |
|
|
8004 | fi |
|
|
8005 | done |
|
|
8006 | if test ${ac_cv_search_sendmsg+y} |
|
|
8007 | then : |
|
|
8008 | |
|
|
8009 | else $as_nop |
|
|
8010 | ac_cv_search_sendmsg=no |
|
|
8011 | fi |
|
|
8012 | rm conftest.$ac_ext |
|
|
8013 | LIBS=$ac_func_search_save_LIBS |
|
|
8014 | fi |
|
|
8015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
8016 | printf "%s\n" "$ac_cv_search_sendmsg" >&6; } |
|
|
8017 | ac_res=$ac_cv_search_sendmsg |
|
|
8018 | if test "$ac_res" != no |
|
|
8019 | then : |
|
|
8020 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
8021 | |
|
|
8022 | fi |
|
|
8023 | |
|
|
8024 | ;; |
|
|
8025 | esac |
|
|
8026 | |
|
|
8027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
8028 | printf %s "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
8029 | if test ${pt_cv_can_pass_fds+y} |
|
|
8030 | then : |
|
|
8031 | printf %s "(cached) " >&6 |
|
|
8032 | else $as_nop |
|
|
8033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8034 | /* end confdefs.h. */ |
|
|
8035 | |
|
|
8036 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
8037 | #include <sys/types.h> |
|
|
8038 | #include <sys/socket.h> |
|
|
8039 | #include <sys/uio.h> |
|
|
8040 | |
|
|
8041 | int |
|
|
8042 | main (void) |
|
|
8043 | { |
|
|
8044 | |
|
|
8045 | { |
|
|
8046 | msghdr msg; |
|
|
8047 | iovec iov; |
|
|
8048 | char buf [100]; |
|
|
8049 | char data = 0; |
|
|
8050 | |
|
|
8051 | iov.iov_base = &data; |
|
|
8052 | iov.iov_len = 1; |
|
|
8053 | |
|
|
8054 | msg.msg_iov = &iov; |
|
|
8055 | msg.msg_iovlen = 1; |
|
|
8056 | msg.msg_control = buf; |
|
|
8057 | msg.msg_controllen = sizeof buf; |
|
|
8058 | |
|
|
8059 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
8060 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
8061 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
8062 | cmsg->cmsg_len = 100; |
|
|
8063 | |
|
|
8064 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
8065 | |
|
|
8066 | return sendmsg (3, &msg, 0); |
|
|
8067 | } |
|
|
8068 | |
|
|
8069 | ; |
|
|
8070 | return 0; |
|
|
8071 | } |
|
|
8072 | _ACEOF |
|
|
8073 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8074 | then : |
|
|
8075 | pt_cv_can_pass_fds=yes |
|
|
8076 | else $as_nop |
|
|
8077 | pt_cv_can_pass_fds=no |
|
|
8078 | fi |
|
|
8079 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8080 | conftest$ac_exeext conftest.$ac_ext |
|
|
8081 | fi |
|
|
8082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
8083 | printf "%s\n" "$pt_cv_can_pass_fds" >&6; } |
|
|
8084 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
8085 | |
|
|
8086 | printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
8087 | |
|
|
8088 | else |
|
|
8089 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
8090 | fi |
|
|
8091 | |
|
|
8092 | |
|
|
8093 | |
|
|
8094 | ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" |
|
|
8095 | if test "x$ac_cv_header_pty_h" = xyes |
|
|
8096 | then : |
|
|
8097 | printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h |
|
|
8098 | |
|
|
8099 | fi |
|
|
8100 | ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" |
|
|
8101 | if test "x$ac_cv_header_util_h" = xyes |
|
|
8102 | then : |
|
|
8103 | printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h |
|
|
8104 | |
|
|
8105 | fi |
|
|
8106 | ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
|
|
8107 | if test "x$ac_cv_header_libutil_h" = xyes |
|
|
8108 | then : |
|
|
8109 | printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h |
|
|
8110 | |
|
|
8111 | fi |
|
|
8112 | ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
|
|
8113 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
|
|
8114 | then : |
|
|
8115 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
|
|
8116 | |
|
|
8117 | fi |
|
|
8118 | ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
|
|
8119 | if test "x$ac_cv_header_stropts_h" = xyes |
|
|
8120 | then : |
|
|
8121 | printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
|
|
8122 | |
|
|
8123 | fi |
|
|
8124 | |
|
|
8125 | |
|
|
8126 | ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke" |
|
|
8127 | if test "x$ac_cv_func_revoke" = xyes |
|
|
8128 | then : |
|
|
8129 | printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h |
|
|
8130 | |
|
|
8131 | fi |
|
|
8132 | ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" |
|
|
8133 | if test "x$ac_cv_func__getpty" = xyes |
|
|
8134 | then : |
|
|
8135 | printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h |
|
|
8136 | |
|
|
8137 | fi |
|
|
8138 | ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt" |
|
|
8139 | if test "x$ac_cv_func_getpt" = xyes |
|
|
8140 | then : |
|
|
8141 | printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h |
|
|
8142 | |
|
|
8143 | fi |
|
|
8144 | ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" |
|
|
8145 | if test "x$ac_cv_func_posix_openpt" = xyes |
|
|
8146 | then : |
|
|
8147 | printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h |
|
|
8148 | |
|
|
8149 | fi |
|
|
8150 | ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream" |
|
|
8151 | if test "x$ac_cv_func_isastream" = xyes |
|
|
8152 | then : |
|
|
8153 | printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h |
|
|
8154 | |
|
|
8155 | fi |
|
|
8156 | ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid" |
|
|
8157 | if test "x$ac_cv_func_setuid" = xyes |
|
|
8158 | then : |
|
|
8159 | printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
|
|
8160 | |
|
|
8161 | fi |
|
|
8162 | ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" |
|
|
8163 | if test "x$ac_cv_func_seteuid" = xyes |
|
|
8164 | then : |
|
|
8165 | printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
|
|
8166 | |
|
|
8167 | fi |
|
|
8168 | ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" |
|
|
8169 | if test "x$ac_cv_func_setreuid" = xyes |
|
|
8170 | then : |
|
|
8171 | printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
|
|
8172 | |
|
|
8173 | fi |
|
|
8174 | ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
|
|
8175 | if test "x$ac_cv_func_setresuid" = xyes |
|
|
8176 | then : |
|
|
8177 | printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h |
|
|
8178 | |
|
|
8179 | fi |
|
|
8180 | |
|
|
8181 | |
|
|
8182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
8183 | printf %s "checking for UNIX98 ptys... " >&6; } |
|
|
8184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8185 | /* end confdefs.h. */ |
|
|
8186 | #include <stdlib.h> |
|
|
8187 | int |
|
|
8188 | main (void) |
|
|
8189 | { |
|
|
8190 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
8191 | ; |
|
|
8192 | return 0; |
|
|
8193 | } |
|
|
8194 | _ACEOF |
|
|
8195 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8196 | then : |
|
|
8197 | unix98_pty=yes |
|
|
8198 | |
|
|
8199 | printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h |
|
|
8200 | |
|
|
8201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
8202 | printf "%s\n" "yes" >&6; } |
|
|
8203 | else $as_nop |
|
|
8204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8205 | printf "%s\n" "no" >&6; } |
|
|
8206 | fi |
|
|
8207 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8208 | conftest$ac_exeext conftest.$ac_ext |
|
|
8209 | |
|
|
8210 | if test -z "$unix98_pty"; then |
|
|
8211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
8212 | printf %s "checking for library containing openpty... " >&6; } |
|
|
8213 | if test ${ac_cv_search_openpty+y} |
|
|
8214 | then : |
|
|
8215 | printf %s "(cached) " >&6 |
|
|
8216 | else $as_nop |
|
|
8217 | ac_func_search_save_LIBS=$LIBS |
|
|
8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8219 | /* end confdefs.h. */ |
|
|
8220 | |
|
|
8221 | namespace conftest { |
|
|
8222 | extern "C" int openpty (); |
|
|
8223 | } |
|
|
8224 | int |
|
|
8225 | main (void) |
|
|
8226 | { |
|
|
8227 | return conftest::openpty (); |
|
|
8228 | ; |
|
|
8229 | return 0; |
|
|
8230 | } |
|
|
8231 | _ACEOF |
|
|
8232 | for ac_lib in '' util |
|
|
8233 | do |
|
|
8234 | if test -z "$ac_lib"; then |
|
|
8235 | ac_res="none required" |
|
|
8236 | else |
|
|
8237 | ac_res=-l$ac_lib |
|
|
8238 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
8239 | fi |
|
|
8240 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8241 | then : |
|
|
8242 | ac_cv_search_openpty=$ac_res |
|
|
8243 | fi |
|
|
8244 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8245 | conftest$ac_exeext |
|
|
8246 | if test ${ac_cv_search_openpty+y} |
|
|
8247 | then : |
|
|
8248 | break |
|
|
8249 | fi |
|
|
8250 | done |
|
|
8251 | if test ${ac_cv_search_openpty+y} |
|
|
8252 | then : |
|
|
8253 | |
|
|
8254 | else $as_nop |
|
|
8255 | ac_cv_search_openpty=no |
|
|
8256 | fi |
|
|
8257 | rm conftest.$ac_ext |
|
|
8258 | LIBS=$ac_func_search_save_LIBS |
|
|
8259 | fi |
|
|
8260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
8261 | printf "%s\n" "$ac_cv_search_openpty" >&6; } |
|
|
8262 | ac_res=$ac_cv_search_openpty |
|
|
8263 | if test "$ac_res" != no |
|
|
8264 | then : |
|
|
8265 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
8266 | |
|
|
8267 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
8268 | |
|
|
8269 | fi |
|
|
8270 | |
|
|
8271 | fi |
|
|
8272 | |
|
|
8273 | |
|
|
8274 | |
|
|
8275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
8276 | printf %s "checking for tty group... " >&6; } |
|
|
8277 | if test ${pt_cv_tty_group+y} |
|
|
8278 | then : |
|
|
8279 | printf %s "(cached) " >&6 |
|
|
8280 | else $as_nop |
|
|
8281 | if test "$cross_compiling" = yes |
|
|
8282 | then : |
|
|
8283 | pt_cv_tty_group=no |
|
|
8284 | else $as_nop |
|
|
8285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8286 | /* end confdefs.h. */ |
|
|
8287 | |
|
|
8288 | #include <sys/types.h> |
|
|
8289 | #include <sys/stat.h> |
|
|
8290 | #include <unistd.h> |
|
|
8291 | #include <grp.h> |
|
|
8292 | |
|
|
8293 | int main() |
|
|
8294 | { |
|
|
8295 | struct stat st; |
|
|
8296 | struct group *gr; |
|
|
8297 | char *tty; |
|
|
8298 | gr = getgrnam("tty"); |
|
|
8299 | tty = ttyname(0); |
|
|
8300 | if (gr != 0 |
|
|
8301 | && tty != 0 |
|
|
8302 | && (stat(tty, &st)) == 0 |
|
|
8303 | && st.st_gid == gr->gr_gid) |
|
|
8304 | return 0; |
|
|
8305 | else |
|
|
8306 | return 1; |
|
|
8307 | } |
|
|
8308 | _ACEOF |
|
|
8309 | if ac_fn_cxx_try_run "$LINENO" |
|
|
8310 | then : |
|
|
8311 | pt_cv_tty_group=yes |
|
|
8312 | else $as_nop |
|
|
8313 | pt_cv_tty_group=no |
|
|
8314 | fi |
|
|
8315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
8316 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
8317 | fi |
|
|
8318 | |
|
|
8319 | fi |
|
|
8320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
8321 | printf "%s\n" "$pt_cv_tty_group" >&6; } |
|
|
8322 | if test x$pt_cv_tty_group = xyes; then |
|
|
8323 | |
|
|
8324 | printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
8325 | |
7548 | |
8326 | fi |
7549 | fi |
8327 | |
7550 | |
8328 | support_image=no |
7551 | support_image=no |
8329 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
7552 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |