… | |
… | |
727 | setreuid \ |
727 | setreuid \ |
728 | setsid \ |
728 | setsid \ |
729 | setpgrp \ |
729 | setpgrp \ |
730 | setpgid \ |
730 | setpgid \ |
731 | _getpty \ |
731 | _getpty \ |
|
|
732 | getpt \ |
732 | posix_openpt \ |
733 | posix_openpt \ |
733 | grantpt \ |
734 | grantpt \ |
734 | unlockpt \ |
735 | unlockpt \ |
735 | isastream \ |
736 | isastream \ |
736 | on_exit \ |
737 | on_exit \ |
… | |
… | |
1166 | |
1167 | |
1167 | if test x$rxvt_broken_ximcb = xyes; then |
1168 | if test x$rxvt_broken_ximcb = xyes; then |
1168 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
1169 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
1169 | fi |
1170 | fi |
1170 | |
1171 | |
1171 | if test x$ac_cv_func_posix_openpt = xno; then |
1172 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
1172 | AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) |
1173 | AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) |
1173 | fi |
1174 | fi |
1174 | |
1175 | |
1175 | dnl# if we don't guess right then it's up to the user |
1176 | dnl# if we don't guess right then it's up to the user |
1176 | AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, |
1177 | AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, |
1177 | [if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
1178 | [if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
1178 | rxvt_cv_ptys=OPENPTY |
1179 | rxvt_cv_ptys=OPENPTY |
|
|
1180 | else if test x$ac_cv_func_getpt = xyes; then |
|
|
1181 | rxvt_cv_ptys=GLIBC |
1179 | else if test x$ac_cv_func_posix_openpt = xyes; then |
1182 | else if test x$ac_cv_func_posix_openpt = xyes; then |
1180 | rxvt_cv_ptys=POSIX |
1183 | rxvt_cv_ptys=POSIX |
1181 | else if test x$ac_cv_func__getpty = xyes; then |
1184 | else if test x$ac_cv_func__getpty = xyes; then |
1182 | rxvt_cv_ptys=SGI4 |
1185 | rxvt_cv_ptys=SGI4 |
1183 | else if test -c /dev/ttyp20; then |
1186 | else if test -c /dev/ttyp20; then |
… | |
… | |
1202 | fi |
1205 | fi |
1203 | fi |
1206 | fi |
1204 | fi |
1207 | fi |
1205 | fi |
1208 | fi |
1206 | fi |
1209 | fi |
|
|
1210 | fi |
1207 | ]) |
1211 | ]) |
1208 | |
1212 | |
|
|
1213 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
1214 | AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type) |
|
|
1215 | fi |
1209 | if test x$rxvt_cv_ptys = xPOSIX; then |
1216 | if test x$rxvt_cv_ptys = xPOSIX; then |
1210 | AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) |
1217 | AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) |
1211 | fi |
1218 | fi |
1212 | if test x$rxvt_cv_ptys = xOPENPTY; then |
1219 | if test x$rxvt_cv_ptys = xOPENPTY; then |
1213 | AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) |
1220 | AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) |
… | |
… | |
1427 | AC_SUBST(DLIB) |
1434 | AC_SUBST(DLIB) |
1428 | AC_SUBST(LIBS) |
1435 | AC_SUBST(LIBS) |
1429 | AC_SUBST(X_LIBS) |
1436 | AC_SUBST(X_LIBS) |
1430 | AC_SUBST(X_EXTRA_LIBS) |
1437 | AC_SUBST(X_EXTRA_LIBS) |
1431 | |
1438 | |
1432 | dnl# common parts of the Makefile |
|
|
1433 | MCOMMON=./autoconf/Make.common |
|
|
1434 | AC_SUBST_FILE(MCOMMON) |
|
|
1435 | |
|
|
1436 | AC_ARG_PROGRAM |
1439 | AC_ARG_PROGRAM |
1437 | |
1440 | |
1438 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1441 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1439 | |
1442 | |
1440 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1443 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
… | |
… | |
1458 | RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) |
1461 | RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) |
1459 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
1462 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
1460 | RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) |
1463 | RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) |
1461 | RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) |
1464 | RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) |
1462 | |
1465 | |
1463 | AC_CONFIG_FILES([autoconf/Make.common \ |
1466 | AC_CONFIG_FILES([Makefile \ |
1464 | Makefile \ |
|
|
1465 | doc/Makefile \ |
1467 | doc/Makefile \ |
1466 | src/Makefile \ |
1468 | src/Makefile \ |
1467 | src/rxvtlib.h \ |
1469 | src/rxvtlib.h \ |
1468 | ]) |
1470 | ]) |
1469 | AC_OUTPUT |
1471 | AC_OUTPUT |