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

Comparing rxvt-unicode/autoconf/configure.in (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:08 2003 UTC vs.
Revision 1.30 by root, Fri Jul 30 16:04:05 2004 UTC

1dnl# -*- sh -*- 1dnl# -*- sh -*-
2dnl#
3dnl# $Id: configure.in,v 1.1 2003/11/24 17:28:08 pcg Exp $
4dnl# 2dnl#
5dnl# Process this file with autoconf to produce a configure script. 3dnl# Process this file with autoconf to produce a configure script.
6dnl# 4dnl#
7AC_INIT(src/feature.h) 5AC_INIT(src/feature.h)
8AC_CONFIG_AUX_DIR(autoconf) 6AC_CONFIG_AUX_DIR(autoconf)
30AC_PROG_CXX 28AC_PROG_CXX
31AC_PROG_CPP 29AC_PROG_CPP
32AC_PROG_INSTALL 30AC_PROG_INSTALL
33AC_PROG_AWK 31AC_PROG_AWK
34 32
33AC_LANG(C)
34
35LINKER="$CXX"
36if test x$GCC = xyes && test x$GXX = xyes; then
37 AC_CHECK_LIB(supc++, main, [
38 LINKER="$CC"
39 LIBS="$LIBS -lsupc++"
40 ])
41fi
42AC_SUBST(LINKER,[$LINKER])
43
44CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
45
46dnl if test x$GXX = xyes; then
47dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...
48dnl fi
49
50AC_LANG(C++)
51
35dnl# system hacks 52dnl# system hacks
36AC_AIX 53AC_AIX
37AC_ISC_POSIX 54AC_ISC_POSIX
55
56dnl# FreeBSD needs to link libxpg4
57AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
58
59dnl solaris needs to link libnsl and socket
60AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])
61AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
38 62
39AC_ENABLE_SHARED(no)dnl# libtool 63AC_ENABLE_SHARED(no)dnl# libtool
40AC_ENABLE_STATIC(yes)dnl# libtool 64AC_ENABLE_STATIC(yes)dnl# libtool
41AC_PROG_LIBTOOL()dnl# libtool 65AC_PROG_LIBTOOL()dnl# libtool
42 66
43MALLOC_TYPE=S 67MALLOC_TYPE=S
44support_addstrings=no 68support_addstrings=no
45support_frills=no 69support_frills=no
46support_linespace=no 70support_linespace=no
47support_graphics=no
48support_inheritpixmap=no 71support_inheritpixmap=no
72support_tinting=no
73support_fading=no
49support_keepscrolling=no 74support_keepscrolling=no
50support_selectionscrolling=no 75support_selectionscrolling=no
51support_menubar=no 76support_menubar=no
52support_mousewheel=no 77support_mousewheel=no
53support_mouseslipwheel=no 78support_mouseslipwheel=no
54support_oldselection=no
55support_utmp=no 79support_utmp=no
56support_wtmp=no 80support_wtmp=no
57support_lastlog=no 81support_lastlog=no
58support_cursor_blink=no 82support_cursor_blink=no
83support_text_blink=no
59support_pointer_blank=no 84support_pointer_blank=no
60support_scroll_rxvt=no 85support_scroll_rxvt=no
61support_scroll_next=no 86support_scroll_next=no
62support_scroll_xterm=no 87support_scroll_xterm=no
88support_scroll_plain=no
63support_xim=no 89support_xim=no
64support_xpm=no 90support_xpm=no
65support_xft=no 91support_xft=no
66support_unicode3=no 92support_unicode3=no
93support_combining=no
94support_8bitctrls=no
67codesets= 95codesets=
68 96
69dnl# -------------------------------------------------------------------------- 97dnl# --------------------------------------------------------------------------
70dnl# CHECKING COMMAND LINE OPTIONS 98dnl# CHECKING COMMAND LINE OPTIONS
71dnl# -------------------------------------------------------------------------- 99dnl# --------------------------------------------------------------------------
75 INSTALL_LIBRXVT=yes 103 INSTALL_LIBRXVT=yes
76fi 104fi
77AC_SUBST(INSTALL_LIBRXVT) 105AC_SUBST(INSTALL_LIBRXVT)
78 106
79AC_ARG_ENABLE(everything, 107AC_ARG_ENABLE(everything,
80 [ --enable-everything enable standard non-multichoice features: marked * 108 [ --enable-everything enable standard non-multichoice features
81 NOTE: this option is order dependent 109 NOTE: this option is order dependent
82 NOTE: automatically enabled with --enable-shared], 110 NOTE: automatically enabled with --enable-shared],
83 [if test x$enableval = xyes; then 111 [if test x$enableval = xyes; then
84 support_24bit=yes 112 support_24bit=yes
85 support_frills=yes 113 support_frills=yes
86 support_linespace=yes 114 support_linespace=yes
87 support_graphics=yes
88 support_inheritpixmap=yes 115 support_inheritpixmap=yes
116 support_tinting=yes
117 support_fading=yes
89 support_keepscrolling=yes 118 support_keepscrolling=yes
90 support_selectionscrolling=yes 119 support_selectionscrolling=yes
91 support_lastlog=yes 120 support_lastlog=yes
92 support_menubar=yes 121 support_menubar=yes
93 support_mousewheel=yes 122 support_mousewheel=yes
94 support_mouseslipwheel=yes 123 support_mouseslipwheel=yes
95 support_oldselection=yes
96 support_cursor_blink=yes 124 support_cursor_blink=yes
125 support_text_blink=yes
97 support_pointer_blank=yes 126 support_pointer_blank=yes
98 support_scroll_rxvt=yes 127 support_scroll_rxvt=yes
99 support_scroll_next=yes 128 support_scroll_next=yes
100 support_scroll_xterm=yes 129 support_scroll_xterm=yes
130 support_scroll_plain=yes
101 support_utmp=yes 131 support_utmp=yes
102 support_wtmp=yes 132 support_wtmp=yes
103 support_xim=yes 133 support_xim=yes
104 support_xpm=yes 134 support_xpm=yes
105 support_xft=yes 135 support_xft=yes
106 support_unicode3=yes 136 support_unicode3=yes
137 support_combining=yes
138 #support_8bitctrls=yes
107 codesets=all 139 codesets=all
108 fi]) 140 fi])
109 141
110AC_ARG_ENABLE(unicode3, 142AC_ARG_ENABLE(unicode3,
111 [ --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],
112 [if test x$enableval = xyes; then 144 [if test x$enableval = xyes -o x$enableval = xno; then
113 support_unicode3=yes 145 support_unicode3=yes
114 fi]) 146 fi])
115 147
148AC_ARG_ENABLE(combining,
149 [ --enable-combining enable composition of base and combining characters],
150 [if test x$enableval = xyes -o x$enableval = xno; then
151 support_combining=yes
152 fi])
153
116AC_ARG_ENABLE(xft, 154AC_ARG_ENABLE(xft,
117 [ --enable-xft enable xft support on systems that have it], 155 [ --enable-xft enable xft support on systems that have it],
118 [if test x$enableval = xyes; then 156 [if test x$enableval = xyes -o x$enableval = xno; then
119 support_xft=yes 157 support_xft=yes
120 fi]) 158 fi])
121 159
122AC_ARG_WITH(codesets,
123 [ --with-codesets=NAME,... compile in additional codesets (hp,jp_ext,kr,cn,cn_ext,vn,all)],
124 [if test x$enableval = xyes; then
125 codesets="$withval"
126 fi])
127
128AC_ARG_WITH(encoding,
129 [ --with-encoding=NAME set language default encoding to NAME (default: sjis)
130 (eucj|sjis|big5|gb|kr|noenc)],
131 [if test x$enableval = xyes; then
132 withval=`echo $withval | tr '[a-z]' '[A-Z]'`
133 AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding)
134 fi])
135
136AC_ARG_ENABLE(utmp, 160AC_ARG_ENABLE(utmp,
137 [ --enable-utmp enable utmp (utmpx) support *], 161 [ --enable-utmp enable utmp (utmpx) support],
138 [if test x$enableval = xyes -o x$enableval = xno; then 162 [if test x$enableval = xyes -o x$enableval = xno; then
139 support_utmp=$enableval 163 support_utmp=$enableval
140 fi]) 164 fi])
141 165
142AC_ARG_ENABLE(wtmp, 166AC_ARG_ENABLE(wtmp,
143 [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*], 167 [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)],
144 [if test x$enableval = xyes -o x$enableval = xno; then 168 [if test x$enableval = xyes -o x$enableval = xno; then
145 support_wtmp=$enableval 169 support_wtmp=$enableval
146 fi]) 170 fi])
147 171
148AC_ARG_ENABLE(lastlog, 172AC_ARG_ENABLE(lastlog,
149 [ --enable-lastlog enable lastlog support (requires --enable-utmp) *], 173 [ --enable-lastlog enable lastlog support (requires --enable-utmp)],
150 [if test x$enableval = xyes -o x$enableval = xno; then 174 [if test x$enableval = xyes -o x$enableval = xno; then
151 support_lastlog=$enableval 175 support_lastlog=$enableval
152 fi]) 176 fi])
153 177
154AC_ARG_ENABLE(xpm-background, 178AC_ARG_ENABLE(xpm-background,
155 [ --enable-xpm-background enable XPM background pixmaps *], 179 [ --enable-xpm-background enable XPM background pixmaps],
156 [if test x$enableval = xyes -o x$enableval = xno; then 180 [if test x$enableval = xyes -o x$enableval = xno; then
157 support_xpm=$enableval 181 support_xpm=$enableval
158 fi]) 182 fi])
159 183
160AC_ARG_ENABLE(transparency, 184AC_ARG_ENABLE(transparency,
161 [ --enable-transparency enable transparent backgrounds *], 185 [ --enable-transparency enable transparent backgrounds],
162 [if test x$enableval = xyes -o x$enableval = xno; then 186 [if test x$enableval = xyes -o x$enableval = xno; then
163 support_inheritpixmap=$enableval 187 support_inheritpixmap=$enableval
164 fi]) 188 fi])
165 189
190AC_ARG_ENABLE(tinting,
191 [ --enable-tinting enable tinting of transparent bg],
192 [if test x$enableval = xyes -o x$enableval = xno; then
193 support_tinting=$enableval
194 fi])
195
196AC_ARG_ENABLE(fading,
197 [ --enable-fading enable colors fading when off focus],
198 [if test x$enableval = xyes -o x$enableval = xno; then
199 support_fading=$enableval
200 fi])
201
166AC_ARG_ENABLE(menubar, 202AC_ARG_ENABLE(menubar,
167 [ --enable-menubar enable menubar *], 203 [ --enable-menubar enable menubar],
168 [if test x$enableval = xyes -o x$enableval = xno; then 204 [if test x$enableval = xyes -o x$enableval = xno; then
169 support_menubar=$enableval 205 support_menubar=$enableval
170 fi]) 206 fi])
171 207
172AC_ARG_ENABLE(graphics,
173 [ --enable-graphics enable rxvt own graphics mode (see src/graphics) *],
174 [if test x$enableval = xyes -o x$enableval = xno; then
175 support_graphics=$enableval
176 fi])
177
178AC_ARG_ENABLE(rxvt-scroll, 208AC_ARG_ENABLE(rxvt-scroll,
179 [ --enable-rxvt-scroll enable rxvt style scrollbar *], 209 [ --enable-rxvt-scroll enable rxvt style scrollbar],
180 [if test x$enableval = xyes -o x$enableval = xno; then 210 [if test x$enableval = xyes -o x$enableval = xno; then
181 support_scroll_rxvt=$enableval 211 support_scroll_rxvt=$enableval
182 fi]) 212 fi])
183 213
184AC_ARG_ENABLE(next-scroll, 214AC_ARG_ENABLE(next-scroll,
185 [ --enable-next-scroll enable NeXT style scrollbar *], 215 [ --enable-next-scroll enable NeXT style scrollbar],
186 [if test x$enableval = xyes -o x$enableval = xno; then 216 [if test x$enableval = xyes -o x$enableval = xno; then
187 support_scroll_next=$enableval 217 support_scroll_next=$enableval
188 fi]) 218 fi])
189 219
190AC_ARG_ENABLE(xterm-scroll, 220AC_ARG_ENABLE(xterm-scroll,
191 [ --enable-xterm-scroll enable Xterm style scrollbar *], 221 [ --enable-xterm-scroll enable Xterm style scrollbar],
192 [if test x$enableval = xyes -o x$enableval = xno; then 222 [if test x$enableval = xyes -o x$enableval = xno; then
193 support_scroll_xterm=$enableval 223 support_scroll_xterm=$enableval
224 fi])
225
226AC_ARG_ENABLE(plain-scroll,
227 [ --enable-plain-scroll enable plain style scrollbar],
228 [if test x$enableval = xyes -o x$enableval = xno; then
229 support_scroll_plain=$enableval
194 fi]) 230 fi])
195 231
196AC_ARG_ENABLE(half-shadow, 232AC_ARG_ENABLE(half-shadow,
197 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], 233 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar],
198 [if test x$enableval = xyes; then 234 [if test x$enableval = xyes; then
199 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 235 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
200 fi]) 236 fi])
201 237
238AC_ARG_WITH(codesets,
239 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)],
240 [codesets="$withval"])
241
202AC_ARG_ENABLE(xim, 242AC_ARG_ENABLE(xim,
203 [ --enable-xim XIM (X Input Method) protocol support *], 243 [ --enable-xim XIM (X Input Method) protocol support],
204 [if test x$enableval = xyes -o x$enableval = xno; then 244 [if test x$enableval = xyes -o x$enableval = xno; then
205 support_xim=$enableval 245 support_xim=$enableval
206 fi])
207
208AC_ARG_ENABLE(greek,
209 [ --enable-greek enable greek keyboard support],
210 [if test x$enableval = xyes; then
211 AC_DEFINE(GREEK_SUPPORT, 1, Define if you want support for Greek Elot-928 & IBM-437 keyboard)
212 fi]) 246 fi])
213 247
214AC_ARG_ENABLE(ttygid, 248AC_ARG_ENABLE(ttygid,
215 [ --enable-ttygid enable tty setting to group named "tty"], 249 [ --enable-ttygid enable tty setting to group named "tty"],
216 [if test x$enableval = xyes; then 250 [if test x$enableval = xyes; then
239 [ --enable-xgetdefault enable resources via X instead of our small version], 273 [ --enable-xgetdefault enable resources via X instead of our small version],
240 [if test x$enableval = xyes; then 274 [if test x$enableval = xyes; then
241 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)
242 fi]) 276 fi])
243 277
278AC_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
282 fi])
283
284RESFALLBACK=Rxvt
285AC_ARG_ENABLE(fallback,
286 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
287 [
288 test x$enableval = xyes && enableval=Rxvt
289 test x$enableval = xno && enableval=
290 RESFALLBACK="$enableval"
291 ])
292
293if test x$RESFALLBACK != x; then
294 AC_DEFINE_UNQUOTED(RESFALLBACK, "$RESFALLBACK", [Fallback resource class])
295fi
296
297RESNAME=urxvt
298AC_ARG_WITH(res-name,
299 [ --with-res-name=NAME use this as default resource name (default: urxvt)],
300 [RESNAME="$withval"])
301AC_DEFINE_UNQUOTED(RESNAME,"$RESNAME", [Default resource name])
302
303RESCLASS=URxvt
304AC_ARG_WITH(res-class,
305 [ --with-res-class=CLASS use this as the resource class (default: URxvt)],
306 [RESCLASS="$withval"])
307AC_DEFINE_UNQUOTED(RESCLASS,"$RESCLASS", [Resource class])
308
309RXVTNAME=urxvt
310AC_ARG_WITH(name,
311 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
312 [RXVTNAME="$withval"])
313
314RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
315AC_SUBST(RXVTNAME)
316
244AC_ARG_ENABLE(strings, 317AC_ARG_ENABLE(strings,
245 [ --enable-strings enable some replacement system functions], 318 [ --enable-strings enable some replacement system functions],
246 [if test x$enableval = xyes -o x$enableval = xno; then 319 [if test x$enableval = xyes -o x$enableval = xno; then
247 support_addstrings=$enableval 320 support_addstrings=$enableval
248 fi]) 321 fi])
252 [if test x$enableval = xno; then 325 [if test x$enableval = xno; then
253 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) 326 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace)
254 fi]) 327 fi])
255 328
256AC_ARG_ENABLE(frills, 329AC_ARG_ENABLE(frills,
257 [ --enable-frills enable support for rarely used features *], 330 [ --enable-frills enable support for rarely used features],
258 [if test x$enableval = xyes -o x$enableval = xno; then 331 [if test x$enableval = xyes -o x$enableval = xno; then
259 support_frills=$enableval 332 support_frills=$enableval
260 fi]) 333 fi])
261 334
262AC_ARG_ENABLE(linespace, 335AC_ARG_ENABLE(linespace,
263 [ --enable-linespace enable support for linespace *], 336 [ --enable-linespace enable support for linespace],
264 [if test x$enableval = xyes -o x$enableval = xno; then 337 [if test x$enableval = xyes -o x$enableval = xno; then
265 support_linespace=$enableval 338 support_linespace=$enableval
266 fi]) 339 fi])
267 340
268AC_ARG_ENABLE(24bit, 341AC_ARG_ENABLE(24bit,
269 [ --enable-24bit enable support for using 24bit visuals if available *], 342 [ --enable-24bit enable support for using 24bit visuals if available],
270 [if test x$enableval = xyes -o x$enableval = xno; then 343 [if test x$enableval = xyes -o x$enableval = xno; then
271 support_24bit=$enableval 344 support_24bit=$enableval
272 fi]) 345 fi])
273 346
274AC_ARG_ENABLE(keepscrolling, 347AC_ARG_ENABLE(keepscrolling,
275 [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press *], 348 [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press],
276 [if test x$enableval = xyes -o x$enableval = xno; then 349 [if test x$enableval = xyes -o x$enableval = xno; then
277 support_keepscrolling=$enableval 350 support_keepscrolling=$enableval
278 fi]) 351 fi])
279 352
280AC_ARG_ENABLE(selectionscrolling, 353AC_ARG_ENABLE(selectionscrolling,
281 [ --enable-selectionscrolling enable scrolling during selections *], 354 [ --enable-selectionscrolling enable scrolling during selections],
282 [if test x$enableval = xyes -o x$enableval = xno; then 355 [if test x$enableval = xyes -o x$enableval = xno; then
283 support_selectionscrolling=$enableval 356 support_selectionscrolling=$enableval
284 fi]) 357 fi])
285 358
286AC_ARG_ENABLE(mousewheel, 359AC_ARG_ENABLE(mousewheel,
287 [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *], 360 [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5],
288 [if test x$enableval = xyes -o x$enableval = xno; then 361 [if test x$enableval = xyes -o x$enableval = xno; then
289 support_mousewheel=$enableval 362 support_mousewheel=$enableval
290 fi]) 363 fi])
291 364
292AC_ARG_ENABLE(slipwheeling, 365AC_ARG_ENABLE(slipwheeling,
293 [ --enable-slipwheeling enable slip wheel scrolling (requires previous) *], 366 [ --enable-slipwheeling enable slip wheel scrolling (requires previous)],
294 [if test x$enableval = xyes -o x$enableval = xno; then 367 [if test x$enableval = xyes -o x$enableval = xno; then
295 support_mouseslipwheel=$enableval 368 support_mouseslipwheel=$enableval
296 fi])
297
298AC_ARG_ENABLE(old-selection,
299 [ --enable-old-selection enable v2.20 (& prior) mouse selection style support*],
300 [if test x$enableval = xyes -o x$enableval = xno; then
301 support_oldselection=$enableval
302 fi])
303
304AC_ARG_ENABLE(new-selection,
305 [ --disable-new-selection disable new mouse (xterm) selection style support],
306 [if test x$enableval = xno; then
307 AC_DEFINE(NO_NEW_SELECTION, 1, Define to remove xterm style mouse selection)
308 fi]) 369 fi])
309 370
310AC_ARG_ENABLE(dmalloc, 371AC_ARG_ENABLE(dmalloc,
311 [ --enable-dmalloc enable Gray Watson's malloc - for debugging use], 372 [ --enable-dmalloc enable Gray Watson's malloc - for debugging use],
312 [if test x$enableval = xyes; then 373 [if test x$enableval = xyes; then
337 [if test x$enableval = xyes; then 398 [if test x$enableval = xyes; then
338 AC_DEFINE(TTY_256COLOR, 1, Define if you want 256 colour support) 399 AC_DEFINE(TTY_256COLOR, 1, Define if you want 256 colour support)
339 fi]) 400 fi])
340 401
341AC_ARG_ENABLE(cursor-blink, 402AC_ARG_ENABLE(cursor-blink,
342 [ --enable-cursor-blink enable blinking cursor *], 403 [ --enable-cursor-blink enable blinking cursor],
343 [if test x$enableval = xyes -o x$enableval = xno; then 404 [if test x$enableval = xyes -o x$enableval = xno; then
344 support_cursor_blink=$enableval 405 support_cursor_blink=$enableval
345 fi]) 406 fi])
346 407
408AC_ARG_ENABLE(text-blink,
409 [ --enable-text-blink enable blinking text],
410 [if test x$enableval = xyes -o x$enableval = xno; then
411 support_text_blink=$enableval
412 fi])
413
347AC_ARG_ENABLE(pointer-blank, 414AC_ARG_ENABLE(pointer-blank,
348 [ --enable-pointer-blank enable pointer blank when typing or inactive pointer*], 415 [ --enable-pointer-blank enable pointer blank when typing or inactive pointer],
349 [if test x$enableval = xyes -o x$enableval = xno; then 416 [if test x$enableval = xyes -o x$enableval = xno; then
350 support_pointer_blank=$enableval 417 support_pointer_blank=$enableval
351 fi]) 418 fi])
352 419
353AC_ARG_WITH(term, 420AC_ARG_WITH(term,
354 [ --with-term=NAME set the terminal to NAME (default \"xterm\")], 421 [ --with-term=NAME set the terminal to NAME (default: rxvt)],
355 [if test x$withval != x; then 422 [if test x$withval != x; then
356 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" 423 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval"
357 fi]) 424 fi])
358 425
359AC_ARG_WITH(terminfo, 426AC_ARG_WITH(terminfo,
1008fi 1075fi
1009LIBS=$ac_save_LIBS 1076LIBS=$ac_save_LIBS
1010CFLAGS=$ac_save_CFLAGS 1077CFLAGS=$ac_save_CFLAGS
1011 1078
1012AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale, 1079AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale,
1013[AC_TRY_LINK([#include <locale.h>], 1080[AC_TRY_LINK([#include <clocale>],
1014 [setlocale(LC_CTYPE, "");], 1081 [setlocale(LC_CTYPE, "");],
1015 rxvt_cv_func_setlocale=yes, rxvt_cv_func_setlocale=no)]) 1082 rxvt_cv_func_setlocale=yes, rxvt_cv_func_setlocale=no)])
1016if test x$rxvt_cv_func_setlocale = xyes; then 1083if test x$rxvt_cv_func_setlocale = xyes; then
1017 AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works) 1084 AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works)
1018fi 1085fi
1023 rxvt_cv_func_nl_langinfo=yes, rxvt_cv_func_nl_langinfo=no)]) 1090 rxvt_cv_func_nl_langinfo=yes, rxvt_cv_func_nl_langinfo=no)])
1024if test x$rxvt_cv_func_nl_langinfo = xyes; then 1091if test x$rxvt_cv_func_nl_langinfo = xyes; then
1025 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 1092 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
1026fi 1093fi
1027 1094
1095AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
1096[AC_COMPILE_IFELSE([
1097#include <X11/Xlib.h>
1098
1099void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
1100
1101void f() {
1102 XIMCallback cb;
1103 cb.callback = im_destroy_cb;
1104}
1105],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
1106
1107if test x$rxvt_broken_ximcb = xyes; then
1108 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
1109fi
1110
1028AC_CACHE_CHECK(for getpt, rxvt_cv_func_getpt, 1111AC_CACHE_CHECK(for getpt, rxvt_cv_func_getpt,
1029[AC_TRY_LINK([#define _GNU_SOURCE 1112[AC_TRY_LINK([#define _GNU_SOURCE
1030#ifdef HAVE_STDLIB_H 1113#ifdef HAVE_STDLIB_H
1031# include <stdlib.h> 1114# include <cstdlib>
1032#endif], 1115#endif],
1033 [(void)getpt();], 1116 [(void)getpt();],
1034 rxvt_cv_func_getpt=yes, rxvt_cv_func_getpt=no)]) 1117 rxvt_cv_func_getpt=yes, rxvt_cv_func_getpt=no)])
1035if test x$rxvt_cv_func_getpt = xyes; then 1118if test x$rxvt_cv_func_getpt = xyes; then
1036 AC_DEFINE(HAVE_GETPT, 1, Define if you have _GNU_SOURCE getpt() ) 1119 AC_DEFINE(HAVE_GETPT, 1, Define if you have _GNU_SOURCE getpt() )
1108fi 1191fi
1109if test x$pch2 != x; then 1192if test x$pch2 != x; then
1110 AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) 1193 AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX)
1111fi 1194fi
1112 1195
1113dnl# FreeBSD needs to link libxpg4
1114AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1115
1116dnl# -------------------------------------------------------------------------- 1196dnl# --------------------------------------------------------------------------
1117dnl# now add and remove other stuff 1197dnl# now add and remove other stuff
1118dnl# -------------------------------------------------------------------------- 1198dnl# --------------------------------------------------------------------------
1199if test x$support_8bitctrls = xyes; then
1200 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
1201fi
1119if test x$support_graphics = xyes; then 1202if test x$support_fading = xyes; then
1120 AC_DEFINE(RXVT_GRAPHICS, 1, Define if you want Rob Nation's own graphic mode) 1203 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
1204fi
1205if test x$support_tinting = xyes; then
1206 AC_DEFINE(TINTING, 1, Define if you want your background to be tinted)
1121fi 1207fi
1122if test x$support_inheritpixmap = xyes; then 1208if test x$support_inheritpixmap = xyes; then
1123 AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) 1209 AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background)
1124fi 1210fi
1125if test x$support_keepscrolling = xno; then 1211if test x$support_keepscrolling = xno; then
1143if test x$support_mousewheel = xyes; then 1229if test x$support_mousewheel = xyes; then
1144 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) 1230 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
1145fi 1231fi
1146if test x$support_mouseslipwheel = xyes; then 1232if test x$support_mouseslipwheel = xyes; then
1147 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) 1233 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling)
1148fi
1149if test x$support_oldselection = xno; then
1150 AC_DEFINE(NO_OLD_SELECTION, 1, Define to remove old rxvt (ver 2.20 and before) style selection)
1151fi 1234fi
1152if test x$support_utmp = xyes; then 1235if test x$support_utmp = xyes; then
1153 AC_DEFINE(UTMP_SUPPORT, 1, Define if you want to have utmp/utmpx support) 1236 AC_DEFINE(UTMP_SUPPORT, 1, Define if you want to have utmp/utmpx support)
1154fi 1237fi
1155if test x$support_wtmp = xyes; then 1238if test x$support_wtmp = xyes; then
1176fi 1259fi
1177if test x$support_scroll_xterm = xyes; then 1260if test x$support_scroll_xterm = xyes; then
1178 AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) 1261 AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars)
1179 scrolltypes="$scrolltypes xterm" 1262 scrolltypes="$scrolltypes xterm"
1180fi 1263fi
1264if test x$support_scroll_plain = xyes; then
1265 AC_DEFINE(PLAIN_SCROLLBAR, 1, Support plain style scrollbars)
1266 scrolltypes="$scrolltypes plain"
1267fi
1181if test x$support_pointer_blank = xyes; then 1268if test x$support_pointer_blank = xyes; then
1182 AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) 1269 AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing)
1183fi 1270fi
1184if test x$support_cursor_blink = xyes; then 1271if test x$support_cursor_blink = xyes; then
1185 AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) 1272 AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support)
1186fi 1273fi
1274if test x$support_text_blink = xyes; then
1275 AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support)
1276fi
1187if test x$support_unicode3 = xyes; then 1277if test x$support_unicode3 = xyes; then
1188 AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) 1278 AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0)
1189fi 1279fi
1280if test x$support_combining = xyes; then
1281 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
1282fi
1190if test x$codesets = xall; then 1283if test x$codesets = xall; then
1191 codesets=jp,jp-ext,kr,cn,cn-ext,vn 1284 codesets=jp,jp-ext,kr,cn,cn-ext
1192fi 1285fi
1193for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1286for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1194 AC_DEFINE(ENCODING_EU, 1, Define if you want europeean extended codesets) 1287 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1288 AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1195 case "$codeset" in 1289 case "$codeset" in
1196 VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;;
1197 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1290 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1198 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1291 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1199 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1292 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1200 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1293 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;;
1201 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1294 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;;
1235dnl# common parts of the Makefile 1328dnl# common parts of the Makefile
1236MCOMMON=./autoconf/Make.common 1329MCOMMON=./autoconf/Make.common
1237AC_SUBST_FILE(MCOMMON) 1330AC_SUBST_FILE(MCOMMON)
1238 1331
1239AC_ARG_PROGRAM 1332AC_ARG_PROGRAM
1240
1241RXVTNAME=`echo rxvt|sed "$program_transform_name"`
1242AC_SUBST(RXVTNAME)
1243 1333
1244dnl# test for "sun" or "__sun__" before include sys_ioctl 1334dnl# test for "sun" or "__sun__" before include sys_ioctl
1245 1335
1246dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1336dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1247AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl 1337AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl
1251 $1="/* #include <$2> */" 1341 $1="/* #include <$2> */"
1252fi dnl 1342fi dnl
1253AC_SUBST($1)]) 1343AC_SUBST($1)])
1254 1344
1255RXVT_DEFINE_TO_INCLUDE(include_stdint_h, stdint.h, ac_cv_header_stdint_h, yes, notset, dontmatch) 1345RXVT_DEFINE_TO_INCLUDE(include_stdint_h, stdint.h, ac_cv_header_stdint_h, yes, notset, dontmatch)
1256RXVT_DEFINE_TO_INCLUDE(include_stdarg_h, stdarg.h, ac_cv_header_stdarg_h, yes, notset, dontmatch) 1346RXVT_DEFINE_TO_INCLUDE(include_stdarg_h, cstdarg, ac_cv_header_stdarg_h, yes, notset, dontmatch)
1257RXVT_DEFINE_TO_INCLUDE(include_stdlib_h, stdlib.h, ac_cv_header_stdlib_h, yes, notset, dontmatch) 1347RXVT_DEFINE_TO_INCLUDE(include_stdlib_h, cstdlib, ac_cv_header_stdlib_h, yes, notset, dontmatch)
1258RXVT_DEFINE_TO_INCLUDE(include_unistd_h, unistd.h, ac_cv_header_unistd_h, yes, notset, dontmatch) 1348RXVT_DEFINE_TO_INCLUDE(include_unistd_h, unistd.h, ac_cv_header_unistd_h, yes, notset, dontmatch)
1259RXVT_DEFINE_TO_INCLUDE(include_string_h, string.h, ac_cv_header_string_h, yes, notset, dontmatch) 1349RXVT_DEFINE_TO_INCLUDE(include_string_h, cstring, ac_cv_header_string_h, yes, notset, dontmatch)
1260RXVT_DEFINE_TO_INCLUDE(include_fcntl_h, fcntl.h, ac_cv_header_fcntl_h, yes, notset, dontmatch) 1350RXVT_DEFINE_TO_INCLUDE(include_fcntl_h, fcntl.h, ac_cv_header_fcntl_h, yes, notset, dontmatch)
1261RXVT_DEFINE_TO_INCLUDE(include_util_h, util.h, ac_cv_header_util_h, yes, notset, dontmatch) 1351RXVT_DEFINE_TO_INCLUDE(include_util_h, util.h, ac_cv_header_util_h, yes, notset, dontmatch)
1262RXVT_DEFINE_TO_INCLUDE(include_assert_h, assert.h, ac_cv_header_assert_h, yes, notset, dontmatch) 1352RXVT_DEFINE_TO_INCLUDE(include_assert_h, assert.h, ac_cv_header_assert_h, yes, notset, dontmatch)
1263RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) 1353RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch)
1264RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1354RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1271 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 1361 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1272 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 1362 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1273 1363
1274 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) 1364 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1275 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no]) 1365 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1366
1367 if test x$support_xft = xyes; then
1276 AC_DEFINE(XFT, 1, Define to enable xft support) 1368 AC_DEFINE(XFT, 1, Define to enable xft support)
1369 fi
1277fi 1370fi
1278 1371
1279AC_OUTPUT(autoconf/Make.common \ 1372AC_OUTPUT(autoconf/Make.common \
1280Makefile \ 1373Makefile \
1281doc/Makefile \ 1374doc/Makefile \
1282src/Makefile \ 1375src/Makefile \
1283src/graphics/Makefile \
1284src/test/Makefile \ 1376src/test/Makefile \
1285src/rxvtlib.h \ 1377src/rxvtlib.h \
1286W11/Makefile \ 1378W11/Makefile \
1287) 1379)
1288 1380
1289echo "Configuration: 1381echo "Configuration:
1290 1382
1291 Rxvt version: $VERSION : $DATE 1383 Rxvt version: $VERSION : $DATE
1292 Source code location: $srcdir 1384 Source code location: $srcdir
1293 Install path: ${prefix}/bin 1385 Install path: ${prefix}/bin
1294 Compiler: $CC 1386 Compiler: $CXX
1295 Compiler flags: $CFLAGS" 1387 Compiler flags: $CFLAGS
1388 Linker: $LINKER"
1296 1389
1297if test "$MALLOC_TYPE" = S; then 1390if test "$MALLOC_TYPE" = S; then
1298 echo " malloc support: system default" 1391 echo " malloc support: system default"
1299fi 1392fi
1300if test "$MALLOC_TYPE" = G; then 1393if test "$MALLOC_TYPE" = G; then
1311echo " 1404echo "
1312The following are set in config.h 1405The following are set in config.h
1313" 1406"
1314echo " pty/tty type: "$rxvt_cv_ptys 1407echo " pty/tty type: "$rxvt_cv_ptys
1315if test x$support_utmp != xyes; then 1408if test x$support_utmp != xyes; then
1316 echo " utmp support: disabled 1409 echo " utmp support: disabled"
1317" 1410 echo
1318else 1411else
1319 echo " utmp support: enabled 1412 echo " utmp support: enabled
1320 utmp file: $rxvt_cv_path_utmp 1413 utmp file: $rxvt_cv_path_utmp
1321 utmpx file: $rxvt_cv_path_utmpx 1414 utmpx file: $rxvt_cv_path_utmpx
1322 wtmp file: $rxvt_cv_path_wtmp 1415 wtmp file: $rxvt_cv_path_wtmp
1323 wtmpx file: $rxvt_cv_path_wtmpx 1416 wtmpx file: $rxvt_cv_path_wtmpx
1324 lastlog file: $rxvt_cv_path_lastlog 1417 lastlog file: $rxvt_cv_path_lastlog
1325 ttys/ttytab file: $rxvt_cv_path_ttytab 1418 ttys/ttytab file: $rxvt_cv_path_ttytab"
1326" 1419 echo
1327fi 1420fi
1328if test x$term != x; then 1421if test x$term != x; then
1329 echo " set TERM to: $term 1422 echo " set TERM to: $term"
1330"
1331fi 1423fi
1332if test x$terminfo != x; then 1424if test x$terminfo != x; then
1333 echo " set TERMINFO to: $terminfo 1425 echo " set TERMINFO to: $terminfo"
1334"
1335fi 1426fi
1427echo " default resource name: $RESNAME"
1428echo " resource class: $RESCLASS"
1429if test x$RESFALLBACK != x; then
1430 echo " resource class fallback: $RESFALLBACK"
1431fi
1432echo
1336if test x$rxvt_cv_ptys = xUNKNOWN; then 1433if test x$rxvt_cv_ptys = xUNKNOWN; then
1337 echo ".----------------------------------------------------------------." 1434 echo ".----------------------------------------------------------------."
1338 echo ". WARNING: could not determine pty/tty type. Do not build until ." 1435 echo ". WARNING: could not determine pty/tty type. Do not build until ."
1339 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 1436 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
1340 echo ".----------------------------------------------------------------." 1437 echo ".----------------------------------------------------------------."
1354 echo ". WARNING: --enable-xim was specified however the locale support ." 1451 echo ". WARNING: --enable-xim was specified however the locale support ."
1355 echo ". functions could not be found. ." 1452 echo ". functions could not be found. ."
1356 echo ". XIM is now being DISABLED! ." 1453 echo ". XIM is now being DISABLED! ."
1357 echo ".----------------------------------------------------------------." 1454 echo ".----------------------------------------------------------------."
1358fi 1455fi
1456
1359echo " *** Please check src/feature.h for further options *** 1457echo " *** Please check src/feature.h for further options ***"
1360" 1458echo
1459
1460echo ".----------------------------------------------------------------."
1461echo ". NOTE: most features are disabled by default, try ."
1462echo ". configure --help to get an idea of the optional features ."
1463echo ".----------------------------------------------------------------."
1464echo
1465

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines