📄 configure.ac
字号:
if test "x$support_pointer_blank" = "xyes"; then AC_DEFINE(POINTER_BLANK, [], [set blank pointer support])fiAC_ARG_ENABLE( text-shadow, AC_HELP_STRING([--enable-text-shadow],[enable colors shadow for text [[no]]]), [support_text_shadow=$enableval])if test "x$support_text_shadow" = "xyes"; then AC_DEFINE(TEXT_SHADOW, [], [set text shadow support])fidnl# Make an option instead of a featurednl# AC_ARG_ENABLE(dnl# smart-resize,dnl# AC_HELP_STRING([--enable-smart-resize],[enable smart resizing [[no]]]),dnl# [support_smart_resize=$enableval]dnl# )dnl# if test "x$support_smart_resize" = "xyes"; thendnl# AC_DEFINE(SMART_RESIZE, [], [set smart resizing support])dnl# fiAC_ARG_ENABLE( menubar, AC_HELP_STRING([--enable-menubar],[enable menu bar [[no]]]), [support_menubar=$enableval])if test "x$support_menubar" = "xyes"; then AC_DEFINE(HAVE_MENUBAR, [], [set menu bar])fiAC_ARG_ENABLE( transparency, AC_HELP_STRING([--enable-transparency],[enable transparent background [[yes]]]), [support_transparency=$enableval])if test "x$support_transparency" = "xyes"; then AC_DEFINE(TRANSPARENT, [], [set transparent background])fidnl: No longer a compile time option, and OFF_FOCUS_FADING is now alwaysdnl: enabled. 2006-09-14 gi1242.dnl:dnl: AC_ARG_ENABLE(dnl: fading,dnl: AC_HELP_STRING([--enable-fading],[enable colors fading when off focus [[yes]]]),dnl: [support_fading=$enableval]dnl: )dnl: if test "x$support_fading" = "xyes"; thendnl: AC_DEFINE(OFF_FOCUS_FADING, [], [set fading support])dnl: fiAC_ARG_ENABLE( tinting, AC_HELP_STRING([--enable-tinting],[enable colors tinting [[yes]]]), [support_tinting=$enableval])AC_ARG_ENABLE( xrender, AC_HELP_STRING([--enable-xrender],[tint using XRender (slower but nicer results) [[yes]]]), [support_xrender=$enableval])AC_ARG_ENABLE( xpm, AC_HELP_STRING([--enable-xpm],[enable XPM background pixmaps [[yes]]]), [support_xpm=$enableval],)AC_ARG_ENABLE( jpeg, AC_HELP_STRING([--enable-jpeg],[enable JPEG background pixmaps [[yes]]]), [support_jpeg=$enableval],)AC_ARG_ENABLE( png, AC_HELP_STRING([--enable-png],[enable PNG background pixmaps [[yes]]]), [support_png=$enableval],)AC_ARG_ENABLE( xft, AC_HELP_STRING([--enable-xft],[enable freetype font support [[no]]]), [support_xft=$enableval])AC_ARG_ENABLE( xim, AC_HELP_STRING([--enable-xim],[enable XIM support [[no]]]), [support_xim=$enableval])AC_ARG_ENABLE( greek, AC_HELP_STRING([--enable-greek],[enable Greek keyboard support [[no]]]), [support_greek=$enableval])if test "x$support_greek" = "xyes"; then AC_DEFINE(GREEK_SUPPORT, [], [set Greek keyboard support])fiAM_CONDITIONAL(GREEK, test "x$support_greek" = "xyes")AC_ARG_ENABLE( cjk, AC_HELP_STRING([--enable-cjk],[enable CJK multichar language support [[no]]]), [support_cjk=$enableval])AC_ARG_ENABLE( ttygid, AC_HELP_STRING([--enable-ttygid],[enable ttygid to group tty [[yes]]]), [support_ttygid=$enableval])if test "x$support_ttygid" = "xyes"; then AC_DEFINE(TTY_GID_SUPPORT, [], [set ttygid support])fiAC_ARG_ENABLE( backspace-key, AC_HELP_STRING([--enable-backspace-key],[enable handling of the backspace key [[yes]]]), [support_backspace_key=$enableval])if test "x$support_backspace_key" != "xyes"; then AC_DEFINE(NO_BACKSPACE_KEY, [], [disable handling of backspace key])fiAC_ARG_ENABLE( delete-key, AC_HELP_STRING([--enable-delete-key],[enable handling of the delete key [[yes]]]), [support_delete_key=$enableval])if test "x$support_delete_key" != "xyes"; then AC_DEFINE(NO_DELETE_KEY, [], [disable handling of the delete key])fiAC_ARG_ENABLE( use-fifo, AC_HELP_STRING([--enable-use-fifo],[Enable listening for macros on a fifo [[yes]]]), [use_fifo=$enableval])if test "x$use_fifo" = "xyes"; then AC_DEFINE(USE_FIFO, [], [Enable listening for macros on a fifo])fiAC_ARG_ENABLE( resources, AC_HELP_STRING([--enable-resources],[enable all resource checking [[yes]]]), [support_resources=$enableval])if test "x$support_resources" != "xyes"; then AC_DEFINE(NO_RESOURCES, [], [disable all resource checking])fiAC_ARG_ENABLE( swapscreen, AC_HELP_STRING([--enable-swapscreen],[enable swap screen support [[yes]]]), [support_swapscreen=$enableval])if test "x$support_swapscreen" != "xyes"; then AC_DEFINE(NO_SECONDARY_SCREEN, [], [disable swap screen support])fiAC_ARG_ENABLE( old-selection, AC_HELP_STRING([--enable-old-selection],[enable old mouse selection code [[no]]]), [support_old_selection=$enableval])if test "x$support_old_selection" = "xyes"; then AC_DEFINE(NO_NEW_SELECTION, [], [enable old mouse selection])else AC_DEFINE(NO_OLD_SELECTION, [], [disable old mouse selection])fiAC_ARG_WITH( term, AC_HELP_STRING([--with-term=NAME],[set the terminal to NAME [[rxvt]]]), [term_name_option=$withval], [term_name_option=rxvt])AC_DEFINE_UNQUOTED(TERMENV, "$term_name_option", [default TERM name])AC_ARG_WITH( line-space, AC_HELP_STRING([--with-line-space=NUM],[set the space between lines [[0]]]), [line_space_option=$withval], [line_space_option=0])AC_DEFINE_UNQUOTED(LINESPACE, $line_space_option, [the space between lines])AC_ARG_WITH( int-border, AC_HELP_STRING([--with-int-border=NUM],[set the width of internal border, frills option must be enabled [[0]]]), [int_border_option=$withval], [int_border_option=0])AC_DEFINE_UNQUOTED(INTERNALBORDERWIDTH, $int_border_option, [the width of internal border])AC_ARG_WITH( ext-border, AC_HELP_STRING([--with-ext-border=NUM],[set the width of external border, frills option must be enabled [[0]]]), [ext_border_option=$withval], [ext_border_option=0])AC_DEFINE_UNQUOTED(EXTERNALBORDERWIDTH, $ext_border_option, [the width of external border])AC_ARG_WITH( save-lines, AC_HELP_STRING([--with-save-lines=NUM],[set the lines to save in scroll [[100]]]), [save_lines_option=$withval], [save_lines_option=100])AC_DEFINE_UNQUOTED(SAVELINES, $save_lines_option, [the lines to save in scroll])AC_ARG_WITH( max-profiles, AC_HELP_STRING([--with-max-profiles=NUM],[set the max number of terminal [[5]]]), [max_prof_option=$withval], [max_prof_option=5])AC_DEFINE_UNQUOTED(MAX_PROFILES, $max_prof_option, [the max number of profiles])AC_ARG_WITH( max-term, AC_HELP_STRING([--with-max-term=NUM],[set the max number of terminal [[15]]]), [max_term_option=$withval], [max_term_option=15])AC_DEFINE_UNQUOTED(MAX_PAGES, $max_term_option, [the max number of vt that can be open])AC_ARG_WITH( atab-extra, AC_HELP_STRING( [--with-atab-extra=%], [The extra height (as a % of the font height) active tabs should have] ), [atab_extra_option=$withval], [atab_extra_option=20])AC_DEFINE_UNQUOTED( ATAB_EXTRA_PERCENT, $atab_extra_option, [The extra height (as a % of the font height) active tabs should have])AC_ARG_WITH( tab-radius, AC_HELP_STRING( [--with-tab-radius=%], [The radius (as a % of the font X offset) of tab corners]), [tab_radius_option=$withval], [tab_radius_option=100],)AC_DEFINE_UNQUOTED( TAB_RADIUS_PERCENT, $tab_radius_option, [The radius (as a % of the font X offset) of tab corners])withval=""AC_ARG_WITH( terminfo, AC_HELP_STRING([--with-terminfo=PATH],[set the path to the terminfo tree to PATH]), [terminfo_option=$withval], [terminfo_option="/usr/share/terminfo"])if test "x$withval" != "x"; then AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$terminfo_option", [terminfo path])fiAC_ARG_WITH( encoding, AC_HELP_STRING([--with-encoding=NAME],[set language default encoding (eucj|sjis|big5|gb|gbk|kr|noenc) to NAME (default is noenc)]), [encoding_option=$withval], [encoding_option="noenc"])dnl Checks for programs.AC_PROG_CC(gcc cc egcs)dnl AX_CFLAGS_WARN_ALLif test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS -Wall -fPIC"fiAC_PROG_MAKE_SETAC_PROG_INSTALL#AM_PROG_LIBTOOLdnl Checks for libraries.dnl FreeBSD needs to link libutil for openpty and libxpg4 fordnl setlocale. Why this looks only necessary after FreeBSDdnl 5.2.1?!!!if test "x$local_os_type" = "xfreebsd" -o \ "x$local_os_type" = "xopenbsd" -o \ "x$local_os_type" = "xnetbsd"; then AC_CHECK_LIB(xpg4, setlocale) AC_CHECK_LIB(util, openpty)fiAC_PATH_Xif test "x$no_x" = "xyes"; then AC_MSG_ERROR([Mrxvt requires the X Window System libraries and headers.])fidnl Warn if the detected path differs from the suppliedif test "x$x_includes" != "x" -a \ "x$ac_x_includes" != "x" -a \ "$x_includes" != "$ac_x_includes"; then AC_MSG_WARN([X includes path detected differs from the supplied!])fiif test "x$x_libraries" != "x" -a \ "x$ac_x_libraries" != "x" -a \ "$x_libraries" != "$ac_x_libraries"; then AC_MSG_WARN([X libraries path detected differs from the supplied!])fidnl In case x_includes and x_libraries are not emptytest "x$x_includes" = "x" && x_includes="$ac_x_includes"test "x$x_libraries" = "x" && x_libraries="$ac_x_libraries"test "x$x_includes" != "x" && CFLAGS="$CFLAGS -I$x_includes"dnl To pass linking, we must define both LDFLAGS and LIBStest "x$x_libraries" != "x" && LDFLAGS="$LDFLAGS -L$x_libraries"test "x$x_libraries" != "x" && LIBS="$LIBS -L$x_libraries"AC_CHECK_LIB( X11, XOpenDisplay, [], AC_MSG_ERROR([Mrxvt requires the libX11 libraries.]))dnl AC_CHECK_LIB(dnl Xext,dnl XextAddDisplay,dnl [],dnl AC_MSG_ERROR([Mrxvt requires the libXext libraries.])dnl )if test "x$support_xim" = "xyes"; then AC_CHECK_LIB( X11, XRegisterIMInstantiateCallback, AC_DEFINE(USE_XIM, [], [set XIM support]), [support_xim=no] )fiif test "x$support_sessionmgr" = "xyes"; then AC_CHECK_LIB( SM, SmcOpenConnection, [], [support_sessionmgr=no] ) AC_CHECK_LIB( ICE, IceConnectionNumber, [], [support_sessionmgr=no] )fiAM_CONDITIONAL(SESSION_SUPPORT, test "x$support_sessionmgr" = "xyes")if test "x$support_utempter" = "xyes"; then AC_CHECK_LIB( utempter, utempter_add_record, [], [support_utempter=no] )fiif test "x$support_utempter" = "xyes"; then AC_DEFINE(UTEMPTER_SUPPORT, [], [set utempter library support])fiif test "x$support_xpm" = "xyes"; then AC_CHECK_LIB( Xpm, XpmCreateImageFromXpmImage, [], [support_xpm=no] )fiif test "x$support_jpeg" = "xyes"; then AC_CHECK_LIB( jpeg, jpeg_read_header, [], [support_jpeg=no] )fiif test "x$support_jpeg" = "xyes"; then AC_DEFINE(USE_JPEG, [], [set JPEG background])fiAM_CONDITIONAL(USE_JPEG, test "x$support_jpeg" = "xyes")if test "x$support_png" = "xyes"; then AC_CHECK_LIB( png, png_check_sig, [], [support_png=no], [-lz -lm] )fiif test "x$support_png" = "xyes"; then AC_DEFINE(USE_PNG, [], [set PNG background]) LIBS="$LIBS -lz -lm"fiAM_CONDITIONAL(USE_PNG, test "x$support_png" = "xyes")if test "x$support_xpm" != "xyes" -a "x$support_jpeg" != "xyes" -a "x$support_png" != "xyes"; then support_background_image=no if test "x$support_transparency" = "xno"; then dnl Need either background or transparency for tinting. support_tinting=no fifiif test "x$support_background_image" = "xyes"; then AC_DEFINE(BACKGROUND_IMAGE, [], [set background image])fiif test "x$support_tinting" = "xyes"; then AC_DEFINE(TINTING_SUPPORT, [], [set tinting support])fiif test "x$support_xrender" = "xyes" -a "x$support_tinting" = "xyes"; then AC_CHECK_LIB( Xrender, XRenderCreatePicture, ) dnl AC_DEFINE(HAVE_XRENDER, [], [XRender tinting support])fiif test "x$support_xft" = "xyes"; then dnl Backup variables OLD_LIBS="$LIBS" OLD_CFLAGS="$CFLAGS" OLD_LDFLAGS="$LDFLAGS" dnl Get new variables. if which pkg-config >/dev/null 2>&1 && pkg-config --exists xft; then LIBS="$LIBS `pkg-config --libs xft`" CFLAGS="$CFLAGS `pkg-config --cflags xft`" LDFLAGS="$LDFLAGS `pkg-config --libs xft`" else if which xft-config >/dev/null 2>&1; then dnl If xft-config is not found, try pkg-config instead LIBS="$LIBS `xft-config --libs`" CFLAGS="$CFLAGS `xft-config --cflags`" LDFLAGS="$LDFLAGS `xft-config --libs`" else support_xft="no" fi fi dnl Solaris has wired include directory for freetype.h if test "x$local_os_type" = "xsolaris"; then CFLAGS="$CFLAGS -I/usr/sfw/include -I/usr/sfw/include/freetype2" fi AC_CHECK_HEADERS(fontconfig/fontconfig.h X11/Xft/Xft.h, , [support_xft=no], [[#include <X11/Xlib.h> #include <fontconfig/fontconfig.h> ]] ) AC_CHECK_LIB( fontconfig, FcPatternAddInteger, [], [support_xft=no] ) AC_CHECK_LIB( Xft, XftDrawString16, [], [support_xft=no] ) if test "x$support_xft x$support_cjk" = "xyes xyes"; then dnl BSD and Cygwin needs libiconv AC_CHECK_LIB(iconv, iconv_open) dnl hack for Mac OS X if test "x$local_os_type" = "xdarwin"; then LIBS="$LIBS -liconv" fi dnl hack for Cygwin if test "x$local_os_type" = "xcygwin"; then LIBS="$LIBS -liconv" fi dnl hack for Cygwin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -