… | |
… | |
51 | |
51 | |
52 | dnl# system hacks |
52 | dnl# system hacks |
53 | AC_AIX |
53 | AC_AIX |
54 | AC_ISC_POSIX |
54 | AC_ISC_POSIX |
55 | |
55 | |
|
|
56 | dnl# FreeBSD needs to link libxpg4 |
|
|
57 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
|
|
58 | |
|
|
59 | dnl solaris needs to link libnsl and socket |
|
|
60 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
|
|
61 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
|
|
62 | |
56 | AC_ENABLE_SHARED(no)dnl# libtool |
63 | AC_ENABLE_SHARED(no)dnl# libtool |
57 | AC_ENABLE_STATIC(yes)dnl# libtool |
64 | AC_ENABLE_STATIC(yes)dnl# libtool |
58 | AC_PROG_LIBTOOL()dnl# libtool |
65 | AC_PROG_LIBTOOL()dnl# libtool |
59 | |
66 | |
60 | MALLOC_TYPE=S |
67 | MALLOC_TYPE=S |
61 | support_addstrings=no |
68 | support_addstrings=no |
62 | support_frills=no |
69 | support_frills=no |
63 | support_linespace=no |
70 | support_linespace=no |
64 | support_inheritpixmap=no |
71 | support_inheritpixmap=no |
65 | support_tinting=no |
72 | support_tinting=no |
|
|
73 | support_fading=no |
66 | support_keepscrolling=no |
74 | support_keepscrolling=no |
67 | support_selectionscrolling=no |
75 | support_selectionscrolling=no |
68 | support_menubar=no |
76 | support_menubar=no |
69 | support_mousewheel=no |
77 | support_mousewheel=no |
70 | support_mouseslipwheel=no |
78 | support_mouseslipwheel=no |
… | |
… | |
81 | support_xim=no |
89 | support_xim=no |
82 | support_xpm=no |
90 | support_xpm=no |
83 | support_xft=no |
91 | support_xft=no |
84 | support_unicode3=no |
92 | support_unicode3=no |
85 | support_combining=no |
93 | support_combining=no |
|
|
94 | support_8bitctrls=no |
86 | codesets= |
95 | codesets= |
87 | |
96 | |
88 | dnl# -------------------------------------------------------------------------- |
97 | dnl# -------------------------------------------------------------------------- |
89 | dnl# CHECKING COMMAND LINE OPTIONS |
98 | dnl# CHECKING COMMAND LINE OPTIONS |
90 | dnl# -------------------------------------------------------------------------- |
99 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
103 | support_24bit=yes |
112 | support_24bit=yes |
104 | support_frills=yes |
113 | support_frills=yes |
105 | support_linespace=yes |
114 | support_linespace=yes |
106 | support_inheritpixmap=yes |
115 | support_inheritpixmap=yes |
107 | support_tinting=yes |
116 | support_tinting=yes |
|
|
117 | support_fading=yes |
108 | support_keepscrolling=yes |
118 | support_keepscrolling=yes |
109 | support_selectionscrolling=yes |
119 | support_selectionscrolling=yes |
110 | support_lastlog=yes |
120 | support_lastlog=yes |
111 | support_menubar=yes |
121 | support_menubar=yes |
112 | support_mousewheel=yes |
122 | support_mousewheel=yes |
… | |
… | |
123 | support_xim=yes |
133 | support_xim=yes |
124 | support_xpm=yes |
134 | support_xpm=yes |
125 | support_xft=yes |
135 | support_xft=yes |
126 | support_unicode3=yes |
136 | support_unicode3=yes |
127 | support_combining=yes |
137 | support_combining=yes |
|
|
138 | #support_8bitctrls=yes |
128 | codesets=all |
139 | codesets=all |
129 | fi]) |
140 | fi]) |
130 | |
141 | |
131 | AC_ARG_ENABLE(unicode3, |
142 | AC_ARG_ENABLE(unicode3, |
132 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
143 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
… | |
… | |
178 | |
189 | |
179 | AC_ARG_ENABLE(tinting, |
190 | AC_ARG_ENABLE(tinting, |
180 | [ --enable-tinting enable tinting of transparent bg], |
191 | [ --enable-tinting enable tinting of transparent bg], |
181 | [if test x$enableval = xyes -o x$enableval = xno; then |
192 | [if test x$enableval = xyes -o x$enableval = xno; then |
182 | support_tinting=$enableval |
193 | support_tinting=$enableval |
|
|
194 | fi]) |
|
|
195 | |
|
|
196 | AC_ARG_ENABLE(fading, |
|
|
197 | [ --enable-tinting enable colors fading when off focus], |
|
|
198 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
199 | support_fading=$enableval |
183 | fi]) |
200 | fi]) |
184 | |
201 | |
185 | AC_ARG_ENABLE(menubar, |
202 | AC_ARG_ENABLE(menubar, |
186 | [ --enable-menubar enable menubar], |
203 | [ --enable-menubar enable menubar], |
187 | [if test x$enableval = xyes -o x$enableval = xno; then |
204 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
254 | |
271 | |
255 | AC_ARG_ENABLE(xgetdefault, |
272 | AC_ARG_ENABLE(xgetdefault, |
256 | [ --enable-xgetdefault enable resources via X instead of our small version], |
273 | [ --enable-xgetdefault enable resources via X instead of our small version], |
257 | [if test x$enableval = xyes; then |
274 | [if test x$enableval = xyes; then |
258 | AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) |
275 | AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) |
|
|
276 | fi]) |
|
|
277 | |
|
|
278 | AC_ARG_ENABLE(8bitctrls, |
|
|
279 | [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], |
|
|
280 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
281 | support_8bitctrls=yes |
259 | fi]) |
282 | fi]) |
260 | |
283 | |
261 | RESFALLBACK=Rxvt |
284 | RESFALLBACK=Rxvt |
262 | AC_ARG_ENABLE(fallback, |
285 | AC_ARG_ENABLE(fallback, |
263 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
286 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
… | |
… | |
1152 | fi |
1175 | fi |
1153 | if test x$pch2 != x; then |
1176 | if test x$pch2 != x; then |
1154 | AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) |
1177 | AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) |
1155 | fi |
1178 | fi |
1156 | |
1179 | |
1157 | dnl# FreeBSD needs to link libxpg4 |
|
|
1158 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
|
|
1159 | |
|
|
1160 | dnl# -------------------------------------------------------------------------- |
1180 | dnl# -------------------------------------------------------------------------- |
1161 | dnl# now add and remove other stuff |
1181 | dnl# now add and remove other stuff |
1162 | dnl# -------------------------------------------------------------------------- |
1182 | dnl# -------------------------------------------------------------------------- |
|
|
1183 | if test x$support_8bitctrls = xyes; then |
|
|
1184 | AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
|
|
1185 | fi |
|
|
1186 | if test x$support_fading = xyes; then |
|
|
1187 | AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) |
|
|
1188 | fi |
1163 | if test x$support_tinting = xyes; then |
1189 | if test x$support_tinting = xyes; then |
1164 | AC_DEFINE(TINTING, 1, Define if you want your background to be tinted) |
1190 | AC_DEFINE(TINTING, 1, Define if you want your background to be tinted) |
1165 | fi |
1191 | fi |
1166 | if test x$support_inheritpixmap = xyes; then |
1192 | if test x$support_inheritpixmap = xyes; then |
1167 | AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) |
1193 | AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) |