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.36 by root, Sat Aug 21 05:32:00 2004 UTC vs.
Revision 1.45 by root, Tue Jan 11 04:44:57 2005 UTC

4dnl# 4dnl#
5AC_INIT 5AC_INIT
6AC_CONFIG_SRCDIR([src/feature.h]) 6AC_CONFIG_SRCDIR([src/feature.h])
7AC_CONFIG_AUX_DIR(autoconf) 7AC_CONFIG_AUX_DIR(autoconf)
8AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 8AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
9
10AC_CANONICAL_HOST
9 11
10dnl RXVT version 12dnl RXVT version
11changequote(, )dnl 13changequote(, )dnl
12VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 14VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
13DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
40 LIBS="$LIBS -lsupc++" 42 LIBS="$LIBS -lsupc++"
41 ]) 43 ])
42fi 44fi
43AC_SUBST(LINKER,[$LINKER]) 45AC_SUBST(LINKER,[$LINKER])
44 46
45CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" 47AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.)
48
49case $host in
50 *-*-solaris* )
51 AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
52 AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris)
53 AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
54 ;;
55esac
46 56
47dnl if test x$GXX = xyes; then 57dnl if test x$GXX = xyes; then
48dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... 58dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...
49dnl fi 59dnl fi
50 60
66AC_PROG_LIBTOOL()dnl# libtool 76AC_PROG_LIBTOOL()dnl# libtool
67 77
68MALLOC_TYPE=S 78MALLOC_TYPE=S
69support_addstrings=no 79support_addstrings=no
70support_frills=no 80support_frills=no
71support_linespace=no
72support_inheritpixmap=no 81support_inheritpixmap=no
73support_tinting=no 82support_tinting=no
74support_fading=no 83support_fading=no
75support_keepscrolling=no 84support_keepscrolling=no
76support_selectionscrolling=no 85support_selectionscrolling=no
112 NOTE: this option is order dependent 121 NOTE: this option is order dependent
113 NOTE: automatically enabled with --enable-shared], 122 NOTE: automatically enabled with --enable-shared],
114 [if test x$enableval = xyes; then 123 [if test x$enableval = xyes; then
115 support_24bit=yes 124 support_24bit=yes
116 support_frills=yes 125 support_frills=yes
117 support_linespace=yes
118 support_inheritpixmap=yes 126 support_inheritpixmap=yes
119 support_tinting=yes 127 support_tinting=yes
120 support_fading=yes 128 support_fading=yes
121 support_keepscrolling=yes 129 support_keepscrolling=yes
122 support_selectionscrolling=yes 130 support_selectionscrolling=yes
145 fi]) 153 fi])
146 154
147AC_ARG_ENABLE(unicode3, 155AC_ARG_ENABLE(unicode3,
148 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], 156 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
149 [if test x$enableval = xyes -o x$enableval = xno; then 157 [if test x$enableval = xyes -o x$enableval = xno; then
150 support_unicode3=yes 158 support_unicode3=$enableval
151 fi]) 159 fi])
152 160
153AC_ARG_ENABLE(combining, 161AC_ARG_ENABLE(combining,
154 [ --enable-combining enable composition of base and combining characters], 162 [ --enable-combining enable composition of base and combining characters],
155 [if test x$enableval = xyes -o x$enableval = xno; then 163 [if test x$enableval = xyes -o x$enableval = xno; then
156 support_combining=yes 164 support_combining=$enableval
157 fi]) 165 fi])
158 166
159AC_ARG_ENABLE(xft, 167AC_ARG_ENABLE(xft,
160 [ --enable-xft enable xft support on systems that have it], 168 [ --enable-xft enable xft support on systems that have it],
161 [if test x$enableval = xyes -o x$enableval = xno; then 169 [if test x$enableval = xyes -o x$enableval = xno; then
162 support_xft=yes 170 support_xft=$enableval
163 fi]) 171 fi])
164 172
165AC_ARG_ENABLE(font-styles, 173AC_ARG_ENABLE(font-styles,
166 [ --enable-font-styles enable bold and italic support], 174 [ --enable-font-styles enable bold and italic support],
167 [if test x$enableval = xyes -o x$enableval = xno; then 175 [if test x$enableval = xyes -o x$enableval = xno; then
168 support_styles=yes 176 support_styles=$enableval
169 fi]) 177 fi])
170 178
171AC_ARG_ENABLE(utmp, 179AC_ARG_ENABLE(utmp,
172 [ --enable-utmp enable utmp (utmpx) support], 180 [ --enable-utmp enable utmp (utmpx) support],
173 [if test x$enableval = xyes -o x$enableval = xno; then 181 [if test x$enableval = xyes -o x$enableval = xno; then
245 [if test x$enableval = xyes; then 253 [if test x$enableval = xyes; then
246 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 254 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
247 fi]) 255 fi])
248 256
249AC_ARG_WITH(codesets, 257AC_ARG_WITH(codesets,
250 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)], 258 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
251 [codesets="$withval"]) 259 [codesets="$withval"])
252 260
253AC_ARG_ENABLE(xim, 261AC_ARG_ENABLE(xim,
254 [ --enable-xim XIM (X Input Method) protocol support], 262 [ --enable-xim XIM (X Input Method) protocol support],
255 [if test x$enableval = xyes -o x$enableval = xno; then 263 [if test x$enableval = xyes -o x$enableval = xno; then
287 fi]) 295 fi])
288 296
289AC_ARG_ENABLE(8bitctrls, 297AC_ARG_ENABLE(8bitctrls,
290 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 298 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
291 [if test x$enableval = xyes -o x$enableval = xno; then 299 [if test x$enableval = xyes -o x$enableval = xno; then
292 support_8bitctrls=yes 300 support_8bitctrls=$enableval
293 fi]) 301 fi])
294 302
295RESFALLBACK=Rxvt 303RESFALLBACK=Rxvt
296AC_ARG_ENABLE(fallback, 304AC_ARG_ENABLE(fallback,
297 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], 305 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
319 327
320RXVTNAME=urxvt 328RXVTNAME=urxvt
321AC_ARG_WITH(name, 329AC_ARG_WITH(name,
322 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], 330 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
323 [RXVTNAME="$withval"]) 331 [RXVTNAME="$withval"])
332AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name])
324 333
325RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 334RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
326AC_SUBST(RXVTNAME) 335AC_SUBST(RXVTNAME)
327 336
328AC_ARG_ENABLE(strings, 337AC_ARG_ENABLE(strings,
345 354
346AC_ARG_ENABLE(frills, 355AC_ARG_ENABLE(frills,
347 [ --enable-frills enable support for rarely used features], 356 [ --enable-frills enable support for rarely used features],
348 [if test x$enableval = xyes -o x$enableval = xno; then 357 [if test x$enableval = xyes -o x$enableval = xno; then
349 support_frills=$enableval 358 support_frills=$enableval
350 fi])
351
352AC_ARG_ENABLE(linespace,
353 [ --enable-linespace enable support for linespace],
354 [if test x$enableval = xyes -o x$enableval = xno; then
355 support_linespace=$enableval
356 fi]) 359 fi])
357 360
358AC_ARG_ENABLE(24bit, 361AC_ARG_ENABLE(24bit,
359 [ --enable-24bit enable support for using 24bit visuals if available], 362 [ --enable-24bit enable support for using 24bit visuals if available],
360 [if test x$enableval = xyes -o x$enableval = xno; then 363 [if test x$enableval = xyes -o x$enableval = xno; then
517 sys/stropts.h \ 520 sys/stropts.h \
518 sys/time.h \ 521 sys/time.h \
519 utmp.h \ 522 utmp.h \
520 utmpx.h \ 523 utmpx.h \
521 stdint.h \ 524 stdint.h \
525 pty.h \
522) 526)
523 527
524AC_HEADER_TIME 528AC_HEADER_TIME
525 529
526dnl# check to allow both <termios.h> and <sys/ioctl.h> 530dnl# check to allow both <termios.h> and <sys/ioctl.h>
594dnl> AC_CHECK_TYPE(umode_t, int) 598dnl> AC_CHECK_TYPE(umode_t, int)
595dnl> AC_CHECK_TYPE(off_t, long) 599dnl> AC_CHECK_TYPE(off_t, long)
596AC_TYPE_PID_T 600AC_TYPE_PID_T
597AC_TYPE_UID_T 601AC_TYPE_UID_T
598 602
599AC_CHECK_SIZEOF(char, 1)
600AC_CHECK_SIZEOF(short, 2) 603AC_CHECK_SIZEOF(short, 2)
601AC_CHECK_SIZEOF(int, 4) 604AC_CHECK_SIZEOF(int, 4)
602AC_CHECK_SIZEOF(long, 4) 605dnl AC_CHECK_SIZEOF(long, 4)
603AC_CHECK_SIZEOF(long long, 8) 606AC_CHECK_SIZEOF(long long, 8)
604AC_CHECK_SIZEOF(int *, 4) 607AC_CHECK_SIZEOF(int *, 4)
605 608
606dnl# see usage below 609dnl# see usage below
607AC_DEFUN(RXVT_CHECK_SIZE, 610AC_DEFUN(RXVT_CHECK_SIZE,
1223 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) 1226 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support)
1224fi 1227fi
1225if test x$support_frills = xyes; then 1228if test x$support_frills = xyes; then
1226 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) 1229 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
1227fi 1230fi
1228if test x$support_linespace = xno; then
1229 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace)
1230fi
1231if test x$support_24bit = xyes; then 1231if test x$support_24bit = xyes; then
1232 AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit) 1232 AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit)
1233fi 1233fi
1234if test x$support_mousewheel = xyes; then 1234if test x$support_mousewheel = xyes; then
1235 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) 1235 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
1284fi 1284fi
1285if test x$support_combining = xyes; then 1285if test x$support_combining = xyes; then
1286 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) 1286 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
1287fi 1287fi
1288if test x$codesets = xall; then 1288if test x$codesets = xall; then
1289 codesets=jp,jp-ext,kr,cn,cn-ext 1289 codesets=jp,jp-ext,kr,zh,zh-ext
1290fi 1290fi
1291AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) 1291AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1292AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) 1292AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1293for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1293for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1294 case "$codeset" in 1294 case "$codeset" in
1295 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1295 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1296 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1296 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1297 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1297 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1298 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1298 ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;;
1299 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1299 ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;;
1300 esac 1300 esac
1301done 1301done
1302 1302
1303dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) 1303dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket)
1304 1304

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines