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.72 by root, Mon Jan 16 14:48:39 2006 UTC vs.
Revision 1.78 by root, Tue Jan 17 11:53:07 2006 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 5
7AC_INIT 6AC_INIT
7AC_PREREQ(2.50)
8AC_CONFIG_SRCDIR([src/feature.h]) 8AC_CONFIG_SRCDIR([src/feature.h])
9AC_CONFIG_AUX_DIR(autoconf) 9AC_CONFIG_AUX_DIR(autoconf)
10AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 10AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
11 11
12AC_CANONICAL_HOST 12AC_CANONICAL_HOST
23AC_SUBST(LIBVERSION)dnl 23AC_SUBST(LIBVERSION)dnl
24echo "" 24echo ""
25echo "configuring for rxvt $VERSION" 25echo "configuring for rxvt $VERSION"
26echo "" 26echo ""
27 27
28orig_CXXFLAGS="$CXXFLAGS"
29
28dnl# Checks for programs. 30dnl# Checks for programs.
29dnl AC_MAKE_SET 31dnl AC_MAKE_SET
30 32
31AC_PROG_CC 33AC_PROG_CC
32AC_PROG_CXX 34AC_PROG_CXX
38 40
39dnl# -------------------------------------------------------------------------- 41dnl# --------------------------------------------------------------------------
40dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' 42dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
41dnl# 43dnl#
42if test -z "$orig_CXXFLAGS"; then 44if test -z "$orig_CXXFLAGS"; then
43 CXXFLAGS='-O'
44 if test x$GCC = xyes && test "x$GXX" = xyes; then 45 if test x$GCC = xyes && test "x$GXX" = xyes; then
45 CXXFLAGS="-g -O3" 46 CXXFLAGS="-g -O3"
47 else
48 CXXFLAGS="-O"
46 fi 49 fi
47 CFLAGS="$CXXFLAGS" 50 CFLAGS="$CXXFLAGS"
48fi 51fi
49 52
50LINKER="$CXX" 53LINKER="$CXX"
298 [ --enable-plain-scroll enable plain style scrollbar], 301 [ --enable-plain-scroll enable plain style scrollbar],
299 [if test x$enableval = xyes -o x$enableval = xno; then 302 [if test x$enableval = xyes -o x$enableval = xno; then
300 support_scroll_plain=$enableval 303 support_scroll_plain=$enableval
301 fi]) 304 fi])
302 305
303AC_ARG_ENABLE(half-shadow, 306dnl AC_ARG_ENABLE(half-shadow,
304 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], 307dnl [ --enable-half-shadow use half width/height shadow on rxvt scrollbar],
305 [if test x$enableval = xyes; then 308dnl [if test x$enableval = xyes; then
306 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 309dnl AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
307 fi]) 310dnl fi])
308 311
309AC_ARG_WITH(codesets, 312AC_ARG_WITH(codesets,
310 [ --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)],
311 [codesets="$withval"]) 314 [codesets="$withval"])
312 315
707dnl# CHECKING FOR LIBRARY FUNCTIONS 710dnl# CHECKING FOR LIBRARY FUNCTIONS
708dnl# -------------------------------------------------------------------------- 711dnl# --------------------------------------------------------------------------
709AC_TYPE_SIGNAL 712AC_TYPE_SIGNAL
710dnl> AC_FUNC_VPRINTF 713dnl> AC_FUNC_VPRINTF
711 714
712dnl# Note: On Ultrix, setsid() does weirdo stuff, disable it
713case "$host_alias" in
714 *ultrix) ac_cv_func_setsid='no' ;;
715 *) break;;
716esac
717
718AC_CHECK_FUNCS( \ 715AC_CHECK_FUNCS( \
719 atexit \
720 revoke \ 716 revoke \
721 unsetenv \ 717 unsetenv \
722 setutent \ 718 setutent \
723 seteuid \ 719 seteuid \
724 setreuid \ 720 setreuid \
725 setsid \
726 setpgrp \
727 setpgid \
728 _getpty \ 721 _getpty \
722 getpt \
729 posix_openpt \ 723 posix_openpt \
730 grantpt \ 724 grantpt \
731 unlockpt \ 725 unlockpt \
732 isastream \ 726 isastream \
733 on_exit \ 727 on_exit \
1163 1157
1164if test x$rxvt_broken_ximcb = xyes; then 1158if test x$rxvt_broken_ximcb = xyes; then
1165 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) 1159 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
1166fi 1160fi
1167 1161
1168if test x$ac_cv_func_posix_openpt = xno; then 1162if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
1169 AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) 1163 AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])])
1170fi 1164fi
1171 1165
1172dnl# if we don't guess right then it's up to the user 1166dnl# if we don't guess right then it's up to the user
1173AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, 1167AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys,
1174[if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then 1168[if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
1175 rxvt_cv_ptys=OPENPTY 1169 rxvt_cv_ptys=OPENPTY
1170 else if test x$ac_cv_func_getpt = xyes; then
1171 rxvt_cv_ptys=GLIBC
1176 else if test x$ac_cv_func_posix_openpt = xyes; then 1172 else if test x$ac_cv_func_posix_openpt = xyes; then
1177 rxvt_cv_ptys=POSIX 1173 rxvt_cv_ptys=POSIX
1178 else if test x$ac_cv_func__getpty = xyes; then 1174 else if test x$ac_cv_func__getpty = xyes; then
1179 rxvt_cv_ptys=SGI4 1175 rxvt_cv_ptys=SGI4
1180 else if test -c /dev/ttyp20; then 1176 else if test -c /dev/ttyp20; then
1199fi 1195fi
1200fi 1196fi
1201fi 1197fi
1202fi 1198fi
1203fi 1199fi
1200fi
1204]) 1201])
1205 1202
1203if test x$rxvt_cv_ptys = xGLIBC; then
1204 AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type)
1205fi
1206if test x$rxvt_cv_ptys = xPOSIX; then 1206if test x$rxvt_cv_ptys = xPOSIX; then
1207 AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) 1207 AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type)
1208fi 1208fi
1209if test x$rxvt_cv_ptys = xOPENPTY; then 1209if test x$rxvt_cv_ptys = xOPENPTY; then
1210 AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) 1210 AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type)
1424AC_SUBST(DLIB) 1424AC_SUBST(DLIB)
1425AC_SUBST(LIBS) 1425AC_SUBST(LIBS)
1426AC_SUBST(X_LIBS) 1426AC_SUBST(X_LIBS)
1427AC_SUBST(X_EXTRA_LIBS) 1427AC_SUBST(X_EXTRA_LIBS)
1428 1428
1429dnl# common parts of the Makefile
1430MCOMMON=./autoconf/Make.common
1431AC_SUBST_FILE(MCOMMON)
1432
1433AC_ARG_PROGRAM 1429AC_ARG_PROGRAM
1434 1430
1435dnl# test for "sun" or "__sun__" before include sys_ioctl 1431dnl# test for "sun" or "__sun__" before include sys_ioctl
1436 1432
1437dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1433dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1455RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1451RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1456RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) 1452RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch)
1457RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) 1453RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch)
1458RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) 1454RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1459 1455
1460AC_CONFIG_FILES([autoconf/Make.common \ 1456AC_CONFIG_FILES([Makefile \
1461Makefile \
1462doc/Makefile \ 1457doc/Makefile \
1463src/Makefile \ 1458src/Makefile \
1464src/rxvtlib.h \ 1459src/rxvtlib.h \
1465]) 1460])
1466AC_OUTPUT 1461AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines