… | |
… | |
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 |
… | |
… | |
684 | LDFLAGS |
686 | LDFLAGS |
685 | CFLAGS |
687 | CFLAGS |
686 | CC |
688 | CC |
687 | DATE |
689 | DATE |
688 | VERSION |
690 | VERSION |
689 | host_os |
|
|
690 | host_vendor |
|
|
691 | host_cpu |
|
|
692 | host |
|
|
693 | build_os |
|
|
694 | build_vendor |
|
|
695 | build_cpu |
|
|
696 | build |
|
|
697 | target_alias |
691 | target_alias |
698 | host_alias |
692 | host_alias |
699 | build_alias |
693 | build_alias |
700 | LIBS |
694 | LIBS |
701 | ECHO_T |
695 | ECHO_T |
… | |
… | |
773 | enable_text_blink |
767 | enable_text_blink |
774 | enable_pointer_blank |
768 | enable_pointer_blank |
775 | with_term |
769 | with_term |
776 | with_terminfo |
770 | with_terminfo |
777 | with_x |
771 | with_x |
778 | enable_utmp |
|
|
779 | enable_wtmp |
|
|
780 | enable_lastlog |
|
|
781 | ' |
772 | ' |
782 | ac_precious_vars='build_alias |
773 | ac_precious_vars='build_alias |
783 | host_alias |
774 | host_alias |
784 | target_alias |
775 | target_alias |
785 | CC |
776 | CC |
… | |
… | |
1399 | cat <<\_ACEOF |
1390 | cat <<\_ACEOF |
1400 | |
1391 | |
1401 | X features: |
1392 | X features: |
1402 | --x-includes=DIR X include files are in DIR |
1393 | --x-includes=DIR X include files are in DIR |
1403 | --x-libraries=DIR X library files are in DIR |
1394 | --x-libraries=DIR X library files are in DIR |
1404 | |
|
|
1405 | System types: |
|
|
1406 | --build=BUILD configure for building on BUILD [guessed] |
|
|
1407 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
|
1408 | _ACEOF |
1395 | _ACEOF |
1409 | fi |
1396 | fi |
1410 | |
1397 | |
1411 | if test -n "$ac_init_help"; then |
1398 | if test -n "$ac_init_help"; then |
1412 | |
1399 | |
… | |
… | |
1447 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1434 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1448 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1435 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1449 | --enable-smart-resize enable smart growth/shrink behaviour |
1436 | --enable-smart-resize enable smart growth/shrink behaviour |
1450 | --enable-text-blink enable blinking text |
1437 | --enable-text-blink enable blinking text |
1451 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1438 | --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 | |
1439 | |
1456 | Optional Packages: |
1440 | Optional Packages: |
1457 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1441 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1458 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1442 | --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) |
1443 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
… | |
… | |
1667 | printf "%s\n" "$ac_res" >&6; } |
1651 | printf "%s\n" "$ac_res" >&6; } |
1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1652 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1669 | |
1653 | |
1670 | } # ac_fn_c_check_header_compile |
1654 | } # ac_fn_c_check_header_compile |
1671 | |
1655 | |
1672 | # ac_fn_c_try_link LINENO |
1656 | # ac_fn_cxx_try_link LINENO |
1673 | # ----------------------- |
1657 | # ------------------------- |
1674 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1658 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1675 | ac_fn_c_try_link () |
1659 | ac_fn_cxx_try_link () |
1676 | { |
1660 | { |
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1678 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1662 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1679 | if { { ac_try="$ac_link" |
1663 | if { { ac_try="$ac_link" |
1680 | case "(($ac_try" in |
1664 | case "(($ac_try" in |
… | |
… | |
1690 | cat conftest.er1 >&5 |
1674 | cat conftest.er1 >&5 |
1691 | mv -f conftest.er1 conftest.err |
1675 | mv -f conftest.er1 conftest.err |
1692 | fi |
1676 | fi |
1693 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1677 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1694 | test $ac_status = 0; } && { |
1678 | test $ac_status = 0; } && { |
1695 | test -z "$ac_c_werror_flag" || |
|
|
1696 | test ! -s conftest.err |
|
|
1697 | } && test -s conftest$ac_exeext && { |
|
|
1698 | test "$cross_compiling" = yes || |
|
|
1699 | test -x conftest$ac_exeext |
|
|
1700 | } |
|
|
1701 | then : |
|
|
1702 | ac_retval=0 |
|
|
1703 | else $as_nop |
|
|
1704 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1705 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1706 | |
|
|
1707 | ac_retval=1 |
|
|
1708 | fi |
|
|
1709 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
|
1710 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
|
1711 | # interfere with the next link command; also delete a directory that is |
|
|
1712 | # left behind by Apple's compiler. We do this before executing the actions. |
|
|
1713 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1714 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1715 | as_fn_set_status $ac_retval |
|
|
1716 | |
|
|
1717 | } # ac_fn_c_try_link |
|
|
1718 | |
|
|
1719 | # ac_fn_cxx_try_link LINENO |
|
|
1720 | # ------------------------- |
|
|
1721 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1722 | ac_fn_cxx_try_link () |
|
|
1723 | { |
|
|
1724 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1725 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
|
|
1726 | if { { ac_try="$ac_link" |
|
|
1727 | case "(($ac_try" in |
|
|
1728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1729 | *) ac_try_echo=$ac_try;; |
|
|
1730 | esac |
|
|
1731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1732 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1733 | (eval "$ac_link") 2>conftest.err |
|
|
1734 | ac_status=$? |
|
|
1735 | if test -s conftest.err; then |
|
|
1736 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1737 | cat conftest.er1 >&5 |
|
|
1738 | mv -f conftest.er1 conftest.err |
|
|
1739 | fi |
|
|
1740 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1741 | test $ac_status = 0; } && { |
|
|
1742 | test -z "$ac_cxx_werror_flag" || |
1679 | test -z "$ac_cxx_werror_flag" || |
1743 | test ! -s conftest.err |
1680 | test ! -s conftest.err |
1744 | } && test -s conftest$ac_exeext && { |
1681 | } && test -s conftest$ac_exeext && { |
1745 | test "$cross_compiling" = yes || |
1682 | test "$cross_compiling" = yes || |
1746 | test -x conftest$ac_exeext |
1683 | test -x conftest$ac_exeext |
… | |
… | |
2087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2088 | printf "%s\n" "$ac_res" >&6; } |
2025 | printf "%s\n" "$ac_res" >&6; } |
2089 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2090 | |
2027 | |
2091 | } # ac_fn_c_find_uintX_t |
2028 | } # ac_fn_c_find_uintX_t |
2092 | |
|
|
2093 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
2094 | # ------------------------------------------------------ |
|
|
2095 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
2096 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
2097 | ac_fn_cxx_check_member () |
|
|
2098 | { |
|
|
2099 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
2100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
2101 | printf %s "checking for $2.$3... " >&6; } |
|
|
2102 | if eval test \${$4+y} |
|
|
2103 | then : |
|
|
2104 | printf %s "(cached) " >&6 |
|
|
2105 | else $as_nop |
|
|
2106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2107 | /* end confdefs.h. */ |
|
|
2108 | $5 |
|
|
2109 | int |
|
|
2110 | main (void) |
|
|
2111 | { |
|
|
2112 | static $2 ac_aggr; |
|
|
2113 | if (ac_aggr.$3) |
|
|
2114 | return 0; |
|
|
2115 | ; |
|
|
2116 | return 0; |
|
|
2117 | } |
|
|
2118 | _ACEOF |
|
|
2119 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2120 | then : |
|
|
2121 | eval "$4=yes" |
|
|
2122 | else $as_nop |
|
|
2123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2124 | /* end confdefs.h. */ |
|
|
2125 | $5 |
|
|
2126 | int |
|
|
2127 | main (void) |
|
|
2128 | { |
|
|
2129 | static $2 ac_aggr; |
|
|
2130 | if (sizeof ac_aggr.$3) |
|
|
2131 | return 0; |
|
|
2132 | ; |
|
|
2133 | return 0; |
|
|
2134 | } |
|
|
2135 | _ACEOF |
|
|
2136 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2137 | then : |
|
|
2138 | eval "$4=yes" |
|
|
2139 | else $as_nop |
|
|
2140 | eval "$4=no" |
|
|
2141 | fi |
|
|
2142 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2143 | fi |
|
|
2144 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2145 | fi |
|
|
2146 | eval ac_res=\$$4 |
|
|
2147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
2148 | printf "%s\n" "$ac_res" >&6; } |
|
|
2149 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2150 | |
|
|
2151 | } # ac_fn_cxx_check_member |
|
|
2152 | |
2029 | |
2153 | # ac_fn_cxx_try_run LINENO |
2030 | # ac_fn_cxx_try_run LINENO |
2154 | # ------------------------ |
2031 | # ------------------------ |
2155 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
2032 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
2156 | # executables *can* be run. |
2033 | # executables *can* be run. |
… | |
… | |
3022 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
2899 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
3023 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
2900 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
3024 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
2901 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
3025 | |
2902 | |
3026 | # Auxiliary files required by this configure script. |
2903 | # Auxiliary files required by this configure script. |
3027 | ac_aux_files="install-sh config.guess config.sub" |
2904 | ac_aux_files="install-sh" |
3028 | |
2905 | |
3029 | # Locations in which to look for auxiliary files. |
2906 | # Locations in which to look for auxiliary files. |
3030 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
2907 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
3031 | |
2908 | |
3032 | # Search for a directory containing all of the required auxiliary files, |
2909 | # Search for a directory containing all of the required auxiliary files, |
… | |
… | |
3192 | |
3069 | |
3193 | |
3070 | |
3194 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
3071 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
3195 | |
3072 | |
3196 | |
3073 | |
3197 | |
|
|
3198 | |
|
|
3199 | |
|
|
3200 | # Make sure we can run config.sub. |
|
|
3201 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
|
|
3202 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
|
|
3203 | |
|
|
3204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
|
|
3205 | printf %s "checking build system type... " >&6; } |
|
|
3206 | if test ${ac_cv_build+y} |
|
|
3207 | then : |
|
|
3208 | printf %s "(cached) " >&6 |
|
|
3209 | else $as_nop |
|
|
3210 | ac_build_alias=$build_alias |
|
|
3211 | test "x$ac_build_alias" = x && |
|
|
3212 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
|
|
3213 | test "x$ac_build_alias" = x && |
|
|
3214 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
|
|
3215 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
|
|
3216 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
|
|
3217 | |
|
|
3218 | fi |
|
|
3219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|
|
3220 | printf "%s\n" "$ac_cv_build" >&6; } |
|
|
3221 | case $ac_cv_build in |
|
|
3222 | *-*-*) ;; |
|
|
3223 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
|
|
3224 | esac |
|
|
3225 | build=$ac_cv_build |
|
|
3226 | ac_save_IFS=$IFS; IFS='-' |
|
|
3227 | set x $ac_cv_build |
|
|
3228 | shift |
|
|
3229 | build_cpu=$1 |
|
|
3230 | build_vendor=$2 |
|
|
3231 | shift; shift |
|
|
3232 | # Remember, the first character of IFS is used to create $*, |
|
|
3233 | # except with old shells: |
|
|
3234 | build_os=$* |
|
|
3235 | IFS=$ac_save_IFS |
|
|
3236 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
|
3237 | |
|
|
3238 | |
|
|
3239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
|
|
3240 | printf %s "checking host system type... " >&6; } |
|
|
3241 | if test ${ac_cv_host+y} |
|
|
3242 | then : |
|
|
3243 | printf %s "(cached) " >&6 |
|
|
3244 | else $as_nop |
|
|
3245 | if test "x$host_alias" = x; then |
|
|
3246 | ac_cv_host=$ac_cv_build |
|
|
3247 | else |
|
|
3248 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
|
|
3249 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
|
|
3250 | fi |
|
|
3251 | |
|
|
3252 | fi |
|
|
3253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|
|
3254 | printf "%s\n" "$ac_cv_host" >&6; } |
|
|
3255 | case $ac_cv_host in |
|
|
3256 | *-*-*) ;; |
|
|
3257 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
|
|
3258 | esac |
|
|
3259 | host=$ac_cv_host |
|
|
3260 | ac_save_IFS=$IFS; IFS='-' |
|
|
3261 | set x $ac_cv_host |
|
|
3262 | shift |
|
|
3263 | host_cpu=$1 |
|
|
3264 | host_vendor=$2 |
|
|
3265 | shift; shift |
|
|
3266 | # Remember, the first character of IFS is used to create $*, |
|
|
3267 | # except with old shells: |
|
|
3268 | host_os=$* |
|
|
3269 | IFS=$ac_save_IFS |
|
|
3270 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
|
3271 | |
|
|
3272 | |
|
|
3273 | |
|
|
3274 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3074 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3275 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3075 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3276 | |
3076 | |
3277 | echo "" |
3077 | echo "" |
3278 | echo "configuring for rxvt $VERSION" |
3078 | echo "configuring for rxvt $VERSION" |
… | |
… | |
4647 | ac_ext=c |
4447 | ac_ext=c |
4648 | ac_cpp='$CPP $CPPFLAGS' |
4448 | ac_cpp='$CPP $CPPFLAGS' |
4649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4452 | |
4652 | |
4453 | |
4653 | |
4454 | |
4654 | # Find a good install program. We prefer a C program (faster), |
4455 | # Find a good install program. We prefer a C program (faster), |
4655 | # so one script is as good as another. But avoid the broken or |
4456 | # so one script is as good as another. But avoid the broken or |
4656 | # incompatible versions: |
4457 | # incompatible versions: |
… | |
… | |
4919 | then : |
4720 | then : |
4920 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
4721 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
4921 | |
4722 | |
4922 | fi |
4723 | fi |
4923 | |
4724 | |
4924 | |
|
|
4925 | |
|
|
4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
|
|
4927 | printf %s "checking for library containing strerror... " >&6; } |
|
|
4928 | if test ${ac_cv_search_strerror+y} |
|
|
4929 | then : |
|
|
4930 | printf %s "(cached) " >&6 |
|
|
4931 | else $as_nop |
|
|
4932 | ac_func_search_save_LIBS=$LIBS |
|
|
4933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4934 | /* end confdefs.h. */ |
|
|
4935 | |
|
|
4936 | /* Override any GCC internal prototype to avoid an error. |
|
|
4937 | Use char because int might match the return type of a GCC |
|
|
4938 | builtin and then its argument prototype would still apply. */ |
|
|
4939 | char strerror (); |
|
|
4940 | int |
|
|
4941 | main (void) |
|
|
4942 | { |
|
|
4943 | return strerror (); |
|
|
4944 | ; |
|
|
4945 | return 0; |
|
|
4946 | } |
|
|
4947 | _ACEOF |
|
|
4948 | for ac_lib in '' cposix |
|
|
4949 | do |
|
|
4950 | if test -z "$ac_lib"; then |
|
|
4951 | ac_res="none required" |
|
|
4952 | else |
|
|
4953 | ac_res=-l$ac_lib |
|
|
4954 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
4955 | fi |
|
|
4956 | if ac_fn_c_try_link "$LINENO" |
|
|
4957 | then : |
|
|
4958 | ac_cv_search_strerror=$ac_res |
|
|
4959 | fi |
|
|
4960 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4961 | conftest$ac_exeext |
|
|
4962 | if test ${ac_cv_search_strerror+y} |
|
|
4963 | then : |
|
|
4964 | break |
|
|
4965 | fi |
|
|
4966 | done |
|
|
4967 | if test ${ac_cv_search_strerror+y} |
|
|
4968 | then : |
|
|
4969 | |
|
|
4970 | else $as_nop |
|
|
4971 | ac_cv_search_strerror=no |
|
|
4972 | fi |
|
|
4973 | rm conftest.$ac_ext |
|
|
4974 | LIBS=$ac_func_search_save_LIBS |
|
|
4975 | fi |
|
|
4976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
|
|
4977 | printf "%s\n" "$ac_cv_search_strerror" >&6; } |
|
|
4978 | ac_res=$ac_cv_search_strerror |
|
|
4979 | if test "$ac_res" != no |
|
|
4980 | then : |
|
|
4981 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
4982 | |
|
|
4983 | fi |
|
|
4984 | |
|
|
4985 | ac_ext=cpp |
4725 | ac_ext=cpp |
4986 | ac_cpp='$CXXCPP $CPPFLAGS' |
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
4987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4990 | |
4730 | |
4991 | |
|
|
4992 | if test "$ac_prog_cxx_stdcxx" != cxx11; then |
|
|
4993 | as_fn_error $? "the compiler does not support C++11" "$LINENO" 5 |
|
|
4994 | fi |
|
|
4995 | |
4731 | |
4996 | LINKER="$CXX" |
4732 | LINKER="$CXX" |
4997 | if test x$GCC = xyes && test x$GXX = xyes; then |
4733 | if test x$GCC = xyes && test x$GXX = xyes; then |
4998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4999 | printf %s "checking for working libsupc++... " >&6; } |
4735 | printf %s "checking for working libsupc++... " >&6; } |
… | |
… | |
5269 | support_frills=no |
5005 | support_frills=no |
5270 | support_inheritpixmap=no |
5006 | support_inheritpixmap=no |
5271 | support_fading=no |
5007 | support_fading=no |
5272 | support_keepscrolling=no |
5008 | support_keepscrolling=no |
5273 | support_selectionscrolling=no |
5009 | support_selectionscrolling=no |
5274 | support_lastlog=no |
|
|
5275 | support_mousewheel=no |
5010 | support_mousewheel=no |
5276 | support_mouseslipwheel=no |
5011 | support_mouseslipwheel=no |
5277 | support_text_blink=no |
5012 | support_text_blink=no |
5278 | support_pointer_blank=no |
5013 | support_pointer_blank=no |
5279 | support_scroll_rxvt=no |
5014 | support_scroll_rxvt=no |
5280 | support_scroll_next=no |
5015 | support_scroll_next=no |
5281 | support_scroll_xterm=no |
5016 | support_scroll_xterm=no |
5282 | support_utmp=no |
|
|
5283 | support_wtmp=no |
|
|
5284 | support_xim=no |
5017 | support_xim=no |
5285 | support_pixbuf=no |
5018 | support_pixbuf=no |
5286 | support_startup_notification=no |
5019 | support_startup_notification=no |
5287 | support_xft=no |
5020 | support_xft=no |
5288 | support_unicode3=no |
5021 | support_unicode3=no |
… | |
… | |
5297 | support_frills=yes |
5030 | support_frills=yes |
5298 | support_inheritpixmap=yes |
5031 | support_inheritpixmap=yes |
5299 | support_fading=yes |
5032 | support_fading=yes |
5300 | support_keepscrolling=yes |
5033 | support_keepscrolling=yes |
5301 | support_selectionscrolling=yes |
5034 | support_selectionscrolling=yes |
5302 | support_lastlog=yes |
|
|
5303 | support_mousewheel=yes |
5035 | support_mousewheel=yes |
5304 | support_mouseslipwheel=yes |
5036 | support_mouseslipwheel=yes |
5305 | support_text_blink=yes |
5037 | support_text_blink=yes |
5306 | support_pointer_blank=yes |
5038 | support_pointer_blank=yes |
5307 | support_scroll_rxvt=yes |
5039 | support_scroll_rxvt=yes |
5308 | support_scroll_next=yes |
5040 | support_scroll_next=yes |
5309 | support_scroll_xterm=yes |
5041 | support_scroll_xterm=yes |
5310 | support_utmp=yes |
|
|
5311 | support_wtmp=yes |
|
|
5312 | support_xim=yes |
5042 | support_xim=yes |
5313 | support_pixbuf=yes |
5043 | support_pixbuf=yes |
5314 | support_startup_notification=yes |
5044 | support_startup_notification=yes |
5315 | support_xft=yes |
5045 | support_xft=yes |
5316 | support_unicode3=yes |
5046 | support_unicode3=yes |
… | |
… | |
5350 | fi |
5080 | fi |
5351 | |
5081 | |
5352 | if test x$GXX = xyes; then |
5082 | if test x$GXX = xyes; then |
5353 | if test $support_warnings = yes; then |
5083 | if test $support_warnings = yes; then |
5354 | save_CXXFLAGS="$CXXFLAGS" |
5084 | save_CXXFLAGS="$CXXFLAGS" |
5355 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
5085 | for warning in \ |
|
|
5086 | -Wall \ |
|
|
5087 | -Wno-parentheses \ |
|
|
5088 | -Wno-reorder \ |
|
|
5089 | -Wno-sign-compare \ |
|
|
5090 | -Wno-unused-value \ |
|
|
5091 | ; do |
|
|
5092 | CXXFLAGS="$CXXFLAGS $warning" |
|
|
5093 | done |
5356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5357 | /* end confdefs.h. */ |
5095 | /* end confdefs.h. */ |
5358 | |
5096 | |
5359 | int |
5097 | int |
5360 | main (void) |
5098 | main (void) |
… | |
… | |
7105 | else |
6843 | else |
7106 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
6844 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
7107 | fi |
6845 | fi |
7108 | |
6846 | |
7109 | |
6847 | |
|
|
6848 | |
|
|
6849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (using pkg-config)" >&5 |
|
|
6850 | printf %s "checking for libptytty (using pkg-config)... " >&6; } |
|
|
6851 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then |
|
|
6852 | PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`" |
|
|
6853 | PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`" |
|
|
6854 | |
|
|
6855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6856 | printf "%s\n" "ok" >&6; } |
|
|
6857 | : |
|
|
6858 | else |
|
|
6859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6860 | printf "%s\n" "no" >&6; } |
|
|
6861 | |
|
|
6862 | as_fn_error $? "unable to find libptytty" "$LINENO" 5 |
|
|
6863 | |
|
|
6864 | fi |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | |
|
|
6868 | |
|
|
6869 | |
7110 | image_lib=none |
6870 | image_lib=none |
7111 | |
6871 | |
7112 | PIXBUF_CFLAGS= |
6872 | PIXBUF_CFLAGS= |
7113 | PIXBUF_LIBS= |
6873 | PIXBUF_LIBS= |
7114 | |
6874 | |
7115 | if test x$support_pixbuf = xyes; then |
6875 | if test x$support_pixbuf = xyes; then |
7116 | |
6876 | |
7117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5 |
6877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (using pkg-config)" >&5 |
7118 | printf %s "checking for gdk-pixbuf-2.0... " >&6; } |
6878 | printf %s "checking for gdk-pixbuf-2.0 (using pkg-config)... " >&6; } |
7119 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
6879 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
7120 | PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
6880 | PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
7121 | PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
6881 | PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
7122 | |
6882 | |
7123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
… | |
… | |
7142 | STARTUP_NOTIFICATION_CFLAGS= |
6902 | STARTUP_NOTIFICATION_CFLAGS= |
7143 | STARTUP_NOTIFICATION_LIBS= |
6903 | STARTUP_NOTIFICATION_LIBS= |
7144 | |
6904 | |
7145 | if test x$support_startup_notification = xyes; then |
6905 | if test x$support_startup_notification = xyes; then |
7146 | |
6906 | |
7147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5 |
6907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (using pkg-config)" >&5 |
7148 | printf %s "checking for libstartup-notification-1.0... " >&6; } |
6908 | printf %s "checking for libstartup-notification-1.0 (using pkg-config)... " >&6; } |
7149 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
6909 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
7150 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
6910 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
7151 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
6911 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
7152 | |
6912 | |
7153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
… | |
… | |
7168 | |
6928 | |
7169 | |
6929 | |
7170 | |
6930 | |
7171 | if test x$support_frills = xyes; then |
6931 | if test x$support_frills = xyes; then |
7172 | |
6932 | |
7173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 |
6933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (using pkg-config)" >&5 |
7174 | printf %s "checking for xmu... " >&6; } |
6934 | printf %s "checking for xmu (using pkg-config)... " >&6; } |
7175 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
6935 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
7176 | XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
6936 | XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
7177 | XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
6937 | XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
7178 | |
6938 | |
7179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
… | |
… | |
7540 | |
7300 | |
7541 | fi |
7301 | fi |
7542 | |
7302 | |
7543 | |
7303 | |
7544 | |
7304 | |
7545 | support_utmp=yes |
|
|
7546 | support_wtmp=yes |
|
|
7547 | support_lastlog=yes |
|
|
7548 | |
|
|
7549 | # Check whether --enable-utmp was given. |
|
|
7550 | if test ${enable_utmp+y} |
|
|
7551 | then : |
|
|
7552 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7553 | support_utmp=$enableval |
|
|
7554 | fi |
|
|
7555 | fi |
|
|
7556 | |
|
|
7557 | |
|
|
7558 | # Check whether --enable-wtmp was given. |
|
|
7559 | if test ${enable_wtmp+y} |
|
|
7560 | then : |
|
|
7561 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7562 | support_wtmp=$enableval |
|
|
7563 | fi |
|
|
7564 | fi |
|
|
7565 | |
|
|
7566 | |
|
|
7567 | # Check whether --enable-lastlog was given. |
|
|
7568 | if test ${enable_lastlog+y} |
|
|
7569 | then : |
|
|
7570 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7571 | support_lastlog=$enableval |
|
|
7572 | fi |
|
|
7573 | fi |
|
|
7574 | |
|
|
7575 | |
|
|
7576 | if test x$support_utmp = xyes; then |
|
|
7577 | |
|
|
7578 | printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
7579 | |
|
|
7580 | fi |
|
|
7581 | if test x$support_wtmp = xyes; then |
|
|
7582 | |
|
|
7583 | printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
7584 | |
|
|
7585 | fi |
|
|
7586 | if test x$support_lastlog = xyes; then |
|
|
7587 | |
|
|
7588 | printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
7589 | |
|
|
7590 | fi |
|
|
7591 | |
|
|
7592 | ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp" |
|
|
7593 | if test "x$ac_cv_func_updwtmp" = xyes |
|
|
7594 | then : |
|
|
7595 | printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h |
|
|
7596 | |
|
|
7597 | fi |
|
|
7598 | ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx" |
|
|
7599 | if test "x$ac_cv_func_updwtmpx" = xyes |
|
|
7600 | then : |
|
|
7601 | printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h |
|
|
7602 | |
|
|
7603 | fi |
|
|
7604 | ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx" |
|
|
7605 | if test "x$ac_cv_func_updlastlogx" = xyes |
|
|
7606 | then : |
|
|
7607 | printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h |
|
|
7608 | |
|
|
7609 | fi |
|
|
7610 | |
|
|
7611 | |
|
|
7612 | ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
7613 | if test "x$ac_cv_header_lastlog_h" = xyes |
|
|
7614 | then : |
|
|
7615 | printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h |
|
|
7616 | |
|
|
7617 | fi |
|
|
7618 | |
|
|
7619 | |
|
|
7620 | case $host in |
|
|
7621 | *-*-solaris*) |
|
|
7622 | |
|
|
7623 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
7624 | |
|
|
7625 | ;; |
|
|
7626 | esac |
|
|
7627 | |
|
|
7628 | |
|
|
7629 | for ac_header in utmp.h |
|
|
7630 | do : |
|
|
7631 | ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
7632 | if test "x$ac_cv_header_utmp_h" = xyes |
|
|
7633 | then : |
|
|
7634 | printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h |
|
|
7635 | |
|
|
7636 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
7637 | #include <sys/types.h> |
|
|
7638 | #include <utmp.h> |
|
|
7639 | |
|
|
7640 | " |
|
|
7641 | if test "x$ac_cv_type_struct_utmp" = xyes |
|
|
7642 | then : |
|
|
7643 | |
|
|
7644 | printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h |
|
|
7645 | |
|
|
7646 | |
|
|
7647 | fi |
|
|
7648 | |
|
|
7649 | |
|
|
7650 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
7651 | #include <sys/types.h> |
|
|
7652 | #include <utmp.h> |
|
|
7653 | |
|
|
7654 | " |
|
|
7655 | if test "x$ac_cv_member_struct_utmp_ut_host" = xyes |
|
|
7656 | then : |
|
|
7657 | |
|
|
7658 | printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
7659 | |
|
|
7660 | fi |
|
|
7661 | |
|
|
7662 | |
|
|
7663 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
7664 | #include <sys/types.h> |
|
|
7665 | #include <utmp.h> |
|
|
7666 | |
|
|
7667 | " |
|
|
7668 | if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes |
|
|
7669 | then : |
|
|
7670 | |
|
|
7671 | printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
7672 | |
|
|
7673 | fi |
|
|
7674 | |
|
|
7675 | |
|
|
7676 | fi |
|
|
7677 | |
|
|
7678 | done |
|
|
7679 | |
|
|
7680 | for ac_header in utmpx.h |
|
|
7681 | do : |
|
|
7682 | ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
7683 | if test "x$ac_cv_header_utmpx_h" = xyes |
|
|
7684 | then : |
|
|
7685 | printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h |
|
|
7686 | |
|
|
7687 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
7688 | #include <sys/types.h> |
|
|
7689 | #include <utmpx.h> |
|
|
7690 | |
|
|
7691 | " |
|
|
7692 | if test "x$ac_cv_type_struct_utmpx" = xyes |
|
|
7693 | then : |
|
|
7694 | |
|
|
7695 | printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h |
|
|
7696 | |
|
|
7697 | |
|
|
7698 | fi |
|
|
7699 | |
|
|
7700 | |
|
|
7701 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
7702 | #include <sys/types.h> |
|
|
7703 | #include <utmpx.h> |
|
|
7704 | |
|
|
7705 | " |
|
|
7706 | if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes |
|
|
7707 | then : |
|
|
7708 | |
|
|
7709 | printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
7710 | |
|
|
7711 | fi |
|
|
7712 | |
|
|
7713 | |
|
|
7714 | fi |
|
|
7715 | |
|
|
7716 | done |
|
|
7717 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
7718 | #include <sys/types.h> |
|
|
7719 | #include <utmp.h> |
|
|
7720 | #ifdef HAVE_LASTLOG_H |
|
|
7721 | #include <lastlog.h> |
|
|
7722 | #endif |
|
|
7723 | |
|
|
7724 | " |
|
|
7725 | if test "x$ac_cv_type_struct_lastlog" = xyes |
|
|
7726 | then : |
|
|
7727 | |
|
|
7728 | printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h |
|
|
7729 | |
|
|
7730 | |
|
|
7731 | fi |
|
|
7732 | |
|
|
7733 | |
|
|
7734 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
7735 | #include <sys/types.h> |
|
|
7736 | #include <utmpx.h> |
|
|
7737 | #ifdef HAVE_LASTLOG_H |
|
|
7738 | #include <lastlog.h> |
|
|
7739 | #endif |
|
|
7740 | |
|
|
7741 | " |
|
|
7742 | if test "x$ac_cv_type_struct_lastlogx" = xyes |
|
|
7743 | then : |
|
|
7744 | |
|
|
7745 | printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h |
|
|
7746 | |
|
|
7747 | |
|
|
7748 | fi |
|
|
7749 | |
|
|
7750 | |
|
|
7751 | |
|
|
7752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
7753 | printf %s "checking for a fallback location of utmp... " >&6; } |
|
|
7754 | if test ${pt_cv_path_utmp+y} |
|
|
7755 | then : |
|
|
7756 | printf %s "(cached) " >&6 |
|
|
7757 | else $as_nop |
|
|
7758 | |
|
|
7759 | if test "$cross_compiling" != yes; then |
|
|
7760 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
7761 | if test -f "$file"; then |
|
|
7762 | pt_cv_path_utmp=$file |
|
|
7763 | break |
|
|
7764 | fi |
|
|
7765 | done |
|
|
7766 | fi |
|
|
7767 | fi |
|
|
7768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
7769 | printf "%s\n" "$pt_cv_path_utmp" >&6; } |
|
|
7770 | if test x$pt_cv_path_utmp != x; then |
|
|
7771 | |
|
|
7772 | printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h |
|
|
7773 | |
|
|
7774 | elif test "$cross_compiling" = yes; then |
|
|
7775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
7776 | printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
7777 | fi |
|
|
7778 | |
|
|
7779 | |
|
|
7780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
7781 | printf %s "checking for a fallback location of wtmp... " >&6; } |
|
|
7782 | if test ${pt_cv_path_wtmp+y} |
|
|
7783 | then : |
|
|
7784 | printf %s "(cached) " >&6 |
|
|
7785 | else $as_nop |
|
|
7786 | |
|
|
7787 | if test "$cross_compiling" != yes; then |
|
|
7788 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
7789 | if test -f "$file"; then |
|
|
7790 | pt_cv_path_wtmp=$file |
|
|
7791 | break |
|
|
7792 | fi |
|
|
7793 | done |
|
|
7794 | fi |
|
|
7795 | fi |
|
|
7796 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
7797 | printf "%s\n" "$pt_cv_path_wtmp" >&6; } |
|
|
7798 | if test x$pt_cv_path_wtmp != x; then |
|
|
7799 | |
|
|
7800 | printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h |
|
|
7801 | |
|
|
7802 | elif test "$cross_compiling" = yes; then |
|
|
7803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7804 | printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
7805 | fi |
|
|
7806 | |
|
|
7807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
7808 | printf %s "checking for a fallback location of wtmpx... " >&6; } |
|
|
7809 | if test ${pt_cv_path_wtmpx+y} |
|
|
7810 | then : |
|
|
7811 | printf %s "(cached) " >&6 |
|
|
7812 | else $as_nop |
|
|
7813 | |
|
|
7814 | if test "$cross_compiling" != yes; then |
|
|
7815 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
7816 | if test -f "$file"; then |
|
|
7817 | pt_cv_path_wtmpx=$file |
|
|
7818 | break |
|
|
7819 | fi |
|
|
7820 | done |
|
|
7821 | fi |
|
|
7822 | fi |
|
|
7823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
7824 | printf "%s\n" "$pt_cv_path_wtmpx" >&6; } |
|
|
7825 | if test x$pt_cv_path_wtmpx != x; then |
|
|
7826 | |
|
|
7827 | printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h |
|
|
7828 | |
|
|
7829 | elif test "$cross_compiling" = yes; then |
|
|
7830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7831 | printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
7832 | fi |
|
|
7833 | |
|
|
7834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
7835 | printf %s "checking for a fallback location of lastlog... " >&6; } |
|
|
7836 | if test ${pt_cv_path_lastlog+y} |
|
|
7837 | then : |
|
|
7838 | printf %s "(cached) " >&6 |
|
|
7839 | else $as_nop |
|
|
7840 | |
|
|
7841 | if test "$cross_compiling" != yes; then |
|
|
7842 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
7843 | if test -f "$file"; then |
|
|
7844 | pt_cv_path_lastlog=$file |
|
|
7845 | break |
|
|
7846 | fi |
|
|
7847 | done |
|
|
7848 | fi |
|
|
7849 | fi |
|
|
7850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
7851 | printf "%s\n" "$pt_cv_path_lastlog" >&6; } |
|
|
7852 | if test x$pt_cv_path_lastlog != x; then |
|
|
7853 | |
|
|
7854 | printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h |
|
|
7855 | |
|
|
7856 | elif test "$cross_compiling" = yes; then |
|
|
7857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7858 | printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
7859 | fi |
|
|
7860 | |
|
|
7861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
7862 | printf %s "checking for a fallback location of lastlogx... " >&6; } |
|
|
7863 | if test ${pt_cv_path_lastlogx+y} |
|
|
7864 | then : |
|
|
7865 | printf %s "(cached) " >&6 |
|
|
7866 | else $as_nop |
|
|
7867 | |
|
|
7868 | if test "$cross_compiling" != yes; then |
|
|
7869 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
7870 | if test -f "$file"; then |
|
|
7871 | pt_cv_path_lastlogx=$file |
|
|
7872 | break |
|
|
7873 | fi |
|
|
7874 | done |
|
|
7875 | fi |
|
|
7876 | fi |
|
|
7877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
7878 | printf "%s\n" "$pt_cv_path_lastlogx" >&6; } |
|
|
7879 | if test x$pt_cv_path_lastlogx != x; then |
|
|
7880 | |
|
|
7881 | printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h |
|
|
7882 | |
|
|
7883 | elif test "$cross_compiling" = yes; then |
|
|
7884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7885 | printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
7886 | fi |
|
|
7887 | |
|
|
7888 | |
|
|
7889 | |
|
|
7890 | |
7305 | |
7891 | save_LIBS=$LIBS |
7306 | save_LIBS=$LIBS |
7892 | save_CXXFLAGS=$CXXFLAGS |
7307 | save_CXXFLAGS=$CXXFLAGS |
7893 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7308 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
7894 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7309 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
… | |
… | |
8041 | |
7456 | |
8042 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7457 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
8043 | |
7458 | |
8044 | fi |
7459 | fi |
8045 | |
7460 | |
8046 | |
|
|
8047 | |
|
|
8048 | case $host in |
|
|
8049 | *-*-solaris*) |
|
|
8050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8051 | /* end confdefs.h. */ |
|
|
8052 | |
|
|
8053 | #if __STDC_VERSION__ >= 199901L |
|
|
8054 | error |
|
|
8055 | #endif |
|
|
8056 | |
|
|
8057 | int |
|
|
8058 | main (void) |
|
|
8059 | { |
|
|
8060 | |
|
|
8061 | ; |
|
|
8062 | return 0; |
|
|
8063 | } |
|
|
8064 | _ACEOF |
|
|
8065 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
8066 | then : |
|
|
8067 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
8068 | |
|
|
8069 | else $as_nop |
|
|
8070 | printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h |
|
|
8071 | |
|
|
8072 | fi |
|
|
8073 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
8074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
8075 | printf %s "checking for library containing sendmsg... " >&6; } |
|
|
8076 | if test ${ac_cv_search_sendmsg+y} |
|
|
8077 | then : |
|
|
8078 | printf %s "(cached) " >&6 |
|
|
8079 | else $as_nop |
|
|
8080 | ac_func_search_save_LIBS=$LIBS |
|
|
8081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8082 | /* end confdefs.h. */ |
|
|
8083 | |
|
|
8084 | namespace conftest { |
|
|
8085 | extern "C" int sendmsg (); |
|
|
8086 | } |
|
|
8087 | int |
|
|
8088 | main (void) |
|
|
8089 | { |
|
|
8090 | return conftest::sendmsg (); |
|
|
8091 | ; |
|
|
8092 | return 0; |
|
|
8093 | } |
|
|
8094 | _ACEOF |
|
|
8095 | for ac_lib in '' socket |
|
|
8096 | do |
|
|
8097 | if test -z "$ac_lib"; then |
|
|
8098 | ac_res="none required" |
|
|
8099 | else |
|
|
8100 | ac_res=-l$ac_lib |
|
|
8101 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
8102 | fi |
|
|
8103 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8104 | then : |
|
|
8105 | ac_cv_search_sendmsg=$ac_res |
|
|
8106 | fi |
|
|
8107 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8108 | conftest$ac_exeext |
|
|
8109 | if test ${ac_cv_search_sendmsg+y} |
|
|
8110 | then : |
|
|
8111 | break |
|
|
8112 | fi |
|
|
8113 | done |
|
|
8114 | if test ${ac_cv_search_sendmsg+y} |
|
|
8115 | then : |
|
|
8116 | |
|
|
8117 | else $as_nop |
|
|
8118 | ac_cv_search_sendmsg=no |
|
|
8119 | fi |
|
|
8120 | rm conftest.$ac_ext |
|
|
8121 | LIBS=$ac_func_search_save_LIBS |
|
|
8122 | fi |
|
|
8123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
8124 | printf "%s\n" "$ac_cv_search_sendmsg" >&6; } |
|
|
8125 | ac_res=$ac_cv_search_sendmsg |
|
|
8126 | if test "$ac_res" != no |
|
|
8127 | then : |
|
|
8128 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
8129 | |
|
|
8130 | fi |
|
|
8131 | |
|
|
8132 | ;; |
|
|
8133 | esac |
|
|
8134 | |
|
|
8135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
8136 | printf %s "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
8137 | if test ${pt_cv_can_pass_fds+y} |
|
|
8138 | then : |
|
|
8139 | printf %s "(cached) " >&6 |
|
|
8140 | else $as_nop |
|
|
8141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8142 | /* end confdefs.h. */ |
|
|
8143 | |
|
|
8144 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
8145 | #include <sys/types.h> |
|
|
8146 | #include <sys/socket.h> |
|
|
8147 | #include <sys/uio.h> |
|
|
8148 | |
|
|
8149 | int |
|
|
8150 | main (void) |
|
|
8151 | { |
|
|
8152 | |
|
|
8153 | { |
|
|
8154 | msghdr msg; |
|
|
8155 | iovec iov; |
|
|
8156 | char buf [100]; |
|
|
8157 | char data = 0; |
|
|
8158 | |
|
|
8159 | iov.iov_base = &data; |
|
|
8160 | iov.iov_len = 1; |
|
|
8161 | |
|
|
8162 | msg.msg_iov = &iov; |
|
|
8163 | msg.msg_iovlen = 1; |
|
|
8164 | msg.msg_control = buf; |
|
|
8165 | msg.msg_controllen = sizeof buf; |
|
|
8166 | |
|
|
8167 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
8168 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
8169 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
8170 | cmsg->cmsg_len = 100; |
|
|
8171 | |
|
|
8172 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
8173 | |
|
|
8174 | return sendmsg (3, &msg, 0); |
|
|
8175 | } |
|
|
8176 | |
|
|
8177 | ; |
|
|
8178 | return 0; |
|
|
8179 | } |
|
|
8180 | _ACEOF |
|
|
8181 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8182 | then : |
|
|
8183 | pt_cv_can_pass_fds=yes |
|
|
8184 | else $as_nop |
|
|
8185 | pt_cv_can_pass_fds=no |
|
|
8186 | fi |
|
|
8187 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8188 | conftest$ac_exeext conftest.$ac_ext |
|
|
8189 | fi |
|
|
8190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
8191 | printf "%s\n" "$pt_cv_can_pass_fds" >&6; } |
|
|
8192 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
8193 | |
|
|
8194 | printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
8195 | |
|
|
8196 | else |
|
|
8197 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
8198 | fi |
|
|
8199 | |
|
|
8200 | |
|
|
8201 | |
|
|
8202 | ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" |
|
|
8203 | if test "x$ac_cv_header_pty_h" = xyes |
|
|
8204 | then : |
|
|
8205 | printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h |
|
|
8206 | |
|
|
8207 | fi |
|
|
8208 | ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" |
|
|
8209 | if test "x$ac_cv_header_util_h" = xyes |
|
|
8210 | then : |
|
|
8211 | printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h |
|
|
8212 | |
|
|
8213 | fi |
|
|
8214 | ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
|
|
8215 | if test "x$ac_cv_header_libutil_h" = xyes |
|
|
8216 | then : |
|
|
8217 | printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h |
|
|
8218 | |
|
|
8219 | fi |
|
|
8220 | ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
|
|
8221 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
|
|
8222 | then : |
|
|
8223 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
|
|
8224 | |
|
|
8225 | fi |
|
|
8226 | ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
|
|
8227 | if test "x$ac_cv_header_stropts_h" = xyes |
|
|
8228 | then : |
|
|
8229 | printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
|
|
8230 | |
|
|
8231 | fi |
|
|
8232 | |
|
|
8233 | |
|
|
8234 | ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke" |
|
|
8235 | if test "x$ac_cv_func_revoke" = xyes |
|
|
8236 | then : |
|
|
8237 | printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h |
|
|
8238 | |
|
|
8239 | fi |
|
|
8240 | ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" |
|
|
8241 | if test "x$ac_cv_func__getpty" = xyes |
|
|
8242 | then : |
|
|
8243 | printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h |
|
|
8244 | |
|
|
8245 | fi |
|
|
8246 | ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt" |
|
|
8247 | if test "x$ac_cv_func_getpt" = xyes |
|
|
8248 | then : |
|
|
8249 | printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h |
|
|
8250 | |
|
|
8251 | fi |
|
|
8252 | ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" |
|
|
8253 | if test "x$ac_cv_func_posix_openpt" = xyes |
|
|
8254 | then : |
|
|
8255 | printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h |
|
|
8256 | |
|
|
8257 | fi |
|
|
8258 | ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream" |
|
|
8259 | if test "x$ac_cv_func_isastream" = xyes |
|
|
8260 | then : |
|
|
8261 | printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h |
|
|
8262 | |
|
|
8263 | fi |
|
|
8264 | ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid" |
|
|
8265 | if test "x$ac_cv_func_setuid" = xyes |
|
|
8266 | then : |
|
|
8267 | printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
|
|
8268 | |
|
|
8269 | fi |
|
|
8270 | ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" |
|
|
8271 | if test "x$ac_cv_func_seteuid" = xyes |
|
|
8272 | then : |
|
|
8273 | printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
|
|
8274 | |
|
|
8275 | fi |
|
|
8276 | ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" |
|
|
8277 | if test "x$ac_cv_func_setreuid" = xyes |
|
|
8278 | then : |
|
|
8279 | printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
|
|
8280 | |
|
|
8281 | fi |
|
|
8282 | ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
|
|
8283 | if test "x$ac_cv_func_setresuid" = xyes |
|
|
8284 | then : |
|
|
8285 | printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h |
|
|
8286 | |
|
|
8287 | fi |
|
|
8288 | |
|
|
8289 | |
|
|
8290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
8291 | printf %s "checking for UNIX98 ptys... " >&6; } |
|
|
8292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8293 | /* end confdefs.h. */ |
|
|
8294 | #include <stdlib.h> |
|
|
8295 | int |
|
|
8296 | main (void) |
|
|
8297 | { |
|
|
8298 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
8299 | ; |
|
|
8300 | return 0; |
|
|
8301 | } |
|
|
8302 | _ACEOF |
|
|
8303 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8304 | then : |
|
|
8305 | unix98_pty=yes |
|
|
8306 | |
|
|
8307 | printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h |
|
|
8308 | |
|
|
8309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
8310 | printf "%s\n" "yes" >&6; } |
|
|
8311 | else $as_nop |
|
|
8312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8313 | printf "%s\n" "no" >&6; } |
|
|
8314 | fi |
|
|
8315 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8316 | conftest$ac_exeext conftest.$ac_ext |
|
|
8317 | |
|
|
8318 | if test -z "$unix98_pty"; then |
|
|
8319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
8320 | printf %s "checking for library containing openpty... " >&6; } |
|
|
8321 | if test ${ac_cv_search_openpty+y} |
|
|
8322 | then : |
|
|
8323 | printf %s "(cached) " >&6 |
|
|
8324 | else $as_nop |
|
|
8325 | ac_func_search_save_LIBS=$LIBS |
|
|
8326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8327 | /* end confdefs.h. */ |
|
|
8328 | |
|
|
8329 | namespace conftest { |
|
|
8330 | extern "C" int openpty (); |
|
|
8331 | } |
|
|
8332 | int |
|
|
8333 | main (void) |
|
|
8334 | { |
|
|
8335 | return conftest::openpty (); |
|
|
8336 | ; |
|
|
8337 | return 0; |
|
|
8338 | } |
|
|
8339 | _ACEOF |
|
|
8340 | for ac_lib in '' util |
|
|
8341 | do |
|
|
8342 | if test -z "$ac_lib"; then |
|
|
8343 | ac_res="none required" |
|
|
8344 | else |
|
|
8345 | ac_res=-l$ac_lib |
|
|
8346 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
8347 | fi |
|
|
8348 | if ac_fn_cxx_try_link "$LINENO" |
|
|
8349 | then : |
|
|
8350 | ac_cv_search_openpty=$ac_res |
|
|
8351 | fi |
|
|
8352 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
8353 | conftest$ac_exeext |
|
|
8354 | if test ${ac_cv_search_openpty+y} |
|
|
8355 | then : |
|
|
8356 | break |
|
|
8357 | fi |
|
|
8358 | done |
|
|
8359 | if test ${ac_cv_search_openpty+y} |
|
|
8360 | then : |
|
|
8361 | |
|
|
8362 | else $as_nop |
|
|
8363 | ac_cv_search_openpty=no |
|
|
8364 | fi |
|
|
8365 | rm conftest.$ac_ext |
|
|
8366 | LIBS=$ac_func_search_save_LIBS |
|
|
8367 | fi |
|
|
8368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
8369 | printf "%s\n" "$ac_cv_search_openpty" >&6; } |
|
|
8370 | ac_res=$ac_cv_search_openpty |
|
|
8371 | if test "$ac_res" != no |
|
|
8372 | then : |
|
|
8373 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
8374 | |
|
|
8375 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
8376 | |
|
|
8377 | fi |
|
|
8378 | |
|
|
8379 | fi |
|
|
8380 | |
|
|
8381 | |
|
|
8382 | |
|
|
8383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
8384 | printf %s "checking for tty group... " >&6; } |
|
|
8385 | if test ${pt_cv_tty_group+y} |
|
|
8386 | then : |
|
|
8387 | printf %s "(cached) " >&6 |
|
|
8388 | else $as_nop |
|
|
8389 | if test "$cross_compiling" = yes |
|
|
8390 | then : |
|
|
8391 | pt_cv_tty_group=no |
|
|
8392 | else $as_nop |
|
|
8393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8394 | /* end confdefs.h. */ |
|
|
8395 | |
|
|
8396 | #include <sys/types.h> |
|
|
8397 | #include <sys/stat.h> |
|
|
8398 | #include <unistd.h> |
|
|
8399 | #include <grp.h> |
|
|
8400 | |
|
|
8401 | int main() |
|
|
8402 | { |
|
|
8403 | struct stat st; |
|
|
8404 | struct group *gr; |
|
|
8405 | char *tty; |
|
|
8406 | gr = getgrnam("tty"); |
|
|
8407 | tty = ttyname(0); |
|
|
8408 | if (gr != 0 |
|
|
8409 | && tty != 0 |
|
|
8410 | && (stat(tty, &st)) == 0 |
|
|
8411 | && st.st_gid == gr->gr_gid) |
|
|
8412 | return 0; |
|
|
8413 | else |
|
|
8414 | return 1; |
|
|
8415 | } |
|
|
8416 | _ACEOF |
|
|
8417 | if ac_fn_cxx_try_run "$LINENO" |
|
|
8418 | then : |
|
|
8419 | pt_cv_tty_group=yes |
|
|
8420 | else $as_nop |
|
|
8421 | pt_cv_tty_group=no |
|
|
8422 | fi |
|
|
8423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
8424 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
8425 | fi |
|
|
8426 | |
|
|
8427 | fi |
|
|
8428 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
8429 | printf "%s\n" "$pt_cv_tty_group" >&6; } |
|
|
8430 | if test x$pt_cv_tty_group = xyes; then |
|
|
8431 | |
|
|
8432 | printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
8433 | |
|
|
8434 | fi |
|
|
8435 | |
|
|
8436 | support_image=no |
7461 | support_image=no |
8437 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
7462 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
8438 | support_image=yes |
7463 | support_image=yes |
8439 | fi |
7464 | fi |
8440 | if test x$support_xft = xyes || test x$support_image = xyes; then |
7465 | if test x$support_xft = xyes || test x$support_image = xyes; then |
8441 | rxvt_have_xrender=no |
7466 | rxvt_have_xrender=no |
8442 | |
7467 | |
8443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 |
7468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (using pkg-config)" >&5 |
8444 | printf %s "checking for xrender... " >&6; } |
7469 | printf %s "checking for xrender (using pkg-config)... " >&6; } |
8445 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7470 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
8446 | XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
7471 | XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
8447 | XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
7472 | XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
8448 | |
7473 | |
8449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
… | |
… | |
8481 | |
7506 | |
8482 | fi |
7507 | fi |
8483 | |
7508 | |
8484 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7509 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
8485 | |
7510 | |
8486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5 |
7511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (using pkg-config)" >&5 |
8487 | printf %s "checking for fontconfig xft... " >&6; } |
7512 | printf %s "checking for fontconfig xft (using pkg-config)... " >&6; } |
8488 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
7513 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
8489 | XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
7514 | XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
8490 | XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
7515 | XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
8491 | |
7516 | |
8492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
… | |
… | |
8804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8805 | printf "%s\n" "no" >&6; } |
7830 | printf "%s\n" "no" >&6; } |
8806 | fi |
7831 | fi |
8807 | |
7832 | |
8808 | |
7833 | |
|
|
7834 | |
|
|
7835 | |
|
|
7836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (using pkg-config)" >&5 |
|
|
7837 | printf %s "checking for xext (using pkg-config)... " >&6; } |
|
|
7838 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then |
|
|
7839 | XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`" |
|
|
7840 | XEXT_LIBS="`$PKG_CONFIG --libs xext`" |
|
|
7841 | |
|
|
7842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7843 | printf "%s\n" "ok" >&6; } |
|
|
7844 | : |
|
|
7845 | else |
|
|
7846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7847 | printf "%s\n" "no" >&6; } |
|
|
7848 | |
|
|
7849 | as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5 |
|
|
7850 | |
|
|
7851 | fi |
|
|
7852 | |
|
|
7853 | |
|
|
7854 | X_LIBS="$XEXT_LIBS $X_LIBS" |
|
|
7855 | CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS" |
8809 | |
7856 | |
8810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 |
7857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 |
8811 | printf %s "checking for $PERL suitability... " >&6; } |
7858 | printf %s "checking for $PERL suitability... " >&6; } |
8812 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
7859 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
8813 | |
7860 | |