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.43 by root, Mon Jan 3 12:00:50 2005 UTC vs.
Revision 1.47 by root, Tue Jan 18 01:31:45 2005 UTC

1dnl# -*- sh -*- 1dnl# -*- sh -*-
2dnl# 2dnl#
3dnl# Process this file with autoconf to produce a configure script. 3dnl# Process this file with autoconf to produce a configure script.
4dnl# 4dnl#
5orig_CXXFLAGS="$CXXFLAGS"
6
5AC_INIT 7AC_INIT
6AC_CONFIG_SRCDIR([src/feature.h]) 8AC_CONFIG_SRCDIR([src/feature.h])
7AC_CONFIG_AUX_DIR(autoconf) 9AC_CONFIG_AUX_DIR(autoconf)
8AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 10AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
9 11
33AC_PROG_INSTALL 35AC_PROG_INSTALL
34AC_PROG_AWK 36AC_PROG_AWK
35 37
36AC_LANG(C) 38AC_LANG(C)
37 39
40dnl# --------------------------------------------------------------------------
41dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
42dnl#
43if test -z "$orig_CXXFLAGS"; then
44 CXXFLAGS='-O'
45 if test x$GCC = xyes && test "x$GXX" = xyes; then
46 CXXFLAGS="-g -O3"
47 fi
48 CFLAGS="$CXXFLAGS"
49fi
50
38LINKER="$CXX" 51LINKER="$CXX"
39if test x$GCC = xyes && test x$GXX = xyes; then 52if test x$GCC = xyes && test x$GXX = xyes; then
40 AC_CHECK_LIB(supc++, main, [ 53 AC_CHECK_LIB(supc++, main, [
41 LINKER="$CC" 54 LINKER="$CC"
42 LIBS="$LIBS -lsupc++" 55 LIBS="$LIBS -lsupc++"
76AC_PROG_LIBTOOL()dnl# libtool 89AC_PROG_LIBTOOL()dnl# libtool
77 90
78MALLOC_TYPE=S 91MALLOC_TYPE=S
79support_addstrings=no 92support_addstrings=no
80support_frills=no 93support_frills=no
81support_linespace=no
82support_inheritpixmap=no 94support_inheritpixmap=no
83support_tinting=no 95support_tinting=no
84support_fading=no 96support_fading=no
85support_keepscrolling=no 97support_keepscrolling=no
86support_selectionscrolling=no 98support_selectionscrolling=no
122 NOTE: this option is order dependent 134 NOTE: this option is order dependent
123 NOTE: automatically enabled with --enable-shared], 135 NOTE: automatically enabled with --enable-shared],
124 [if test x$enableval = xyes; then 136 [if test x$enableval = xyes; then
125 support_24bit=yes 137 support_24bit=yes
126 support_frills=yes 138 support_frills=yes
127 support_linespace=yes
128 support_inheritpixmap=yes 139 support_inheritpixmap=yes
129 support_tinting=yes 140 support_tinting=yes
130 support_fading=yes 141 support_fading=yes
131 support_keepscrolling=yes 142 support_keepscrolling=yes
132 support_selectionscrolling=yes 143 support_selectionscrolling=yes
358 [ --enable-frills enable support for rarely used features], 369 [ --enable-frills enable support for rarely used features],
359 [if test x$enableval = xyes -o x$enableval = xno; then 370 [if test x$enableval = xyes -o x$enableval = xno; then
360 support_frills=$enableval 371 support_frills=$enableval
361 fi]) 372 fi])
362 373
363AC_ARG_ENABLE(linespace,
364 [ --enable-linespace enable support for linespace],
365 [if test x$enableval = xyes -o x$enableval = xno; then
366 support_linespace=$enableval
367 fi])
368
369AC_ARG_ENABLE(24bit, 374AC_ARG_ENABLE(24bit,
370 [ --enable-24bit enable support for using 24bit visuals if available], 375 [ --enable-24bit enable support for using 24bit visuals if available],
371 [if test x$enableval = xyes -o x$enableval = xno; then 376 [if test x$enableval = xyes -o x$enableval = xno; then
372 support_24bit=$enableval 377 support_24bit=$enableval
373 fi]) 378 fi])
452 fi]) 457 fi])
453 458
454dnl# -------------------------------------------------------------------------- 459dnl# --------------------------------------------------------------------------
455 460
456AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) 461AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes)
457
458dnl# --------------------------------------------------------------------------
459dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
460dnl#
461if test -z "$CFLAGS"; then
462 if test -z "$CCOPTS"; then
463 CCOPTS='-O'
464dnl> if test "x$GCC" = xyes; then
465dnl> if test x$system = xLinux; then
466dnl> CCOPTS="$CCOPTS "'-O2 -fno-strength-reduce'
467dnl> fi
468dnl> fi
469 fi
470 CFLAGS="$CCOPTS"
471fi
472 462
473AC_PATH_PROG(MV, mv, mv) 463AC_PATH_PROG(MV, mv, mv)
474AC_PATH_PROG(RM, rm, rm) 464AC_PATH_PROG(RM, rm, rm)
475AC_PATH_PROG(CP, cp, cp) 465AC_PATH_PROG(CP, cp, cp)
476AC_PATH_PROG(LN, ln, ln) 466AC_PATH_PROG(LN, ln, ln)
528 sys/stropts.h \ 518 sys/stropts.h \
529 sys/time.h \ 519 sys/time.h \
530 utmp.h \ 520 utmp.h \
531 utmpx.h \ 521 utmpx.h \
532 stdint.h \ 522 stdint.h \
523 pty.h \
533) 524)
534 525
535AC_HEADER_TIME 526AC_HEADER_TIME
536 527
537dnl# check to allow both <termios.h> and <sys/ioctl.h> 528dnl# check to allow both <termios.h> and <sys/ioctl.h>
1233 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) 1224 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support)
1234fi 1225fi
1235if test x$support_frills = xyes; then 1226if test x$support_frills = xyes; then
1236 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) 1227 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
1237fi 1228fi
1238if test x$support_linespace = xno; then
1239 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace)
1240fi
1241if test x$support_24bit = xyes; then 1229if test x$support_24bit = xyes; then
1242 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) 1230 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)
1243fi 1231fi
1244if test x$support_mousewheel = xyes; then 1232if test x$support_mousewheel = xyes; then
1245 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) 1233 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
1375Makefile \ 1363Makefile \
1376doc/Makefile \ 1364doc/Makefile \
1377src/Makefile \ 1365src/Makefile \
1378src/test/Makefile \ 1366src/test/Makefile \
1379src/rxvtlib.h \ 1367src/rxvtlib.h \
1380W11/Makefile \
1381]) 1368])
1382AC_OUTPUT 1369AC_OUTPUT
1383 1370
1384echo "Configuration: 1371echo "Configuration:
1385 1372

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines