MANIFEST | 4 Makefile.in | 16 VTPrsTbl.c | 10 VTparse.def | 4 VTparse.h | 4 XTerm.ad | 7 aclocal.m4 | 176 + button.c | 6 charproc.c | 177 +- config.guess | 214 -- config.sub | 57 configure | 2997 ++++++++++++++++++++-------------- configure.in | 57 ctlseqs.ms | 48 ctlseqs.txt | 57 debian/changelog | 9 debian/patches/900_debian_xterm.diff | 2 debian/patches/901_xterm_manpage.diff | 2 debian/patches/902_windowops.diff | 2 debian/patches/904_fontops.diff | 2 fontutils.c | 82 fontutils.h | 7 input.c | 15 install-sh | 294 +++ install.sh | 294 --- main.c | 89 - main.h | 20 menu.c | 105 - menu.h | 11 minstall.sh | 42 misc.c | 494 +++-- os2main.c | 17 ptydata.c | 86 ptyx.h | 59 screen.c | 25 util.c | 12 version.h | 6 vttests/tcapquery.pl | 83 xterm.h | 16 xterm.log.html | 100 + xterm.man | 110 + xtermcap.c | 218 ++ xtermcap.h | 51 43 files changed, 3906 insertions(+), 2181 deletions(-)
New commits: commit bd7f47222743719928d1bcedc619d624f6afd8b4 Author: Julien Cristau <jcris...@debian.org> Date: Tue Mar 2 14:28:00 2010 +0100 Refresh patches diff --git a/debian/changelog b/debian/changelog index 3929af5..e91a173 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ xterm (255-1) UNRELEASED; urgency=low * New upstream release + correct logic used to switch to alternate screen using FIFO-lines configuration (closes: #565772) + * Refresh patches 900_debian_xterm.diff, 901_xterm_manpage.diff, + 902_windowops.diff, 904_fontops.diff. -- Julien Cristau <jcris...@debian.org> Tue, 02 Mar 2010 14:18:33 +0100 diff --git a/debian/patches/900_debian_xterm.diff b/debian/patches/900_debian_xterm.diff index 4ddc345..33ce89e 100644 --- a/debian/patches/900_debian_xterm.diff +++ b/debian/patches/900_debian_xterm.diff @@ -78,7 +78,7 @@ Index: xterm/XTerm.ad =================================================================== --- xterm.orig/XTerm.ad +++ xterm/XTerm.ad -@@ -153,6 +153,10 @@ +@@ -154,6 +154,10 @@ *tek4014*font3: 6x13 *tek4014*fontSmall: 6x10 diff --git a/debian/patches/901_xterm_manpage.diff b/debian/patches/901_xterm_manpage.diff index 22cbcea..bddcebb 100644 --- a/debian/patches/901_xterm_manpage.diff +++ b/debian/patches/901_xterm_manpage.diff @@ -7,7 +7,7 @@ Index: xterm/xterm.man =================================================================== --- xterm.orig/xterm.man +++ xterm/xterm.man -@@ -5220,10 +5220,10 @@ +@@ -5320,10 +5320,10 @@ .SH FILES The actual pathnames given may differ on your system. .TP 5 diff --git a/debian/patches/902_windowops.diff b/debian/patches/902_windowops.diff index 8d0820d..e76b8bf 100644 --- a/debian/patches/902_windowops.diff +++ b/debian/patches/902_windowops.diff @@ -2,7 +2,7 @@ Index: xterm/xterm.man =================================================================== --- xterm.orig/xterm.man +++ xterm/xterm.man -@@ -2004,8 +2004,9 @@ +@@ -2070,8 +2070,9 @@ from \fIdtterm\fP the operation number). The default value is .RS diff --git a/debian/patches/904_fontops.diff b/debian/patches/904_fontops.diff index db35cb1..73f4566 100644 --- a/debian/patches/904_fontops.diff +++ b/debian/patches/904_fontops.diff @@ -2,7 +2,7 @@ Index: xterm/xterm.man =================================================================== --- xterm.orig/xterm.man +++ xterm/xterm.man -@@ -1494,7 +1494,7 @@ +@@ -1499,7 +1499,7 @@ .TP .B "allowFontOps (\fPclass\fB AllowFontOps)" Specifies whether control sequences that set/query the font should be allowed. commit fba1a2f62a3c4bcb2cb5c323811254ac5aff7cf1 Author: Julien Cristau <jcris...@debian.org> Date: Tue Mar 2 14:26:05 2010 +0100 Update changelog diff --git a/debian/changelog b/debian/changelog index 1cc1bf4..3929af5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,14 @@ -xterm (253-2) UNRELEASED; urgency=low +xterm (255-1) UNRELEASED; urgency=low * Rename the build directory to not include DEB_BUILD_GNU_TYPE for no good reason. Thanks, Colin Watson! * Add build-dep on libxkbfile-dev for XkbBell(3). * Remove myself from Uploaders + * New upstream release + + correct logic used to switch to alternate screen using FIFO-lines + configuration (closes: #565772) - -- Julien Cristau <jcris...@debian.org> Sat, 16 Jan 2010 16:47:14 +0000 + -- Julien Cristau <jcris...@debian.org> Tue, 02 Mar 2010 14:18:33 +0100 xterm (253-1) unstable; urgency=low commit 28bbd26ee60aea258fbcfef9cf554020d7dfdc23 Author: Julien Cristau <jcris...@debian.org> Date: Tue Mar 2 12:18:25 2010 +0100 Import xterm 255 diff --git a/MANIFEST b/MANIFEST index 0680895..282f20a 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,4 +1,4 @@ -MANIFEST for xterm-254, version xterm-254 +MANIFEST for xterm-255, version xterm-255 -------------------------------------------------------------------------------- MANIFEST this file 256colres.h resource-definitions for 256-color mode @@ -48,7 +48,7 @@ fontutils.c xterm functions for (re)loading fonts fontutils.h interface of fontutils.c gen-pc-fkeys.pl script to generate extended function-key terminfo input.c VT100 key-symbol and function-key translation -install.sh configure script: fallback install script +install-sh install-script (needed by configure) keysym2ucs.c lookup-table for UTF-8 to keysyms keysym2ucs.h interface of keysym2ucs.c koi8rxterm KOI-8 wrapper from Debian (originally me) diff --git a/aclocal.m4 b/aclocal.m4 index 906ea96..e2a9af6 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,8 +1,8 @@ -dnl $XTermId: aclocal.m4,v 1.262 2010/01/05 00:48:45 tom Exp $ +dnl $XTermId: aclocal.m4,v 1.263 2010/01/20 09:23:58 tom Exp $ dnl dnl --------------------------------------------------------------------------- dnl -dnl Copyright 1997-2008,2009 by Thomas E. Dickey +dnl Copyright 1997-2009,2010 by Thomas E. Dickey dnl dnl All Rights Reserved dnl @@ -55,7 +55,7 @@ AC_DEFUN([AM_LANGINFO_CODESET], fi ])dnl dnl --------------------------------------------------------------------------- -dnl CF_ADD_CFLAGS version: 8 updated: 2009/01/06 19:33:30 +dnl CF_ADD_CFLAGS version: 9 updated: 2010/01/09 11:05:50 dnl ------------- dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS dnl The second parameter if given makes this macro verbose. @@ -81,8 +81,8 @@ no) cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[[^=]]*='\''\"[[^"]]*//'` test "${cf_add_cflags}" != "${cf_tst_cflags}" \ - && test -z "${cf_tst_cflags}" \ - && cf_fix_cppflags=yes + && test -z "${cf_tst_cflags}" \ + && cf_fix_cppflags=yes if test $cf_fix_cppflags = yes ; then cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" @@ -97,6 +97,12 @@ no) *$cf_add_cflags) #(vi ;; *) #(vi + case $cf_add_cflags in #(vi + -D*) + cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` + CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,$cf_tst_cppflags) + ;; + esac cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" ;; esac @@ -112,8 +118,8 @@ yes) cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[[^"]]*"'\''//'` test "${cf_add_cflags}" != "${cf_tst_cflags}" \ - && test -z "${cf_tst_cflags}" \ - && cf_fix_cppflags=no + && test -z "${cf_tst_cflags}" \ + && cf_fix_cppflags=no ;; esac done @@ -1210,7 +1216,7 @@ fi AC_SUBST(PKG_CONFIG) ])dnl dnl --------------------------------------------------------------------------- -dnl CF_POSIX_C_SOURCE version: 6 updated: 2005/07/14 20:25:10 +dnl CF_POSIX_C_SOURCE version: 7 updated: 2010/01/09 11:05:50 dnl ----------------- dnl Define _POSIX_C_SOURCE to the given level, and _POSIX_SOURCE if needed. dnl @@ -1278,12 +1284,7 @@ make an error if test "$cf_cv_posix_c_source" != no ; then CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" - if test "$cf_cv_cc_u_d_options" = yes ; then - cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \ - sed -e 's/-D/-U/g' -e 's/=[[^ ]]*//g'` - CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source" - fi - CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source" + CF_ADD_CFLAGS($cf_cv_posix_c_source) fi ])dnl @@ -1480,7 +1481,7 @@ case $cf_cv_regex_hdrs in #(vi esac ])dnl dnl --------------------------------------------------------------------------- -dnl CF_REMOVE_DEFINE version: 2 updated: 2005/07/09 16:12:18 +dnl CF_REMOVE_DEFINE version: 3 updated: 2010/01/09 11:05:50 dnl ---------------- dnl Remove all -U and -D options that refer to the given symbol from a list dnl of C compiler options. This works around the problem that not all @@ -1492,10 +1493,9 @@ dnl $2 = source (including '$') dnl $3 = symbol to remove define([CF_REMOVE_DEFINE], [ -# remove $3 symbol from $2 $1=`echo "$2" | \ - sed -e 's/-[[UD]]$3\(=[[^ ]]*\)\?[[ ]]/ /g' \ - -e 's/-[[UD]]$3\(=[[^ ]]*\)\?[$]//g'` + sed -e 's/-[[UD]]'"$3"'\(=[[^ ]]*\)\?[[ ]]/ /g' \ + -e 's/-[[UD]]'"$3"'\(=[[^ ]]*\)\?[$]//g'` ])dnl dnl --------------------------------------------------------------------------- dnl CF_SIGWINCH version: 1 updated: 2006/04/02 16:41:09 @@ -2410,7 +2410,7 @@ AC_TRY_LINK([ test "$cf_cv_xkb_bell_ext" = yes && AC_DEFINE(HAVE_XKB_BELL_EXT) ]) dnl --------------------------------------------------------------------------- -dnl CF_XOPEN_SOURCE version: 30 updated: 2009/12/30 08:32:55 +dnl CF_XOPEN_SOURCE version: 32 updated: 2010/01/09 11:05:50 dnl --------------- dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions, dnl or adapt to the vendor's definitions to get equivalent functionality, @@ -2421,20 +2421,19 @@ dnl $1 is the nominal value for _XOPEN_SOURCE dnl $2 is the nominal value for _POSIX_C_SOURCE AC_DEFUN([CF_XOPEN_SOURCE],[ -AC_REQUIRE([CF_PROG_CC_U_D]) - cf_XOPEN_SOURCE=ifelse($1,,500,$1) cf_POSIX_C_SOURCE=ifelse($2,,199506L,$2) +cf_xopen_source= case $host_os in #(vi aix[[456]]*) #(vi - CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE" + cf_xopen_source="-D_ALL_SOURCE" ;; darwin[[0-8]].*) #(vi - CPPFLAGS="$CPPFLAGS -D_APPLE_C_SOURCE" + cf_xopen_source="-D_APPLE_C_SOURCE" ;; darwin*) #(vi - CPPFLAGS="$CPPFLAGS -D_DARWIN_C_SOURCE" + cf_xopen_source="-D_DARWIN_C_SOURCE" ;; freebsd*|dragonfly*) #(vi # 5.x headers associate @@ -2442,13 +2441,16 @@ freebsd*|dragonfly*) #(vi # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L cf_POSIX_C_SOURCE=200112L cf_XOPEN_SOURCE=600 - CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" + cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" + ;; +hpux11*) #(vi + cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" ;; hpux*) #(vi - CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" + cf_xopen_source="-D_HPUX_SOURCE" ;; irix[[56]].*) #(vi - CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE" + cf_xopen_source="-D_SGI_SOURCE" ;; linux*|gnu*|mint*|k*bsd*-gnu) #(vi CF_GNU_SOURCE @@ -2463,16 +2465,16 @@ openbsd*) #(vi # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw ;; osf[[45]]*) #(vi - CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE" + cf_xopen_source="-D_OSF_SOURCE" ;; nto-qnx*) #(vi - CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE" + cf_xopen_source="-D_QNX_SOURCE" ;; sco*) #(vi # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer ;; solaris*) #(vi - CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" + cf_xopen_source="-D__EXTENSIONS__" ;; *) AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[ @@ -2495,13 +2497,16 @@ make an error if test "$cf_cv_xopen_source" != no ; then CF_REMOVE_DEFINE(CFLAGS,$CFLAGS,_XOPEN_SOURCE) CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,_XOPEN_SOURCE) - test "$cf_cv_cc_u_d_options" = yes && \ - CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE" - CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source" + cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" + CF_ADD_CFLAGS($cf_temp_xopen_source) fi CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE) ;; esac + +if test -n "$cf_xopen_source" ; then + CF_ADD_CFLAGS($cf_xopen_source) +fi ]) dnl --------------------------------------------------------------------------- dnl CF_X_ATHENA version: 12 updated: 2004/06/15 21:14:41 diff --git a/charproc.c b/charproc.c index a8cc70f..42b530a 100644 --- a/charproc.c +++ b/charproc.c @@ -1,4 +1,4 @@ -/* $XTermId: charproc.c,v 1.1031 2010/01/04 23:12:06 tom Exp $ */ +/* $XTermId: charproc.c,v 1.1033 2010/01/20 01:59:19 tom Exp $ */ /* @@ -137,6 +137,9 @@ typedef struct { int code; } FlagList; +typedef void (*BitFunc) (unsigned * /* p */ , + unsigned /* mask */ ); + static IChar doinput(void); static int set_character_class(char * /*s */ ); static void FromAlternate(XtermWidget /* xw */ ); @@ -144,14 +147,16 @@ static void RequestResize(XtermWidget /* xw */ , int /* rows */ , int /* cols */ , Bool /* text */ ); -static void SwitchBufs(XtermWidget xw); +static void SwitchBufs(XtermWidget /* xw */ , + int /* toBuf */ ); static void ToAlternate(XtermWidget /* xw */ ); static void ansi_modes(XtermWidget termw, - void (*func) (unsigned *p, unsigned mask)); + BitFunc /* func */ ); static void bitclr(unsigned *p, unsigned mask); static void bitcpy(unsigned *p, unsigned q, unsigned mask); static void bitset(unsigned *p, unsigned mask); -static void dpmodes(XtermWidget termw, void (*func) (unsigned *p, unsigned mask)); +static void dpmodes(XtermWidget /* xw */ , + BitFunc /* func */ ); static void restoremodes(XtermWidget /* xw */ ); static void savemodes(XtermWidget /* xw */ ); static void window_ops(XtermWidget /* xw */ ); @@ -3954,8 +3959,7 @@ ToggleCursorBlink(TScreen * screen) * process ANSI modes set, reset */ static void -ansi_modes(XtermWidget xw, - void (*func) (unsigned *p, unsigned mask)) +ansi_modes(XtermWidget xw, BitFunc func) { int i; @@ -4009,8 +4013,7 @@ really_set_mousemode(XtermWidget xw, * process DEC private modes set, reset */ static void -dpmodes(XtermWidget xw, - void (*func) (unsigned *p, unsigned mask)) +dpmodes(XtermWidget xw, BitFunc func) { TScreen *screen = TScreenOf(xw); int i, j; @@ -5193,7 +5196,7 @@ ToAlternate(XtermWidget xw) (unsigned) MaxRows(screen), (unsigned) MaxCols(screen), &screen->editBuf_data[1]); - SwitchBufs(xw); + SwitchBufs(xw, 1); screen->whichBuf = 1; #if OPT_SAVE_LINES screen->visbuf = screen->editBuf_index[screen->whichBuf]; @@ -5212,7 +5215,7 @@ FromAlternate(XtermWidget xw) if (screen->scroll_amt) FlushScroll(xw); screen->whichBuf = 0; - SwitchBufs(xw); + SwitchBufs(xw, 0); #if OPT_SAVE_LINES screen->visbuf = screen->editBuf_index[screen->whichBuf]; #endif @@ -5221,7 +5224,7 @@ FromAlternate(XtermWidget xw) } static void -SwitchBufs(XtermWidget xw) +SwitchBufs(XtermWidget xw, int toBuf) { TScreen *screen = TScreenOf(xw); int rows, top; @@ -5230,11 +5233,12 @@ SwitchBufs(XtermWidget xw) HideCursor(); rows = MaxRows(screen); - SwitchBufPtrs(screen); + SwitchBufPtrs(screen, toBuf); if ((top = INX2ROW(screen, 0)) < rows) { - if (screen->scroll_amt) + if (screen->scroll_amt) { FlushScroll(xw); + } XClearArea(screen->display, VWindow(screen), (int) OriginX(screen), @@ -5260,11 +5264,11 @@ CheckBufPtrs(TScreen * screen) * Swap buffer line pointers between alternate and regular screens. */ void -SwitchBufPtrs(TScreen * screen) +SwitchBufPtrs(TScreen * screen, int toBuf GCC_UNUSED) { if (CheckBufPtrs(screen)) { #if OPT_SAVE_LINES - screen->visbuf = screen->editBuf_index[screen->whichBuf]; + screen->visbuf = screen->editBuf_index[toBuf]; #else size_t len = ScrnPointers(screen, (unsigned) MaxRows(screen)); diff --git a/config.guess b/config.guess index dc84c68..c2246a4 100755 --- a/config.guess +++ b/config.guess @@ -1,10 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. -timestamp='2009-11-20' +timestamp='2009-12-30' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -56,8 +56,9 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free +Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." diff --git a/config.sub b/config.sub index 2a55a50..8518609 100755 --- a/config.sub +++ b/config.sub @@ -1,10 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. -timestamp='2009-11-20' +timestamp='2009-12-31' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -75,8 +75,9 @@ Report bugs and patches to <config-patc...@gnu.org>." version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free +Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -1435,6 +1436,8 @@ case $os in -dicos*) os=-dicos ;; + -nacl*) + ;; -none) ;; *) diff --git a/configure b/configure index e075bf9..b5e4437 100755 --- a/configure +++ b/configure @@ -2386,8 +2386,8 @@ no) cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "${cf_add_cflags}" != "${cf_tst_cflags}" \ - && test -z "${cf_tst_cflags}" \ - && cf_fix_cppflags=yes + && test -z "${cf_tst_cflags}" \ + && cf_fix_cppflags=yes if test $cf_fix_cppflags = yes ; then cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" @@ -2402,6 +2402,16 @@ no) *$cf_add_cflags) #(vi ;; *) #(vi + case $cf_add_cflags in #(vi + -D*) + cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` + +CPPFLAGS=`echo "$CPPFLAGS" | \ + sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ + -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` + + ;; + esac cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" ;; esac @@ -2417,8 +2427,8 @@ yes) cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` test "${cf_add_cflags}" != "${cf_tst_cflags}" \ - && test -z "${cf_tst_cflags}" \ - && cf_fix_cppflags=no + && test -z "${cf_tst_cflags}" \ + && cf_fix_cppflags=no ;; esac done @@ -2439,7 +2449,7 @@ if test -n "$cf_new_extra_cppflags" ; then fi cat >conftest.$ac_ext <<_ACEOF -#line 2442 "configure" +#line 2452 "configure" #include "confdefs.h" #ifndef CC_HAS_PROTOS @@ -2460,16 +2470,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2463: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2473: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2466: \$? = $ac_status" >&5 + echo "$as_me:2476: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2469: \"$ac_try\"") >&5 + { (eval echo "$as_me:2479: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2472: \$? = $ac_status" >&5 + echo "$as_me:2482: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_ansi_cc="$cf_arg"; break else @@ -2482,7 +2492,7 @@ CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" fi -echo "$as_me:2485: result: $cf_cv_ansi_cc" >&5 +echo "$as_me:2495: result: $cf_cv_ansi_cc" >&5 echo "${ECHO_T}$cf_cv_ansi_cc" >&6 if test "$cf_cv_ansi_cc" != "no"; then @@ -2504,8 +2514,8 @@ no) cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "${cf_add_cflags}" != "${cf_tst_cflags}" \ - && test -z "${cf_tst_cflags}" \ - && cf_fix_cppflags=yes + && test -z "${cf_tst_cflags}" \ + && cf_fix_cppflags=yes if test $cf_fix_cppflags = yes ; then cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" @@ -2520,6 +2530,16 @@ no) *$cf_add_cflags) #(vi ;; *) #(vi + case $cf_add_cflags in #(vi + -D*) + cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` + +CPPFLAGS=`echo "$CPPFLAGS" | \ + sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ + -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` + + ;; + esac cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" ;; esac @@ -2535,8 +2555,8 @@ yes) cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` test "${cf_add_cflags}" != "${cf_tst_cflags}" \ - && test -z "${cf_tst_cflags}" \ - && cf_fix_cppflags=no + && test -z "${cf_tst_cflags}" \ + && cf_fix_cppflags=no ;; esac done @@ -2564,7 +2584,7 @@ EOF fi fi -echo "$as_me:2567: checking for $CC option to accept ANSI C" >&5 +echo "$as_me:2587: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2572,7 +2592,7 @@ else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF -#line 2575 "configure" +#line 2595 "configure" #include "confdefs.h" #include <stdarg.h> #include <stdio.h> @@ -2621,16 +2641,16 @@ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext -if { (eval echo "$as_me:2624: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2644: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2627: \$? = $ac_status" >&5 + echo "$as_me:2647: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2630: \"$ac_try\"") >&5 + { (eval echo "$as_me:2650: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2633: \$? = $ac_status" >&5 + echo "$as_me:2653: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break @@ -2647,21 +2667,21 @@ fi case "x$ac_cv_prog_cc_stdc" in x|xno) - echo "$as_me:2650: result: none needed" >&5 + echo "$as_me:2670: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) - echo "$as_me:2653: result: $ac_cv_prog_cc_stdc" >&5 + echo "$as_me:2673: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac -echo "$as_me:2658: checking for an ANSI C-conforming const" >&5 +echo "$as_me:2678: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2664 "configure" +#line 2684 "configure" #include "confdefs.h" int @@ -2719,16 +2739,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2725: \$? = $ac_status" >&5 + echo "$as_me:2745: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2728: \"$ac_try\"") >&5 + { (eval echo "$as_me:2748: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2731: \$? = $ac_status" >&5 + echo "$as_me:2751: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_const=yes else @@ -2738,7 +2758,7 @@ ac_cv_c_const=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:2741: result: $ac_cv_c_const" >&5 +echo "$as_me:2761: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then @@ -2765,72 +2785,19 @@ test -n "$PROG_EXT" && cat >>confdefs.h <<EOF #define PROG_EXT "$PROG_EXT" EOF -echo "$as_me:2768: checking if $CC -U and -D options work together" >&5 -echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6 -if test "${cf_cv_cc_u_d_options+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - cf_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS" - cat >conftest.$ac_ext <<_ACEOF -#line 2777 "configure" -#include "confdefs.h" - -int -main () -{ - -#ifndef U_D_OPTIONS -make an undefined-error -#endif -#ifdef D_U_OPTIONS -make a defined-error -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2796: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2799: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2802: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2805: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - - cf_cv_cc_u_d_options=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 - - cf_cv_cc_u_d_options=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="$cf_save_CPPFLAGS" - -fi -echo "$as_me:2819: result: $cf_cv_cc_u_d_options" >&5 -echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6 - cf_XOPEN_SOURCE=500 cf_POSIX_C_SOURCE=199506L +cf_xopen_source= case $host_os in #(vi aix[456]*) #(vi - CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE" + cf_xopen_source="-D_ALL_SOURCE" ;; darwin[0-8].*) #(vi - CPPFLAGS="$CPPFLAGS -D_APPLE_C_SOURCE" + cf_xopen_source="-D_APPLE_C_SOURCE" ;; darwin*) #(vi - CPPFLAGS="$CPPFLAGS -D_DARWIN_C_SOURCE" + cf_xopen_source="-D_DARWIN_C_SOURCE" ;; freebsd*|dragonfly*) #(vi # 5.x headers associate @@ -2838,24 +2805,27 @@ freebsd*|dragonfly*) #(vi # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L cf_POSIX_C_SOURCE=200112L cf_XOPEN_SOURCE=600 - CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" + cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" + ;; +hpux11*) #(vi + cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" ;; hpux*) #(vi - CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" + cf_xopen_source="-D_HPUX_SOURCE" ;; irix[56].*) #(vi - CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE" + cf_xopen_source="-D_SGI_SOURCE" ;; linux*|gnu*|mint*|k*bsd*-gnu) #(vi -echo "$as_me:2851: checking if we must define _GNU_SOURCE" >&5 +echo "$as_me:2821: checking if we must define _GNU_SOURCE" >&5 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 if test "${cf_cv_gnu_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2858 "configure" +#line 2828 "configure" #include "confdefs.h" #include <sys/types.h> int @@ -2870,16 +2840,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2873: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2843: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2876: \$? = $ac_status" >&5 + echo "$as_me:2846: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2879: \"$ac_try\"") >&5 + { (eval echo "$as_me:2849: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2882: \$? = $ac_status" >&5 + echo "$as_me:2852: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_gnu_source=no else @@ -2888,7 +2858,7 @@ cat conftest.$ac_ext >&5 cf_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" cat >conftest.$ac_ext <<_ACEOF -#line 2891 "configure" +#line 2861 "configure" #include "confdefs.h" #include <sys/types.h> int @@ -2903,16 +2873,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2876: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2909: \$? = $ac_status" >&5 + echo "$as_me:2879: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2912: \"$ac_try\"") >&5 + { (eval echo "$as_me:2882: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2915: \$? = $ac_status" >&5 + echo "$as_me:2885: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_gnu_source=no else @@ -2927,7 +2897,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:2930: result: $cf_cv_gnu_source" >&5 +echo "$as_me:2900: result: $cf_cv_gnu_source" >&5 echo "${ECHO_T}$cf_cv_gnu_source" >&6 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" @@ -2942,26 +2912,26 @@ openbsd*) #(vi # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw ;; osf[45]*) #(vi - CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE" + cf_xopen_source="-D_OSF_SOURCE" ;; nto-qnx*) #(vi - CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE" + cf_xopen_source="-D_QNX_SOURCE" ;; sco*) #(vi # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer ;; solaris*) #(vi - CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" + cf_xopen_source="-D__EXTENSIONS__" ;; *) - echo "$as_me:2957: checking if we should define _XOPEN_SOURCE" >&5 + echo "$as_me:2927: checking if we should define _XOPEN_SOURCE" >&5 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 if test "${cf_cv_xopen_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2964 "configure" +#line 2934 "configure" #include "confdefs.h" #include <sys/types.h> int @@ -2976,16 +2946,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2979: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2949: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2982: \$? = $ac_status" >&5 + echo "$as_me:2952: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2985: \"$ac_try\"") >&5 + { (eval echo "$as_me:2955: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2988: \$? = $ac_status" >&5 + echo "$as_me:2958: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_xopen_source=no else @@ -2994,7 +2964,7 @@ cat conftest.$ac_ext >&5 cf_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" cat >conftest.$ac_ext <<_ACEOF -#line 2997 "configure" +#line 2967 "configure" #include "confdefs.h" #include <sys/types.h> int -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1nms97-00080a...@alioth.debian.org