… | |
… | |
75 | dnl# system hacks |
75 | dnl# system hacks |
76 | AC_AIX |
76 | AC_AIX |
77 | AC_ISC_POSIX |
77 | AC_ISC_POSIX |
78 | |
78 | |
79 | dnl# FreeBSD needs to link libxpg4 |
79 | dnl# FreeBSD needs to link libxpg4 |
80 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
80 | AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])]) |
81 | |
81 | |
82 | dnl solaris needs to link libnsl and socket |
82 | dnl# solaris needs to link libnsl and socket |
83 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
83 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
84 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
84 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
|
|
85 | |
|
|
86 | dnl# more solaris |
|
|
87 | AC_CHECK_FUNC(sched_yield, [], [AC_CHECK_LIB(rt, sched_yield, [LIBS="$LIBS -lrt"])]) |
|
|
88 | |
|
|
89 | dnl# sched_yield to improve terminal efficiency |
|
|
90 | AC_MSG_CHECKING(for sched_yield support) |
|
|
91 | AC_TRY_LINK([#include <sched.h>],[sched_yield ()], |
|
|
92 | [AC_MSG_RESULT(yes) |
|
|
93 | AC_DEFINE(HAVE_SCHED_YIELD, 1, Define if you have sched-h and sched_yield)], |
|
|
94 | [AC_MSG_RESULT(no)]) |
85 | |
95 | |
86 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
96 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
87 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
97 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
88 | dnl AC_PROG_LIBTOOL()dnl# libtool |
98 | dnl AC_PROG_LIBTOOL()dnl# libtool |
89 | |
99 | |
… | |
… | |
1116 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
1126 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
1117 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
1127 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
1118 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
1128 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
1119 | fi |
1129 | fi |
1120 | |
1130 | |
|
|
1131 | AC_CACHE_CHECK(for unix-compliant filehandle passing ability, rxvt_can_pass_fds, |
|
|
1132 | [AC_TRY_LINK([ |
|
|
1133 | #include <sys/types.h> |
|
|
1134 | #include <sys/socket.h> |
|
|
1135 | ],[ |
|
|
1136 | { |
|
|
1137 | msghdr msg; |
|
|
1138 | iovec iov; |
|
|
1139 | char buf [100]; |
|
|
1140 | char data = 0; |
|
|
1141 | |
|
|
1142 | iov.iov_base = &data; |
|
|
1143 | iov.iov_len = 1; |
|
|
1144 | |
|
|
1145 | msg.msg_iov = &iov; |
|
|
1146 | msg.msg_iovlen = 1; |
|
|
1147 | msg.msg_control = buf; |
|
|
1148 | msg.msg_controllen = sizeof buf; |
|
|
1149 | |
|
|
1150 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
1151 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
1152 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
1153 | cmsg->cmsg_len = 100; |
|
|
1154 | |
|
|
1155 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
1156 | |
|
|
1157 | return sendmsg (3, &msg, 0); |
|
|
1158 | } |
|
|
1159 | ],[rxvt_can_pass_fds=yes],[rxvt_can_pass_fds=no])]) |
|
|
1160 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
1161 | AC_DEFINE(HAVE_UNIX_FDPASS, 1, Define if sys/socket.h defines the necessary macros/functions for file handle passing) |
|
|
1162 | fi |
|
|
1163 | |
1121 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
1164 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
1122 | [AC_COMPILE_IFELSE([ |
1165 | [AC_COMPILE_IFELSE([ |
1123 | #include <X11/Xlib.h> |
1166 | #include <X11/Xlib.h> |
1124 | |
1167 | |
1125 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
1168 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
… | |
… | |
1478 | |
1521 | |
1479 | echo " *** Optionally check src/feature.h for further options ***" |
1522 | echo " *** Optionally check src/feature.h for further options ***" |
1480 | echo |
1523 | echo |
1481 | |
1524 | |
1482 | echo ".----------------------------------------------------------------." |
1525 | echo ".----------------------------------------------------------------." |
1483 | echo ". NOTE: most features are disabled by default, try ." |
1526 | echo ". NOTE: some features are disabled by default, try ." |
1484 | echo ". configure --help to get an idea of the optional features, ." |
1527 | echo ". configure --help to get an idea of the optional features, ." |
1485 | echo ". or read ./README.configure ." |
1528 | echo ". or read ./README.configure ." |
1486 | echo ". ." |
1529 | echo ". ." |
1487 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
1530 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
1488 | echo ". you do not want to read documentation and still want some ." |
1531 | echo ". you do not want to read documentation and still want some ." |