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.11 by pcg, Sat Jan 31 04:12:10 2004 UTC vs.
Revision 1.17 by pcg, Wed Mar 3 04:07:52 2004 UTC

27AC_PROG_CC 27AC_PROG_CC
28AC_PROG_CXX 28AC_PROG_CXX
29AC_PROG_CPP 29AC_PROG_CPP
30AC_PROG_INSTALL 30AC_PROG_INSTALL
31AC_PROG_AWK 31AC_PROG_AWK
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
46if test x$GXX = xyes; then
47 CXXFLAGS="$CXXFLAGS -fno-exceptions"
48fi
49
50AC_LANG(C++)
32 51
33dnl# system hacks 52dnl# system hacks
34AC_AIX 53AC_AIX
35AC_ISC_POSIX 54AC_ISC_POSIX
36 55
74 INSTALL_LIBRXVT=yes 93 INSTALL_LIBRXVT=yes
75fi 94fi
76AC_SUBST(INSTALL_LIBRXVT) 95AC_SUBST(INSTALL_LIBRXVT)
77 96
78AC_ARG_ENABLE(everything, 97AC_ARG_ENABLE(everything,
79 [ --enable-everything enable standard non-multichoice features: marked * 98 [ --enable-everything enable standard non-multichoice features
80 NOTE: this option is order dependent 99 NOTE: this option is order dependent
81 NOTE: automatically enabled with --enable-shared], 100 NOTE: automatically enabled with --enable-shared],
82 [if test x$enableval = xyes; then 101 [if test x$enableval = xyes; then
83 support_24bit=yes 102 support_24bit=yes
84 support_frills=yes 103 support_frills=yes
105 support_xft=yes 124 support_xft=yes
106 support_unicode3=yes 125 support_unicode3=yes
107 codesets=all 126 codesets=all
108 fi]) 127 fi])
109 128
110echo
111if test x$support_menubar = xyes; then
112 support_menubar=no
113 echo "******* menubar support disabled, does not work"
114fi
115echo
116
117AC_ARG_ENABLE(unicode3, 129AC_ARG_ENABLE(unicode3,
118 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], 130 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
119 [if test x$enableval = xyes; then 131 [if test x$enableval = xyes -o x$enableval = xno; then
120 support_unicode3=yes 132 support_unicode3=yes
121 fi]) 133 fi])
122 134
123AC_ARG_ENABLE(xft, 135AC_ARG_ENABLE(xft,
124 [ --enable-xft enable xft support on systems that have it], 136 [ --enable-xft enable xft support on systems that have it],
125 [if test x$enableval = xyes; then 137 [if test x$enableval = xyes -o x$enableval = xno; then
126 support_xft=yes 138 support_xft=yes
127 fi])
128
129AC_ARG_WITH(codesets,
130 [ --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)],
131 [if test x$enableval = xyes; then
132 codesets="$withval"
133 fi])
134
135AC_ARG_WITH(encoding,
136 [ --with-encoding=NAME set language default encoding to NAME (default: sjis)
137 (eucj|sjis|big5|gb|kr|noenc)],
138 [if test x$enableval = xyes; then
139 withval=`echo $withval | tr '[a-z]' '[A-Z]'`
140 AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding)
141 fi]) 139 fi])
142 140
143AC_ARG_ENABLE(utmp, 141AC_ARG_ENABLE(utmp,
144 [ --enable-utmp enable utmp (utmpx) support], 142 [ --enable-utmp enable utmp (utmpx) support],
145 [if test x$enableval = xyes -o x$enableval = xno; then 143 [if test x$enableval = xyes -o x$enableval = xno; then
204 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], 202 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar],
205 [if test x$enableval = xyes; then 203 [if test x$enableval = xyes; then
206 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 204 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
207 fi]) 205 fi])
208 206
207AC_ARG_WITH(codesets,
208 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)],
209 [codesets="$withval"])
210
209AC_ARG_ENABLE(xim, 211AC_ARG_ENABLE(xim,
210 [ --enable-xim XIM (X Input Method) protocol support], 212 [ --enable-xim XIM (X Input Method) protocol support],
211 [if test x$enableval = xyes -o x$enableval = xno; then 213 [if test x$enableval = xyes -o x$enableval = xno; then
212 support_xim=$enableval 214 support_xim=$enableval
213 fi])
214
215AC_ARG_ENABLE(greek,
216 [ --enable-greek enable greek keyboard support],
217 [if test x$enableval = xyes; then
218 AC_DEFINE(GREEK_SUPPORT, 1, Define if you want support for Greek Elot-928 & IBM-437 keyboard)
219 fi]) 215 fi])
220 216
221AC_ARG_ENABLE(ttygid, 217AC_ARG_ENABLE(ttygid,
222 [ --enable-ttygid enable tty setting to group named "tty"], 218 [ --enable-ttygid enable tty setting to group named "tty"],
223 [if test x$enableval = xyes; then 219 [if test x$enableval = xyes; then
245AC_ARG_ENABLE(xgetdefault, 241AC_ARG_ENABLE(xgetdefault,
246 [ --enable-xgetdefault enable resources via X instead of our small version], 242 [ --enable-xgetdefault enable resources via X instead of our small version],
247 [if test x$enableval = xyes; then 243 [if test x$enableval = xyes; then
248 AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) 244 AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version)
249 fi]) 245 fi])
246
247RESFALLBACK=Rxvt
248AC_ARG_ENABLE(fallback,
249 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
250 [
251 test x$enableval = xyes && enableval=Rxvt
252 test x$enableval = xno && enableval=
253 RESFALLBACK="$enableval"
254 ])
255
256if test x$RESFALLBACK != x; then
257 AC_DEFINE_UNQUOTED(RESFALLBACK, "$RESFALLBACK", [Fallback resource class])
258fi
259
260RESNAME=urxvt
261AC_ARG_WITH(res-name,
262 [ --with-res-name=NAME use this as default resource name (default: urxvt)],
263 [RESNAME="$withval"])
264AC_DEFINE_UNQUOTED(RESNAME,"$RESNAME", [Default resource name])
265
266RESCLASS=URxvt
267AC_ARG_WITH(res-class,
268 [ --with-res-class=CLASS use this as the resource class (default: URxvt)],
269 [RESCLASS="$withval"])
270AC_DEFINE_UNQUOTED(RESCLASS,"$RESCLASS", [Resource class])
271
272RXVTNAME=urxvt
273AC_ARG_WITH(name,
274 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
275 [RXVTNAME="$withval"])
276
277RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
278AC_SUBST(RXVTNAME)
250 279
251AC_ARG_ENABLE(strings, 280AC_ARG_ENABLE(strings,
252 [ --enable-strings enable some replacement system functions], 281 [ --enable-strings enable some replacement system functions],
253 [if test x$enableval = xyes -o x$enableval = xno; then 282 [if test x$enableval = xyes -o x$enableval = xno; then
254 support_addstrings=$enableval 283 support_addstrings=$enableval
362 [if test x$enableval = xyes -o x$enableval = xno; then 391 [if test x$enableval = xyes -o x$enableval = xno; then
363 support_pointer_blank=$enableval 392 support_pointer_blank=$enableval
364 fi]) 393 fi])
365 394
366AC_ARG_WITH(term, 395AC_ARG_WITH(term,
367 [ --with-term=NAME set the terminal to NAME (default \"xterm\")], 396 [ --with-term=NAME set the terminal to NAME (default: rxvt)],
368 [if test x$withval != x; then 397 [if test x$withval != x; then
369 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" 398 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval"
370 fi]) 399 fi])
371 400
372AC_ARG_WITH(terminfo, 401AC_ARG_WITH(terminfo,
1207if test x$codesets = xall; then 1236if test x$codesets = xall; then
1208 codesets=jp,jp-ext,kr,cn,cn-ext,vn 1237 codesets=jp,jp-ext,kr,cn,cn-ext,vn
1209fi 1238fi
1210for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1239for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1211 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) 1240 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1241 AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1212 case "$codeset" in 1242 case "$codeset" in
1213 VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;;
1214 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1243 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1215 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1244 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1216 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1245 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1217 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1246 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;;
1218 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1247 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;;
1252dnl# common parts of the Makefile 1281dnl# common parts of the Makefile
1253MCOMMON=./autoconf/Make.common 1282MCOMMON=./autoconf/Make.common
1254AC_SUBST_FILE(MCOMMON) 1283AC_SUBST_FILE(MCOMMON)
1255 1284
1256AC_ARG_PROGRAM 1285AC_ARG_PROGRAM
1257
1258RXVTNAME=`echo rxvt|sed "$program_transform_name"`
1259AC_SUBST(RXVTNAME)
1260 1286
1261dnl# test for "sun" or "__sun__" before include sys_ioctl 1287dnl# test for "sun" or "__sun__" before include sys_ioctl
1262 1288
1263dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1289dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1264AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl 1290AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl
1308echo "Configuration: 1334echo "Configuration:
1309 1335
1310 Rxvt version: $VERSION : $DATE 1336 Rxvt version: $VERSION : $DATE
1311 Source code location: $srcdir 1337 Source code location: $srcdir
1312 Install path: ${prefix}/bin 1338 Install path: ${prefix}/bin
1313 Compiler: $CC 1339 Compiler: $CXX
1314 Compiler flags: $CFLAGS" 1340 Compiler flags: $CFLAGS
1341 Linker: $LINKER"
1315 1342
1316if test "$MALLOC_TYPE" = S; then 1343if test "$MALLOC_TYPE" = S; then
1317 echo " malloc support: system default" 1344 echo " malloc support: system default"
1318fi 1345fi
1319if test "$MALLOC_TYPE" = G; then 1346if test "$MALLOC_TYPE" = G; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines