ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.63 by root, Wed Jan 4 05:24:55 2006 UTC vs.
Revision 1.67 by root, Wed Jan 11 23:08:54 2006 UTC

889 --enable-xim XIM (X Input Method) protocol support 889 --enable-xim XIM (X Input Method) protocol support
890 --enable-ttygid enable tty setting to group named "tty" 890 --enable-ttygid enable tty setting to group named "tty"
891 --disable-backspace-key disable handling of the backspace key 891 --disable-backspace-key disable handling of the backspace key
892 --disable-delete-key disable handling of the delete key 892 --disable-delete-key disable handling of the delete key
893 --disable-resources disable all resource checking 893 --disable-resources disable all resource checking
894 --enable-xgetdefault enable resources via X instead of our small version
895 --enable-8bitctrls enable 8 bit control sequences (not recommended) 894 --enable-8bitctrls enable 8 bit control sequences (not recommended)
896 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 895 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
897 --enable-strings enable some replacement system functions 896 --enable-strings enable some replacement system functions
898 --disable-swapscreen disable swap screen support 897 --disable-swapscreen disable swap screen support
899 --enable-iso14755 enable support for extended ISO 14755 modes 898 --enable-iso14755 enable support for extended ISO 14755 modes
4639_ACEOF 4638_ACEOF
4640 4639
4641 fi 4640 fi
4642fi; 4641fi;
4643 4642
4644# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4645if test "${enable_xgetdefault+set}" = set; then
4646 enableval="$enable_xgetdefault"
4647 if test x$enableval = xyes; then
4648
4649cat >>confdefs.h <<\_ACEOF
4650#define USE_XGETDEFAULT 1
4651_ACEOF
4652
4653 fi
4654fi;
4655
4656# Check whether --enable-8bitctrls or --disable-8bitctrls was given. 4643# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4657if test "${enable_8bitctrls+set}" = set; then 4644if test "${enable_8bitctrls+set}" = set; then
4658 enableval="$enable_8bitctrls" 4645 enableval="$enable_8bitctrls"
4659 if test x$enableval = xyes -o x$enableval = xno; then 4646 if test x$enableval = xyes -o x$enableval = xno; then
4660 support_8bitctrls=$enableval 4647 support_8bitctrls=$enableval
7308 7295
7309 7296
7310 7297
7311 7298
7312 7299
7300
7301
7313for ac_header in \ 7302for ac_header in \
7314 assert.h \ 7303 assert.h \
7315 fcntl.h \ 7304 fcntl.h \
7316 grp.h \ 7305 grp.h \
7317 libc.h \ 7306 libc.h \
7330 sys/time.h \ 7319 sys/time.h \
7331 utmp.h \ 7320 utmp.h \
7332 utmpx.h \ 7321 utmpx.h \
7333 stdint.h \ 7322 stdint.h \
7334 pty.h \ 7323 pty.h \
7324 util.h \
7325 libutil.h \
7335 wchar.h \ 7326 wchar.h \
7336 cwchar \ 7327 cwchar \
7337 clocale \ 7328 clocale \
7338 7329
7339do 7330do
10203 seteuid \ 10194 seteuid \
10204 setreuid \ 10195 setreuid \
10205 setsid \ 10196 setsid \
10206 setpgrp \ 10197 setpgrp \
10207 setpgid \ 10198 setpgid \
10208 openpty \
10209 _getpty \ 10199 _getpty \
10200 posix_openpt \
10210 grantpt \ 10201 grantpt \
10211 unlockpt \ 10202 unlockpt \
10212 isastream \ 10203 isastream \
10213 on_exit \ 10204 on_exit \
10214 nanosleep \ 10205 nanosleep \
11995#define XIMCB_PROTO_BROKEN 1 11986#define XIMCB_PROTO_BROKEN 1
11996_ACEOF 11987_ACEOF
11997 11988
11998fi 11989fi
11999 11990
11991if test x$rxvt_cv_func_posix_openpt = xno; then
12000echo "$as_me:$LINENO: checking for getpt" >&5 11992 echo "$as_me:$LINENO: checking for openpty" >&5
12001echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11993echo $ECHO_N "checking for openpty... $ECHO_C" >&6
12002if test "${rxvt_cv_func_getpt+set}" = set; then 11994if test "${ac_cv_func_openpty+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6 11995 echo $ECHO_N "(cached) $ECHO_C" >&6
12004else 11996else
12005 cat >conftest.$ac_ext <<_ACEOF 11997 cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h. */ 11998/* confdefs.h. */
12007_ACEOF 11999_ACEOF
12008cat confdefs.h >>conftest.$ac_ext 12000cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF 12001cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */ 12002/* end confdefs.h. */
12011#define _GNU_SOURCE 12003/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
12012#ifdef HAVE_STDLIB_H 12004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12013# include <cstdlib> 12005#define openpty innocuous_openpty
12006
12007/* System header to define __stub macros and hopefully few prototypes,
12008 which can conflict with char openpty (); below.
12009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12010 <limits.h> exists even on freestanding compilers. */
12011
12012#ifdef __STDC__
12013# include <limits.h>
12014#else
12015# include <assert.h>
12014#endif 12016#endif
12017
12018#undef openpty
12019
12020/* Override any gcc2 internal prototype to avoid an error. */
12021#ifdef __cplusplus
12022extern "C"
12023{
12024#endif
12025/* We use char because int might match the return type of a gcc2
12026 builtin and then its argument prototype would still apply. */
12027char openpty ();
12028/* The GNU C library defines this for functions which it implements
12029 to always fail with ENOSYS. Some functions are actually named
12030 something starting with __ and the normal name is an alias. */
12031#if defined (__stub_openpty) || defined (__stub___openpty)
12032choke me
12033#else
12034char (*f) () = openpty;
12035#endif
12036#ifdef __cplusplus
12037}
12038#endif
12039
12015int 12040int
12016main () 12041main ()
12017{ 12042{
12018(void)getpt(); 12043return f != openpty;
12019 ; 12044 ;
12020 return 0; 12045 return 0;
12021} 12046}
12022_ACEOF 12047_ACEOF
12023rm -f conftest.$ac_objext conftest$ac_exeext 12048rm -f conftest.$ac_objext conftest$ac_exeext
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5 12065 (eval $ac_try) 2>&5
12041 ac_status=$? 12066 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then 12068 (exit $ac_status); }; }; then
12044 rxvt_cv_func_getpt=yes 12069 ac_cv_func_openpty=yes
12045else 12070else
12046 echo "$as_me: failed program was:" >&5 12071 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5 12072sed 's/^/| /' conftest.$ac_ext >&5
12048 12073
12049rxvt_cv_func_getpt=no 12074ac_cv_func_openpty=no
12050fi 12075fi
12051rm -f conftest.err conftest.$ac_objext \ 12076rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext 12077 conftest$ac_exeext conftest.$ac_ext
12053fi 12078fi
12054echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 12079echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12055echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 12080echo "${ECHO_T}$ac_cv_func_openpty" >&6
12056if test x$rxvt_cv_func_getpt = xyes; then 12081if test $ac_cv_func_openpty = yes; then
12057 12082 :
12083else
12084 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12085echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12086if test "${ac_cv_lib_util_openpty+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 ac_check_lib_save_LIBS=$LIBS
12090LIBS="-lutil $LIBS"
12091cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12058cat >>confdefs.h <<\_ACEOF 12095cat >>conftest.$ac_ext <<_ACEOF
12059#define HAVE_GETPT 1 12096/* end confdefs.h. */
12097
12098/* Override any gcc2 internal prototype to avoid an error. */
12099#ifdef __cplusplus
12100extern "C"
12101#endif
12102/* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104char openpty ();
12105int
12106main ()
12107{
12108openpty ();
12109 ;
12110 return 0;
12111}
12060_ACEOF 12112_ACEOF
12113rm -f conftest.$ac_objext conftest$ac_exeext
12114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_lib_util_openpty=yes
12135else
12136 echo "$as_me: failed program was:" >&5
12137sed 's/^/| /' conftest.$ac_ext >&5
12138
12139ac_cv_lib_util_openpty=no
12140fi
12141rm -f conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143LIBS=$ac_check_lib_save_LIBS
12144fi
12145echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12146echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12147if test $ac_cv_lib_util_openpty = yes; then
12148 LIBS="$LIBS -lutil"
12149fi
12150
12151fi
12061 12152
12062fi 12153fi
12063 12154
12064echo "$as_me:$LINENO: checking for pty/tty type" >&5 12155echo "$as_me:$LINENO: checking for pty/tty type" >&5
12065echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12156echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12066if test "${rxvt_cv_ptys+set}" = set; then 12157if test "${rxvt_cv_ptys+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6 12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12068else 12159else
12069 if test x$ac_cv_func_openpty = xyes; then 12160 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12070 rxvt_cv_ptys=OPENPTY 12161 rxvt_cv_ptys=OPENPTY
12162 else if test x$ac_cv_func_posix_openpt = xyes; then
12163 rxvt_cv_ptys=POSIX
12071 else if test x$ac_cv_func__getpty = xyes; then 12164 else if test x$ac_cv_func__getpty = xyes; then
12072 rxvt_cv_ptys=SGI4 12165 rxvt_cv_ptys=SGI4
12073 else if test -c /dev/ttyp20; then 12166 else if test -c /dev/ttyp20; then
12074 rxvt_cv_ptys=SCO 12167 rxvt_cv_ptys=SCO
12075 else if test -c /dev/ptym/clone; then 12168 else if test -c /dev/ptym/clone; then
12076 rxvt_cv_ptys=HPUX 12169 rxvt_cv_ptys=HPUX
12077 else if test x$rxvt_cv_func_getpt = xyes; then
12078 rxvt_cv_ptys=GLIBC
12079 else if test -c /dev/ptc -a -c /dev/pts; then 12170 else if test -c /dev/ptc -a -c /dev/pts; then
12080 rxvt_cv_ptys=PTC 12171 rxvt_cv_ptys=PTC
12081 else if test -c /dev/ptc -a -d /dev/pts; then 12172 else if test -c /dev/ptc -a -d /dev/pts; then
12082 rxvt_cv_ptys=PTC 12173 rxvt_cv_ptys=PTC
12083 else if test -c /dev/ptmx -a -c /dev/pts/0; then 12174 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12098 12189
12099fi 12190fi
12100echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12191echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12101echo "${ECHO_T}$rxvt_cv_ptys" >&6 12192echo "${ECHO_T}$rxvt_cv_ptys" >&6
12102 12193
12194if test x$rxvt_cv_ptys = xPOSIX; then
12195
12196cat >>confdefs.h <<\_ACEOF
12197#define PTYS_ARE_POSIX 1
12198_ACEOF
12199
12200fi
12103if test x$rxvt_cv_ptys = xOPENPTY; then 12201if test x$rxvt_cv_ptys = xOPENPTY; then
12104 12202
12105cat >>confdefs.h <<\_ACEOF 12203cat >>confdefs.h <<\_ACEOF
12106#define PTYS_ARE_OPENPTY 1 12204#define PTYS_ARE_OPENPTY 1
12107_ACEOF 12205_ACEOF
12130fi 12228fi
12131if test x$rxvt_cv_ptys = xSGI4; then 12229if test x$rxvt_cv_ptys = xSGI4; then
12132 12230
12133cat >>confdefs.h <<\_ACEOF 12231cat >>confdefs.h <<\_ACEOF
12134#define PTYS_ARE__GETPTY 1 12232#define PTYS_ARE__GETPTY 1
12135_ACEOF
12136
12137fi
12138if test x$rxvt_cv_ptys = xCONVEX; then
12139
12140cat >>confdefs.h <<\_ACEOF
12141#define PTYS_ARE_GETPTY 1
12142_ACEOF 12233_ACEOF
12143 12234
12144fi 12235fi
12145if test x$rxvt_cv_ptys = xGLIBC; then 12236if test x$rxvt_cv_ptys = xGLIBC; then
12146 12237
12827 12918
12828 12919
12829 12920
12830 12921
12831 12922
12923
12924if test x$support_perl = xyes; then
12925 support_frills=yes
12926fi
12832 12927
12833 12928
12834CFLAGS=${CFLAGS--O} 12929CFLAGS=${CFLAGS--O}
12835LDFLAGS=${LDFLAGS--O} 12930LDFLAGS=${LDFLAGS--O}
12836 12931

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines