… | |
… | |
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 |
|
|
72 | support_tinting=no |
65 | support_keepscrolling=no |
73 | support_keepscrolling=no |
66 | support_selectionscrolling=no |
74 | support_selectionscrolling=no |
67 | support_menubar=no |
75 | support_menubar=no |
68 | support_mousewheel=no |
76 | support_mousewheel=no |
69 | support_mouseslipwheel=no |
77 | support_mouseslipwheel=no |
… | |
… | |
80 | support_xim=no |
88 | support_xim=no |
81 | support_xpm=no |
89 | support_xpm=no |
82 | support_xft=no |
90 | support_xft=no |
83 | support_unicode3=no |
91 | support_unicode3=no |
84 | support_combining=no |
92 | support_combining=no |
|
|
93 | support_8bitctrls=no |
85 | codesets= |
94 | codesets= |
86 | |
95 | |
87 | dnl# -------------------------------------------------------------------------- |
96 | dnl# -------------------------------------------------------------------------- |
88 | dnl# CHECKING COMMAND LINE OPTIONS |
97 | dnl# CHECKING COMMAND LINE OPTIONS |
89 | dnl# -------------------------------------------------------------------------- |
98 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
101 | [if test x$enableval = xyes; then |
110 | [if test x$enableval = xyes; then |
102 | support_24bit=yes |
111 | support_24bit=yes |
103 | support_frills=yes |
112 | support_frills=yes |
104 | support_linespace=yes |
113 | support_linespace=yes |
105 | support_inheritpixmap=yes |
114 | support_inheritpixmap=yes |
|
|
115 | support_tinting=yes |
106 | support_keepscrolling=yes |
116 | support_keepscrolling=yes |
107 | support_selectionscrolling=yes |
117 | support_selectionscrolling=yes |
108 | support_lastlog=yes |
118 | support_lastlog=yes |
109 | support_menubar=yes |
119 | support_menubar=yes |
110 | support_mousewheel=yes |
120 | support_mousewheel=yes |
… | |
… | |
121 | support_xim=yes |
131 | support_xim=yes |
122 | support_xpm=yes |
132 | support_xpm=yes |
123 | support_xft=yes |
133 | support_xft=yes |
124 | support_unicode3=yes |
134 | support_unicode3=yes |
125 | support_combining=yes |
135 | support_combining=yes |
|
|
136 | #support_8bitctrls=yes |
126 | codesets=all |
137 | codesets=all |
127 | fi]) |
138 | fi]) |
128 | |
139 | |
129 | AC_ARG_ENABLE(unicode3, |
140 | AC_ARG_ENABLE(unicode3, |
130 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
141 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
… | |
… | |
170 | |
181 | |
171 | AC_ARG_ENABLE(transparency, |
182 | AC_ARG_ENABLE(transparency, |
172 | [ --enable-transparency enable transparent backgrounds], |
183 | [ --enable-transparency enable transparent backgrounds], |
173 | [if test x$enableval = xyes -o x$enableval = xno; then |
184 | [if test x$enableval = xyes -o x$enableval = xno; then |
174 | support_inheritpixmap=$enableval |
185 | support_inheritpixmap=$enableval |
|
|
186 | fi]) |
|
|
187 | |
|
|
188 | AC_ARG_ENABLE(tinting, |
|
|
189 | [ --enable-tinting enable tinting of transparent bg], |
|
|
190 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
191 | support_tinting=$enableval |
175 | fi]) |
192 | fi]) |
176 | |
193 | |
177 | AC_ARG_ENABLE(menubar, |
194 | AC_ARG_ENABLE(menubar, |
178 | [ --enable-menubar enable menubar], |
195 | [ --enable-menubar enable menubar], |
179 | [if test x$enableval = xyes -o x$enableval = xno; then |
196 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
246 | |
263 | |
247 | AC_ARG_ENABLE(xgetdefault, |
264 | AC_ARG_ENABLE(xgetdefault, |
248 | [ --enable-xgetdefault enable resources via X instead of our small version], |
265 | [ --enable-xgetdefault enable resources via X instead of our small version], |
249 | [if test x$enableval = xyes; then |
266 | [if test x$enableval = xyes; then |
250 | AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) |
267 | AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) |
|
|
268 | fi]) |
|
|
269 | |
|
|
270 | AC_ARG_ENABLE(8bitctrls, |
|
|
271 | [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], |
|
|
272 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
273 | support_8bitctrls=yes |
251 | fi]) |
274 | fi]) |
252 | |
275 | |
253 | RESFALLBACK=Rxvt |
276 | RESFALLBACK=Rxvt |
254 | AC_ARG_ENABLE(fallback, |
277 | AC_ARG_ENABLE(fallback, |
255 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
278 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
… | |
… | |
1144 | fi |
1167 | fi |
1145 | if test x$pch2 != x; then |
1168 | if test x$pch2 != x; then |
1146 | AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) |
1169 | AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) |
1147 | fi |
1170 | fi |
1148 | |
1171 | |
1149 | dnl# FreeBSD needs to link libxpg4 |
|
|
1150 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
|
|
1151 | |
|
|
1152 | dnl# -------------------------------------------------------------------------- |
1172 | dnl# -------------------------------------------------------------------------- |
1153 | dnl# now add and remove other stuff |
1173 | dnl# now add and remove other stuff |
1154 | dnl# -------------------------------------------------------------------------- |
1174 | dnl# -------------------------------------------------------------------------- |
|
|
1175 | if test x$support_8bitctrls = xyes; then |
|
|
1176 | AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
|
|
1177 | fi |
|
|
1178 | if test x$support_tinting = xyes; then |
|
|
1179 | AC_DEFINE(TINTING, 1, Define if you want your background to be tinted) |
|
|
1180 | fi |
1155 | if test x$support_inheritpixmap = xyes; then |
1181 | if test x$support_inheritpixmap = xyes; then |
1156 | AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) |
1182 | AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) |
1157 | fi |
1183 | fi |
1158 | if test x$support_keepscrolling = xno; then |
1184 | if test x$support_keepscrolling = xno; then |
1159 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
1185 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |