… | |
… | |
10183 | |
10183 | |
10184 | |
10184 | |
10185 | |
10185 | |
10186 | |
10186 | |
10187 | |
10187 | |
10188 | |
|
|
10189 | for ac_func in \ |
10188 | for ac_func in \ |
10190 | atexit \ |
10189 | atexit \ |
10191 | revoke \ |
10190 | revoke \ |
10192 | unsetenv \ |
10191 | unsetenv \ |
10193 | setutent \ |
10192 | setutent \ |
10194 | seteuid \ |
10193 | seteuid \ |
10195 | setreuid \ |
10194 | setreuid \ |
10196 | setsid \ |
10195 | setsid \ |
10197 | setpgrp \ |
10196 | setpgrp \ |
10198 | setpgid \ |
10197 | setpgid \ |
10199 | openpty \ |
|
|
10200 | _getpty \ |
10198 | _getpty \ |
10201 | grantpt \ |
10199 | grantpt \ |
10202 | unlockpt \ |
10200 | unlockpt \ |
10203 | isastream \ |
10201 | isastream \ |
10204 | on_exit \ |
10202 | on_exit \ |
… | |
… | |
12042 | rm -f conftest.err conftest.$ac_objext \ |
12040 | rm -f conftest.err conftest.$ac_objext \ |
12043 | conftest$ac_exeext conftest.$ac_ext |
12041 | conftest$ac_exeext conftest.$ac_ext |
12044 | fi |
12042 | fi |
12045 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
12043 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
12046 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
12044 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
12047 | if test x$rxvt_cv_func_getpt = xyes; then |
12045 | if test x$rxvt_cv_func_getpt = xno; then |
12048 | |
12046 | echo "$as_me:$LINENO: checking for openpty" >&5 |
|
|
12047 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
|
|
12048 | if test "${ac_cv_func_openpty+set}" = set; then |
|
|
12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12050 | else |
|
|
12051 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12052 | /* confdefs.h. */ |
|
|
12053 | _ACEOF |
|
|
12054 | cat confdefs.h >>conftest.$ac_ext |
12049 | cat >>confdefs.h <<\_ACEOF |
12055 | cat >>conftest.$ac_ext <<_ACEOF |
12050 | #define HAVE_GETPT 1 |
12056 | /* end confdefs.h. */ |
|
|
12057 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
|
|
12058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12059 | #define openpty innocuous_openpty |
|
|
12060 | |
|
|
12061 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12062 | which can conflict with char openpty (); below. |
|
|
12063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12064 | <limits.h> exists even on freestanding compilers. */ |
|
|
12065 | |
|
|
12066 | #ifdef __STDC__ |
|
|
12067 | # include <limits.h> |
|
|
12068 | #else |
|
|
12069 | # include <assert.h> |
|
|
12070 | #endif |
|
|
12071 | |
|
|
12072 | #undef openpty |
|
|
12073 | |
|
|
12074 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12075 | #ifdef __cplusplus |
|
|
12076 | extern "C" |
|
|
12077 | { |
|
|
12078 | #endif |
|
|
12079 | /* We use char because int might match the return type of a gcc2 |
|
|
12080 | builtin and then its argument prototype would still apply. */ |
|
|
12081 | char openpty (); |
|
|
12082 | /* The GNU C library defines this for functions which it implements |
|
|
12083 | to always fail with ENOSYS. Some functions are actually named |
|
|
12084 | something starting with __ and the normal name is an alias. */ |
|
|
12085 | #if defined (__stub_openpty) || defined (__stub___openpty) |
|
|
12086 | choke me |
|
|
12087 | #else |
|
|
12088 | char (*f) () = openpty; |
|
|
12089 | #endif |
|
|
12090 | #ifdef __cplusplus |
|
|
12091 | } |
|
|
12092 | #endif |
|
|
12093 | |
|
|
12094 | int |
|
|
12095 | main () |
|
|
12096 | { |
|
|
12097 | return f != openpty; |
|
|
12098 | ; |
|
|
12099 | return 0; |
|
|
12100 | } |
12051 | _ACEOF |
12101 | _ACEOF |
|
|
12102 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12104 | (eval $ac_link) 2>conftest.er1 |
|
|
12105 | ac_status=$? |
|
|
12106 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12107 | rm -f conftest.er1 |
|
|
12108 | cat conftest.err >&5 |
|
|
12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12110 | (exit $ac_status); } && |
|
|
12111 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12113 | (eval $ac_try) 2>&5 |
|
|
12114 | ac_status=$? |
|
|
12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12116 | (exit $ac_status); }; } && |
|
|
12117 | { ac_try='test -s conftest$ac_exeext' |
|
|
12118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12119 | (eval $ac_try) 2>&5 |
|
|
12120 | ac_status=$? |
|
|
12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12122 | (exit $ac_status); }; }; then |
|
|
12123 | ac_cv_func_openpty=yes |
|
|
12124 | else |
|
|
12125 | echo "$as_me: failed program was:" >&5 |
|
|
12126 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12127 | |
|
|
12128 | ac_cv_func_openpty=no |
|
|
12129 | fi |
|
|
12130 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12131 | conftest$ac_exeext conftest.$ac_ext |
|
|
12132 | fi |
|
|
12133 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
|
|
12134 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
|
|
12135 | if test $ac_cv_func_openpty = yes; then |
|
|
12136 | : |
|
|
12137 | else |
|
|
12138 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12139 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12140 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12142 | else |
|
|
12143 | ac_check_lib_save_LIBS=$LIBS |
|
|
12144 | LIBS="-lutil $LIBS" |
|
|
12145 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12146 | /* confdefs.h. */ |
|
|
12147 | _ACEOF |
|
|
12148 | cat confdefs.h >>conftest.$ac_ext |
|
|
12149 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12150 | /* end confdefs.h. */ |
|
|
12151 | |
|
|
12152 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12153 | #ifdef __cplusplus |
|
|
12154 | extern "C" |
|
|
12155 | #endif |
|
|
12156 | /* We use char because int might match the return type of a gcc2 |
|
|
12157 | builtin and then its argument prototype would still apply. */ |
|
|
12158 | char openpty (); |
|
|
12159 | int |
|
|
12160 | main () |
|
|
12161 | { |
|
|
12162 | openpty (); |
|
|
12163 | ; |
|
|
12164 | return 0; |
|
|
12165 | } |
|
|
12166 | _ACEOF |
|
|
12167 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12169 | (eval $ac_link) 2>conftest.er1 |
|
|
12170 | ac_status=$? |
|
|
12171 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12172 | rm -f conftest.er1 |
|
|
12173 | cat conftest.err >&5 |
|
|
12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12175 | (exit $ac_status); } && |
|
|
12176 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12178 | (eval $ac_try) 2>&5 |
|
|
12179 | ac_status=$? |
|
|
12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12181 | (exit $ac_status); }; } && |
|
|
12182 | { ac_try='test -s conftest$ac_exeext' |
|
|
12183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12184 | (eval $ac_try) 2>&5 |
|
|
12185 | ac_status=$? |
|
|
12186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12187 | (exit $ac_status); }; }; then |
|
|
12188 | ac_cv_lib_util_openpty=yes |
|
|
12189 | else |
|
|
12190 | echo "$as_me: failed program was:" >&5 |
|
|
12191 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12192 | |
|
|
12193 | ac_cv_lib_util_openpty=no |
|
|
12194 | fi |
|
|
12195 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12196 | conftest$ac_exeext conftest.$ac_ext |
|
|
12197 | LIBS=$ac_check_lib_save_LIBS |
|
|
12198 | fi |
|
|
12199 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12200 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12201 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12202 | LIBS="$LIBS -lutil" |
|
|
12203 | fi |
|
|
12204 | |
|
|
12205 | fi |
12052 | |
12206 | |
12053 | fi |
12207 | fi |
12054 | |
12208 | |
12055 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12209 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12056 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12210 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12057 | if test "${rxvt_cv_ptys+set}" = set; then |
12211 | if test "${rxvt_cv_ptys+set}" = set; then |
12058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12059 | else |
12213 | else |
12060 | if test x$ac_cv_func_openpty = xyes; then |
12214 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
12061 | rxvt_cv_ptys=OPENPTY |
12215 | rxvt_cv_ptys=OPENPTY |
12062 | else if test x$ac_cv_func__getpty = xyes; then |
12216 | else if test x$ac_cv_func__getpty = xyes; then |
12063 | rxvt_cv_ptys=SGI4 |
12217 | rxvt_cv_ptys=SGI4 |
12064 | else if test -c /dev/ttyp20; then |
12218 | else if test -c /dev/ttyp20; then |
12065 | rxvt_cv_ptys=SCO |
12219 | rxvt_cv_ptys=SCO |
… | |
… | |
12819 | |
12973 | |
12820 | |
12974 | |
12821 | |
12975 | |
12822 | |
12976 | |
12823 | |
12977 | |
12824 | if text x$support_perl = xyes; then |
12978 | if test x$support_perl = xyes; then |
12825 | support_frills=yes |
12979 | support_frills=yes |
12826 | fi |
12980 | fi |
12827 | |
12981 | |
12828 | |
12982 | |
12829 | CFLAGS=${CFLAGS--O} |
12983 | CFLAGS=${CFLAGS--O} |