ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.144 by root, Tue Jun 19 18:17:56 2012 UTC vs.
Revision 1.152 by sf-exg, Tue Jun 16 11:56:37 2015 UTC

95support_combining=yes 95support_combining=yes
96support_8bitctrls=no 96support_8bitctrls=no
97support_iso14755=yes 97support_iso14755=yes
98support_styles=yes 98support_styles=yes
99support_perl=yes 99support_perl=yes
100support_xdbe=yes
101codesets=all 100codesets=all
102 101
103dnl# -------------------------------------------------------------------------- 102dnl# --------------------------------------------------------------------------
104dnl# CHECKING COMMAND LINE OPTIONS 103dnl# CHECKING COMMAND LINE OPTIONS
105dnl# -------------------------------------------------------------------------- 104dnl# --------------------------------------------------------------------------
108 [ --enable-everything enable standard non-multichoice features 107 [ --enable-everything enable standard non-multichoice features
109 NOTE: this option is order dependent], 108 NOTE: this option is order dependent],
110 [ 109 [
111 if test x$enableval = xno; then 110 if test x$enableval = xno; then
112 support_frills=no 111 support_frills=no
113 support_xdbe=no
114 support_inheritpixmap=no 112 support_inheritpixmap=no
115 support_fading=no 113 support_fading=no
116 support_keepscrolling=no 114 support_keepscrolling=no
117 support_selectionscrolling=no 115 support_selectionscrolling=no
118 support_lastlog=no 116 support_lastlog=no
133 support_combining=no 131 support_combining=no
134 support_8bitctrls=no 132 support_8bitctrls=no
135 support_iso14755=no 133 support_iso14755=no
136 support_styles=no 134 support_styles=no
137 support_perl=no 135 support_perl=no
138 support_xdbe=no
139 codesets= 136 codesets=
140 fi 137 fi
141 if test x$enableval = xyes; then 138 if test x$enableval = xyes; then
142 support_frills=yes 139 support_frills=yes
143 support_inheritpixmap=yes 140 support_inheritpixmap=yes
162 support_combining=yes 159 support_combining=yes
163 #support_8bitctrls=yes 160 #support_8bitctrls=yes
164 support_iso14755=yes 161 support_iso14755=yes
165 support_styles=yes 162 support_styles=yes
166 support_perl=yes 163 support_perl=yes
167 support_xdbe=yes
168 codesets=all 164 codesets=all
169 fi 165 fi
170 ]) 166 ])
171 167
172support_assertions=no 168support_assertions=no
414 [ --with-terminfo=PATH set the path to the terminfo tree to PATH], 410 [ --with-terminfo=PATH set the path to the terminfo tree to PATH],
415 [if test x$withval != x; then 411 [if test x$withval != x; then
416 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 412 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
417 fi]) 413 fi])
418 414
419AC_ARG_ENABLE(xdbe,
420 [ --enable-xdbe enable support for double buffering],
421 [if test x$enableval = xyes -o x$enableval = xno; then
422 support_xdbe=$enableval
423 fi])
424
425dnl# -------------------------------------------------------------------------- 415dnl# --------------------------------------------------------------------------
426 416
427LIBEV_M4_AVOID_LIBRT=1 417LIBEV_M4_AVOID_LIBRT=1
428m4_include([libev/libev.m4]) 418m4_include([libev/libev.m4])
429 419
431 421
432AC_PATH_PROG(TIC, tic, :) 422AC_PATH_PROG(TIC, tic, :)
433 423
434AC_PATH_XTRA 424AC_PATH_XTRA
435 425
426AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
427
428image_lib=none
429
430PIXBUF_CFLAGS=
431PIXBUF_LIBS=
432
433if test x$support_pixbuf = xyes; then
434 RXVT_CHECK_MODULES([PIXBUF], [gdk-pixbuf-2.0], [
435 image_lib=gdk-pixbuf
436 AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing)
437 ], [:])
438fi
439
440AC_SUBST(PIXBUF_CFLAGS)
441AC_SUBST(PIXBUF_LIBS)
442
436STARTUP_NOTIFICATION_CFLAGS= 443STARTUP_NOTIFICATION_CFLAGS=
437STARTUP_NOTIFICATION_LIBS= 444STARTUP_NOTIFICATION_LIBS=
438 445
439if test x$support_startup_notification = xyes; then 446if test x$support_startup_notification = xyes; then
440 support_startup_notification=no 447 RXVT_CHECK_MODULES([STARTUP_NOTIFICATION], [libstartup-notification-1.0], [
441 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
442 AC_MSG_CHECKING(for libstartup-notification)
443 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
444 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
445 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
446 support_startup_notification=yes
447 fi
448
449 if test x$support_startup_notification = xyes; then
450 AC_MSG_RESULT(ok)
451 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, Define if freedesktop startup notifications should be supported) 448 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, Define if freedesktop startup notifications should be supported)
452 else 449 ], [:])
453 AC_MSG_RESULT(no)
454 fi
455fi 450fi
456 451
457AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 452AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
458AC_SUBST(STARTUP_NOTIFICATION_LIBS) 453AC_SUBST(STARTUP_NOTIFICATION_LIBS)
459 454
508dnl# -------------------------------------------------------------------------- 503dnl# --------------------------------------------------------------------------
509dnl# -------------------------------------------------------------------------- 504dnl# --------------------------------------------------------------------------
510 505
511dnl# this is a really hack test for some basic Xlocale stuff 506dnl# this is a really hack test for some basic Xlocale stuff
512save_LIBS=$LIBS 507save_LIBS=$LIBS
513save_CFLAGS=$CFLAGS 508save_CXXFLAGS=$CXXFLAGS
514CFLAGS="$CFLAGS $X_CFLAGS" 509CXXFLAGS="$CXXFLAGS $X_CFLAGS"
515LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 510LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
516if test x$support_xim = xyes; then 511if test x$support_xim = xyes; then
517 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, 512 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
518 [AC_RUN_IFELSE([AC_LANG_SOURCE([[ 513 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
519 #include <X11/Xlib.h> 514 #include <X11/Xlib.h>
551#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) 546#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])])
552if test x$rxvt_cv_func_xsetlocale = xyes; then 547if test x$rxvt_cv_func_xsetlocale = xyes; then
553 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) 548 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works)
554fi 549fi
555LIBS=$save_LIBS 550LIBS=$save_LIBS
556CFLAGS=$save_CFLAGS 551CXXFLAGS=$save_CXXFLAGS
557 552
558AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, 553AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo,
559[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) 554[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])])
560if test x$rxvt_cv_func_nl_langinfo = xyes; then 555if test x$rxvt_cv_func_nl_langinfo = xyes; then
561 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 556 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
572dnl# -------------------------------------------------------------------------- 567dnl# --------------------------------------------------------------------------
573support_image=no 568support_image=no
574if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 569if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
575 support_image=yes 570 support_image=yes
576fi 571fi
577if test x$support_xdbe = xyes; then
578 LIBS="$LIBS -lXext"
579fi
580
581if test x$support_xft = xyes || test x$support_image = xyes; then 572if test x$support_xft = xyes || test x$support_image = xyes; then
582 rxvt_have_xrender=no 573 rxvt_have_xrender=no
583 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 574 RXVT_CHECK_MODULES([XRENDER], [xrender], [
584 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 575 X_LIBS="$XRENDER_LIBS $X_LIBS"
585 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 576 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
586 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
587 rxvt_have_xrender=yes 577 rxvt_have_xrender=yes
588 578
589 save_LIBS="$LIBS" 579 save_LIBS="$LIBS"
590 LIBS="$LIBS $X_LIBS" 580 LIBS="$LIBS $X_LIBS"
591 AC_CHECK_HEADER(X11/extensions/Xrender.h,,[rxvt_have_xrender=no]) 581 AC_CHECK_HEADER(X11/extensions/Xrender.h,,[rxvt_have_xrender=no])
592 AC_CHECK_FUNC(XRenderFindStandardFormat,,[rxvt_have_xrender=no]) 582 AC_CHECK_FUNC(XRenderFindStandardFormat,,[rxvt_have_xrender=no])
593 LIBS="$save_LIBS" 583 LIBS="$save_LIBS"
594 fi 584 ], [:])
595fi 585fi
596 586
597if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 587if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
598 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 588 RXVT_CHECK_MODULES([XFT], [fontconfig xft], [
599 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 589 X_LIBS="$XFT_LIBS $X_LIBS"
600 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" 590 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
601 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 591 ], [
602 else
603 AC_PATH_PROG(XFT_CONFIG, xft-config, no) 592 AC_PATH_PROG(XFT_CONFIG, xft-config, no)
604 if test $XFT_CONFIG != no; then 593 if test $XFT_CONFIG != no; then
605 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 594 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
606 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 595 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
607 fi 596 fi
608 fi 597 ])
609
610 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
611 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
612 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
613 fi
614 598
615 save_LIBS="$LIBS" 599 save_LIBS="$LIBS"
616 LIBS="$LIBS $X_LIBS" 600 LIBS="$LIBS $X_LIBS"
617 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
618 AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no])
619 AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) 601 AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no])
620 AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) 602 AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no])
621 LIBS="$save_LIBS" 603 LIBS="$save_LIBS"
622 604
623 if test x$support_xft = xyes; then 605 if test x$support_xft = xyes; then
624 AC_DEFINE(XFT, 1, Define to enable xft support) 606 AC_DEFINE(XFT, 1, Define to enable xft support)
625 fi 607 fi
626fi 608fi
627 609
628image_lib=none
629
630PIXBUF_CFLAGS=
631PIXBUF_LIBS=
632
633if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then 610if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
611 AC_MSG_CHECKING(for Render >= 0.11)
612 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
613#include <X11/extensions/Xrender.h>
614#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
615error
616#endif
617]])],[],[support_image=no])
618 if test x$support_image = xyes; then
619 AC_MSG_RESULT(ok)
634 LIBS="$LIBS -lm" 620 LIBS="$LIBS -lm"
635 AC_DEFINE(XRENDER, 1, Define to enable xrender support) 621 AC_DEFINE(XRENDER, 1, Define to enable xrender support)
636 622
637 if test x$support_inheritpixmap = xyes; then 623 if test x$support_inheritpixmap = xyes; then
638 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) 624 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
625 fi
626 else
627 AC_MSG_RESULT(no)
639 fi 628 fi
640
641 if test x$support_pixbuf = xyes; then
642 support_pixbuf=no
643 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
644 AC_MSG_CHECKING(for gdk-pixbuf)
645 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
646 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
647 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
648 support_pixbuf=yes
649 fi
650
651 if test x$support_pixbuf = xyes; then
652 AC_MSG_RESULT(ok)
653 image_lib=gdk-pixbuf
654 AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing)
655 AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.)
656 else
657 AC_MSG_RESULT(no)
658 fi
659 fi
660fi 629fi
661 630
662AC_SUBST(PIXBUF_CFLAGS)
663AC_SUBST(PIXBUF_LIBS)
664
665if test x$support_xdbe = xyes; then
666 AC_DEFINE(ENABLE_XDBE, 1, Define if you want to use XDBE)
667fi
668if test x$support_styles = xyes; then 631if test x$support_styles = xyes; then
669 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) 632 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)
670fi 633fi
671if test x$support_iso14755 = xyes; then 634if test x$support_iso14755 = xyes; then
672 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) 635 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines