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.154 by sf-exg, Tue Jun 16 12:00:07 2015 UTC vs.
Revision 1.159 by sf-exg, Mon Nov 22 15:41:18 2021 UTC

1dnl# 1dnl#
2dnl# Process this file with autoconf to produce a configure script. 2dnl# Process this file with autoconf to produce a configure script.
3dnl# 3dnl#
4 4
5AC_INIT 5AC_INIT
6AC_PREREQ(2.50) 6AC_PREREQ(2.71)
7AC_CONFIG_SRCDIR([src/feature.h]) 7AC_CONFIG_SRCDIR([src/feature.h])
8AC_CONFIG_HEADER(config.h:config.h.in) 8AC_CONFIG_HEADERS(config.h:config.h.in)
9
10AC_CANONICAL_HOST
11 9
12dnl RXVT version 10dnl RXVT version
13changequote(, )dnl
14VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 11VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
15DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 12DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
16changequote([, ])dnl
17AC_SUBST(VERSION)dnl 13AC_SUBST(VERSION)dnl
18AC_SUBST(DATE)dnl 14AC_SUBST(DATE)dnl
19 15
20echo "" 16echo ""
21echo "configuring for rxvt $VERSION" 17echo "configuring for rxvt $VERSION"
26dnl# Checks for programs. 22dnl# Checks for programs.
27AC_PROG_CC 23AC_PROG_CC
28AC_PROG_CXX 24AC_PROG_CXX
29AC_PROG_INSTALL 25AC_PROG_INSTALL
30 26
31AC_AIX 27AC_USE_SYSTEM_EXTENSIONS
32AC_GNU_SOURCE
33AC_ISC_POSIX
34AC_LANG(C++) 28AC_LANG(C++)
29
30if test "$ac_prog_cxx_stdcxx" != cxx11; then
31 AC_MSG_ERROR([the compiler does not support C++11])
32fi
35 33
36LINKER="$CXX" 34LINKER="$CXX"
37dnl check whether we can link with gcc -lsupc++ 35dnl check whether we can link with gcc -lsupc++
38if test x$GCC = xyes && test x$GXX = xyes; then 36if test x$GCC = xyes && test x$GXX = xyes; then
39 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it 37 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it
111 support_frills=no 109 support_frills=no
112 support_inheritpixmap=no 110 support_inheritpixmap=no
113 support_fading=no 111 support_fading=no
114 support_keepscrolling=no 112 support_keepscrolling=no
115 support_selectionscrolling=no 113 support_selectionscrolling=no
116 support_lastlog=no
117 support_mousewheel=no 114 support_mousewheel=no
118 support_mouseslipwheel=no 115 support_mouseslipwheel=no
119 support_text_blink=no 116 support_text_blink=no
120 support_pointer_blank=no 117 support_pointer_blank=no
121 support_scroll_rxvt=no 118 support_scroll_rxvt=no
122 support_scroll_next=no 119 support_scroll_next=no
123 support_scroll_xterm=no 120 support_scroll_xterm=no
124 support_utmp=no
125 support_wtmp=no
126 support_xim=no 121 support_xim=no
127 support_pixbuf=no 122 support_pixbuf=no
128 support_startup_notification=no 123 support_startup_notification=no
129 support_xft=no 124 support_xft=no
130 support_unicode3=no 125 support_unicode3=no
139 support_frills=yes 134 support_frills=yes
140 support_inheritpixmap=yes 135 support_inheritpixmap=yes
141 support_fading=yes 136 support_fading=yes
142 support_keepscrolling=yes 137 support_keepscrolling=yes
143 support_selectionscrolling=yes 138 support_selectionscrolling=yes
144 support_lastlog=yes
145 support_mousewheel=yes 139 support_mousewheel=yes
146 support_mouseslipwheel=yes 140 support_mouseslipwheel=yes
147 support_text_blink=yes 141 support_text_blink=yes
148 support_pointer_blank=yes 142 support_pointer_blank=yes
149 support_scroll_rxvt=yes 143 support_scroll_rxvt=yes
150 support_scroll_next=yes 144 support_scroll_next=yes
151 support_scroll_xterm=yes 145 support_scroll_xterm=yes
152 support_utmp=yes
153 support_wtmp=yes
154 support_xim=yes 146 support_xim=yes
155 support_pixbuf=yes 147 support_pixbuf=yes
156 support_startup_notification=yes 148 support_startup_notification=yes
157 support_xft=yes 149 support_xft=yes
158 support_unicode3=yes 150 support_unicode3=yes
182 support_warnings=yes 174 support_warnings=yes
183 fi]) 175 fi])
184if test x$GXX = xyes; then 176if test x$GXX = xyes; then
185 if test $support_warnings = yes; then 177 if test $support_warnings = yes; then
186 save_CXXFLAGS="$CXXFLAGS" 178 save_CXXFLAGS="$CXXFLAGS"
187 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" 179 for warning in \
180 -Wall \
181 -Wno-parentheses \
182 -Wno-reorder \
183 -Wno-sign-compare \
184 -Wno-unused-value \
185 ; do
186 CXXFLAGS="$CXXFLAGS $warning"
187 done
188 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="$save_CXXFLAGS"]) 188 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="$save_CXXFLAGS"])
189 else 189 else
190 CXXFLAGS="$CXXFLAGS -w" 190 CXXFLAGS="$CXXFLAGS -w"
191 fi 191 fi
192fi 192fi
431AC_PATH_PROG(TIC, tic, :) 431AC_PATH_PROG(TIC, tic, :)
432 432
433AC_PATH_XTRA 433AC_PATH_XTRA
434 434
435AC_PATH_TOOL(PKG_CONFIG, pkg-config, no) 435AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
436
437RXVT_CHECK_MODULES([PTYTTY], [libptytty], [:], [
438 AC_MSG_ERROR([unable to find libptytty])
439])
440
441AC_SUBST(PTYTTY_CFLAGS)
442AC_SUBST(PTYTTY_LIBS)
436 443
437image_lib=none 444image_lib=none
438 445
439PIXBUF_CFLAGS= 446PIXBUF_CFLAGS=
440PIXBUF_LIBS= 447PIXBUF_LIBS=
510 517
511dnl# -------------------------------------------------------------------------- 518dnl# --------------------------------------------------------------------------
512dnl# CHECKING FOR LIBRARY FUNCTIONS 519dnl# CHECKING FOR LIBRARY FUNCTIONS
513dnl# -------------------------------------------------------------------------- 520dnl# --------------------------------------------------------------------------
514AC_CHECK_FUNCS(unsetenv) 521AC_CHECK_FUNCS(unsetenv)
515
516UTMP_CHECK
517 522
518dnl# -------------------------------------------------------------------------- 523dnl# --------------------------------------------------------------------------
519 524
520dnl# -------------------------------------------------------------------------- 525dnl# --------------------------------------------------------------------------
521dnl# -------------------------------------------------------------------------- 526dnl# --------------------------------------------------------------------------
571[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) 576[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])])
572if test x$rxvt_cv_func_nl_langinfo = xyes; then 577if test x$rxvt_cv_func_nl_langinfo = xyes; then
573 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 578 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
574fi 579fi
575 580
576SCM_RIGHTS_CHECK
577
578PTY_CHECK
579
580TTY_GROUP_CHECK
581
582dnl# -------------------------------------------------------------------------- 581dnl# --------------------------------------------------------------------------
583dnl# now add and remove other stuff 582dnl# now add and remove other stuff
584dnl# -------------------------------------------------------------------------- 583dnl# --------------------------------------------------------------------------
585support_image=no 584support_image=no
586if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 585if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines