1 | dnl# -*- sh -*- |
1 | dnl# -*- sh -*- |
2 | dnl# |
2 | dnl# |
3 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# Process this file with autoconf to produce a configure script. |
4 | dnl# |
4 | dnl# |
|
|
5 | |
|
|
6 | AC_INIT |
5 | AC_PREREQ(2.50) |
7 | AC_PREREQ(2.50) |
6 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
7 | |
|
|
8 | AC_INIT |
|
|
9 | AC_CONFIG_SRCDIR([src/feature.h]) |
8 | AC_CONFIG_SRCDIR([src/feature.h]) |
10 | AC_CONFIG_AUX_DIR(autoconf) |
9 | AC_CONFIG_AUX_DIR(autoconf) |
11 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
10 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
12 | |
11 | |
13 | AC_CANONICAL_HOST |
12 | AC_CANONICAL_HOST |
… | |
… | |
24 | AC_SUBST(LIBVERSION)dnl |
23 | AC_SUBST(LIBVERSION)dnl |
25 | echo "" |
24 | echo "" |
26 | echo "configuring for rxvt $VERSION" |
25 | echo "configuring for rxvt $VERSION" |
27 | echo "" |
26 | echo "" |
28 | |
27 | |
|
|
28 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
29 | |
29 | dnl# Checks for programs. |
30 | dnl# Checks for programs. |
30 | dnl AC_MAKE_SET |
31 | dnl AC_MAKE_SET |
31 | |
32 | |
32 | AC_PROG_CC |
33 | AC_PROG_CC |
33 | AC_PROG_CXX |
34 | AC_PROG_CXX |
… | |
… | |
39 | |
40 | |
40 | dnl# -------------------------------------------------------------------------- |
41 | dnl# -------------------------------------------------------------------------- |
41 | dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' |
42 | dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' |
42 | dnl# |
43 | dnl# |
43 | if test -z "$orig_CXXFLAGS"; then |
44 | if test -z "$orig_CXXFLAGS"; then |
44 | CXXFLAGS='-O' |
|
|
45 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
45 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
46 | CXXFLAGS="-g -O3" |
46 | CXXFLAGS="-g -O3" |
|
|
47 | else |
|
|
48 | CXXFLAGS="-O" |
47 | fi |
49 | fi |
48 | CFLAGS="$CXXFLAGS" |
50 | CFLAGS="$CXXFLAGS" |
49 | fi |
51 | fi |
50 | |
52 | |
51 | LINKER="$CXX" |
53 | LINKER="$CXX" |
… | |
… | |
299 | [ --enable-plain-scroll enable plain style scrollbar], |
301 | [ --enable-plain-scroll enable plain style scrollbar], |
300 | [if test x$enableval = xyes -o x$enableval = xno; then |
302 | [if test x$enableval = xyes -o x$enableval = xno; then |
301 | support_scroll_plain=$enableval |
303 | support_scroll_plain=$enableval |
302 | fi]) |
304 | fi]) |
303 | |
305 | |
304 | AC_ARG_ENABLE(half-shadow, |
306 | dnl AC_ARG_ENABLE(half-shadow, |
305 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
307 | dnl [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
306 | [if test x$enableval = xyes; then |
308 | dnl [if test x$enableval = xyes; then |
307 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
309 | dnl AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
308 | fi]) |
310 | dnl fi]) |
309 | |
311 | |
310 | AC_ARG_WITH(codesets, |
312 | AC_ARG_WITH(codesets, |
311 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
313 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
312 | [codesets="$withval"]) |
314 | [codesets="$withval"]) |
313 | |
315 | |