diffstat-1.68/0000755000000000000000000000000015002525514011751 5ustar rootrootdiffstat-1.68/configure.in0000644000000000000000000000521014714370446014273 0ustar rootrootdnl Process this file with 'autoconf' to produce a 'configure' script dnl $Id: configure.in,v 1.35 2024/11/11 11:57:26 tom Exp $ dnl --------------------------------------------------------------------------- dnl Copyright 1994-2023,2024 Thomas E. Dickey dnl dnl Permission is hereby granted, free of charge, to any person obtaining a dnl copy of this software and associated documentation files (the "Software"), dnl to deal in the Software without restriction, including without limitation dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, dnl and/or sell copies of the Software, and to permit persons to whom the dnl Software is furnished to do so, subject to the following conditions: dnl dnl The above copyright notice and this permission notice shall be included in dnl all copies or substantial portions of the Software. dnl dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL dnl THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER dnl DEALINGS IN THE SOFTWARE. dnl dnl Except as contained in this notice, the name(s) of the above copyright dnl holders shall not be used in advertising or otherwise to promote the sale, dnl use or other dealings in this Software without prior written dnl authorization. dnl --------------------------------------------------------------------------- AC_PREREQ(2.52.20190901) AC_REVISION($Revision: 1.35 $) AC_INIT(diffstat.c) AC_CONFIG_HEADER(config.h:config_h.in) CF_CHECK_CACHE CF_PROG_CC AC_PROG_INSTALL CF_PROG_LINT CF_MAKE_TAGS CF_DISABLE_ECHO CF_WITH_INSTALL_PREFIX with_full_paths=no CF_PATH_PROG(BZCAT, bzcat) CF_PATH_PROG(BZIP2, bzip2) CF_PATH_PROG(COMPRESS, compress, gzip) CF_PATH_PROG(GZIP, gzip) CF_PATH_PROG(LZCAT, lzcat, xz) CF_PATH_PROG(PCAT, pcat) CF_PATH_PROG(UNCOMPRESS, uncompress.real, uncompress) CF_PATH_PROG(XZ, xz, lzcat) CF_PATH_PROG(ZCAT, zcat) CF_PATH_PROG(ZSTD, zstd) CF_XOPEN_SOURCE CF_WITH_WARNINGS AC_CONST AC_CHECK_DECL(exit) AC_HAVE_HEADERS(ioctl.h search.h sys/ioctl.h) AC_TYPE_SIZE_T CF_LOCALE AC_CHECK_FUNCS(\ mkdtemp \ opendir \ strdup \ tsearch \ ) CF_FUNC_LSTAT CF_FUNC_GETOPT(getopt,\$(srcdir)/porting) CF_FUNC_POPEN(popen,\$(srcdir)/porting) CF_FUNC_MBSTOWCWIDTH CF_STDIO_UNLOCKED(getc_unlocked) CF_TERMIOS CF_WITH_MAN2HTML CF_DISABLE_LEAKS ### output makefile and config.h AC_OUTPUT(makefile,,,cat) CF_MAKE_DOCS(diffstat,1) diffstat-1.68/config.guess0000755000000000000000000014306714651355010014305 0ustar rootroot#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2024-07-27' # 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 # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system '$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2024 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." help=" Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still # use 'HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c17 c99 c89 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #if defined(__ANDROID__) LIBC=android #else #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #elif defined(__LLVM_LIBC__) LIBC=llvm #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-pc-managarm-mlibc" ;; *:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __ARM_EABI__ #ifdef __ARM_PCS_VFP ABI=eabihf #else ABI=eabi #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; esac fi GUESS=$CPU-unknown-linux-$LIBCABI ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:cos:*:*) GUESS=$UNAME_MACHINE-unknown-cos ;; kvx:mbr:*:*) GUESS=$UNAME_MACHINE-unknown-mbr ;; loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find 'uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; *:Ironclad:*:*) GUESS=$UNAME_MACHINE-unknown-ironclad ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif int main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: diffstat-1.68/package/0000755000000000000000000000000015002510305013334 5ustar rootrootdiffstat-1.68/package/debian/0000755000000000000000000000000015002510305014556 5ustar rootrootdiffstat-1.68/package/debian/copyright0000644000000000000000000001267315002510305016522 0ustar rootrootUpstream source http://invisible-island.net/diffstat/diffstat.html /****************************************************************************** * Copyright 1994-2024,2025 by Thomas E. Dickey * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the "Software"), * * to deal in the Software without restriction, including without limitation * * the rights to use, copy, modify, merge, publish, distribute, sublicense, * * and/or sell copies of the Software, and to permit persons to whom the * * Software is furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included in * * all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * * THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * * DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the sale, * * use or other dealings in this Software without prior written * * authorization. * ******************************************************************************/ ------------------------------------------------------------------------------- Files: install-sh Copyright: 1994 X Consortium Licence: other-BSD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other deal- ings in this Software without prior written authorization from the X Consor- tium. FSF changes to this file are in the public domain. Calling this script install-sh is preferred over install.sh, to prevent `make' implicit rules from creating a file called install from it when there is no Makefile. This script is compatible with the BSD install script, but was written from scratch. It can only install one file at a time, a restriction shared with many OS's install programs. Files: debian/* Copyright: 2010-2024,2025 Thomas E. Dickey Licence: other-BSD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization. On Debian systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2' diffstat-1.68/package/debian/docs0000644000000000000000000000000711417276261015446 0ustar rootrootREADME diffstat-1.68/package/debian/compat0000644000000000000000000000000313777433427016007 0ustar rootroot11 diffstat-1.68/package/debian/rules0000755000000000000000000000427214714425616015666 0ustar rootroot#!/usr/bin/make -f # Made with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Cristoph Lameter. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS := $(shell dpkg-buildflags --get CFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif configure: configure-stamp configure-stamp: dh_testdir CPPFLAGS="$(CPPFLAGS)" \ CFLAGS="$(CFLAGS)" \ LDFLAGS="$(LDFLAGS)" \ ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --sysconfdir=/etc touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot [ ! -f Makefile ] || $(MAKE) clean rm -f configure-stamp build-stamp install-stamp \ config.cache config.h config.status config.log makefile rm -f *.o diffstat dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/diffstat touch install-stamp # Build architecture-independent files here. binary-indep: build install # No binary-indep target. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_lintian dh_installdocs dh_installexamples dh_installchangelogs CHANGES dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install install-stamp diffstat-1.68/package/debian/control0000644000000000000000000000110513335073244016173 0ustar rootrootSource: diffstat Maintainer: Thomas E. Dickey Section: devel Priority: optional Standards-Version: 3.8.4 Build-Depends: debhelper (>= 5) Homepage: http://invisible-island.net/diffstat/ Package: diffstat Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: produces graph of changes introduced by a diff between files. Diffstat is useful for reviewing large, complex patch files. It reads from one or more input files which contain output from diff, producing a histogram of the total lines changed for each file referenced. diffstat-1.68/package/debian/source/0000755000000000000000000000000011454443274016077 5ustar rootrootdiffstat-1.68/package/debian/source/format0000644000000000000000000000001511454443274017306 0ustar rootroot3.0 (native) diffstat-1.68/package/debian/watch0000644000000000000000000000014514554675403015635 0ustar rootrootversion=3 opts=passive https://invisible-island.net/archives/diffstat-(\d+)\.tgz \ debian uupdate diffstat-1.68/package/debian/changelog0000644000000000000000000000522115002510141016426 0ustar rootrootdiffstat (1.68) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Thu, 24 Apr 2025 15:26:21 -0400 diffstat (1.67) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Mon, 11 Nov 2024 10:57:43 -0500 diffstat (1.66) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Sun, 05 Feb 2023 09:59:05 -0500 diffstat (1.65) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Sat, 08 Oct 2022 18:46:54 -0400 diffstat (1.64) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Mon, 11 Jan 2021 04:10:59 -0500 diffstat (1.63) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Sun, 24 Nov 2019 13:02:47 -0500 diffstat (1.62) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Tue, 14 Aug 2018 20:24:27 -0400 diffstat (1.61) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Tue, 05 Jan 2016 19:51:23 -0500 diffstat (1.60) unstable; urgency=low * handle quoted files from diffutils 3.3 -- Thomas E. Dickey Mon, 06 Jul 2015 19:27:58 -0400 diffstat (1.59) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Thu, 05 Jun 2014 17:12:15 -0400 diffstat (1.58) unstable; urgency=low * maintenance updates -- Thomas E. Dickey Mon, 28 Oct 2013 17:40:54 -0400 diffstat (1.57) unstable; urgency=low * fix for diff 2.8.4 "Binary" message -- Thomas E. Dickey Mon, 15 Apr 2013 20:48:36 -0400 diffstat (1.56) unstable; urgency=low * Configure-script updates * Debian #675475 -- Thomas E. Dickey Tue, 03 Jan 2012 04:39:50 -0500 diffstat (1.55) unstable; urgency=low * Add -R option. * Documentation fixes. -- Thomas E. Dickey Tue, 03 Jan 2012 04:39:50 -0500 diffstat (1.54) unstable; urgency=low * Fix counts for -S/-D options. * change source format to native. -- Thomas E. Dickey Sun, 10 Oct 2010 14:13:13 -0400 diffstat (1.53) unstable; urgency=low * Fix regression in "-c" option. -- Thomas E. Dickey Thu, 15 Jul 2010 19:39:36 -0400 diffstat (1.52) unstable; urgency=low * Add package scripts to upstream source, for test-builds. -- Thomas E. Dickey Thu, 15 Jul 2010 19:39:36 -0400 diffstat-1.68/package/diffstat.spec0000644000000000000000000000264715002510057016031 0ustar rootrootSummary: Make histogram from diff-output %define AppProgram diffstat %define AppVersion 1.68 # $XTermId: diffstat.spec,v 1.22 2025/04/24 19:25:35 tom Exp $ Name: %{AppProgram} Version: %{AppVersion} Release: 1 License: MIT Group: Applications/Development URL: https://invisible-island.net/archives/%{AppProgram} Source0: %{AppProgram}-%{AppVersion}.tgz Packager: Thomas Dickey %description Diffstat is is useful for reviewing large, complex patch files. It reads from one or more input files which contain output from diff, producing a histogram of the total lines changed for each file referenced. %prep %define debug_package %{nil} %setup -q -n %{AppProgram}-%{AppVersion} %build INSTALL_PROGRAM='${INSTALL}' \ %configure \ --target %{_target_platform} \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --libdir=%{_libdir} \ --mandir=%{_mandir} make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT strip $RPM_BUILD_ROOT%{_bindir}/%{AppProgram} %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_prefix}/bin/%{AppProgram} %{_mandir}/man1/%{AppProgram}.* %changelog # each patch should add its ChangeLog entries here * Fri Jan 26 2024 Thomas Dickey - update URLs * Wed Aug 15 2018 Thomas Dickey - use recommended compiler-flags * Thu Jul 15 2010 Thomas Dickey - initial version diffstat-1.68/makefile.in0000644000000000000000000000646013334674763014105 0ustar rootroot# $Id: makefile.in,v 1.35 2018/08/15 00:55:15 tom Exp $ # Makefile-template for 'diffstat' THIS = diffstat #### Start of system configuration section. #### srcdir = @srcdir@ VPATH = @srcdir@ DESTDIR = @DESTDIR@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ bindir = @bindir@ mandir = @mandir@ CC = @CC@ LINK = $(CC) INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ LINT = @LINT@ LINTOPTS = @LINT_OPTS@ CTAGS = @CTAGS@ ETAGS = @ETAGS@ CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ CPPFLAGS = -I. -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@ LIBS = @LIBS@ LDFLAGS = @LDFLAGS@ o = .@OBJEXT@ x = @EXEEXT@ EXTRA_OBJS = @EXTRA_OBJS@ BINDIR = $(DESTDIR)$(bindir) MANDIR = $(DESTDIR)$(mandir) #### End of system configuration section. #### SHELL = /bin/sh man1dir = $(MANDIR)/man1 manext = 1 PROG = $(THIS)$x SRC = CHANGES \ README $(THIS).c $(THIS).1 \ config_h.in install-sh \ makefile.in configure.in aclocal.m4 \ makefile.wnt PORTFILES = porting/getopt.c \ porting/getopt.h \ porting/system.h \ porting/wildcard.c TESTFILES = testing/README \ testing/run_test.sh \ testing/case0[1-5]* DISTFILES = configure config.guess config.sub $(SRC) .SUFFIXES: .c $o .c$o: @RULE_CC@ @ECHO_CC@$(CC) -c $(CPPFLAGS) $(CFLAGS) $< all : $(PROG) $(PROG) : diffstat$o $(EXTRA_OBJS) @ECHO_LD@$(LINK) $(LDFLAGS) -o $@ diffstat$o $(EXTRA_OBJS) $(LIBS) install : all installdirs $(INSTALL_PROGRAM) $(PROG) $(BINDIR)/$(PROG) $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(man1dir)/$(THIS).$(manext) installdirs : mkdir -p $(BINDIR) $(man1dir) uninstall : rm -f $(BINDIR)/$(PROG) $(man1dir)/$(THIS).$(manext) mostlyclean :: rm -f *.o core *~ *.out *.err *.BAK *.atac clean :: mostlyclean rm -f $(PROG) distclean :: clean rm -f makefile config.log config.cache config.status config.h man2html.tmp rm -f tags TAGS # don't remove configure! realclean :: distclean check : $(PROG) $(SHELL) -c 'PATH=`pwd`:$${PATH}; export PATH; \ $(SHELL) $(srcdir)/testing/run_test.sh $(srcdir)/testing/case*.pat' lint : $(LINT) $(CPPFLAGS) $(LINTOPTS) $(THIS).c tags : $(CTAGS) $(THIS).c $(HDRS) @MAKE_UPPER_TAGS@TAGS : @MAKE_UPPER_TAGS@ $(ETAGS) $(THIS).c $(HDRS) dist: makefile $(DISTFILES) # make a list of the files to distribute echo $(THIS)-`sed \ -e '/"$$[A-Za-z]*: $(THIS)\.c.*$$"/!d' \ -e 's/^.*$(THIS)[^ ]*[ ]*//' \ -e 's/[ ].*$$//' \ -e q $(srcdir)/$(THIS).c` > .fname rm -rf `cat .fname` # contents of top directory mkdir `cat .fname` for file in $(DISTFILES); do \ ln $(srcdir)/$$file `cat .fname` \ || { echo copying $$file instead; cp -p $$file `cat .fname`; }; \ done # contents of top/porting directory mkdir `cat .fname`/porting for file in $(PORTFILES); do \ ln $(srcdir)/$$file `cat .fname`/porting \ || { echo copying $$file instead; cp -p $$file `cat .fname`/porting; }; \ done # contents of top/testing directory mkdir `cat .fname`/testing for file in $(TESTFILES); do \ ln $(srcdir)/$$file `cat .fname`/testing \ || { echo copying $$file instead; cp -p $$file `cat .fname`/testing; }; \ done # tar and cleanup tar -cf - `cat .fname` | gzip >`cat .fname`.tgz rm -rf `cat .fname` .fname $(THIS).o : config.h $(SRC) : getopt.o : $(srcdir)/porting/getopt.c $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/porting/getopt.c diffstat-1.68/config_h.in0000644000000000000000000000037105576717302014073 0ustar rootroot/* * $Id: config_h.in,v 1.1 1994/06/12 23:48:18 tom Exp $ * config_h.in is a template file used by configure to produce config.h. * config_h is then transformed (by config.status) into the header file * config.h -- Kevin Buettner. */ @DEFS@ diffstat-1.68/README0000644000000000000000000000045307361163222012636 0ustar rootroot$Id: README,v 1.5 2001/10/11 00:23:46 tom Exp $ Readme file for DiffStat. This program is a simple filter that reads the output of the 'diff' program, and produces a histogram of the total number of lines that were changed. It is useful for scanning a patch file to see which files were changed. diffstat-1.68/CHANGES0000644000000000000000000003663015002507462012756 0ustar rootroot-- $Id: CHANGES,v 1.116 2025/04/24 19:21:22 tom Exp $ 2025/04/24 (diffstat 1.68) + correct len parameter of mbsrtowcs (Redhat #2362049). + improve configure script: CF_CONST_X_STRING, simplify with $ac_includes_default CF_GCC_WARNINGS, add gcc15 warning for zero vs NULL CF_PROG_LINT add options for lint program on NetBSD, and make a "predefined" symbol to help with cppcheck false-positives 2024/11/11 (diffstat 1.67) + align license text with xterm, i.e., "MIT-X11" + add decompression for zstd files + improve configure script checks, reducing compiler warnings + update config.guess, config.sub 2024/01/28 (diffstat 1.66) + improve handling of git diff's + update install-sh + improve configure script checks, reducing compiler warnings 2022/10/09 (diffstat 1.65) + correct case where there is no unified-context. + trim trailing '/' from pathnames, e.g., to handle "diff -ru FOO/ BAR/ | diffstat -K" (report by "paxsali"). + update configure macros + update config.guess, config.sub 2021/01/12 (diffstat 1.64) + recognize binary files mentioned in "git diff --binary", and "git log -p --binary" formatted files (report by Faheem Mitha). + update configure macros + update config.guess, config.sub 2019/11/29 (diffstat 1.63) + eliminate fixed buffer when decoding range. + use locale in computing filename column-width. + improve parsing for git diffs. + use terminal-width as default for -w to tty. + minor fix in do_merging (Miloslaw Smyk). + improve relative-pathname matching in count_lines() + add a parsing-case for svn diff. + quote filenames in -t/-T output. + fix cppcheck warnings about sscanf. + update configure macros + update config.guess, config.sub 2018/08/15 (diffstat 1.62) + improve checks for unmodified files when -S and -D options are given. + improve test-packages, to check warning-options. + minor fixes for manpage (Debian #895963) + update configure macros + update config.guess, config.sub + minor fixes for prefix-stripping with -S option. 2016/01/14 (diffstat 1.61) + add -T option to show amount of changes next to histogram. + if -S option is given, check for unmodified files and add those to the report. + update configure macros + update config.guess, config.sub 2015/07/07 (diffstat 1.60) + handle double-quotes, e.g., from diffutils 3.3 when filenames have embedded spaces. + add configure option --with-man2html + update configure macros + update config.guess, config.sub 2014/06/05 (diffstat 1.59) + add -E option to filter escape-sequences, e.g., from colordiff (Ubuntu #1304262). + merge/adapt improvements to makefile and configure script from openembedded.org (forwarded by Ross Burton). + remove unused $(libdir) from makefile "installdirs" target + amend definition in CF_POPEN_TEST to permit use of autoheader. + workaround for gratuitous renaming of AC_ACVERSION in 2.69 + added "docs" rule to makefile + improvements to configure macros: + added check for -Wlogical-op to gcc warnings + suppress check for defining _XOPEN_SOURCE on Solaris + trim an unwanted -no-gcc option for Intel compiler + update config.guess, config.sub 2013/10/28 (diffstat 1.58) + add COPYING file (request by Dagobert Michelsen). + improved portability for cross-compiling, by supplying missing getopt function as well as improving checks for popen/pclose prototypes. + updated configure macros, e.g., for MingW and MSYS fixes. + update config.guess, config.sub 2013/04/15 (diffstat 1.57) + improve treatment of binary files in ambiguous message introduced in diffutils 2.8.4, and finally corrected in 3.0 (report by Moritz Barsnick). 2013/02/11 (diffstat 1.56) + add -K option which attempts to improve the annotation of "only" files by looking for a match in the resulting set of files and inferring whether the file was added or removed (request by Marc Haber). + add check of command-line options for valid numbers. + improve merging of patches for the same filename (report/testcase by Paul E McKenney). + document -d option in manpage. + document -b, -C, -s option in usage (patch by Tim Waugh, RedHat #852770) + modify configure script as done for byacc in 2012/10/03, making the 2.52-patches the prerequisite and adding support for --datarootdir option. + update config.guess, config.sub + add logic to handle SVN diffs when the pathnames contain spaces (patch by Stuart Prescott, Debian #675465). + fix typo in package/debian/control 2012/01/03 (diffstat 1.55) + add -R option, like patch's, to reverse the order of the comparison. + FreeBSD ports/148604, ports/149500 reported that lzcat may not support extracting files compressed in xz format (patch by Frederic Culot, FreeBSD #149500). + address documentation issue raised in Novell #739210 + correct typo s/Solaris/Solar/. + updated configure script macros: CF_ANSI_CC_CHECK CF_DISABLE_LEAKS CF_GCC_ATTRIBUTES CF_GCC_WARNINGS CF_MAKE_TAGS CF_MSG_LOG CF_PATH_PROG CF_WITH_INSTALL_PREFIX CF_XOPEN_SOURCE + update config.guess, config.sub 2010/10/10 (diffstat 1.54) + change Debian package script to use native format. + correct counts used for new files when -S/-D options are used. + minor typography improvement to manpage (patch by Solar Designer) + remove the temporary directory on error, introduced in 1.48+ (patch by Solar Designer). 2010/07/19 (diffstat 1.53) + add missing "break" statement which left "-c" option falling-through into "-C". 2010/07/16 (diffstat 1.52) + add "-C" option to show the histogram using SGR colors. + add "-s" option to show only the summary line. + add configure check for "xz", using this in preference to "lzcat" (FreeBSD #148604). + also escape literal dashes used as part of the histogram in the manpage. + modify hyphens vs dashes in manpage per http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html (patch by Francois Marier). + drop mkdirs.sh, use "mkdir -p" + add configure checks for ctags and lint. + updated configure macros + reformat CHANGES to work with metrics script. + fix strict gcc warnings, e.g., using const. + improve a case where filenames have embedded blanks (patch by Reinier Post). + update config.guess, config.sub 2009/11/07 (diffstat 1.51) + correct suffix-check for ".xz" files as command-line parameters rather than as piped input (report by Moritz Barsnick). 2009/11/6 (diffstat 1.50) + build/test fixes for MSYS, i.e., MinGW. + improve configure check for get_unlocked function. + use $TMPDIR for path of temporary file used in decompression. + correct else-condition for detecting compression type (patch by Zach Hirsch). 2009/08/31 (diffstat 1.49) + improve lzma support, add support for xz (patch by Eric Blake). + add special case for no-newline message from some diff's (Ubuntu #269895). + improve configure check for getopt header. + add configure special case for HPUX 11 with _XOPEN_SOURCE definition. + update config.guess, config.sub 2009/08/11 (diffstat 1.48) + add decompression tests for lzma and pack file types. + check for zcat and uncompress in preference to "compress -dc". + modify to check the first few bytes of standard input, and use a corresponding decompression utility if the stream appears to be compressed. This requires making a temporary copy of the data (Debian #491575). + add -N option, to truncate filenames. + use getc_unlocked() rather than fgetc_unlocked() + modify to recognize Perforce-style diffs (patch by Ed Schouten). + updated configure macros to improve compiler warning checks, use $PATH_SEPARATOR rather than $PATH_SEP (for consistency with some autoconf versions), + fix typo in configure --with-install-prefix option (report by Dagobert Michelsen). + update config.guess, config.sub 2009/03/29 (diffstat 1.47) modify to work with patch ".rej" files, which do not have a header to tell which file is affected. fix typo in usage message (reports by Moritz Barsnick, John McNamara, Richard Quadling). 2008-08-06 (diffstat 1.46) + add "-S", "-D" and "-m" options to provide a way to show the amount of difference relative to the total sizes of the files. + add "-q" option (Debian #488248, patch by Greg Norris). 2007/09/04 (diffstat 1.45) + add "-b" option (Debian #379380, patch by Greg Norris). 2007/08/26 (diffstat 1.44) + add a check for default-diff output, e.g., "diff foo bar|diffstat", which has no "diff" command in the output for diffstat to guess that a diff is beginning. + add a check after completing a chunk for unified diff to ensure that the next line either begins another chunk for the diff, or starts another diff, e.g., a context diff (report by Adrian Bunk). + add configure options for leak-checking valgrind, etc. + use install-sh rather than install.sh + updated config.guess and config.sub + updated configure macros CF_GCC_ATTRIBUTES CF_GCC_WARNINGS CF_MSG_LOG CF_PATH_SYNTAX CF_VERBOSE CF_XOPEN_SOURCE 2006/07/16 (diffstat 1.43) + fix to avoid modifying data which is being used by tsearch() for ordering the binary tree (report by Adrian Bunk). 2006/07/02 (diffstat 1.42) + do not ignore pathnames in /tmp/, since some tools create usable for both old/new files there (Debian #376086). + correct ifdef for fgetc_unlocked(). + updated configure macros CF_GCC_VERSION, CF_PATH_SYNTAX and CF_XOPEN_SOURCE + add configure check for compress, gzip and bzip2 programs that may be used to decompress files. 2005/08/24 (diffstat 1.41) + update usage message for options added in 1.40 (report by Eric Blake). 2005-08-15 (diffstat 1.40) + add options -l, -r and -t. add to -f option (patch, comments by Jean Delvare, Michael Burian). + improve I/O on Linux using fgetc_locked(). + improve searching of long sorted lists using tsearch() + improve configure-script checks for Intel compiler warnings. 2005-04-10 (diffstat 1.39) + change order of merging and prefix-stripping so stripping all prefixes, e.g., with -p9, will be sorted as expected (patch by Jean Delvare). + correct a reference to freed memory after merging found with valgrind. 2005-01-16 (diffstat 1.38) + add makefile.wnt, etc., for win32 port. + fix "make check" to work even when PATH or the build directory has spaces in it (patch by Eric Blake). + add support for '--help' and '--version' command line arguments, for a consistent interface with GNU tools, and still compatible to POSIX requirements on utility options (patch by Eric Blake). 2004-12-18 + modify makefile.in and run_test.sh to allow "make check" to be run from a build directory which is not the same as the source directory, i.e., when the configure --srcdir option is used (request by Eric Blake). + modify distribution to include sample of regression tests, so a "make check" will work (request by Eric Blake). 2004-12-16 (diffstat 1.37) + fix a different case for data beginning with "--" which was treated as a header line. 2004-12-14 (diffstat 1.36) + Fix allocation problems. Open files in binary mode for reading. Getopt returns -1, not necessarily EOF. Add const where useful. Use NO_IDENT where necessary. malloc() comes from in standard systems (Patch by Eric Blake .) 2004-11-08 (diffstat 1.35) + modify makefile.in to work with configure --srcdir option (report by Eric Blake). + minor fix for resync of unified diffs checks for range (line beginning with '@' without header lines (successive lines beginning with "---" and "+++") (Debian #264098). + miscellaneous updates for configure script 2003-11-09 (diffstat 1.34) + improve check for certain lines (not those that begin a chunk) that begin with '-', treating all except "---" as a delete (report by James Rowe ). + minor updates to configure script. 2003-02-14 (diffstat 1.33) + modified to work around a case where the filename+date was incomplete, i.e., missing one of the components such as the day of the month. While diffstat does not use the date directly, it helps distinguish some lines from non-patches (report by Moritz Barsnick ). + add "-h" option (request by Moritz Barsnick). + fix a typo in usage message (report by Moritz Barsnick). + add "-e" and "-o" options to simplify testing on OS/2 EMX. 2003-01-04 (diffstat 1.32) + modified to handle patches generated by makepatch-2.00_09, which uses both "Index" and "diff" lines (report by D Roland Walker). As a side effect, the additional merging eliminates occasional reports with zero differences. + modified to avoid buffer overflows. + fixes for Debian #155000 (did not handle a '-' in first content-column of a unified diff) and Debian #170947 (option to turn the progress messages off). + updated configure script using aclocal.m4 macros + update makefile.in to improve use of autoconf (report/patch by Nix ). 2002-08-20 (diffstat 1.31) + add -u, -k options to override diffstat's normal sorting (-u) and merging (-k) of identical filenames. (-u requested by H Peter Anvin ). 2002-08-09 (diffstat 1.30) + allow either '/' or '-' as delimiters in dates, to accommodate gendiff (report by Rik van Riel ). This corresponds to the time format used in diffutils 2.8 whose changelog states that this is ISO 8601 (though online references differ). 2001-10-10 (diffstat 1.29) + add bzip2 (.bz2) suffix (suggested by Gregory T Norris , Debian #82969). + add check for diff from RCS archive where the "diff" lines do not reference a filename. 2000-03-29 (diffstat 1.28) + Add -c option (to prefix output with '#' comment), eliminating a step in my script that combines diffstat output with a patch. This is a workaround for OSF1's broken sed utility. + Check for compressed file suffixes .Z and .gz, read uncompressed data via pipe (Debian #53975 by ch@lathspell.westend.com). + Simplified makefile based on comments by M Sweger + Adapted changes from Troy Engel as "-f" option. 1998-05-27 (diffstat 1.27) + Debian diff's don't show dates on the lines where we expect to see filenames. 1998-01-16 (diffstat 1.26, Patch 5) + Change copyright terms. + Accommodate patches w/o tabs in header lines (e.g., from cut/paste). Still prefer the tabs because otherwise we cannot have spaces in filenames. + Strip suffixes such as ".orig", to avoid confusing output. 1996-03-16 (diffstat 1.24, Patch 4) + Corrected state-transition after "Binary". + Added testing subdirectory + Added -p option. + Handle differences from /tmp (e.g., for X11R5 patches). 1995-05-06 (diffstat 1.17, Patch 3) + Repost whole program to comp.sources.misc (1.17) + Mods to scaling: limit to 1:1 if only a few changes were made; added logic to accumulate error across +/-/! calls. + added logic to recognize 'rcsdiff -u' output. 1994-12-26 (diffstat 1.15, Patch 2) + Strip common pathname prefix (1.15) 1994-11-13 (diffstat 1.14, Patch 1) + Test for vs + Corrected error in 'match()' that didn't handle properly the case when an argument was a null string (i.e., blank lines in a unified diff). + Added options '-n' and '-V' + Added patchlev.h, CHANGES files. + Added install.sh, for autoconf 2.1 1994-06-13 (diffstat 1.12, Patch 0) + Initial release of 'diffstat' (1.12). diffstat-1.68/diffstat.10000644000000000000000000002155415002510420013634 0ustar rootroot.\"***************************************************************************** .\" Copyright 1994-2024,2025 by Thomas E. Dickey .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the "Software"), .\" to deal in the Software without restriction, including without limitation .\" the rights to use, copy, modify, merge, publish, distribute, sublicense, .\" and/or sell copies of the Software, and to permit persons to whom the .\" Software is furnished to do so, subject to the following conditions: .\" .\" The above copyright notice and this permission notice shall be included in .\" all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL .\" THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER .\" DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name(s) of the above copyright .\" holders shall not be used in advertising or otherwise to promote the sale, .\" use or other dealings in this Software without prior written authorization. .\"***************************************************************************** .\" $Id: diffstat.1,v 1.46 2025/04/24 19:29:20 tom Exp $ .TH DIFFSTAT 1 2025-04-24 "1.68" "User commands" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq .\} .el \{\ .ie t .ds `` `` .el .ds `` "" .ie t .ds '' '' .el .ds '' "" .\} .SH NAME \fBdiffstat\fP \- make histogram from diff-output .SH SYNOPSIS \fBdiffstat\fI [options] [file-specifications]\fR .SH DESCRIPTION This program reads the output of \fBdiff\fP and displays a histogram of the insertions, deletions, and modifications per-file. \fBDiffstat\fP is a program that is useful for reviewing large, complex patch files. It reads from one or more input files which contain output from \fBdiff\fP, producing a histogram of the total lines changed for each file referenced. .PP If the input filename ends with \*(``.bz2\*('', \*(``.gz\*('', \*(``.lzma\*('', \*(``.xz\*('', \*(``.zst\*('', \*(``.z\*('' or \*(``.Z\*('', \fBdiffstat\fP will read the uncompressed data via a pipe from the corresponding program. It also can infer the compression type from files piped via the standard input. .PP \fBDiffstat\fP recognizes the most popular types of output from \fBdiff\fP: .RS 3 .TP unified preferred by the \fBpatch\fP utility. .TP context best for readability, but not very compact. .TP default not good for much, but simple to generate. .RE .PP \fBDiffstat\fP detects the lines that are output by \fBdiff\fP to tell which files are compared, and then counts the markers in the first column that denote the type of change (insertion, deletion or modification). These are shown in the histogram as "+", "\-" and "!" characters. .PP If no filename is given on the command line, \fBdiffstat\fP reads the differences from the standard input. .SH OPTIONS .TP .B \-b ignore lines matching "Binary files XXX and YYY differ" in the \fBdiff\fP .TP .B \-c prefix each line of output with "#", making it a comment-line for shell scripts. .TP .B \-C add SGR color escape sequences to highlight the histogram. .TP .BI \-D " destination" specify a directory containing files which can be referred to as the result of applying the differences. \fBdiffstat\fP will count the lines in the corresponding files (after adjusting the names by the \fB\-p\fP option) to obtain the total number of lines in each file. .IP The remainder, after subtracting modified and deleted lines, is shown as "unchanged lines". .TP .B \-d The debug prints a lot of information. It is normally compiled-in, but can be suppressed. .TP .BI \-e " file" redirect standard error to \fIfile\fR. .TP .B \-E strip out ANSI escape sequences on each line before parsing the differences. This allows \fBdiffstat\fP to be used with \fBcolordiff\fP. .TP .BI \-f " format" specify the format of the histogram. .RS .TP 3 0 for concise, which shows only the value and a single histogram code for each of insert (+), delete (\-) or modify (!) .TP 3 1 for normal output, .TP 3 2 to fill in the histogram with dots, .TP 3 4 to print each value with the histogram. .RE .IP Any nonzero value gives a histogram. The dots and individual values can be combined, e.g., \fB\-f6\fP gives both. .TP .B \-h prints the usage message and exits. .TP .B \-k suppress the merging of filenames in the report. .TP .B \-K attempt to improve the annotation of "only" files by looking for a match in the resulting set of files and inferring whether the file was added or removed. .IP This does not currently work in combination with \fB\-R\fP because \fBdiffstat\fP maintains only the resulting set of files. .TP .B \-l lists only the filenames. No histogram is generated. .TP .B \-m merge insert/delete counts from each "chunk" of the patch file to approximate a count of the modified lines. .TP .BI \-n " number" specify the minimum width used for filenames. If you do not specify this, \fBdiffstat\fP uses the length of the longest filename, after stripping common prefixes. .TP .BI \-N " number" specify the maximum width used for filenames. Names longer than this limit are truncated on the left. If you do not specify this, \fBdiffstat\fP next checks the \fB\-n\fP option. .TP .BI \-o " file" redirect standard output to \fIfile\fR. .TP .BI \-p " number" override the logic that strips common pathnames, simulating the \fBpatch\fP "\-p" option. .IP If you do not give a \fB\-p\fP option, \fBdiffstat\fP examines the differences and strips the common prefix from the pathnames. This is not what \fBpatch\fP does. .TP .B \-q suppress the "0 files changed" message for empty diffs. .TP .B \-r " code" provides optional rounding of the data shown in histogram, rather than truncating with error adjustments. .RS .TP 3 0 is the default. No rounding is performed, but accumulated errors are added to following columns. .TP 3 1 rounds the data .TP 3 2 rounds the data and adjusts the histogram to ensure that it displays something if there are any differences even if those would normally be rounded to zero. .RE .TP .B \-R Assume patch was created with old and new files swapped. .TP .B \-s show only the summary line, e.g., number of insertions and deletions. .TP .BI \-S " source" this is like the \fB\-D\fP option, but specifies a location where the original files (before applying differences) can be found. .TP .B \-t overrides the histogram, generates output of comma separated values for the number of changed lines found in the differences for each file: inserted, deleted and modified. .IP If \fB\-S\fP or \fB\-D\fP options are given, the number of unchanged lines precedes the number of changes. .TP .B \-T prints the numbers that the \fB\-t\fP option would show, between the pathname and histogram. .IP The width of the number of changes is determined by the largest value (but at least 3). The width given in the \fB\-w\fP option is separate from the width of these numbers. .TP .B \-u suppress the sorting of filenames in the report. .TP .B \-v show progress, e.g., if the output is redirected to a file, write progress messages to the standard error. .TP .B \-V prints the current version number and exits. .TP .BI \-w " number" specify the maximum width of the histogram. The histogram will never be shorter than 10 columns, just in case the filenames get too large. .IP The default is 80 columns, unless the output is to a terminal. In that case, the default width is the terminal's width. .SH ENVIRONMENT \fBDiffstat\fP runs in a POSIX environment. .PP You can override the compiled-in paths of programs used for decompressing input files by setting environment variables corresponding to their name: .sp .RS .nf DIFFSTAT_BZCAT_PATH DIFFSTAT_BZIP2_PATH DIFFSTAT_COMPRESS_PATH DIFFSTAT_GZIP_PATH DIFFSTAT_LZCAT_PATH DIFFSTAT_PCAT_PATH DIFFSTAT_UNCOMPRESS_PATH DIFFSTAT_XZ_PATH DIFFSTAT_ZCAT_PATH DIFFSTAT_ZSTD_PATH .fi .RE .PP However, \fBdiffstat\fP assumes that the resulting program uses the same command-line options, e.g., "\-c" to decompress to the standard output. .SH FILES \fBDiffstat\fP is a single binary module, which uses no auxiliary files. .SH BUGS \fBDiffstat\fP makes a lot of assumptions about the format of \fBdiff\fP's output. .PP There is no way to obtain a filename from the standard \fBdiff\fP between two files with no options. Context diffs work, as well as unified diffs. .PP There's no easy way to determine the degree of overlap between the "before" and "after" displays of modified lines. \fBdiffstat\fP simply counts the number of inserted and deleted lines to approximate modified lines for the \fB\-m\fP option. .SH AUTHORS Thomas Dickey . .SH SEE ALSO .BR diff (1), .BR patch (1). diffstat-1.68/makefile.wnt0000644000000000000000000000121211247065730014262 0ustar rootroot# # makefile for 'diffstat' on WIN32 using Microsoft Visual C++ # # $Id: makefile.wnt,v 1.2 2009/09/01 00:33:28 tom Exp $ # !include P = porting CFLAGS = $(cvars) $(cdebug) -nologo -G4 -W3 -I. -DWIN32 -I$P LDFLAGS = -nologo -pdb:none NAME = diffstat OBJ = $(NAME).obj \ $P/getopt.obj \ $P/wildcard.obj .c.obj: $(cc) $(CFLAGS) -c $< -Fo$@ all: $(NAME).exe $(NAME).exe: $(OBJ) $(link) $(LDFLAGS) $(OBJ) setargv.obj $(ldebug) $(conlflags) $(conlibs) -out:$@ user32.lib $(OBJ) : #system.h install: $(NAME).exe copy $(NAME).exe c:\com clean: - del $(NAME).exe - del /f/s/q *.obj - del /f/s/q *.bak - del /f/s/q *.pdb diffstat-1.68/diffstat.c0000644000000000000000000025624315002525514013735 0ustar rootroot/****************************************************************************** * Copyright 1994-2024,2025 by Thomas E. Dickey * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the "Software"), * * to deal in the Software without restriction, including without limitation * * the rights to use, copy, modify, merge, publish, distribute, sublicense, * * and/or sell copies of the Software, and to permit persons to whom the * * Software is furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included in * * all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * * THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * * DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the sale, * * use or other dealings in this Software without prior written * * authorization. * ******************************************************************************/ #ifndef NO_IDENT static const char *Id = "$Id: diffstat.c,v 1.68 2025/04/24 21:21:16 tom Exp $"; #endif /* * Title: diffstat.c * Author: T.E.Dickey * Created: 02 Feb 1992 * Modified: * 24 Apr 2025, correct len parameter of mbsrtowcs. * 11 Nov 2024, add decompression for zstd * 28 Jan 2024, fixes for stricter gcc warnings * 01 Mar 2023, ignore ".git" directories, etc., in -S/-D options. * 09 Oct 2022, trim trailing '/' from directories. Correct case * where there is no unified-context. * 12 Jan 2021, check for git --binary diffs. * 29 Nov 2019, eliminate fixed buffer when decoding range. * 28 Nov 2019, use locale in computing filename column-width. * improve parsing for git diffs. * use terminal-width as default for -w to tty. * minor fix in do_merging (Miloslaw Smyk). * 27 Nov 2019, improve relative-pathname matching in count_lines() * add a parsing-case for svn diff. * quote filenames in -t/-T output. * 24 Nov 2019, fix cppcheck-warnings about sscanf. * 14 Aug 2018, revise -S/-D option to improve count of unmodified * files. * 14 Jan 2016, extend -S option to count unmodified files. * add -T option to show values with histogram * 06 Jul 2015, handle double-quotes, e.g., from diffutils 3.3 * when filenames have embedded spaces. * 05 Jun 2014, add -E option to filter colordiff output. * 28 Oct 2013, portability improvements for MinGW. * 15 Apr 2013, modify to accommodate output of "diff -q", which * tells only if the files are different. Work * around the equivalent ambiguous message introduced * in diffutils 2.8.4 and finally removed for 3.0 * 11 Feb 2013, add -K option. Use strtol() to provide error * checking of optarg values. * 10 Feb 2013, document -b, -C, -s option in usage (patch by * Tim Waugh, Red Hat #852770). Improve pathname * merging. * 02 Jun 2012, fix for svn diff with spaces in path (patch by * Stuart Prescott, Debian #675465). * 03 Jan 2012, Correct case for "xz" suffix in is_compressed() * (patch from Frederic Culot in FreeBSD ports). Add * "-R" option. Improve dequoting of filenames in * headers. * 10 Oct 2010, correct display of new files when -S/-D options * are used. Remove the temporary directory on * error, introduced in 1.48+ (patch by Solar * Designer). * 19 Jul 2010, add missing "break" statement which left "-c" * option falling-through into "-C". * 16 Jul 2010, configure "xz" path explicitly, in case lzcat * does not support xz format. Add "-s" (summary) * and "-C" (color) options. * 15 Jul 2010, fix strict gcc warnings, e.g., using const. * 10 Jan 2010, improve a case where filenames have embedded blanks * (patch by Reinier Post). * 07 Nov 2009, correct suffix-check for ".xz" files as * command-line parameters rather than as piped * input (report by Moritz Barsnick). * 06 Oct 2009, fixes to build/run with MSYS or MinGW. use * $TMPDIR for path of temporary file used in * decompression. correct else-condition for * detecting compression type (patch by Zach Hirsch). * 31 Aug 2009, improve lzma support, add support for xz (patch by * Eric Blake). Add special case for no-newline * message from some diff's (Ubuntu #269895). * Improve configure check for getopt(). * 11 Aug 2009, Add logic to check standard input, decompress if * possible. Add -N option, to truncate long names. * Add pack/pcat as a compression type. * Add lzma/lzcat as a compression type. * Allow overriding program paths with environment. * 10 Aug 2009, modify to work with Perforce-style diffs (patch * by Ed Schouten). * 29 Mar 2009, modify to work with patch ".rej" files, which have * no filename header (use the name of the ".rej" * file if it is available). * 29 Sep 2008, fix typo in usage message. * 06 Aug 2008, add "-m", "-S" and "-D" options. * 05 Aug 2008, add "-q" option to suppress 0-files-changed * message (patch by Greg Norris). * 04 Sep 2007, add "-b" option to suppress binary-files (patch * by Greg Norris). * 26 Aug 2007, add "-d" option to show debugging traces, rather * than by defining DEBUG. Add check after * unified-diff chunk to avoid adding non-diff text * (report by Adrian Bunk). Quote pathname passed * in command to gzip/uncompress. Add a check for * default-diff output without the "diff" command * supplied to provide filename, mark as "unknown". * 16 Jul 2006, fix to avoid modifying which is being used by * tsearch() for ordering the binary tree (report by * Adrian Bunk). * 02 Jul 2006, do not ignore pathnames in /tmp/, since some tools * create usable pathnames for both old/new files * there (Debian #376086). Correct ifdef for * fgetc_unlocked(). Add configure check for * compress, gzip and bzip2 programs that may be used * to decompress files. * 24 Aug 2005, update usage message for -l, -r changes. * 15 Aug 2005, apply PLURAL() to num_files (Jean Delvare). * add -l option (request by Michael Burian). * Use fgetc_locked() if available. * 14 Aug 2005, add -r2 option (rounding with adjustment to ensure * that nonzero values always display a histogram * bar), adapted from patch by Jean Delvare. Extend * the -f option (2=filled, 4=verbose). * 12 Aug 2005, modify to use tsearch() for sorted lists. * 11 Aug 2005, minor fixes to scaling of modified lines. Add * -r (round) option. * 05 Aug 2005, add -t (table) option. * 10 Apr 2005, change order of merging and prefix-stripping so * stripping all prefixes, e.g., with -p9, will be * sorted as expected (Patch by Jean Delvare * ). * 10 Jan 2005, add support for '--help' and '--version' (Patch * by Eric Blake .) * 16 Dec 2004, fix a different case for data beginning with "--" * which was treated as a header line. * 14 Dec 2004, Fix allocation problems. Open files in binary * mode for reading. Getopt returns -1, not * necessarily EOF. Add const where useful. Use * NO_IDENT where necessary. malloc() comes from * in standard systems (Patch by Eric * Blake .) * 08 Nov 2004, minor fix for resync of unified diffs checks for * range (line beginning with '@' without header * lines (successive lines beginning with "---" and * "+++"). Fix a few problems reported by valgrind. * 09 Nov 2003, modify check for lines beginning with '-' or '+' * to treat only "---" in old-style diffs as a * special case. * 14 Feb 2003, modify check for filenames to allow for some cases * of incomplete dates (the reported example omitted * the day of the month). Correct a typo in usage(). * Add -e, -h, -o options. * 04 Jan 2003, improve tracking of chunks in unified diff, in * case the original files contained a '+' or '-' in * the first column (Debian #155000). Add -v option * (Debian #170947). Modify to allocate buffers big * enough for long input lines. Do additional * merging to handle unusual Index/diff constructs in * recent makepatch script. * 20 Aug 2002, add -u option to tell diffstat to preserve the * order of filenames as given rather than sort them * (request by H Peter Anvin ). Add * -k option for completeness. * 09 Aug 2002, allow either '/' or '-' as delimiters in dates, * to accommodate diffutils 2.8 (report by Rik van * Riel ). * 10 Oct 2001, add bzip2 (.bz2) suffix as suggested by * Gregory T Norris in Debian * bug report #82969). * add check for diff from RCS archive where the * "diff" lines do not reference a filename. * 29 Mar 2000, add -c option. Check for compressed input, read * via pipe. Change to ANSI C. Adapted change from * Troy Engel to add option that displays a number * only, rather than a histogram. * 17 May 1998, handle Debian diff files, which do not contain * dates on the header lines. * 16 Jan 1998, accommodate patches w/o tabs in header lines (e.g., * from cut/paste). Strip suffixes such as ".orig". * 24 Mar 1996, corrected -p0 logic, more fixes in do_merging. * 16 Mar 1996, corrected state-change for "Binary". Added -p * option. * 17 Dec 1995, corrected matching algorithm in 'do_merging()' * 11 Dec 1995, mods to accommodate diffs against /dev/null or * /tmp/XXX (tempfiles). * 06 May 1995, limit scaling -- only shrink-to-fit. * 29 Apr 1995, recognize 'rcsdiff -u' format. * 26 Dec 1994, strip common pathname-prefix. * 13 Nov 1994, added '-n' option. Corrected logic of 'match'. * 17 Jun 1994, ifdef- * 12 Jun 1994, recognize unified diff, and output of makepatch. * 04 Oct 1993, merge multiple diff-files, busy message when the * output is piped to a file. * * Function: this program reads the output of 'diff' and displays a histogram * of the insertions/deletions/modifications per-file. */ #if defined(HAVE_CONFIG_H) #include #endif #if defined(WIN32) && !defined(HAVE_CONFIG_H) #define HAVE_STDLIB_H #define HAVE_STRING_H #define HAVE_MALLOC_H #define HAVE_GETOPT_H #endif #include #include #ifdef HAVE_STRING_H #include #else #include #define strchr index #define strrchr rindex #endif #ifdef HAVE_STDLIB_H #include #else extern int atoi(const char *); #endif #ifdef HAVE_UNISTD_H #include #else extern int isatty(int); #endif #ifdef HAVE_OPENDIR #include #endif #ifdef HAVE_MALLOC_H #include #endif #if defined(HAVE_SEARCH_H) && defined(HAVE_TSEARCH) #include #else #undef HAVE_TSEARCH #endif #ifdef HAVE_MBSTOWCWIDTH #include #include #endif #ifdef HAVE_GETC_UNLOCKED #define MY_GETC getc_unlocked #else #define MY_GETC getc #endif #ifdef HAVE_GETOPT_H #include #elif !defined(HAVE_GETOPT_HEADER) extern int getopt(int, char *const *, const char *); extern char *optarg; extern int optind; #endif #include #include #if defined(HAVE_TERMIOS_H) && defined(HAVE_TCGETATTR) #ifdef HAVE_IOCTL_H #include #else #ifdef HAVE_SYS_IOCTL_H #include #endif #endif #if !defined(sun) || !defined(NL0) #include #endif #endif /* HAVE_TERMIOS_H */ #if defined(HAVE_POPEN) && !defined(HAVE_POPEN_PROTOTYPE) extern FILE *popen(const char *, const char *); extern int pclose(FILE *); #endif #if !defined(EXIT_SUCCESS) #define EXIT_SUCCESS 0 #define EXIT_FAILURE 1 #endif #ifndef BZCAT_PATH #define BZCAT_PATH "" #endif #ifndef BZIP2_PATH #define BZIP2_PATH "" #endif #ifndef COMPRESS_PATH #define COMPRESS_PATH "" #endif #ifndef GZIP_PATH #define GZIP_PATH "" #endif #ifndef LZCAT_PATH #define LZCAT_PATH "" #endif #ifndef PCAT_PATH #define PCAT_PATH "" #endif #ifndef UNCOMPRESS_PATH #define UNCOMPRESS_PATH "" #endif #ifndef XZ_PATH #define XZ_PATH "" #endif #ifndef ZCAT_PATH #define ZCAT_PATH "" #endif #ifndef ZSTD_PATH #define ZSTD_PATH "" #endif /******************************************************************************/ #if defined(__MINGW32__) || defined(WIN32) #define MKDIR(name,mode) mkdir(name) #else #define MKDIR(name,mode) mkdir(name,mode) #endif #if defined(WIN32) && !defined(__MINGW32__) #define PATHSEP '\\' #else #define PATHSEP '/' #endif #define BACKSL '\\' #define LPAREN '(' #define RPAREN ')' #define DQUOTE '"' #define SQUOTE '\'' #define ESCAPE '\033' #define EOS '\0' #define TAB '\t' #define BLANK ' ' #define DEL '\177' #define UC(c) ((unsigned char)(c)) #define isoctal(c) (((c) >= '0') && ((c) <= '7')) #ifndef OPT_TRACE #define OPT_TRACE 1 #endif #if OPT_TRACE #define TRACE(p) if (trace_opt) printf p #else #define TRACE(p) /*nothing */ #endif #define NonNull(s) (((s) != NULL ? (s) : "")) #define contain_any(s,reject) (strcspn(s,reject) != strlen(s)) #define maximum(a,b) ((a) < (b) ? (b) : (a)) #define HAVE_NOTHING 0 #define HAVE_GENERIC 1 /* e.g., "Index: foo" w/o pathname */ #define HAVE_PATH 2 /* reference-file from "diff dirname/foo" */ #define HAVE_PATH2 4 /* comparison-file from "diff dirname/foo" */ #define FMT_CONCISE 0 #define FMT_NORMAL 1 #define FMT_FILLED 2 #define FMT_VERBOSE 4 typedef enum comment { Normal, Only, OnlyLeft, OnlyRight, Binary, Differs, Either } Comment; #define MARKS 4 /* each of +, - and ! */ typedef enum { cInsert = 0, cDelete, cModify, cEquals } Change; #define InsOf(p) (p)->count[cInsert] /* "+" count inserted lines */ #define DelOf(p) (p)->count[cDelete] /* "-" count deleted lines */ #define ModOf(p) (p)->count[cModify] /* "!" count modified lines */ #define EqlOf(p) (p)->count[cEquals] /* "=" count unmodified lines */ #define TotalOf(p) (InsOf(p) + DelOf(p) + ModOf(p) + EqlOf(p)) #define for_each_mark(n) for (n = 0; n < num_marks; ++n) typedef struct _data { struct _data *link; char *original; /* the original filename */ char *modified; /* the modified filename */ int copy; /* true if filename is const-literal */ int base; /* beginning of name if -p option used */ Comment cmt; int pending; long chunks; /* total number of chunks */ long chunk[MARKS]; /* counts for the current chunk */ long count[MARKS]; /* counts for the file */ } DATA; typedef enum { dcNone = 0, dcBzip, dcCompress, dcGzip, dcLzma, dcPack, dcXz, dcZstd, dcEmpty } Decompress; static const char marks[MARKS + 1] = "+-!="; static const int colors[MARKS + 1] = {2, 1, 6, 4}; static DATA *all_data; static char *S_option = NULL; static char *D_option = NULL; static const char *comment_opt = ""; static char *path_opt = NULL; static int count_files; /* true if we count added/deleted files */ static int format_opt = FMT_NORMAL; static int max_name_wide; /* maximum amount reserved for filenames */ static int max_width = 80; /* the specified width-limit */ static int merge_names = 1; /* true if we merge similar filenames */ static int merge_opt = 0; /* true if we merge ins/del as modified */ static int min_name_wide; /* minimum amount reserved for filenames */ static int names_only; /* true if we list filenames only */ static int num_marks = 3; /* 3 or 4, according to "-P" option */ static int path_dest; /* true if path_opt is destination (patched) */ static int plot_width; /* the amount left over for histogram */ static int prefix_opt = -1; /* if positive, controls stripping of PATHSEP */ static int quiet = 0; /* -q option */ static int reverse_opt; /* true if results are reversed */ static int round_opt = 0; /* if nonzero, round data for histogram */ static int show_colors; /* true if showing SGR colors */ static int show_progress; /* if not writing to tty, show progress */ static int sort_names = 1; /* true if we sort filenames */ static int summary_only = 0; /* true if only summary line is shown */ static int suppress_binary = 0; /* -b option */ static int trim_escapes = 0; /* -E option */ static int table_opt = 0; /* if 1/2, write table instead/also plot */ static int trace_opt = 0; /* if nonzero, write debugging information */ static int unchanged = 0; /* special-case for -S vs modified-files */ static int verbose = 0; /* -v option */ static long plot_scale; /* the effective scale (1:maximum) */ #ifdef HAVE_TSEARCH static int use_tsearch; static void *sorted_data; #endif static int number_len = 5; static int prefix_len = -1; /******************************************************************************/ #ifdef GCC_NORETURN static void failed(const char *) GCC_NORETURN; #endif static void failed(const char *s) { perror(s); exit(EXIT_FAILURE); } /* malloc wrapper that never returns NULL */ static void * xmalloc(size_t s) { void *p; if ((p = malloc(s)) == NULL) failed("malloc"); return p; } static int do_stat(const char *name, struct stat *sb) { int rc; if (name != NULL) { #ifdef HAVE_LSTAT rc = lstat(name, sb); #else rc = stat(name, sb); #endif } else { rc = -1; } return rc; } static mode_t get_stat(const char *name) { struct stat sb; int rc = do_stat(name, &sb); return ((rc == 0) ? (sb.st_mode & S_IFMT) : 0); } static int is_dir(const char *name) { return get_stat(name) == S_IFDIR; } static int is_file(const char *name) { return get_stat(name) == S_IFREG; } static int same_file(const char *source, const char *target) { int rc = 0; struct stat ssb; struct stat dsb; if (do_stat(source, &ssb) == 0 && S_ISREG(ssb.st_mode) && do_stat(target, &dsb) == 0 && S_ISREG(dsb.st_mode) && ssb.st_size == dsb.st_size) { FILE *ip = fopen(source, "r"); if (ip != NULL) { FILE *op = fopen(target, "r"); if (op != NULL) { int a = EOF; int b = EOF; rc = 1; while (1) { a = fgetc(ip); b = fgetc(op); if (a != b) { rc = 0; break; } if (a == EOF) { break; } } if (a != b) { rc = 0; } fclose(op); } fclose(ip); } } return rc; } static void blip(int c) { if (show_progress) { (void) fflush(stdout); (void) fputc(c, stderr); (void) fflush(stderr); } } #ifdef HAVE_STRDUP #define new_string(s) strdup(s) #else static char * new_string(const char *s) { return strcpy((char *) xmalloc((size_t) (strlen(s) + 1)), s); } #endif static int compare_data(const void *a, const void *b) { const DATA *p = (const DATA *) a; const DATA *q = (const DATA *) b; return ((p != NULL) ? ((q != NULL) ? strcmp(p->modified + p->base, q->modified + q->base) : 1) : -1); } static void init_data(DATA * data, const char *original, const char *modified, int copy, int base) { memset(data, 0, sizeof(*data)); data->original = (char *) original; data->modified = (char *) modified; data->copy = copy; data->base = base; data->cmt = Normal; } static DATA * new_data(const char *original, const char *modified, int base) { DATA *r = (DATA *) xmalloc(sizeof(DATA)); if (original == NULL) { TRACE(("new_data: no original for %s\n", modified)); original = modified; /* FIXME */ } init_data(r, new_string(original), new_string(modified), 0, base); return r; } #ifdef HAVE_TSEARCH static DATA * add_tsearch_data(const char *original, const char *modified, int base) { DATA find; DATA *result; void *pp; init_data(&find, NULL, modified, 1, base); if ((pp = tfind(&find, &sorted_data, compare_data)) != NULL) { result = *(DATA **) pp; return result; } result = new_data(original, modified, base); (void) tsearch(result, &sorted_data, compare_data); result->link = all_data; all_data = result; return result; } #endif static int count_prefix(const char *name) { int count = 0; const char *s; while ((s = strchr(name, PATHSEP)) != NULL) { name = s + 1; ++count; } return count; } static const char * skip_prefix(const char *name, int prefix, int *base) { if (prefix >= 0) { int n; *base = 0; for (n = prefix; n > 0; n--) { const char *s = strchr(name + *base, PATHSEP); if (s == NULL || *++s == EOS) { name = s; break; } *base = (int) (s - name); } TRACE(("** base set to %d\n", *base)); } return name; } static DATA * find_data(const char *original, const char *modified) { DATA *r; int base = 0; TRACE(("** find_data(%s => %s)\n", NonNull(original), NonNull(modified))); /* Compute the base offset if the prefix option is used */ if (prefix_opt >= 0) { (void) skip_prefix(modified, prefix_opt, &base); } /* Insert into sorted list (usually sorted). If we are not sorting or * merging names, we fall off the end and link the new entry to the end of * the list. If the prefix option is used, the prefix is ignored by the * merge and sort operations. * * If we have tsearch(), we will maintain the sorted list using it and * tfind(). */ #ifdef HAVE_TSEARCH if (use_tsearch) { r = add_tsearch_data(original, modified, base); } else #endif { DATA *p; DATA find; DATA *q; init_data(&find, original, modified, 1, base); for (p = all_data, q = NULL; p != NULL; q = p, p = p->link) { int cmp = compare_data(p, &find); if (merge_names && (cmp == 0)) return p; if (sort_names && (cmp > 0)) break; } r = new_data(original, modified, base); if (q != NULL) q->link = r; else all_data = r; r->link = p; } return r; } /* * Remove a unneeded data item from the linked list. Free the name as well. */ static int delink(DATA * data) { DATA *p, *q; TRACE(("** delink '%s'\n", data->modified)); #ifdef HAVE_TSEARCH if (use_tsearch) { if (tdelete(data, &sorted_data, compare_data) == NULL) return 0; } #endif for (p = all_data, q = NULL; p != NULL; q = p, p = p->link) { if (p == data) { if (q != NULL) q->link = p->link; else all_data = p->link; if (!p->copy) { free(p->original); free(p->modified); } free(p); return 1; } } return 0; } /* * Compare string 's' against a constant, returning either a pointer just * past the matched part of 's' if it matches exactly, or null if a mismatch * was found. */ static char * match(char *s, const char *p) { int ok = 0; while (*s != EOS) { if (*p == EOS) { ok = 1; break; } if (*s++ != *p++) break; if (*s == EOS && *p == EOS) { ok = 1; break; } } return ok ? s : NULL; } static int version_num(const char *s) { int main_ver, sub_ver; char temp[2]; return (sscanf(s, "%d.%d%c", &main_ver, &sub_ver, temp) == 2); } /* * Check for a range of line-numbers, used in editing scripts. */ static int edit_range(const char *s) { int first, last; char temp[2]; return (sscanf(s, "%d,%d%c", &first, &last, temp) == 2) || (sscanf(s, "%d%c", &first, temp) == 1); } /* * Decode a range for default diff. */ static int decode_default(char *s, long *first, long *first_size, long *second, long *second_size) { int rc = 0; char *next; if (isdigit(UC(*s))) { *first_size = 1; *second_size = 1; *first = strtol(s, &next, 10); if (next != NULL && next != s) { if (*next == ',') { s = ++next; *first_size = strtol(s, &next, 10) + 1 - *first; } } if (next != NULL && next != s) { switch (*next++) { case 'a': case 'c': case 'd': s = next; *second = strtol(s, &next, 10); if (next != NULL && next != s) { if (*next == ',') { s = ++next; *second_size = strtol(s, &next, 10) + 1 - *second; } } if (next != NULL && next != s && *next == EOS) rc = 1; break; } } } return rc; } /* * Decode a range for unified diff. Oddly, the comments in diffutils code * claim that both numbers are line-numbers. However, inspection of the output * shows that the numbers are a line-number followed by a count. */ static char * decode_range(char *s, int *first, int *second) { if (isdigit(UC(*s))) { int count = 0; int value[2]; value[0] = 0; value[1] = 0; while (*s != EOS) { int ch = UC(*s); if (isdigit(ch)) { value[count] = (10 * value[count]) + (ch - '0'); } else if (ch == ',') { if (++count > 1) { s = NULL; break; } value[count] = 0; } else { break; } ++s; } if (s != NULL) { *first = value[0]; if (count == 0) { *second = 1; } else { *second = value[1]; } #if OPT_TRACE if (*second) { TRACE(("** decode_range [%d..%d]\n", *first, *first + *second - 1)); } else { TRACE(("** decode_range [%d]\n", *first)); } #endif } } return s; } static int HadDiffs(const DATA * data) { return InsOf(data) != 0 || DelOf(data) != 0 || ModOf(data) != 0 || data->cmt != Normal; } /* * If the given path is not one of the "ignore" paths, then return true. */ static int can_be_merged(const char *path) { int result = 0; if (strcmp(path, "") && strcmp(path, "/dev/null")) result = 1; return result; } static int is_leaf(const char *theLeaf, const char *path) { const char *s; if (strchr(theLeaf, PATHSEP) == NULL && (s = strrchr(path, PATHSEP)) != NULL && !strcmp(++s, theLeaf)) return 1; return 0; } static char * trim_datapath(DATA ** datap, size_t length, int *localp) { char *target = (*datap)->modified; (void) localp; #ifdef HAVE_TSEARCH /* * If we are using tsearch(), make a local copy of the data * so we can trim it without interfering with tsearch's * notion of the ordering of data. That will create some * spurious empty data, so we add the changed() macro in a * few places to skip over those. */ if (use_tsearch) { char *trim = new_string(target); if (trim != NULL) { trim[length] = EOS; *datap = add_tsearch_data(NULL, trim, (*datap)->base); target = (*datap)->modified; free(trim); *localp = 1; } } else #endif target[length] = EOS; return target; } static size_t compare_tails(const char *target, const char *source, int *diff) { size_t len1 = strlen(target); size_t len2 = strlen(source); size_t n; size_t matched = 0; *diff = 0; for (n = 1; n <= len1 && n <= len2; n++) { if (target[len1 - n] != source[len2 - n]) { *diff = (int) n; break; } if (source[len2 - n] == PATHSEP) { matched = n; } } return matched; } /* * The 'data' parameter points to the first of two markers, while * 'path' is the pathname from the second marker. * * On the first call for * a given file, the 'data' parameter stores no differences. */ static char * do_merging(DATA * data, char *path, int *freed) { char *target = reverse_opt ? path : data->modified; char *source = reverse_opt ? data->modified : path; char *result = source; int diff; TRACE(("** do_merging(\"%s\" -> \"%s\",\"%s\") diffs:%d\n", NonNull(data->original), NonNull(data->modified), path, HadDiffs(data))); *freed = 0; if (!HadDiffs(data)) { if (is_leaf(target, source)) { TRACE(("** is_leaf: \"%s\" vs \"%s\"\n", target, source)); if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); } else { TRACE((".. will delink @%d\n", __LINE__)); *freed = delink(data); } } else if (can_be_merged(target) && can_be_merged(source)) { size_t len1 = strlen(target); size_t len2 = strlen(source); int local = 0; /* * If the source/target differ only by some suffix, e.g., ".orig" * or ".bak", strip that off. The target may may also be a * temporary filename (which would not be merged since it has no * apparent relationship to the current). */ if (len1 > len2) { if (!strncmp(target, source, len2)) { TRACE(("** trimming data \"%s\" to \"%.*s\"\n", target, (int) len2, target)); if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); } else { target = trim_datapath(&data, len2, &local); } } } else if (len1 < len2) { if (!strncmp(target, source, len1)) { TRACE(("** trimming source \"%s\" to \"%.*s\"\n", source, (int) len1, source)); if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); } else { source[len2 = len1] = EOS; } } } /* * If there was no "-p" option, look for the best match by * stripping prefixes from both source/target strings. */ if (prefix_opt < 0) { int matched = 0; /* * Now (whether or not we trimmed a suffix), scan back from the * end of source/target strings to find if they happen to share * a common ending, e.g., a/b/c versus d/b/c. If the strings * are not identical, then 'diff' will be set, but if they have * a common ending then 'matched' will be set. */ diff = 0; matched = (int) compare_tails(target, source, &diff); TRACE(("** merge @%d, prefix_opt=%d matched=%d diff=%d\n", __LINE__, prefix_opt, matched, diff)); if (matched != 0 && diff) { if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); } else { result = source + ((int) len2 - matched + 1); } } } if (!local) { if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); } else { TRACE((".. will delink @%d\n", __LINE__)); *freed = delink(data); } } } else if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); if (can_be_merged(source)) { TRACE(("** merge @%d\n", __LINE__)); } else { TRACE(("** do not merge, retain @%d\n", __LINE__)); /* must not merge, retain existing name */ result = target; } } else { if (can_be_merged(source)) { TRACE(("** merge @%d\n", __LINE__)); *freed = delink(data); } else { TRACE(("** do not merge, retain @%d\n", __LINE__)); /* must not merge, retain existing name */ result = target; } } } else if (reverse_opt) { TRACE((".. no action @%d\n", __LINE__)); if (can_be_merged(source)) { TRACE(("** merge @%d\n", __LINE__)); result = target; } else { TRACE(("** do not merge, retain @%d\n", __LINE__)); } } else { if (can_be_merged(source)) { TRACE(("** %smerge @%d\n", merge_names ? "" : "do not ", __LINE__)); if (merge_names && *target != EOS && prefix_opt < 0) { size_t matched = compare_tails(target, source, &diff); if (matched && !diff) result = target + (int) (strlen(target) - matched); } } else { TRACE(("** do not merge, retain @%d\n", __LINE__)); result = target; } } TRACE(("** finish do_merging ->\"%s\"\n", result)); return result; } static int begin_data(const DATA * p) { TRACE(("...begin_data(\"%s\" -> \"%s\")\n", NonNull(p->original), NonNull(p->modified))); if (!can_be_merged(p->modified) && strchr(p->modified, PATHSEP) != NULL) { TRACE(("** begin_data:HAVE_PATH\n")); return HAVE_PATH; } TRACE(("** begin_data:HAVE_GENERIC\n")); return HAVE_GENERIC; } static char * skip_blanks(char *s) { while (isspace(UC(*s))) ++s; return s; } /* * Skip a filename, which may be in quotes, to allow embedded blanks in the * name. */ static char * skip_filename(char *s) { int delim = (*s == SQUOTE) ? SQUOTE : DQUOTE; if ((*s == delim) && (s[1] != EOS) && (strchr) (s + 1, delim) != NULL) { ++s; while (*s != EOS && (*s != delim) && isprint(UC(*s))) { ++s; } ++s; } else { while (*s != EOS && isgraph(UC(*s))) { ++s; } } return s; } static char * skip_options(char *params) { while (*params != EOS) { params = skip_blanks(params); if (*params == '-') { while (isgraph(UC(*params))) params++; } else { break; } } return skip_blanks(params); } /* * Strip single-quotes from a name (needed for recent makepatch versions). */ static void dequote(char *s) { size_t len = strlen(s); int delim = (*s == SQUOTE) ? SQUOTE : DQUOTE; if (*s == delim && len > 2 && s[len - 1] == delim) { int n; for (n = 0; (s[n] = s[n + 1]) != EOS; ++n) { ; } s[len - 2] = EOS; } } /* * Allocate a fixed-buffer */ static void fixed_buffer(char **buffer, size_t want) { *buffer = (char *) xmalloc(want); } /* * Reallocate a fixed-buffer */ static void adjust_buffer(char **buffer, size_t want) { if ((*buffer = (char *) realloc(*buffer, want)) == NULL) failed("realloc"); } /* * Read until newline or end-of-file, allocating the line-buffer so it is long * enough for the input. */ static int get_line(char **buffer, size_t *have, FILE *fp) { int ch; size_t used = 0; while ((ch = MY_GETC(fp)) != EOF) { if (used + 2 > *have) { adjust_buffer(buffer, *have *= 2); } (*buffer)[used++] = (char) ch; if (ch == '\n') break; } (*buffer)[used] = EOS; return (used != 0); } static const char * data_filename(const DATA * p) { return p ? (p->modified + (prefix_opt >= 0 ? p->base : prefix_len)) : ""; } static int count_lines2(const char *filename) { int result = 0; FILE *fp; TRACE(("count_lines \"%s\"\n", filename)); if ((fp = fopen(filename, "r")) != NULL) { int ch; result = 0; while ((ch = MY_GETC(fp)) != EOF) { if (ch == '\n') ++result; } (void) fclose(fp); TRACE(("->%d lines\n", result)); } else { (void) fflush(stdout); fprintf(stderr, "Cannot open \"%s\"\n", filename); } return result; } /* * Count the (new)lines in a file, return -1 if the file is not found. */ static int count_lines(const DATA * p) { int result = -1; char *filename = NULL; const char *filetail = data_filename(p); size_t want = strlen(path_opt) + 2 + strlen(filetail) + strlen(p->modified); if ((filename = xmalloc(want)) != NULL) { int merge = 0; if (path_dest && *path_opt != EOS && *filetail != PATHSEP) { size_t path_len = strlen(path_opt); size_t tail_len = strlen(filetail); const char *tail_sep = strchr(filetail, PATHSEP); size_t n; for (n = path_len - 1; (int) n >= 0; --n) { if ((path_len - n) > tail_len) break; if ((n == 0 || path_opt[n - 1] == PATHSEP) && filetail[path_len - n] == PATHSEP) { if (!strncmp(path_opt + n, filetail, path_len - n)) { merge = 1; strcpy(filename, path_opt); strcpy(filename + n, filetail); break; } } } if (merge == 0 && tail_sep != NULL) { tail_len = (size_t) (tail_sep - filetail); if (tail_len != 0 && tail_len <= path_len) { if (tail_len < path_len && path_opt[path_len - tail_len - 1] != PATHSEP) { merge = 0; } else if (!strncmp(path_opt + path_len - tail_len, filetail, tail_len - 1)) { merge = 1; if (path_len > tail_len) { sprintf(filename, "%.*s%c%s", (int) (path_len - tail_len), path_opt, PATHSEP, filetail); } else { strcpy(filename, filetail); } } } } } if (!merge) { if (!path_opt) { strcpy(filename, p->modified); } else { sprintf(filename, "%s%c%s", path_opt, PATHSEP, filetail); } } result = count_lines2(filename); free(filename); } else { failed("count_lines"); } return result; } static void update_chunk(DATA * p, Change change) { if (merge_opt) { p->pending += 1; p->chunk[change] += 1; } else { p->count[change] += 1; } } static void finish_chunk(DATA * p) { if (p->pending) { int i; p->pending = 0; p->chunks += 1; if (merge_opt) { /* * This is crude, but to make it really precise we would have * to keep an array of line-numbers to which which in a chunk * are marked as insert/delete. */ if (p->chunk[cInsert] && p->chunk[cDelete]) { long change; if (p->chunk[cInsert] > p->chunk[cDelete]) { change = p->chunk[cDelete]; } else { change = p->chunk[cInsert]; } p->chunk[cInsert] -= change; p->chunk[cDelete] -= change; p->chunk[cModify] += change; } } for_each_mark(i) { p->count[i] += p->chunk[i]; p->chunk[i] = 0; } } } static char * copy_notabs(char *target, char *source, size_t limit) { char *result = NULL; if (limit-- != 0) { /* count trailing null */ char ch; int found = 0; while ((ch = *source) != EOS) { if (ch == TAB) { if (found) result = source; break; } else if (limit-- == 0) { break; } *target++ = ch; *target = EOS; ++source; found = 1; } } return result; } static char * copy_graphs(char *target, char *source, size_t limit) { int found = 0; if (limit-- != 0) { /* count trailing null */ char ch; while ((ch = *source) != EOS) { if (ch == TAB || ch == BLANK) { break; } else if (limit-- == 0) { found = 0; break; } *target++ = ch; *target = EOS; ++source; found = 1; } } return found ? source : NULL; } /* * Tested with git 2.11: * git uses dummy directory-names "a" and "b" rather than the actual working * directory. Also, it allows non-printable characters, encoded in C-style * backslash sequences. When those are used, it double-quotes the string. */ static char * copy_git_name(char *target, char *source, size_t limit) { int found = 0; int quoted = 0; /* * Account for double-quote. */ if (*source == DQUOTE) { quoted = 1; ++source; limit--; } /* * Check for the dummy directory paths, and quit if not used. */ if (limit <= 2 || (strncmp(source, "a/", 2) && strncmp(source, "b/", 2))) { limit = 0; } else { if (path_dest && !strncmp(source, "b/", 2)) { source += 2; /* tweak to help with counting lines */ } } if (limit-- != 0) { /* count trailing null */ char ch; while ((ch = *source) != EOS) { if (quoted) { if (ch == DQUOTE) { if (*++source != EOS) found = 0; break; } else if (ch == BACKSL) { int fail = 0; if ((ch = *++source) == EOS) { fail = 1; } else if (isoctal(UC(ch))) { int need = 3; int value = 0; /* decode octal escapes into UTF-8 bytes */ while (need-- > 0) { if (isoctal(*source)) { value <<= 3; value |= (UC(*source) - '0'); if (need) { ++source; } } else { fail = 1; break; } } ch = (char) value; } else { --limit; switch (ch) { case BACKSL: /* FALLTHRU */ case DQUOTE: break; case 'b': ch = '\b'; break; case 'n': ch = '\n'; break; case 'r': ch = '\r'; break; case 't': ch = '\t'; break; default: fail = 1; break; } } if (fail) { found = 0; break; } } } else if (!isprint(UC(ch))) { break; } if (limit-- == 0) { found = 0; break; } *target++ = ch; *target = EOS; ++source; found = 1; } } return found ? source : NULL; } /* perforce */ static char * copy_p4_name(char *target, char *source, size_t limit) { int found = 0; if (limit-- != 0) { /* count trailing null */ char ch; while ((ch = *source) != EOS) { if (ch == TAB || ch == BLANK || ch == '#') { break; } else if (limit-- == 0) { found = 0; break; } *target++ = ch; *target = EOS; ++source; found = 1; } } return found ? source : NULL; } static char * copy_integer(int *target, const char *source) { char *next = NULL; long value = strtol(source, &next, 10); *target = (int) value; return next; } static char * need_blanks(char *source) { int found = 0; while (*source != EOS) { char ch = *source++; if (ch == BLANK || ch == TAB) found = 1; } return found ? source : NULL; } static char * need_graphs(char *source) { char *result = NULL; int found = 0; while (*source != EOS) { char ch = *source; if (ch == BLANK || ch == TAB || ch == EOS) { if (found) result = source; break; } ++source; found = 1; } return result; } static char * need_nospcs(char *source) { char *result = NULL; int found = 0; while (*source != EOS) { char ch = *source; if (ch == BLANK || ch == EOS) { if (found) result = source; break; } ++source; found = 1; } return result; } /* this is used with SVN */ static char * need_parens(char *source) { char *result = NULL; if (*source++ == LPAREN) { while (*source != EOS) { if (*source++ == RPAREN) { result = source; break; } } } return result; } #define date_delims(a,b) (((a)=='/' && (b)=='/') || ((a) == '-' && (b) == '-')) #define CASE_TRACE() TRACE(("** handle case for '%c' %d:%s\n", *buffer, ok, that ? that->modified : "")) static void do_file(FILE *fp, const char *default_name) { static const char *only_stars = "***************"; DATA dummy; DATA *that = &dummy; DATA *prev = NULL; char *buffer = NULL; char *b_fname = NULL; size_t length = 0; size_t fixed = 0; int ok = HAVE_NOTHING; int marker; int freed = 0; int unified = 0; int old_unify = 0; int new_unify = 0; int expect_unify = 0; long old_dft = 0; long new_dft = 0; int context = 1; int either = 0; int first_ch; int git_diff = 0; char *s; #if OPT_TRACE int line_no = 0; #endif init_data(&dummy, "", "", 1, 0); fixed_buffer(&buffer, fixed = length = BUFSIZ); fixed_buffer(&b_fname, length); while (get_line(&buffer, &length, fp)) { /* * Adjust size of fixed-buffers so that a sscanf cannot overflow. */ if (length > fixed) { fixed = length; adjust_buffer(&b_fname, length); } /* * Trim trailing newline. */ for (s = buffer + strlen(buffer); s != buffer; s--) { if ((UC(s[-1]) == '\n') || (UC(s[-1]) == '\r')) s[-1] = EOS; else break; } /* * Trim escapes from colordiff. */ #define isFINAL(c) (UC(*s) >= '\140' && UC(*s) <= '\176') if (trim_escapes && (strchr(buffer, '\033') != NULL)) { char *d = buffer; s = d; while (*s != EOS) { if (*s == '\033') { while (*s != EOS && !isFINAL(*s)) { ++s; } if (*s != EOS) { ++s; continue; } else { break; } } *d++ = *s++; } *d = EOS; } ++line_no; TRACE(("[%05d] %s\n", line_no, buffer)); /* * "patch -U" can create ".rej" files lacking a filename header, * in unified format. Check for those. */ if (line_no == 1 && !strncmp(buffer, "@@", (size_t) 2)) { unified = 2; that = find_data(default_name, default_name); ok = begin_data(that); } /* * The lines identifying files in a context diff depend on how it was * invoked. But after the header, each chunk begins with a line * containing 15 *'s. Each chunk may contain a line-range with '***' * for the "before", and a line-range with '---' for the "after". The * part of the chunk depicting the deletion may be absent, though the * edit line is present. * * The markers for unified diff are a little different from the normal * context-diff. Also, the edit-lines in a unified diff won't have a * space in column 2. Because of the missing space, we have to count * lines to ensure we do not confuse the marker lines. */ marker = 0; if (that != &dummy && !strcmp(buffer, only_stars)) { finish_chunk(that); TRACE(("** begin context chunk\n")); context = 2; } else if (line_no == 1 && !strcmp(buffer, only_stars)) { TRACE(("** begin context chunk\n")); context = 2; that = find_data(default_name, default_name); ok = begin_data(that); } else if (context == 2 && match(buffer, "*** ")) { context = 1; } else if (context == 1 && match(buffer, "--- ")) { marker = 1; context = 0; } else if (match(buffer, "*** ")) { } else if ((old_unify + new_unify) == 0 && match(buffer, "==== ")) { finish_chunk(that); unified = 2; } else if ((old_unify + new_unify) == 0 && match(buffer, "--- ")) { finish_chunk(that); marker = unified = 1; } else if ((old_unify + new_unify) == 0 && match(buffer, "+++ ")) { marker = unified = 2; } else if (unified == 2 || ((old_unify + new_unify) == 0 && (*buffer == '@'))) { finish_chunk(that); unified = 0; if (*buffer == '@') { int old_base, new_base; int old_size = 0; int new_size = 0; char *sp; old_unify = new_unify = 0; if ((sp = match(buffer, "@@ -")) != NULL && (sp = decode_range(sp, &old_base, &old_size)) != NULL && (sp = match(sp, " +")) != NULL && (sp = decode_range(sp, &new_base, &new_size)) != NULL && match(sp, " @") != NULL) { old_unify = old_size; new_unify = new_size; unified = -1; } } } else if (unified == 1 && !context) { /* * If unified==1, we guessed we would find a "+++" line, but since * we are here, we did not find that. The context check ensures * we do not mistake the "---" for a unified diff with that for * a context diff's "after" line-range. * * If we guessed wrong, then we probably found a data line with * "--" in the first two columns of the diff'd file. */ unified = 0; TRACE(("?? Expected \"+++\" for unified diff\n")); if (prev != NULL && prev != that && InsOf(that) == 0 && DelOf(that) == 0 && strcmp(prev->modified, that->modified)) { TRACE(("?? giveup on %ld/%ld %s\n", InsOf(that), DelOf(that), that->modified)); TRACE(("?? revert to %ld/%ld %s\n", InsOf(prev), DelOf(prev), prev->modified)); (void) delink(that); that = prev; update_chunk(that, cDelete); } } else if (old_unify + new_unify) { switch (*buffer) { case '-': if (old_unify) --old_unify; break; case '+': if (new_unify) --new_unify; break; case EOS: case ' ': if (old_unify) --old_unify; if (new_unify) --new_unify; break; case BACKSL: if (strstr(buffer, "newline") != NULL) { break; } /* FALLTHRU */ default: TRACE(("?? expected more in chunk\n")); old_unify = new_unify = 0; break; } if (!(old_unify + new_unify)) { expect_unify = 2; } } else { long old_base, new_base; unified = 0; if (line_no == 1 && decode_default(buffer, &old_base, &old_dft, &new_base, &new_dft)) { TRACE(("DFT %ld,%ld -> %ld,%ld\n", old_base, old_base + old_dft - 1, new_base, new_base + new_dft - 1)); finish_chunk(that); that = find_data("unknown", "unknown"); ok = begin_data(that); } } /* * If the previous line ended a chunk of a unified diff, we may begin * another chunk, or begin another type of diff. If neither, do not * continue to accumulate counts for the unified diff which has ended. */ if (expect_unify != 0) { if (expect_unify-- == 1) { if (unified == 0) { TRACE(("?? did not get chunk\n")); finish_chunk(that); that = &dummy; } } } /* * Override the beginning of the line to simplify the case statement * below. */ if (marker > 0) { TRACE(("** have marker=%d, override %s\n", marker, buffer)); (void) memcpy(buffer, "***", (size_t) 3); } first_ch = *buffer; /* * GIT binary diffs can contain blocks of data that might be confused * with the ordinary line-oriented sections in diff output. Skip the * case statement if we are processing a GIT binary diff. */ switch (git_diff) { default: break; case 1: /* expect "index" */ if (match(buffer, "index") != NULL || match(buffer, "rename") != NULL || match(buffer, "similarity") != NULL) { git_diff = 2; continue; } else { git_diff = 0; } break; case 2: /* perhaps "GIT binary patch" */ if (match(buffer, "GIT binary patch") != NULL) { git_diff = 3; that->cmt = Binary; continue; } else if (match(buffer, "Binary files ") != NULL) { git_diff = 0; that->cmt = Binary; continue; } break; case 3: /* had "GIT binary patch", wait for next "diff" line */ if (first_ch != 'd') continue; break; } /* * Use the first character of the input line to determine its * type: */ switch (first_ch) { case 'O': /* Only */ CASE_TRACE(); if (match(buffer, "Only in ")) { char *path = buffer + 8; int found = 0; for (s = path; *s != EOS; s++) { if (match(s, ": ")) { found = 1; if ((s - path) >= 2 && s[-1] == PATHSEP) { while ((s[0] = s[2]) != EOS) s++; } else { *s++ = PATHSEP; while ((s[0] = s[1]) != EOS) s++; } break; } } if (found) { blip('.'); finish_chunk(that); that = find_data(NULL, path); that->cmt = Only; ok = HAVE_NOTHING; } } break; /* * Several different scripts produce "Index:" lines * (e.g., "makepatch"). Not all bother to put the * pathname of the files; some put only the leaf names. */ case 'I': CASE_TRACE(); if ((s = match(buffer, "Index: ")) != NULL) { s = skip_blanks(s); dequote(s); blip('.'); finish_chunk(that); s = do_merging(that, s, &freed); that = find_data(NULL, s); ok = begin_data(that); } break; case 'd': /* diff command trace */ CASE_TRACE(); if ((s = match(buffer, "diff ")) != NULL && *(s = skip_options(s)) != EOS) { char *original = NULL; char *modified = NULL; char *to_blank = NULL; if (reverse_opt) { modified = s; to_blank = skip_filename(s); original = skip_blanks(to_blank); *to_blank = EOS; } else { original = s; to_blank = skip_filename(s); s = skip_blanks(to_blank); modified = s; *to_blank = EOS; } if (match(buffer, "diff --git ") != NULL) { size_t old_len = strlen(original); size_t new_len = strlen(modified); char *temp = xmalloc(old_len + new_len + 1); git_diff = 1; if (copy_git_name(temp, original, old_len) != NULL) original = new_string(temp); if (copy_git_name(temp, modified, new_len) != NULL) modified = new_string(temp); free(temp); } else { git_diff = 0; dequote(original); dequote(modified); } blip('.'); finish_chunk(that); modified = do_merging(that, modified, &freed); that = find_data(original, modified); ok = begin_data(that); } break; case '*': CASE_TRACE(); if (!(ok & HAVE_PATH)) { int ddd, hour, minute, second; int day, month, year; char yrmon, monday; char *stars = match(buffer, "*** "); char *sp; if (stars == NULL) break; /* ignore */ /* check for tab-delimited first, so we can * accept filenames containing spaces. */ if (((sp = copy_notabs(b_fname, stars, length)) != NULL && (sp = match(sp, "\t")) != NULL && (sp = need_nospcs(sp)) != NULL && (sp = match(sp, " ")) != NULL && (sp = need_nospcs(sp)) != NULL && sscanf(sp, " %d %d:%d:%d %d", &ddd, &hour, &minute, &second, &year) == 5) || ((sp = copy_notabs(b_fname, stars, length)) != NULL && sscanf(sp, "\t%d%c%d%c%d %d:%d:%d", &year, &yrmon, &month, &monday, &day, &hour, &minute, &second) == 8 && date_delims(yrmon, monday) && !version_num(b_fname)) || ((sp = copy_notabs(b_fname, stars, length)) != NULL && (sp = match(sp, "\t")) != NULL && (sp = need_parens(sp)) != NULL && (sp = match(sp, "\t")) != NULL && need_parens(sp) != NULL && !version_num(b_fname)) || ((sp = copy_notabs(b_fname, stars, length)) != NULL && (sp = match(sp, "\t")) != NULL && (sp = need_parens(sp)) != NULL && (*skip_blanks(sp) == EOS)) || ((sp = copy_graphs(b_fname, stars, length)) != NULL && (sp = need_blanks(sp)) != NULL && (sp = need_nospcs(sp)) != NULL && (sp = match(sp, " ")) != NULL && (sp = need_nospcs(sp)) != NULL && sscanf(sp, " %d %d:%d:%d %d", &ddd, &hour, &minute, &second, &year) == 5) || ((sp = copy_graphs(b_fname, stars, length)) != NULL && (sp = need_blanks(sp)) != NULL && sscanf(sp, "%d%c%d%c%d %d:%d:%d", &year, &yrmon, &month, &monday, &day, &hour, &minute, &second) == 8 && date_delims(yrmon, monday) && !version_num(b_fname)) || ((sp = copy_git_name(b_fname, stars, length)) != NULL && *skip_blanks(sp) == EOS) || ((sp = copy_graphs(b_fname, stars, length)) != NULL && (*sp == EOS || *sp == BLANK || *sp == TAB) && !version_num(b_fname) && !contain_any(b_fname, "*") && !edit_range(b_fname)) ) { const char *git_source = NULL; prev = that; finish_chunk(that); dequote(b_fname); /* * Git diff's may reflect a renamed file. For this case, * we want to keep track of the original file, for the * -S/-D comparison. */ if ((marker > 1) && git_diff) { char *tt = that->original; if (strlen(tt) > 2 && (!strncmp("a/", tt, 2) || !strncmp("b/", tt, 2))) { tt += 2; } git_source = new_string(tt); } s = do_merging(that, b_fname, &freed); if (freed) prev = NULL; that = find_data(git_source, s); ok = begin_data(that); TRACE(("** after merge:%d:%s\n", ok, s)); } } break; case '=': CASE_TRACE(); if (!(ok & HAVE_PATH)) { int rev; char *bars, *sp; if ((bars = match(buffer, "==== ")) != NULL && (bars = copy_p4_name(b_fname, bars, length)) != NULL && (bars = match(bars, "#")) != NULL && (bars = copy_integer(&rev, bars)) != NULL && (((sp = match(bars, " - ")) != NULL && need_graphs(sp) != NULL) || (((sp = match(bars, " ")) != NULL && (sp = need_parens(sp)) != NULL && (sp = match(sp, " - ")) != NULL && need_graphs(sp) != NULL))) && !version_num(b_fname) && !contain_any(b_fname, "*") && !edit_range(b_fname)) { TRACE(("** found p4-diff\n")); prev = that; finish_chunk(that); dequote(b_fname); s = do_merging(that, b_fname, &freed); if (freed) prev = NULL; that = find_data(NULL, s); ok = begin_data(that); TRACE(("** after merge:%d:%s\n", ok, s)); } } break; case '+': /* FALL-THRU */ case '>': CASE_TRACE(); if (ok) { update_chunk(that, cInsert); } break; case '-': if (!ok) { CASE_TRACE(); break; } if (!unified && !strcmp(buffer, "---")) { CASE_TRACE(); break; } /* fall-thru */ case '<': CASE_TRACE(); if (ok) { update_chunk(that, cDelete); } break; case '!': CASE_TRACE(); if (ok) { update_chunk(that, cModify); } break; /* Expecting "Files XXX and YYY differ" */ case 'F': /* FALL-THRU */ case 'f': CASE_TRACE(); if ((s = match(buffer + 1, "iles ")) != NULL) { char *first = skip_blanks(s); /* blindly assume the first filename does not contain " and " */ char *at_and = strstr(s, " and "); s = strrchr(buffer, BLANK); if ((at_and != NULL) && !strcmp(s, " differ")) { char *second = skip_blanks(at_and + 5); if (reverse_opt) { *at_and = EOS; s = first; } else { *s = EOS; s = second; } blip('.'); finish_chunk(that); that = find_data(NULL, s); that->cmt = Either; ok = HAVE_NOTHING; either = 1; } } break; /* Expecting "Binary files XXX and YYY differ" */ case 'B': /* FALL-THRU */ case 'b': CASE_TRACE(); if ((s = match(buffer + 1, "inary files ")) != NULL) { char *first = skip_blanks(s); /* blindly assume the first filename does not contain " and " */ char *at_and = strstr(s, " and "); s = strrchr(buffer, BLANK); if ((at_and != NULL) && !strcmp(s, " differ")) { char *second = skip_blanks(at_and + 5); if (reverse_opt) { *at_and = EOS; s = first; } else { *s = EOS; s = second; } blip('.'); finish_chunk(that); that = find_data(NULL, s); that->cmt = Binary; ok = HAVE_NOTHING; } } break; } } blip('\n'); finish_chunk(that); finish_chunk(&dummy); if (either) { int pass; int fixup_diffs = 0; for (pass = 0; pass < 2; ++pass) { DATA *p; for (p = all_data; p; p = p->link) { switch (p->cmt) { default: break; case Normal: fixup_diffs = 1; break; case Either: if (pass) { if (fixup_diffs) { p->cmt = Binary; } else { p->cmt = Differs; } } break; } } } } free(buffer); free(b_fname); } static void show_color(int color) { if (color >= 0) printf("\033[%dm", color + 30); else printf("\033[0;39m"); } static long plot_bar(long count, int c, int color) { long result = count; if (show_colors && result != 0) show_color(color); while (--count >= 0) (void) putchar(c); if (show_colors && result != 0) show_color(-1); return result; } /* * Each call to 'plot_num()' prints a scaled bar of 'c' characters. The * 'extra' parameter is used to keep the accumulated error in the bar's total * length from getting large. */ static long plot_num(long num_value, int c, int color, long *extra) { long result = 0; /* the value to plot */ /* character to display in the bar */ /* accumulated error in the bar */ if (num_value) { long product = (plot_width * num_value); result = ((product + *extra) / plot_scale); *extra = product - (result * plot_scale) - *extra; plot_bar(result, c, color); } return result; } static long plot_round1(const long num[MARKS]) { long result = 0; long scaled[MARKS]; long remain[MARKS]; long want = 0; long have = 0; long half = (plot_scale / 2); int i; memset(scaled, 0, sizeof(scaled)); memset(remain, 0, sizeof(remain)); for_each_mark(i) { long product = (plot_width * num[i]); scaled[i] = (product / plot_scale); remain[i] = (product % plot_scale); want += product; have += product - remain[i]; } while (want > have) { int j = -1; for_each_mark(i) { if (remain[i] != 0 && (remain[i] > (j >= 0 ? remain[j] : half))) { j = i; } } if (j >= 0) { have += remain[j]; remain[j] = 0; scaled[j] += 1; } else { break; } } for_each_mark(i) { plot_bar(scaled[i], marks[i], colors[i]); result += scaled[i]; } return result; } /* * Print a scaled bar of characters, where c[0] is for insertions, c[1] * for deletions and c[2] for modifications. The num array contains the * count for each type of change, in the same order. */ static long plot_round2(const long num[MARKS]) { long result = 0; long scaled[MARKS]; long remain[MARKS]; long total = 0; int i; for (i = 0; i < MARKS; i++) total += num[i]; if (total == 0) return result; total = (total * plot_width + (plot_scale / 2)) / plot_scale; /* display at least one character */ if (total == 0) total++; for_each_mark(i) { scaled[i] = num[i] * plot_width / plot_scale; remain[i] = num[i] * plot_width - scaled[i] * plot_scale; total -= scaled[i]; } /* assign the missing chars using the largest remainder algo */ while (total) { int largest, largest_count; /* largest is a bit field */ long max_remain; /* search for the largest remainder */ largest = largest_count = 0; max_remain = 0; for_each_mark(i) { if (remain[i] > max_remain) { largest = 1 << i; largest_count = 1; max_remain = remain[i]; } else if (remain[i] == max_remain) { /* ex aequo */ largest |= 1 << i; largest_count++; } } /* if there are more greatest remainders than characters missing, don't assign them at all */ if (total < largest_count) break; /* allocate the extra characters */ for_each_mark(i) { if (largest & (1 << i)) { scaled[i]++; total--; remain[i] -= plot_width; } } } for_each_mark(i) { result += plot_bar(scaled[i], marks[i], colors[i]); } return result; } static void plot_numbers(const DATA * p) { long temp = 0; int i; printf("%5ld ", TotalOf(p)); if (format_opt & FMT_VERBOSE) { printf("%5ld ", InsOf(p)); printf("%5ld ", DelOf(p)); printf("%5ld ", ModOf(p)); if (path_opt) printf("%5ld ", EqlOf(p)); } if (format_opt == FMT_CONCISE) { for_each_mark(i) { printf("\t%ld %c", p->count[i], marks[i]); } } else { long used = 0; switch (round_opt) { default: for_each_mark(i) { used += plot_num(p->count[i], marks[i], colors[i], &temp); } break; case 1: used = plot_round1(p->count); break; case 2: used = plot_round2(p->count); break; } if ((format_opt & FMT_FILLED) != 0) { if (used > plot_width) printf("%ld", used - plot_width); /* oops */ else plot_bar(plot_width - used, '.', 0); } } } static int columns_of(const char *value) { int result; int n; int ch; #ifdef HAVE_MBSTOWCWIDTH int fixup = 0; for (n = 0; (ch = UC(value[n])) != EOS; ++n) { if (ch >= DEL || ch < BLANK) { fixup = 1; break; } } result = (int) strlen(value); if (fixup) { size_t needed; mbstate_t state; const char *source; size_t length = strlen(value); memset(&state, 0, sizeof(state)); source = value; needed = mbsrtowcs(NULL, &source, length, &state); if (needed != (size_t) (-1)) { wchar_t *target = calloc(1 + needed, sizeof(wchar_t)); memset(&state, 0, sizeof(state)); source = value; if (mbsrtowcs(target, &source, needed, &state) == needed) { size_t n2; result = 0; for (n2 = 0; n2 < needed; ++n2) { int nw = wcwidth(target[n2]); if (nw > 0) result += nw; else if (target[n2] < BLANK || target[n2] == DEL) result += 2; else result += 4; /* show as octal */ } } free(target); } } #else result = (int) strlen(value); for (n = 0; (ch = UC(value[n])) != EOS; ++n) { if (ch == DEL || ch < BLANK) { result += 1; } else if (ch > DEL) { result += 3; /* show as octal */ } } #endif return result; } #define adjustwide(width,name) width += (int) strlen(name) - columns_of(name) static void show_quoted(const char *value) { int ch; putchar(DQUOTE); while ((ch = UC(*value++)) != EOS) { if (ch == DQUOTE) putchar(DQUOTE); putchar(ch); } putchar(DQUOTE); } static void show_unquoted(const char *value, int limit) { int ch; while ((ch = UC(*value++)) != EOS) { if (ch < BLANK) { if (strchr("\b\n\r\t\\\"", ch) != NULL) { putchar(BACKSL); switch (ch) { case '\b': ch = 'b'; break; case '\n': ch = 'n'; break; case '\r': ch = 'r'; break; case '\t': ch = 't'; break; } } else { putchar('^'); ch |= '@'; } } else if (ch == DEL) { putchar('^'); ch = '?'; } #ifndef HAVE_MBSTOWCWIDTH else if (ch > DEL) { char temp[5]; sprintf(temp, "\\%03o", ch & 0xff); ch = temp[3]; temp[3] = EOS; fputs(temp, stdout); } #endif putchar(ch); --limit; } while (limit-- > 0) { putchar(BLANK); } } #define changed(p) (!merge_names \ || (p)->cmt != Normal \ || (TotalOf(p)) != 0) static void show_data(const DATA * p) { const char *name = data_filename(p); if (summary_only) { ; } else if (!changed(p)) { ; } else if (p->cmt == Binary && suppress_binary == 1) { ; } else if (table_opt == 1) { if (names_only) { show_quoted(name); } else { printf("%ld,%ld,%ld,", InsOf(p), DelOf(p), ModOf(p)); if (path_opt) printf("%ld,", EqlOf(p)); if (count_files && !reverse_opt) printf("%d,%d,%d,", (p->cmt == OnlyRight), (p->cmt == OnlyLeft), (p->cmt == Binary)); show_quoted(name); } printf("\n"); } else if (names_only) { printf("%s\n", name); } else { int width; printf("%s ", comment_opt); if (max_name_wide > 0 && max_name_wide < min_name_wide && max_name_wide < ((width = (int) columns_of(name)))) { printf("%.*s", max_name_wide, name + (width - max_name_wide)); } else { width = ((max_name_wide > 0 && max_name_wide < min_name_wide) ? max_name_wide : min_name_wide); adjustwide(width, name); show_unquoted(name, width); } if (table_opt == 2) { putchar('|'); if (path_opt) printf("%*ld ", number_len, EqlOf(p)); printf("%*ld ", number_len, InsOf(p)); printf("%*ld ", number_len, DelOf(p)); printf("%*ld", number_len, ModOf(p)); } putchar('|'); switch (p->cmt) { default: case Normal: plot_numbers(p); break; case Binary: printf("binary"); break; case Differs: printf("differ"); break; case Only: printf("only"); break; case OnlyLeft: printf(count_files ? "deleted" : "only"); break; case OnlyRight: printf(count_files ? "added" : "only"); break; } printf("\n"); } } #ifdef HAVE_TSEARCH static void show_tsearch(const void *nodep, const VISIT which, const int depth) { const DATA *p = *(DATA * const *) nodep; (void) depth; if (which == postorder || which == leaf) show_data(p); } #endif static int ignore_data(DATA * p) { return ((!changed(p)) || (p->cmt == Binary && suppress_binary)); } /* * Return the length of any directory-prefix from the given path. */ static size_t path_length(const char *path) { size_t result = 0; char *mark = strrchr(path, PATHSEP); if (mark != NULL && mark != path) result = (size_t) (mark + 1 - path); return result; } /* * If we have an "only" filename, we can guess whether it was added or removed * by looking at its directory and comparing that to other files' directories. * * TODO: -K -R combination is not yet supported because that relies on storing * both left-/right-paths for each file; only the right-path is currently used. */ static Comment resolve_only(const DATA * p) { Comment result = p->cmt; if (result == Only && !reverse_opt) { DATA *q; size_t len1 = path_length(p->modified); if (len1 != 0) { for (q = all_data; q; q = q->link) { result = OnlyLeft; if (q->cmt == Normal || q->cmt == Binary) { size_t len2 = path_length(q->modified); if (len2 >= len1) { if (!strncmp(p->modified, q->modified, len1)) { result = OnlyRight; break; } } } } } } return result; } #ifdef HAVE_OPENDIR static void count_unmodified_files(const char *pathname, long *files, long *lines) { DATA *p; char *name; TRACE(("count_unmodified_files \"%s\"\n", pathname)); if (is_dir(pathname)) { DIR *dp = opendir(pathname); if (dp != NULL) { const struct dirent *de; while ((de = readdir(dp)) != NULL) { if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) continue; name = xmalloc(strlen(pathname) + 2 + strlen(de->d_name)); if (name != NULL) { sprintf(name, "%s%c%s", pathname, PATHSEP, de->d_name); if ((strcmp(de->d_name, ".git") && strcmp(de->d_name, ".svn") && strcmp(de->d_name, "CVS") && strcmp(de->d_name, "RCS")) || !is_dir(name)) { count_unmodified_files(name, files, lines); } free(name); } } closedir(dp); } } else if (is_file(pathname)) { /* * Given the pathname from the (-D) source directory, derive a * corresponding path for the source directory. Then check if * that path appears in the list of modified files. */ const char *ref_name = ((all_data && !unchanged) ? all_data->modified : pathname); char *source = NULL; if (ref_name == NULL) return; if (prefix_opt >= 0) { int level_s = count_prefix(path_opt); int base_s = 0; int base_d = 0; (void) skip_prefix(pathname, level_s + 1, &base_s); (void) skip_prefix(ref_name, level_s + 1, &base_d); name = xmalloc(2 + strlen(pathname) + strlen(ref_name)); sprintf(name, "%.*s%s", base_d, ref_name, base_s + pathname); source = xmalloc(strlen(ref_name) + 2 + strlen(pathname) + strlen(S_option)); sprintf(source, "%s%c%s", S_option, PATHSEP, base_s + pathname); } else { const char *mark = unchanged ? ref_name : data_filename(all_data); int skip = 1 + (int) strlen(path_opt); name = xmalloc(strlen(ref_name) + 2 + strlen(pathname)); sprintf(name, "%.*s%s", (int) (mark - ref_name), ref_name, pathname + skip); source = xmalloc(strlen(ref_name) + 2 + strlen(pathname) + strlen(S_option)); sprintf(source, "%s%c%.*s%s", S_option, PATHSEP, (int) (mark - ref_name), ref_name, pathname + skip); } if (same_file(source, pathname)) { int found = 0; for (p = all_data; p != NULL && !found; p = p->link) { if (!strcmp(name, p->modified)) { found = 1; } } if (!found) { p = find_data(NULL, name); *files += 1; EqlOf(p) = count_lines(p); *lines += EqlOf(p); if (unchanged) { int len = columns_of(p->modified); if (min_name_wide < (len - p->base)) min_name_wide = (len - p->base); } } } free(name); free(source); } } #endif static void update_min_name_wide(long longest_name) { if (prefix_opt < 0) { if (prefix_len < 0) prefix_len = 0; if ((longest_name - prefix_len) > min_name_wide) min_name_wide = (int) (longest_name - prefix_len); } if (min_name_wide < 1) min_name_wide = 0; min_name_wide++; /* make sure it's nonzero */ } static void summarize(void) { DATA *p; long total_ins = 0; long total_del = 0; long total_mod = 0; long total_eql = 0; long files_added = 0; long files_equal = 0; long files_binary = 0; long files_removed = 0; long temp; int num_files = 0, shortest_name = -1, longest_name = -1; plot_scale = 0; for (p = all_data; p; p = p->link) { int len = columns_of(p->modified); if (ignore_data(p)) continue; /* * If "-pX" option is given, prefix_opt is positive. * * "-p0" gives the whole pathname unmodified. "-p1" strips * through the first path-separator, etc. */ if (prefix_opt >= 0) { /* p->base has been computed at node creation */ if (min_name_wide < (len - p->base)) min_name_wide = (len - p->base); } else { /* * If "-pX" option is not given, strip off any prefix which is * shared by all of the names. */ if (len < prefix_len || prefix_len < 0) prefix_len = len; while (prefix_len > 0) { if (p->modified[prefix_len - 1] != PATHSEP) prefix_len--; else if (strncmp(all_data->modified, p->modified, (size_t) prefix_len)) prefix_len--; else break; } if (len > longest_name) longest_name = len; if (len < shortest_name || shortest_name < 0) shortest_name = len; } } /* * Get additional counts for files where we cannot count lines changed. */ if (count_files) { for (p = all_data; p; p = p->link) { switch (p->cmt) { case Binary: files_binary++; break; case Only: switch (resolve_only(p)) { case OnlyRight: p->cmt = OnlyRight; files_added++; break; case OnlyLeft: p->cmt = OnlyLeft; files_removed++; break; default: /* ignore - we could not guess */ break; } default: break; } } } /* * Use a separate loop after computing prefix_len so we can apply the "-S" * or "-D" options to find files that we can use as reference for the * unchanged-count. */ for (p = all_data; p; p = p->link) { if (!ignore_data(p)) { EqlOf(p) = 0; if (reverse_opt) { long save_ins = InsOf(p); long save_del = DelOf(p); InsOf(p) = save_del; DelOf(p) = save_ins; } if (path_opt != NULL) { int count = count_lines(p); if (count >= 0) { EqlOf(p) = count - ModOf(p); if (path_dest != 0) { EqlOf(p) -= InsOf(p); } else { EqlOf(p) -= DelOf(p); } if (EqlOf(p) < 0) EqlOf(p) = 0; } } num_files++; total_ins += InsOf(p); total_del += DelOf(p); total_mod += ModOf(p); total_eql += EqlOf(p); temp = TotalOf(p); if (temp > plot_scale) plot_scale = temp; } } update_min_name_wide(longest_name); #ifdef HAVE_OPENDIR if (S_option != NULL && D_option != NULL) { unchanged = (all_data == NULL); count_unmodified_files(D_option, &files_equal, &total_eql); if (unchanged) { for (p = all_data; p; p = p->link) { int len = columns_of(p->modified); if (longest_name < len) longest_name = len; temp = TotalOf(p); if (temp > plot_scale) plot_scale = temp; } update_min_name_wide(longest_name); } } #endif plot_width = (max_width - min_name_wide - 8); if (plot_width < 10) plot_width = 10; if (plot_scale < plot_width) plot_scale = plot_width; /* 1:1 */ if (table_opt == 1) { if (!names_only) { printf("INSERTED,DELETED,MODIFIED,"); if (path_opt) printf("UNCHANGED,"); if (count_files && !reverse_opt) printf("FILE-ADDED,FILE-DELETED,FILE-BINARY,"); } printf("FILENAME\n"); } else if (table_opt == 2) { long largest = 0; for (p = all_data; p; p = p->link) { if (path_opt) largest = maximum(largest, EqlOf(p)); largest = maximum(largest, InsOf(p)); largest = maximum(largest, DelOf(p)); largest = maximum(largest, ModOf(p)); } number_len = 0; while (largest > 0) { number_len++; largest /= 10; } number_len = maximum(number_len, 3); } #ifdef HAVE_TSEARCH if (use_tsearch) { twalk(sorted_data, show_tsearch); } else #endif for (p = all_data; p; p = p->link) { show_data(p); } if ((table_opt != 1) && !names_only) { #define PLURAL(n) n, n != 1 ? "s" : "" if (num_files > 0 || !quiet) { printf("%s %d file%s changed", comment_opt, PLURAL(num_files)); if (total_ins) printf(", %ld insertion%s(+)", PLURAL(total_ins)); if (total_del) printf(", %ld deletion%s(-)", PLURAL(total_del)); if (total_mod) printf(", %ld modification%s(!)", PLURAL(total_mod)); if (total_eql && path_opt != NULL) printf(", %ld unchanged line%s(=)", PLURAL(total_eql)); if (count_files) { if (files_added) printf(", %ld file%s added", PLURAL(files_added)); if (files_removed) printf(", %ld file%s removed", PLURAL(files_removed)); if (files_binary) printf(", %ld binary file%s", PLURAL(files_binary)); } (void) putchar('\n'); } } } #ifdef HAVE_POPEN static const char * get_program(const char *name, const char *dft) { const char *result = getenv(name); if (result == NULL || *result == EOS) result = dft; TRACE(("get_program(%s) = %s\n", name, result)); return result; } #define GET_PROGRAM(name) get_program("DIFFSTAT_" #name, name) static char * decompressor(Decompress which, const char *name) { const char *verb = NULL; const char *opts = ""; char *result = NULL; switch (which) { case dcBzip: verb = GET_PROGRAM(BZCAT_PATH); if (*verb == EOS) { verb = GET_PROGRAM(BZIP2_PATH); opts = "-dc"; } break; case dcCompress: verb = GET_PROGRAM(ZCAT_PATH); if (*verb == EOS) { verb = GET_PROGRAM(UNCOMPRESS_PATH); opts = "-c"; if (*verb == EOS) { /* not all compress's recognize the options, test this last */ verb = GET_PROGRAM(COMPRESS_PATH); opts = "-dc"; } } break; case dcGzip: verb = GET_PROGRAM(GZIP_PATH); opts = "-dc"; break; case dcLzma: verb = GET_PROGRAM(LZCAT_PATH); opts = "-dc"; break; case dcPack: verb = GET_PROGRAM(PCAT_PATH); break; case dcXz: verb = GET_PROGRAM(XZ_PATH); opts = "-dc"; break; case dcZstd: verb = GET_PROGRAM(ZSTD_PATH); opts = "-qdcf"; break; case dcEmpty: /* FALLTHRU */ case dcNone: break; } if (verb != NULL && *verb != EOS) { result = (char *) xmalloc(strlen(verb) + 10 + strlen(name)); sprintf(result, "%s %s", verb, opts); if (*name != EOS) { sprintf(result + strlen(result), " \"%s\"", name); } } return result; } static char * is_compressed(const char *name) { size_t len = strlen(name); Decompress which; #define CHKEND(end) \ (len > (sizeof(end) - 1) && \ !strcmp(name + len - (sizeof(end) - 1), end)) if (CHKEND(".Z")) { which = dcCompress; } else if (CHKEND(".z")) { which = dcPack; } else if (CHKEND(".gz")) { which = dcGzip; } else if (CHKEND(".bz2")) { which = dcBzip; } else if (CHKEND(".lzma")) { which = dcLzma; } else if (CHKEND(".xz")) { which = dcXz; } else if (CHKEND(".zst")) { which = dcZstd; } else { which = dcNone; } return decompressor(which, name); } #ifdef HAVE_MKDTEMP #define MY_MKDTEMP(path) mkdtemp(path) #else /* * mktemp is supposedly marked obsolete at the same point that mkdtemp is * introduced. */ static char * my_mkdtemp(char *path) { char *result = mktemp(path); if (result != 0) { if (MKDIR(result, 0700) < 0) { result = 0; } } return path; } #define MY_MKDTEMP(path) my_mkdtemp(path) #endif static char * copy_stdin(char **dirpath) { const char *tmp = getenv("TMPDIR"); char *result = NULL; if (tmp == NULL) tmp = "/tmp/"; *dirpath = xmalloc(strlen(tmp) + 12); strcpy(*dirpath, tmp); strcat(*dirpath, "/diffXXXXXX"); if (MY_MKDTEMP(*dirpath) != NULL) { FILE *fp; result = xmalloc(strlen(*dirpath) + 10); sprintf(result, "%s/stdin", *dirpath); if ((fp = fopen(result, "w")) != NULL) { int ch; while ((ch = MY_GETC(stdin)) != EOF) { fputc(ch, fp); } (void) fclose(fp); } else { free(result); result = NULL; rmdir(*dirpath); /* Assume that the /stdin file was not created */ free(*dirpath); *dirpath = NULL; } } else { free(*dirpath); *dirpath = NULL; } return result; } #endif static void set_path_opt(char *value, int destination) { path_opt = value; path_dest = destination; if (*path_opt != 0) { if (is_dir(path_opt)) { num_marks = 4; } else { (void) fflush(stdout); fprintf(stderr, "Not a directory:%s\n", path_opt); exit(EXIT_FAILURE); } } } static void usage(FILE *fp) { static const char *msg[] = { "Usage: diffstat [options] [files]", "", "Reads from one or more input files which contain output from 'diff',", "producing a histogram of total lines changed for each file referenced.", "If no filename is given on the command line, reads from standard input.", "", "Options:", " -b ignore lines matching \"Binary files XXX and YYY differ\"", " -c prefix each line with comment (#)", " -C add SGR color escape sequences to highlight the histogram", #if OPT_TRACE " -d debug - prints a lot of information", #endif " -D PATH specify location of patched files, use for unchanged-count", " -e FILE redirect standard error to FILE", " -E trim escape-sequences, e.g., from colordiff", " -f NUM format (0=concise, 1=normal, 2=filled, 4=values)", " -h print this message", " -k do not merge filenames", " -K resolve ambiguity of \"only\" filenames", " -l list filenames only", " -m merge insert/delete data in chunks as modified-lines", " -n NUM specify minimum width for the filenames (default: auto)", " -N NUM specify maximum width for the filenames (default: auto)", " -o FILE redirect standard output to FILE", " -O inspect only files listed in diff for -S/-D options", " -p NUM specify number of pathname-separators to strip (default: common)", " -q suppress the \"0 files changed\" message for empty diffs", " -r NUM specify rounding for histogram (0=none, 1=simple, 2=adjusted)", " -R assume patch was created with old and new files swapped", " -s show only the summary line", " -S PATH specify location of original files, use for unchanged-count", " -t print a table (comma-separated-values) rather than histogram", " -T print amounts (like -t option) in addition to histogram", " -u do not sort the input list", " -v show progress if output is redirected to a file", " -V prints the version number", " -w NUM specify maximum width of the output (default: 80)", }; unsigned j; for (j = 0; j < sizeof(msg) / sizeof(msg[0]); j++) fprintf(fp, "%s\n", msg[j]); } /* Wrapper around getopt that also parses "--help" and "--version". * argc, argv, opts, return value, and globals optarg, optind, * opterr, and optopt are as in getopt(). help and version designate * what should be returned if --help or --version are encountered. */ static int getopt_helper(int argc, char *const argv[], const char *opts, int help, int version) { if (optind < argc && argv[optind] != NULL) { if (strcmp(argv[optind], "--help") == 0) { optind++; return help; } else if (strcmp(argv[optind], "--version") == 0) { optind++; return version; } } return getopt(argc, argv, opts); } static int getopt_value(void) { char *next = NULL; long value = strtol(optarg, &next, 0); if (next == NULL || *next != EOS) { (void) fflush(stdout); fprintf(stderr, "expected a number, have '%s'\n", optarg); exit(EXIT_FAILURE); } return (int) value; } #define OPTIONS "\ b\ cC\ dD:\ e:E\ f:\ h\ kK\ l\ m\ n:N:\ o:\ p:\ q\ r:R\ sS:\ tT\ uv\ Vw:" int main(int argc, char *argv[]) { int j; char version[80]; #if defined(HAVE_TCGETATTR) && defined(TIOCGWINSZ) if (isatty(fileno(stdout))) { struct winsize data; if (ioctl(fileno(stdout), TIOCGWINSZ, &data) == 0) { max_width = data.ws_col; } } #endif #ifdef HAVE_MBSTOWCWIDTH setlocale(LC_CTYPE, ""); #endif while ((j = getopt_helper(argc, argv, OPTIONS, 'h', 'V')) != -1) { switch (j) { case 'b': suppress_binary = 1; break; case 'c': comment_opt = "#"; break; case 'C': show_colors = 1; break; #if OPT_TRACE case 'd': trace_opt = 1; break; #endif case 'D': D_option = optarg; break; case 'e': if (freopen(optarg, "w", stderr) == NULL) failed(optarg); break; case 'E': trim_escapes = 1; break; case 'f': format_opt = getopt_value(); break; case 'h': usage(stdout); return (EXIT_SUCCESS); case 'k': merge_names = 0; break; case 'K': count_files = 1; break; case 'l': names_only = 1; break; case 'm': merge_opt = 1; break; case 'n': min_name_wide = getopt_value(); break; case 'N': max_name_wide = getopt_value(); break; case 'o': if (freopen(optarg, "w", stdout) == NULL) failed(optarg); break; case 'p': prefix_opt = getopt_value(); break; case 'r': round_opt = getopt_value(); break; case 'R': reverse_opt = 1; break; case 's': summary_only = 1; break; case 'S': S_option = optarg; break; case 't': table_opt = 1; break; case 'T': table_opt = 2; break; case 'u': sort_names = 0; break; case 'v': verbose = 1; break; case 'V': #ifndef NO_IDENT if (!sscanf(Id, "%*s %*s %30s", version)) #endif (void) strcpy(version, "?"); printf("diffstat version %s\n", version); return (EXIT_SUCCESS); case 'w': max_width = getopt_value(); break; case 'q': quiet = 1; break; default: usage(stderr); return (EXIT_FAILURE); } } /* * The numbers from -S/-D options will only be useful if the merge option * is added. */ if (S_option) set_path_opt(S_option, 0); if (D_option) set_path_opt(D_option, 1); if (path_opt) merge_opt = 1; show_progress = verbose && (!isatty(fileno(stdout)) && isatty(fileno(stderr))); #ifdef HAVE_TSEARCH use_tsearch = (sort_names && merge_names); #endif if (optind < argc) { while (optind < argc) { FILE *fp; const char *name = argv[optind++]; #ifdef HAVE_POPEN char *command = is_compressed(name); if (command != NULL) { if ((fp = popen(command, "r")) != NULL) { if (show_progress) { (void) fflush(stdout); (void) fprintf(stderr, "%s\n", name); (void) fflush(stderr); } do_file(fp, name); (void) pclose(fp); } free(command); } else #endif if ((fp = fopen(name, "rb")) != NULL) { if (show_progress) { (void) fflush(stdout); (void) fprintf(stderr, "%s\n", name); (void) fflush(stderr); } do_file(fp, name); (void) fclose(fp); } else { failed(name); } } } else { #ifdef HAVE_POPEN Decompress which = dcEmpty; char *stdin_dir = NULL; char *myfile; char sniff[8]; int ch; unsigned got = 0; if ((ch = MY_GETC(stdin)) != EOF) { which = dcNone; if (ch == 'B') { /* perhaps bzip2 (poor magic design...) */ sniff[got++] = (char) ch; while (got < 5) { if ((ch = MY_GETC(stdin)) == EOF) break; sniff[got++] = (char) ch; } if (got == 5 && !strncmp(sniff, "BZh", (size_t) 3) && isdigit(UC(sniff[3])) && isdigit(UC(sniff[4]))) { which = dcBzip; } } else if (ch == ']') { /* perhaps lzma */ sniff[got++] = (char) ch; while (got < 4) { if ((ch = MY_GETC(stdin)) == EOF) break; sniff[got++] = (char) ch; } if (got == 4 && !memcmp(sniff, "]\0\0\200", (size_t) 4)) { which = dcLzma; } } else if (ch == 0xfd) { /* perhaps xz */ sniff[got++] = (char) ch; while (got < 6) { if ((ch = MY_GETC(stdin)) == EOF) break; sniff[got++] = (char) ch; } if (got == 6 && !memcmp(sniff, "\3757zXZ\0", (size_t) 6)) { which = dcXz; } } else if (ch >= 0x22 && ch <= 0x28) { /* perhaps zstd */ sniff[got++] = (char) ch; while (got < 4) { if ((ch = MY_GETC(stdin)) == EOF) break; sniff[got++] = (char) ch; } if (got == 4 /* vi:{ */ && !memcmp(sniff + 1, "\265/\375", (size_t) 3)) { which = dcZstd; } } else if (ch == '\037') { /* perhaps compress, etc. */ sniff[got++] = (char) ch; if ((ch = MY_GETC(stdin)) != EOF) { sniff[got++] = (char) ch; switch (ch) { case 0213: which = dcGzip; break; case 0235: which = dcCompress; break; case 0036: which = dcPack; break; } } } else { sniff[got++] = (char) ch; } } /* * The C standard only guarantees one ungetc; * virtually everyone allows more. */ while (got != 0) { ungetc((unsigned char) sniff[--got], stdin); } if (which != dcNone && which != dcEmpty && (myfile = copy_stdin(&stdin_dir)) != NULL) { FILE *fp; char *command; /* open pipe to decompress temporary file */ command = decompressor(which, myfile); if ((fp = popen(command, "r")) != NULL) { do_file(fp, "stdin"); (void) pclose(fp); } free(command); unlink(myfile); free(myfile); myfile = NULL; rmdir(stdin_dir); free(stdin_dir); stdin_dir = NULL; } else if (which != dcEmpty) #endif do_file(stdin, "stdin"); } summarize(); #if defined(NO_LEAKS) while (all_data != 0) { delink(all_data); } #endif return (EXIT_SUCCESS); } diffstat-1.68/config.sub0000755000000000000000000011544114627414553013756 0ustar rootroot#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale timestamp='2024-05-27' # 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 # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2024 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." help=" Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Split fields of configuration type saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in cloudabi*-eabi* \ | kfreebsd*-gnu* \ | knetbsd*-gnu* \ | kopensolaris*-gnu* \ | linux-* \ | managarm-* \ | netbsd*-eabi* \ | netbsd*-gnu* \ | nto-qnx* \ | os2-emx* \ | rtmk-nova* \ | storm-chaos* \ | uclinux-gnu* \ | uclinux-uclibc* \ | windows-* ) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) case $field1-$field2 in # Shorthands that happen to contain a single dash convex-c[12] | convex-c3[248]) basic_machine=$field2-convex basic_os= ;; decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Do not treat sunos as a manufacturer sun*os*) basic_machine=$field1 basic_os=$field2 ;; # Manufacturers 3100* \ | 32* \ | 3300* \ | 3600* \ | 7300* \ | acorn \ | altos* \ | apollo \ | apple \ | atari \ | att* \ | axis \ | be \ | bull \ | cbm \ | ccur \ | cisco \ | commodore \ | convergent* \ | convex* \ | cray \ | crds \ | dec* \ | delta* \ | dg \ | digital \ | dolphin \ | encore* \ | gould \ | harris \ | highlevel \ | hitachi* \ | hp \ | ibm* \ | intergraph \ | isi* \ | knuth \ | masscomp \ | microblaze* \ | mips* \ | motorola* \ | ncr* \ | news \ | next \ | ns \ | oki \ | omron* \ | pc533* \ | rebel \ | rom68k \ | rombug \ | semi \ | sequent* \ | siemens \ | sgi* \ | siemens \ | sim \ | sni \ | sony* \ | stratus \ | sun \ | sun[234]* \ | tektronix \ | tti* \ | ultra \ | unicom* \ | wec \ | winbond \ | wrs) basic_machine=$field1-$field2 basic_os= ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | delta-motorola | 3300-motorola | motorola-delta | motorola-3300) cpu=m68k vendor=motorola ;; # This used to be dpx2*, but that gets the RS6000-based # DPX/20 and the x86-based DPX/2-100 wrong. See # https://oldskool.silicium.org/stations/bull_dpx20.htm # https://www.feb-patrimoine.com/english/bull_dpx2.htm # https://www.feb-patrimoine.com/english/unix_and_bull.htm dpx2 | dpx2[23]00 | dpx2[23]xx) cpu=m68k vendor=bull ;; dpx2100 | dpx21xx) cpu=i386 vendor=bull ;; dpx20) cpu=rs6000 vendor=bull ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) saved_IFS=$IFS IFS="-" read cpu vendor <&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x"$basic_os" != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. obj= case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) saved_IFS=$IFS IFS="-" read kernel os <&2 fi ;; *) echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 exit 1 ;; esac case $obj in aout* | coff* | elf* | pe*) ;; '') # empty is fine ;; *) echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 exit 1 ;; esac # Here we handle the constraint that a (synthetic) cpu and os are # valid only in combination with each other and nowhere else. case $cpu-$os in # The "javascript-unknown-ghcjs" triple is used by GHC; we # accept it here in order to tolerate that, but reject any # variations. javascript-ghcjs) ;; javascript-* | *-ghcjs) echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os-$obj in linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ | linux-mlibc*- | linux-musl*- | linux-newlib*- \ | linux-relibc*- | linux-uclibc*- | linux-ohos*- ) ;; uclinux-uclibc*- | uclinux-gnu*- ) ;; managarm-mlibc*- | managarm-kernel*- ) ;; windows*-msvc*-) ;; -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ | -uclibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 exit 1 ;; -kernel*- ) echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 exit 1 ;; *-kernel*- ) echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 exit 1 ;; *-msvc*- ) echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 exit 1 ;; kfreebsd*-gnu*- | knetbsd*-gnu*- | netbsd*-gnu*- | kopensolaris*-gnu*-) ;; vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) ;; nto-qnx*-) ;; os2-emx-) ;; rtmk-nova-) ;; *-eabi*- | *-gnueabi*-) ;; none--*) # None (no kernel, i.e. freestanding / bare metal), # can be paired with an machine code file format ;; -*-) # Blank kernel with real OS is always fine. ;; --*) # Blank kernel and OS with real machine code file format is always fine. ;; *-*-*) echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos* | *-solaris*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) vendor=ibm ;; *-ptx*) vendor=sequent ;; *-tpf*) vendor=ibm ;; *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; *-aux*) vendor=apple ;; *-hms*) vendor=hitachi ;; *-mpw* | *-macos*) vendor=apple ;; *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; *-vos*) vendor=stratus ;; esac ;; esac echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: diffstat-1.68/install-sh0000755000000000000000000003577613761220263014002 0ustar rootroot#!/bin/sh # install - install a program, script, or datafile scriptversion=2020-11-14.01; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 # Create dirs (including intermediate dirs) using mode 755. # This is like GNU 'install' as of coreutils 8.32 (2020). mkdir_umask=22 backupsuffix= chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -p pass -p to $cpprog. -s $stripprog installed files. -S SUFFIX attempt to back up existing files, with suffix SUFFIX. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG By default, rm is invoked with -f; when overridden with RMPROG, it's up to you to specify -f if you want it. If -S is not specified, no backups are attempted. Email bug reports to bug-automake@gnu.org. Automake home page: https://www.gnu.org/software/automake/ " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -p) cpprog="$cpprog -p";; -s) stripcmd=$stripprog;; -S) backupsuffix="$2" shift;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? # Don't chown directories that already exist. if test $dstdir_status = 0; then chowncmd="" fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false # The $RANDOM variable is not portable (e.g., dash). Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap ' ret=$? rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null exit $ret ' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p'. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && { test -z "$stripcmd" || { # Create $dsttmp read-write so that cp doesn't create it read-only, # which would cause strip to fail. if test -z "$doit"; then : >"$dsttmp" # No need to fork-exec 'touch'. else $doit touch "$dsttmp" fi } } && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # If $backupsuffix is set, and the file being installed # already exists, attempt a backup. Don't worry if it fails, # e.g., if mv doesn't support -f. if test -n "$backupsuffix" && test -f "$dst"; then $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null fi # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: diffstat-1.68/testing/0000755000000000000000000000000014714413543013435 5ustar rootrootdiffstat-1.68/testing/case45p1.ref0000644000000000000000000000121614320603177015455 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case15r1.ref0000644000000000000000000000120010277702416015450 0ustar rootroot build/Makefile.in | 38 +++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 + debian/control | 19 +++++++++++ debian/copyright | 40 +++++++++++++++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 + 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case38rf0.ref0000644000000000000000000000037412546615551015641 0ustar rootroot READ ME! | 5 0 + 5 - 0 ! README ? | 5 5 + 0 - 0 ! run atac.sh | 6 0 + 6 - 0 ! run test.sh | 51 0 + 51 - 0 ! run_atac.sh | 6 6 + 0 - 0 ! run_test.sh | 51 51 + 0 - 0 ! 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case31uf0.ref0000644000000000000000000000012011240121111015570 0ustar rootroot usbdevs | 14 11 + 3 - 0 ! 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case31u.ref0000644000000000000000000000012111234653123015363 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case18Rp0.ref0000644000000000000000000000006211700545540015572 0ustar rootroot tst/foo | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case08b.ref0000644000000000000000000000050210667374022015356 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case19p9.ref0000644000000000000000000000011410300164552015453 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case29p1.ref0000644000000000000000000000020411163734345015457 0ustar rootroot testing/case29.pat | 70 ++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case32r1.ref0000644000000000000000000000010511246713507015452 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case38rRp0.ref0000644000000000000000000000053612546615551015775 0ustar rootroot testing/READ ME! | 5 +++++ testing/README ? | 5 ----- testing/run atac.sh | 6 ++++++ testing/run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ testing/run_atac.sh | 6 ------ testing/run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case22.pat0000644000000000000000000006034107623024301015215 0ustar rootroot--- pgp-menu-traditional/PATCHES Dec 2002 17:44:54 -0000 3.6 +++ pgp-menu-traditional/PATCHES Feb 2003 11:26:39 -0000 @@ -0,0 +1 @@ +patch-1.5.3.dw.pgp-menu-traditional.1 --- pgp-menu-traditional/compose.c Dec 2002 11:19:39 -0000 3.8 +++ pgp-menu-traditional/compose.c Feb 2003 11:26:42 -0000 @@ -145,2 +145,6 @@ static void redraw_crypt_lines (HEADER * addstr (_("Clear")); +#ifdef HAVE_PGP + if ((msg->security & PGPINLINE) == PGPINLINE) + addstr (_(" (inline)")); +#endif clrtoeol (); @@ -174,4 +178,4 @@ static int pgp_send_menu (HEADER *msg, i - switch (mutt_multi_choice (_("PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? "), - _("esabf"))) + switch (mutt_multi_choice (_("PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline or (f)orget it? "), + _("esabtf"))) { @@ -208,6 +212,11 @@ static int pgp_send_menu (HEADER *msg, i case 4: /* (b)oth */ - msg->security = PGPENCRYPT | PGPSIGN; + msg->security |= PGPENCRYPT | PGPSIGN; break; - case 5: /* (f)orget it */ + case 5: /* (t)raditional inline */ + if (msg->security & (ENCRYPT | SIGN)) + msg->security |= PGPINLINE; /* should this be a toggle instead */ + break; + + case 6: /* (f)orget it */ msg->security = 0; --- pgp-menu-traditional/crypt.c Dec 2002 22:23:42 -0000 3.11 +++ pgp-menu-traditional/crypt.c Feb 2003 11:26:43 -0000 @@ -172,3 +172,2 @@ int mutt_protect (HEADER *msg, char *key BODY *tmp_pgp_pbody = NULL; - int traditional = 0; int flags = msg->security, i; @@ -179,18 +178,9 @@ int mutt_protect (HEADER *msg, char *key #ifdef HAVE_PGP - if (msg->security & APPLICATION_PGP) + if ((msg->security & PGPINLINE) == PGPINLINE) { - if ((msg->content->type == TYPETEXT) && - !ascii_strcasecmp (msg->content->subtype, "plain")) - { - if ((i = query_quadoption (OPT_PGPTRADITIONAL, _("Create an inline PGP message?"))) == -1) - return -1; - else if (i == M_YES) - traditional = 1; - } - if (traditional) + /* they really want to send it inline... go for it */ + if (!isendwin ()) mutt_endwin _("Invoking PGP..."); + pbody = pgp_traditional_encryptsign (msg->content, flags, keylist); + if (pbody) { - if (!isendwin ()) mutt_endwin _("Invoking PGP..."); - if (!(pbody = pgp_traditional_encryptsign (msg->content, flags, keylist))) - return -1; - msg->content = pbody; @@ -198,2 +188,8 @@ int mutt_protect (HEADER *msg, char *key } + + /* otherwise inline won't work...ask for revert */ + if ((i = query_quadoption (OPT_PGPMIMEASK, _("Message can't be sent inline. Revert to using PGP/MIME?"))) != M_YES) + return -1; + + /* go ahead with PGP/MIME */ } --- pgp-menu-traditional/init.h Dec 2002 18:09:49 -0000 3.28 +++ pgp-menu-traditional/init.h Feb 2003 11:26:48 -0000 @@ -1352,2 +1352,44 @@ struct option_t MuttVars[] = { */ + { "pgp_create_traditional", DT_SYN, R_NONE, UL "pgp_autoinline", 0 }, + { "pgp_autoinline", DT_BOOL, R_NONE, OPTPGPAUTOINLINE, 0 }, + /* + ** .pp + ** This option controls whether Mutt generates old-style inline + ** (traditional) PGP encrypted or signed messages under certain + ** circumstances. This can be overridden by use of the \fIpgp-menu\fP, + ** when inline is not required. + ** .pp + ** Note that Mutt might automatically use PGP/MIME for messages + ** which consist of more than a single MIME part. Mutt can be + ** configured to ask before sending PGP/MIME messages when inline + ** (traditional) would not work. + ** See also: ``$$pgp_mime_ask''. + ** .pp + ** Also note that using the old-style PGP message format is \fBstrongly\fP + ** \fBdeprecated\fP. + ** (PGP only) + */ + { "pgp_auto_traditional", DT_SYN, R_NONE, UL "pgp_replyinline", 0 }, + { "pgp_replyinline", DT_BOOL, R_NONE, OPTPGPREPLYINLINE, 0 }, + /* + ** .pp + ** Setting this variable will cause Mutt to always attempt to + ** create an inline (traditional) message when replying to a + ** message which is PGP encrypted/signed inline. This can be + ** overridden by use of the \fIpgp-menu\fP, when inline is not + ** required. This option does not automatically detect if the + ** (replied-to) message is inline; instead it relies on Mutt + ** internals for previously checked/flagged messages. + ** .pp + ** Note that Mutt might automatically use PGP/MIME for messages + ** which consist of more than a single MIME part. Mutt can be + ** configured to ask before sending PGP/MIME messages when inline + ** (traditional) would not work. + ** See also: ``$$pgp_mime_ask''. + ** .pp + ** Also note that using the old-style PGP message format is \fBstrongly\fP + ** \fBdeprecated\fP. + ** (PGP only) + ** + */ { "pgp_show_unusable", DT_BOOL, R_NONE, OPTPGPSHOWUNUSABLE, 1 }, @@ -1396,11 +1438,8 @@ struct option_t MuttVars[] = { */ - { "pgp_create_traditional", DT_QUAD, R_NONE, OPT_PGPTRADITIONAL, M_NO }, + { "pgp_mime_ask", DT_QUAD, R_NONE, OPT_PGPMIMEASK, M_NO }, /* ** .pp - ** This option controls whether Mutt generates old-style PGP encrypted - ** or signed messages under certain circumstances. - ** .pp - ** Note that PGP/MIME will be used automatically for messages which have - ** a character set different from us-ascii, or which consist of more than - ** a single MIME part. + ** This option controls whether Mutt will prompt you for + ** automatically sending a (signed/encrypted) message using + ** PGP/MIME when inline (traditional) fails (for any reason). ** .pp @@ -1409,2 +1448,3 @@ struct option_t MuttVars[] = { */ + --- pgp-menu-traditional/mutt.h Dec 2002 08:53:21 -0000 3.12 +++ pgp-menu-traditional/mutt.h Feb 2003 11:26:51 -0000 @@ -270,3 +270,3 @@ enum #ifdef HAVE_PGP - OPT_PGPTRADITIONAL, /* create old-style PGP messages */ + OPT_PGPMIMEASK, /* ask to revert to PGP/MIME when inline fails */ #endif @@ -447,2 +447,4 @@ enum OPTPGPLONGIDS, + OPTPGPAUTOINLINE, + OPTPGPREPLYINLINE, #endif --- pgp-menu-traditional/pgp.c Dec 2002 17:59:51 -0000 3.18 +++ pgp-menu-traditional/pgp.c Feb 2003 11:26:55 -0000 @@ -535,2 +535,5 @@ int mutt_is_application_pgp (BODY *m) } + if (t) + t |= PGPINLINE; + return t; @@ -1057,3 +1060,3 @@ char *pgp_findKeys (ADDRESS *to, ADDRESS int i; - pgp_key_t *k_info, *key; + pgp_key_t *k_info, *key = NULL; --- pgp-menu-traditional/pgplib.h Dec 2002 11:19:40 -0000 3.3 +++ pgp-menu-traditional/pgplib.h Feb 2003 11:26:56 -0000 @@ -27,2 +27,3 @@ #define PGPKEY (APPLICATION_PGP | (1 << 3)) +#define PGPINLINE (APPLICATION_PGP | (1 << 4)) --- pgp-menu-traditional/postpone.c Dec 2002 11:19:40 -0000 3.7 +++ pgp-menu-traditional/postpone.c Feb 2003 11:26:57 -0000 @@ -492,2 +492,9 @@ int mutt_parse_crypt_hdr (char *p, int s + case 'i': + case 'I': +#ifdef HAVE_PGP + pgp |= (PGPINLINE & ~APPLICATION_PGP); +#endif + break; + default: --- pgp-menu-traditional/send.c Dec 2002 22:47:57 -0000 3.15 +++ pgp-menu-traditional/send.c Feb 2003 11:27:01 -0000 @@ -1259,3 +1259,3 @@ ci_send_message (int flags, /* send mod msg->security |= SIGN; - } + } @@ -1279,2 +1279,8 @@ ci_send_message (int flags, /* send mod msg->security |= APPLICATION_PGP; + /* + * we leave this so late because PGPINLINE should be applied only when APPLICATION_PGP is high + * perhaps reserving a bit in crypt.h would be more reasonable, though it doesn't apply with S/MIME + */ + if (option (OPTPGPREPLYINLINE) && (cur->security & PGPINLINE) == PGPINLINE) + msg->security |= PGPINLINE; #endif /* HAVE_PGP */ @@ -1294,2 +1300,10 @@ ci_send_message (int flags, /* send mod } +#ifdef HAVE_PGP + /* + * we leave this so late because PGPINLINE should be applied only when APPLICATION_PGP is high + * perhaps reserving a bit in crypt.h would be more reasonable, though it doesn't apply with S/MIME + */ + if ((msg->security & APPLICATION_PGP) && (option (OPTPGPAUTOINLINE))) + msg->security |= PGPINLINE; +#endif #endif /* HAVE_PGP || HAVE_SMIME */ --- pgp-menu-traditional/sendlib.c Dec 2002 20:56:48 -0000 3.18 +++ pgp-menu-traditional/sendlib.c Feb 2003 11:27:02 -0000 @@ -2429,2 +2429,4 @@ int mutt_write_fcc (const char *path, HE } + if ((hdr->security & PGPINLINE) == PGPINLINE) + fputc ('I', msg->fp); fputc ('\n', msg->fp); --- pgp-menu-traditional/po/ca.po Dec 2002 10:37:21 -0000 3.7 +++ pgp-menu-traditional/po/ca.po Feb 2003 11:27:19 -0000 @@ -596,10 +596,10 @@ msgstr "Xifra" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "(x)ifra, (s)igna, s(i)gna com a, (a)mbdós, o en (c)lar? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "(x)ifra, (s)igna, s(i)gna com a, (a)mbdós, traditional en (l)ínia, o en (c)lar? " # ivb (2001/11/19) -# ivb (x)ifra, (s)igna, s(i)gna com a, (a)mbdós, (c)lar +# ivb (x)ifra, (s)igna, s(i)gna com a, (a)mbdós, traditional en (l)ínia, o en (c)lar #: compose.c:176 -msgid "esabf" -msgstr "xsiac" +msgid "esabtf" +msgstr "xsialc" --- pgp-menu-traditional/po/cs.po Dec 2002 10:37:21 -0000 3.6 +++ pgp-menu-traditional/po/cs.po Feb 2003 11:27:20 -0000 @@ -676,4 +676,4 @@ msgstr "Za¹ifrovat" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "(¹)ifrovat, (p)odepsat, podepsat (j)ako, (o)bojí, èi (n)ic?" +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "(¹)ifrovat, (p)odepsat, podepsat (j)ako, (o)bojí, (t)raditional/pøímý, èi (n)ic?" @@ -681,4 +681,4 @@ msgstr "(¹)ifrovat, (p)odepsat, podepsat #: compose.c:176 -msgid "esabf" -msgstr "¹pjon" +msgid "esabtf" +msgstr "¹pjotn" --- pgp-menu-traditional/po/da.po Dec 2002 10:37:21 -0000 3.6 +++ pgp-menu-traditional/po/da.po Feb 2003 11:27:21 -0000 @@ -566,8 +566,8 @@ msgstr "Kryptér" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "(k)ryptér, (u)nderskriv, underskriv (s)om, (b)egge, (i)ngen PGP" +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "(k)ryptér, (u)nderskriv, underskriv (s)om, (b)egge, (t)raditional integreret, (i)ngen PGP" #: compose.c:176 -msgid "esabf" -msgstr "kusbi" +msgid "esabtf" +msgstr "kusbti" --- pgp-menu-traditional/po/de.po Dec 2002 10:37:21 -0000 3.7 +++ pgp-menu-traditional/po/de.po Feb 2003 11:27:22 -0000 @@ -558,8 +558,8 @@ msgstr "Verschlüsseln mit: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (v)erschl., (s)ign., sign. (a)ls, (b)eides, (k)ein PGP? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (v)erschl., (s)ign., sign. (a)ls, (b)eides, (t)raditionelles Inline, (k)ein PGP? " #: compose.c:176 -msgid "esabf" -msgstr "vsabk" +msgid "esabtf" +msgstr "vsabtk" --- pgp-menu-traditional/po/el.po Dec 2002 10:37:21 -0000 3.7 +++ pgp-menu-traditional/po/el.po Feb 2003 11:27:24 -0000 @@ -690,4 +690,4 @@ msgstr "ÊñõðôïãñÜöçóç ìå: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, Þ (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional êåßìåíï, Þ (f)orget it? " @@ -696,4 +696,4 @@ msgstr "PGP (e)ncrypt, (s)ign, sign (a)s #: compose.c:176 -msgid "esabf" -msgstr "esabf" +msgid "esabtf" +msgstr "esabtf" --- pgp-menu-traditional/po/eo.po Dec 2002 10:37:21 -0000 3.6 +++ pgp-menu-traditional/po/eo.po Feb 2003 11:27:25 -0000 @@ -566,8 +566,8 @@ msgstr "Æifri" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "æ(i)fri, (s)ubskribi, subskribi (k)iel, (a)mbaý, aý (f)orgesi? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "æ(i)fri, (s)ubskribi, subskribi (k)iel, (a)mbaý, (t)raditional \"inline\", aý (f)orgesi? " #: compose.c:176 -msgid "esabf" -msgstr "iskaf" +msgid "esabtf" +msgstr "iskatf" --- pgp-menu-traditional/po/es.po Dec 2002 10:37:22 -0000 3.7 +++ pgp-menu-traditional/po/es.po Feb 2003 11:27:26 -0000 @@ -564,8 +564,9 @@ msgstr "Cifrar" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "¿co(d)ificar, f(i)rmar (c)omo, amb(o)s o ca(n)celar? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "¿co(d)ificar, f(i)rmar (c)omo, amb(o)s, (t)radicional incluido, o ca(n)celar? " + #: compose.c:176 -msgid "esabf" -msgstr "dicon" +msgid "esabtf" +msgstr "dicotn" --- pgp-menu-traditional/po/et.po Dec 2002 10:37:22 -0000 3.8 +++ pgp-menu-traditional/po/et.po Feb 2003 11:27:27 -0000 @@ -559,7 +559,7 @@ msgstr "Krüpti kasutades: " msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (k)rüpti, (a)llkiri, allk. ku(i), (m)õlemad või (u)nusta? " +msgstr "PGP (k)rüpti, (a)llkiri, allk. ku(i), (m)õlemad, (t)raditional kehasse, või (u)nusta? " #: compose.c:176 -msgid "esabf" -msgstr "kaimu" +msgid "esabtf" +msgstr "kaimtu" --- pgp-menu-traditional/po/fr.po Dec 2002 10:37:22 -0000 3.13 +++ pgp-menu-traditional/po/fr.po Feb 2003 11:27:28 -0000 @@ -585,8 +585,8 @@ msgstr "Chiffrer avec : " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "(c)hiffrer PGP, (s)igner, (e)n tant que, les (d)eux, ou (o)ublier ? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "(c)hiffrer PGP, (s)igner, (e)n tant que, les (d)eux, (t)raditionnel en ligne, ou (o)ublier ? " #: compose.c:176 -msgid "esabf" -msgstr "csedo" +msgid "esabtf" +msgstr "csedto" --- pgp-menu-traditional/po/gl.po Dec 2002 10:37:22 -0000 3.6 +++ pgp-menu-traditional/po/gl.po Feb 2003 11:27:30 -0000 @@ -568,8 +568,8 @@ msgstr "Encriptar" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "¿(e)ncriptar, (f)irmar, firmar (c)omo, (a)mbas ou (o)lvidar? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "¿(e)ncriptar, (f)irmar, firmar (c)omo, (a)mbas, (t)raditional interior, ou (o)lvidar? " #: compose.c:176 -msgid "esabf" -msgstr "efcao" +msgid "esabtf" +msgstr "efcato" --- pgp-menu-traditional/po/hu.po Dec 2002 10:37:23 -0000 3.6 +++ pgp-menu-traditional/po/hu.po Feb 2003 11:27:31 -0000 @@ -569,8 +569,8 @@ msgstr "Titkosít" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "(t)itkosít, (a)láír, aláír (m)int, titkosít é(s) aláír, mé(g)se? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "(t)itkosít, (a)láír, aláír (m)int, titkosít é(s) aláír, traditional (b)eágyazott, mé(g)se? " #: compose.c:176 -msgid "esabf" -msgstr "tamsg" +msgid "esabtf" +msgstr "tamsbg" --- pgp-menu-traditional/po/id.po Dec 2002 10:37:23 -0000 3.7 +++ pgp-menu-traditional/po/id.po Feb 2003 11:27:33 -0000 @@ -562,8 +562,8 @@ msgstr "Enkrip dengan: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (e)nkrip, (t)andatangan, tandatangan (s)bg, ke(d)uanya, (b)atal? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (e)nkrip, (t)andatangan, tandatangan (s)bg, ke(d)uanya, traditional (i)nline, (b)atal? " #: compose.c:176 -msgid "esabf" -msgstr "etsdb" +msgid "esabtf" +msgstr "etsdib" --- pgp-menu-traditional/po/it.po Dec 2002 10:37:23 -0000 3.6 +++ pgp-menu-traditional/po/it.po Feb 2003 11:27:34 -0000 @@ -570,8 +570,8 @@ msgstr "Crittografa" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "cifra(e), firma(s), firma come(a), entrambi(b), annulla(f) " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "cifra(e), firma(s), firma come(a), entrambi(b), (t)radizionale in linea , annulla(f) " #: compose.c:176 -msgid "esabf" -msgstr "esabf" +msgid "esabtf" +msgstr "esabtf" --- pgp-menu-traditional/po/ja.po Dec 2002 10:37:23 -0000 3.13 +++ pgp-menu-traditional/po/ja.po Feb 2003 11:27:35 -0000 @@ -558,8 +558,9 @@ msgstr " °Å¹æ²½Êý¼°: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (e)°Å¹æ²½,(s)½ð̾,(a)..¤È¤·¤Æ½ð̾,(b)ξ¼Ô,(f)²ò½ü?" +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (e)°Å¹æ²½,(s)½ð̾,(a)..¤È¤·¤Æ½ð̾,(b)ξ¼Ô,(i)nline,(f)²ò½ü?" + #: compose.c:176 -msgid "esabf" -msgstr "" +msgid "esabtf" +msgstr "esabif" --- pgp-menu-traditional/po/ko.po Dec 2002 10:37:23 -0000 3.9 +++ pgp-menu-traditional/po/ko.po Feb 2003 11:27:36 -0000 @@ -560,8 +560,8 @@ msgstr "¾Ïȣȭ ¹æ½Ä: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP ¾Ïȣȭ(e), ¼­¸í(s), »ç¿ë ¼­¸í(a), µÑ ´Ù(b), Ãë¼Ò(f)? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP ¾Ïȣȭ(e), ¼­¸í(s), »ç¿ë ¼­¸í(a), µÑ ´Ù(b), (i)nline, Ãë¼Ò(f)? " #: compose.c:176 -msgid "esabf" -msgstr "esabf" +msgid "esabtf" +msgstr "esabif" --- pgp-menu-traditional/po/lt.po Dec 2002 10:37:23 -0000 3.6 +++ pgp-menu-traditional/po/lt.po Feb 2003 11:27:38 -0000 @@ -566,5 +566,5 @@ msgstr "Uþðifruoti" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " msgstr "" -"(u)þðifruot, pa(s)iraðyt, pasiraðyt k(a)ip, a(b)u, rinktis (m)ic algoritmà, " +"(u)þðifruot, pa(s)iraðyt, pasiraðyt k(a)ip, a(b)u, traditional (l)aiðke, " "ar (p)amirðti?" @@ -573,4 +573,4 @@ msgstr "" #, fuzzy -msgid "esabf" -msgstr "usabmp" +msgid "esabtf" +msgstr "usablp" @@ -586,4 +586,3 @@ msgid "" msgstr "" -"(u)þðifruot, pa(s)iraðyt, pasiraðyt k(a)ip, a(b)u, rinktis (m)ic algoritmà, " -"ar (p)amirðti?" +"(u)þðifruot, pa(s)iraðyt, uþðifruo(t) su, pasiraðyt k(a)ip, a(b)u, ar (p)amirðti?" @@ -592,3 +591,3 @@ msgstr "" msgid "eswabf" -msgstr "usabmp" +msgstr "ustabp" --- pgp-menu-traditional/po/nl.po Dec 2002 10:37:23 -0000 3.7 +++ pgp-menu-traditional/po/nl.po Feb 2003 11:27:39 -0000 @@ -553,8 +553,8 @@ msgstr "Versleutelen met: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (v)ersleutel, (o)ndertekenen, ondert. (a)ls, (b)eide, (g)een? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (v)ersleutel, (o)ndertekenen, ondert. (a)ls, (b)eide, (t)raditioneel bericht, (g)een? " #: compose.c:176 -msgid "esabf" -msgstr "voabg" +msgid "esabtf" +msgstr "voabtg" --- pgp-menu-traditional/po/pl.po Dec 2002 10:37:23 -0000 3.8 +++ pgp-menu-traditional/po/pl.po Feb 2003 11:27:40 -0000 @@ -560,8 +560,8 @@ msgstr "Zaszyfruj u¿ywaj±c: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (z)aszyfruj, podpi(s)z, podpisz j(a)ko, o(b)a, b(e)z PGP? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (z)aszyfruj, podpi(s)z, podpisz j(a)ko, o(b)a, (t)raditional inline, b(e)z PGP? " #: compose.c:176 -msgid "esabf" -msgstr "zsabe" +msgid "esabtf" +msgstr "zsabte" --- pgp-menu-traditional/po/pt_BR.po Dec 2002 10:37:23 -0000 3.7 +++ pgp-menu-traditional/po/pt_BR.po Feb 2003 11:27:41 -0000 @@ -569,5 +569,5 @@ msgstr "Encriptar" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " msgstr "" -"(e)ncripa, a(s)sina, assina (c)omo, (a)mbos, escolhe (m)ic, ou es(q)uece? " +"(e)ncripa, a(s)sina, assina (c)omo, (a)mbos, (t)raditional em (l)inha, ou es(q)uece? " @@ -575,4 +575,4 @@ msgstr "" #, fuzzy -msgid "esabf" -msgstr "escamq" +msgid "esabtf" +msgstr "escalq" @@ -588,3 +588,3 @@ msgid "" msgstr "" -"(e)ncripa, a(s)sina, assina (c)omo, (a)mbos, escolhe (m)ic, ou es(q)uece? " +"(e)ncripa, a(s)sina, e(n)cripa com, assina (c)omo, (a)mbos, ou es(q)uece? " @@ -593,3 +593,3 @@ msgstr "" msgid "eswabf" -msgstr "escamq" +msgstr "esncaq" --- pgp-menu-traditional/po/ru.po Dec 2002 10:37:24 -0000 3.10 +++ pgp-menu-traditional/po/ru.po Feb 2003 11:27:43 -0000 @@ -567,8 +567,8 @@ msgstr "úÁÛÉÆÒÏ×ÁÔØ: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP (e)ÛÉÆÒ, (s)ÐÏÄÐÉÓØ, (a)ÐÏÄÐÉÓØ ËÁË, (b)ÏÂÁ, (f)ÏÔËÁÚÁÔØÓÑ? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP (e)ÛÉÆÒ, (s)ÐÏÄÐÉÓØ, (a)ÐÏÄÐÉÓØ ËÁË, (b)ÏÂÁ, traditional (i)nline, (f)ÏÔËÁÚÁÔØÓÑ? " #: compose.c:176 -msgid "esabf" -msgstr "esabf" +msgid "esabtf" +msgstr "esabif" --- pgp-menu-traditional/po/sk.po Dec 2002 10:37:24 -0000 3.6 +++ pgp-menu-traditional/po/sk.po Feb 2003 11:27:44 -0000 @@ -574,5 +574,5 @@ msgstr "Za¹ifruj" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " msgstr "" -"(e)-¹ifr, (s)-podp, podp (a)ko, o(b)e, oznaè alg. mi(c), alebo (f)-zabudnú» " +"(e)-¹ifr, (s)-podp, podp (a)ko, o(b)e, (t)raditional inline, alebo (f)-zabudnú» " "na to? " @@ -581,4 +581,4 @@ msgstr "" #, fuzzy -msgid "esabf" -msgstr "esabmf" +msgid "esabtf" +msgstr "esabtf" @@ -594,4 +594,3 @@ msgid "" msgstr "" -"(e)-¹ifr, (s)-podp, podp (a)ko, o(b)e, oznaè alg. mi(c), alebo (f)-zabudnú» " -"na to? " +"(e)-¹ifr, (s)-podp, (w)-¹ifr s, podp (a)ko, o(b)e, alebo (f)-zabudnú» na to? " @@ -600,3 +599,3 @@ msgstr "" msgid "eswabf" -msgstr "esabmf" +msgstr "eswabf" --- pgp-menu-traditional/po/sv.po Dec 2002 10:37:24 -0000 3.7 +++ pgp-menu-traditional/po/sv.po Feb 2003 11:27:45 -0000 @@ -555,8 +555,8 @@ msgstr "Kryptera med: " #: compose.c:175 -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "PGP: (k)ryptera, (s)ignera, signera s(o)m, (b)åda, eller sk(i)ppa det?" +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "PGP: (k)ryptera, (s)ignera, signera s(o)m, (b)åda, (t)raditional infogat, eller sk(i)ppa det?" #: compose.c:176 -msgid "esabf" -msgstr "ksobi" +msgid "esabtf" +msgstr "ksobti" --- pgp-menu-traditional/po/tr.po Dec 2002 10:37:24 -0000 3.6 +++ pgp-menu-traditional/po/tr.po Feb 2003 11:27:47 -0000 @@ -565,5 +565,5 @@ msgstr "Þifrele" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " msgstr "" -"þ(i)frele, i(m)zala, (f)arklý imzala, i(k)isi de, mi(c) algoritmini seç " +"þ(i)frele, i(m)zala, (f)arklý imzala, i(k)isi de, (t)raditional inline, " "yoksa i(p)talmý? " @@ -571,4 +571,4 @@ msgstr "" #: compose.c:176 -msgid "esabf" -msgstr "imfkcp" +msgid "esabtf" +msgstr "imfktp" --- pgp-menu-traditional/po/uk.po Dec 2002 10:37:24 -0000 3.7 +++ pgp-menu-traditional/po/uk.po Feb 2003 11:27:48 -0000 @@ -560,8 +560,8 @@ msgstr "ûÉÆÒÕ×ÁÎÎÑ" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " -msgstr "ÛÉÆÒ.(e), ЦÄÐ.(s), ЦÄÐ. ÑË(a), ÕÓÅ(b) ÞÉ ×¦ÄͦÎÁ(f)? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " +msgstr "ÛÉÆÒ.(e), ЦÄÐ.(s), ЦÄÐ. ÑË(a), ÕÓÅ(b), traditional (i)nline ÞÉ ×¦ÄͦÎÁ(f)? " #: compose.c:176 -msgid "esabf" -msgstr "" +msgid "esabtf" +msgstr "esabif" --- pgp-menu-traditional/po/zh_CN.po Dec 2002 10:37:24 -0000 3.6 +++ pgp-menu-traditional/po/zh_CN.po Feb 2003 11:27:50 -0000 @@ -573,5 +573,5 @@ msgstr "¼ÓÃÜ" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " msgstr "" -"(e)¼ÓÃÜ, (s)Ç©Ãû, (a)ÓñðµÄÉí·ÝÇ©, (b)Á½Õß½ÔÒª, Ñ¡Ôñ (m)ic ÑÝËã·¨ »ò (f)·Å" +"(e)¼ÓÃÜ, (s)Ç©Ãû, (a)ÓñðµÄÉí·ÝÇ©, (b)Á½Õß½ÔÒª, (t)raditional inline, »ò (f)·Å" "Æú£¿" @@ -579,3 +579,3 @@ msgstr "" #: compose.c:176 -msgid "esabf" +msgid "esabtf" msgstr "" --- pgp-menu-traditional/po/zh_TW.po Dec 2002 10:37:24 -0000 3.6 +++ pgp-menu-traditional/po/zh_TW.po Feb 2003 11:27:51 -0000 @@ -565,3 +565,3 @@ msgstr "加密" #, fuzzy -msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, or (f)orget it? " +msgid "PGP (e)ncrypt, (s)ign, sign (a)s, (b)oth, (t)raditional inline, or (f)orget it? " msgstr "(1)加密, (2)ç°½å, (3)用別的身份簽, (4)兩者皆è¦, 或 (5)放棄?" @@ -569,4 +569,4 @@ msgstr "(1)加密, (2)ç°½å, (3)用別ç #: compose.c:176 -msgid "esabf" -msgstr "12345" +msgid "esabtf" +msgstr "1234t5" diffstat-1.68/testing/case15b.ref0000644000000000000000000000117310667374024015363 0ustar rootroot build/Makefile.in | 38 ++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 debian/control | 19 ++++++++++ debian/copyright | 40 ++++++++++++++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case07.pat0000644000000000000000000001043411700441014015211 0ustar rootroot--- /dev/null 1.1 Sun Jul 17 19:46:18 1994 +++ ncurses-1.9.8a_960131_e285r/man/resizeterm.3x Wed Jan 31 20:21:04 1996 @@ -0,0 +1,53 @@ +.\"***************************************************************************** +.\" Testcase for "resizeterm" * +.\" * +.\" A discussion of this file is found at: * +.\" http://invisible-island.net/ncurses/ncurses-license.html#ncurses_1_9_3 * +.\" A later version of this manpage is included as part of ncurses. * +.\"***************************************************************************** +.TH resizeterm 3X "" +. +.SH NAME +\fBresizeterm\fR - change the curses terminal size +. +.SH SYNOPSIS +\fB#include \fR + +\fBint resizeterm(int lines, int columns);\fR +. +.SH DESCRIPTION +This is an extension to the curses library. +It provides callers with a hook into the \fBncurses\fR data to resize windows, +primarily for use by programs running in an X Window terminal (e.g., xterm). +The function \fBresizeterm\fR resizes the standard and current windows +to the specified dimensions, and adjusts other bookkeeping data used by +the \fBncurses\fR library that record the window dimensions. + +When resizing the windows, the function blank-fills the areas that are +extended. The calling application should fill in these areas with +appropriate data. + +The function does not resize other windows. +. +.SH RETURN VALUE +The function returns the integer \fBERR\fR upon failure and \fBOK\fR on success. +It will fail if either of the dimensions less than or equal to zero, +or if an error occurs while (re)allocating memory for the windows. +. +.SH NOTES +While this function is intended to be used to support a signal handler +(i.e., for SIGWINCH), care should be taken to avoid invoking it in a +context where \fBmalloc\fR or \fBrealloc\fR may have been interrupted, +since it uses those functions. +. +.SH SEE ALSO +\fBwresize\fR(3x). +. +.SH AUTHOR +Thomas Dickey (from an equivalent function written in 1988 for BSD curses). +.\"# +.\"# The following sets edit modes for GNU EMACS +.\"# Local Variables: +.\"# mode:nroff +.\"# fill-column:79 +.\"# End: --- /dev/null Sun Jul 17 19:46:18 1994 +++ ncurses-1.9.8a_960131_e285r/man/wresize.3x Wed Jan 31 20:21:04 1996 @@ -0,0 +1,47 @@ +.\"***************************************************************************** +.\" Testcase for "wresize" * +.\" * +.\" A discussion of this file is found at: * +.\" http://invisible-island.net/ncurses/ncurses-license.html#ncurses_1_9_3 * +.\" A later version of this manpage is included as part of ncurses. * +.\" Copyright 1995 by Thomas E. Dickey. All Rights Reserved. * +.\"***************************************************************************** +.TH wresize 3X "" +. +.SH NAME +\fBwresize\fR - resize a curses window +. +.SH SYNOPSIS +\fB#include \fR + +\fBint wresize(WINDOW *win, int lines, int columns);\fR +. +.SH DESCRIPTION +The \fBwresize\fR function reallocates storage for an \fBncurses\fR +window to adjust its dimensions to the specified values. +If either dimension is larger than the current values, the +window's data is filled with blanks that have the current background rendition +(as set by \fBwbkgndset\fR) merged into them. +. +.SH RETURN VALUE +The function returns the integer \fBERR\fR upon failure and \fBOK\fR on success. +It will fail if either of the dimensions less than or equal to zero, +or if an error occurs while (re)allocating memory for the window. +. +.SH NOTES +The only restriction placed on the dimensions is that they be greater than zero. +The dimensions are not compared to \fBcurses\fR screen dimensions to +simplify the logic of \fBresizeterm\fR. +The caller must ensure that the window's dimensions fit within the +actual screen dimensions. +. +.SH SEE ALSO +\fBresizeterm\fR(3x). +. +.SH AUTHOR +Thomas Dickey (from an equivalent function written in 1988 for BSD curses). +.\"# +.\"# The following sets edit modes for GNU EMACS +.\"# Local Variables: +.\"# mode:nroff +.\"# fill-column:79 +.\"# End: diffstat-1.68/testing/case03.ref0000644000000000000000000000024707073762770015225 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case25.ref0000644000000000000000000000055410160421167015211 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 +- cmdtbl | 15 ++++++++++-- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case21u.ref0000644000000000000000000000010010300164553015354 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case40p9.ref0000644000000000000000000000015613777412636015477 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case23R.ref0000644000000000000000000000023411700545541015330 0ustar rootroot README | 1 gkrellm-bfm.c | 99 ++++++++++++---------------------------------------------- 2 files changed, 23 insertions(+), 77 deletions(-) diffstat-1.68/testing/case47r2.ref0000644000000000000000000000062414377643723015501 0ustar rootroot headers-sh.in | 57 ++++++++++++++++++++++++++++--- package/debian/cdialog-dev.install | 11 +++--- package/debian/cdialog.install | 9 +++-- package/debian/cdialog.lintian-overrides | 2 po/makefile.inn | 14 ++++---- samples/inputbox6-utf8 | 4 ++ 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case25p1.ref0000644000000000000000000000055410160421167015452 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 +- cmdtbl | 15 ++++++++++-- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case19b.ref0000644000000000000000000000011410667374025015362 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case39b.ref0000644000000000000000000000010513777406456015375 0ustar rootroot diffstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case32.ref0000644000000000000000000000010511246713507015207 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case37p1.ref0000644000000000000000000000173312133114345015454 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case33f0.ref0000644000000000000000000000011511246713507015437 0ustar rootroot README | 4 2 + 2 - 0 ! 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case26k.ref0000644000000000000000000000367110451755075015403 0ustar rootroot Frame.C | 294 ++++++++++++++++++++------- Frame.H | 21 + Hotkeys.C | 32 ++ Makefile | 2 Menu.C | 70 +++--- README | 18 - Rotated.C | 61 +++-- config.h | 6 debian/changelog | 12 + debian/patched/100_double_ampersand.dpatch | 1 debian/patched/100_fl_filename_name.dpatch | 2 debian/patched/101_visible_focus.dpatch | 1 debian/patched/102_charstruct.dpatch | 1 debian/patched/103_man_typo.dpatch | 1 debian/patched/104_g++-4.1_warning.dpatch | 3 debian/patched/105_double_ampersand.dpatch | 1 debian/patched/201_background_color.dpatch | 2 debian/patches/00list | 8 debian/patches/100_double_ampersand.dpatch | 19 + debian/patches/100_fl_filename_name.dpatch | 20 - debian/patches/101_visible_focus.dpatch | 19 - debian/patches/102_charstruct.dpatch | 45 ---- debian/patches/103_man_typo.dpatch | 19 - debian/patches/104_g++-4.1_warning.dpatch | 58 ----- debian/patches/105_double_ampersand.dpatch | 48 ---- debian/patches/200_Debian_menu.dpatch | 14 - debian/patches/201_background_color.dpatch | 57 ----- debian/patches/202_background_color_2.dpatch | 92 -------- debian/watch | 3 flwm.1 | 4 flwm_wmconfig | 4 logo.fl | 19 + main.C | 99 ++++++--- patch-stamp | 25 -- 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case04.ref0000644000000000000000000000337310276756033015223 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++------------!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case11.pat0000644000000000000000000000042206266007145015216 0ustar rootroot*** test/ncurses.orig.c Sat Dec 21 08:04:03 1996 --- test/ncurses.c Sun Dec 29 00:11:07 1996 *************** *** 2746,2751 **** --- 2746,2752 ---- static void set_terminal_modes(void) { + noraw(); cbreak(); noecho(); scrollok(stdscr, TRUE); diffstat-1.68/testing/case26u.ref0000644000000000000000000000367110451755075015415 0ustar rootroot config.h | 6 debian/changelog | 12 + debian/patched/100_double_ampersand.dpatch | 1 debian/patched/100_fl_filename_name.dpatch | 2 debian/patched/101_visible_focus.dpatch | 1 debian/patched/102_charstruct.dpatch | 1 debian/patched/103_man_typo.dpatch | 1 debian/patched/104_g++-4.1_warning.dpatch | 3 debian/patched/105_double_ampersand.dpatch | 1 debian/patched/201_background_color.dpatch | 2 debian/patches/00list | 8 debian/patches/100_double_ampersand.dpatch | 19 + debian/patches/100_fl_filename_name.dpatch | 20 - debian/patches/101_visible_focus.dpatch | 19 - debian/patches/102_charstruct.dpatch | 45 ---- debian/patches/103_man_typo.dpatch | 19 - debian/patches/104_g++-4.1_warning.dpatch | 58 ----- debian/patches/105_double_ampersand.dpatch | 48 ---- debian/patches/200_Debian_menu.dpatch | 14 - debian/patches/201_background_color.dpatch | 57 ----- debian/patches/202_background_color_2.dpatch | 92 -------- debian/watch | 3 flwm.1 | 4 flwm_wmconfig | 4 Frame.C | 294 ++++++++++++++++++++------- Frame.H | 21 + Hotkeys.C | 32 ++ logo.fl | 19 + main.C | 99 ++++++--- Makefile | 2 Menu.C | 70 +++--- patch-stamp | 25 -- README | 18 - Rotated.C | 61 +++-- 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case27f0.ref0000644000000000000000000000071410664325751015452 0ustar rootroot Makefile | 4 4 + 0 - 0 ! b/Documentation/parport-lowlevel.txt | 29 3 + 26 - 0 ! b/drivers/cpuidle/governors/menu.c | 2 1 + 1 - 0 ! b/drivers/parport/daisy.c | 29 0 + 29 - 0 ! b/fs/select.c | 2 1 + 1 - 0 ! b/include/linux/parport.h | 1 0 + 1 - 0 ! scripts/export_report.pl | 2 1 + 1 - 0 ! 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case17r1.ref0000644000000000000000000000027410277702417015465 0ustar rootroot include/linux/sched.h | 11 +++++++++++ kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case27r2.ref0000644000000000000000000000067310664325751015474 0ustar rootroot Makefile | 4 ++++ b/Documentation/parport-lowlevel.txt | 29 +++-------------------------- b/drivers/cpuidle/governors/menu.c | 2 +- b/drivers/parport/daisy.c | 29 ----------------------------- b/fs/select.c | 2 +- b/include/linux/parport.h | 1 - scripts/export_report.pl | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case49u.ref0000644000000000000000000000011714714413542015406 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case36k.ref0000644000000000000000000000666012133111320015357 0ustar rootroot diffstat.orig/config.cache | 8 !!!!!!!! diffstat.orig/config.cache | 8 ++++---- diffstat.orig/config.h | 1 + diffstat.orig/config.h | 1 + diffstat.orig/config.log | 38 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diffstat.orig/config.log | 38 +++++++++++++++----------------------- diffstat.orig/config.status | 12 !!!!!!!!!!!! diffstat.orig/config.status | 12 ++++++------ diffstat.orig/configure.out |only diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 2 !! diffstat.orig/makefile | 2 +- diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only diffstat/testing/xterm-9.ref |only 80 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case37f0.ref0000644000000000000000000000173312133114345015441 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case01u.ref0000644000000000000000000000405407530534454015402 0ustar rootroot config/cf/hp.cf | 7 +++++ config/cf/hpLib.rules | 2 + config/imake/imakemdep.h | 13 ++++++++++ config/makedepend/main.c | 2 - include/Xos.h | 7 ++++- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - test/xsuite/xtest/src/bin/mc/files.c | 2 - util/patch/malloc.c | 12 +++------ util/patch/pch.c | 2 - config/cf/Imake.cf | 7 +++++ 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case45R.ref0000644000000000000000000000163714320603177015345 0ustar rootroot --unified=2 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case34f0.ref0000644000000000000000000000017011762443774015452 0ustar rootroot quux bar baz | 2 1 + 1 - 0 ! quux bar baz2 | 2 1 + 1 - 0 ! 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case34.ref0000644000000000000000000000014411762443774015225 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case38rr1.ref0000644000000000000000000000045612546615551015657 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case23p1.ref0000644000000000000000000000023407753454053015461 0ustar rootroot README | 1 gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case38lp1.ref0000644000000000000000000000045612546615551015647 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case03Rp0.ref0000644000000000000000000000035411700545533015572 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 1 ! diffstat/config.h | 1 - diffstat/diffstat |binary diffstat/diffstat.o |binary 5 files changed, 1 deletion(-), 1 modification(!) diffstat-1.68/testing/case15.pat0000644000000000000000000003727206527336173015245 0ustar rootroot--- nvi-1.79.orig/build/Makefile.in +++ nvi-1.79/build/Makefile.in @@ -95,15 +95,15 @@ ($(mkdir) $(mandir)/cat1 && $(chmod) $(dmode) $(mandir)/cat1) @echo "Installing man pages: $(mandir) ..." cd $(mandir)/cat1 && $(rm) -f `echo vi.0 | sed '$(transform)'` - $(cp) $(srcdir)/docs/USD.doc/vi.man/vi.0 \ - $(mandir)/cat1/`echo vi.0 | sed '$(transform)'` - cd $(mandir)/cat1 && $(chmod) $(fmode) `echo vi.0 | sed '$(transform)'` - cd $(mandir)/cat1 && $(rm) -f `echo ex.0 | sed '$(transform)'` - cd $(mandir)/cat1 && $(rm) -f `echo view.0 | sed '$(transform)'` - cd $(mandir)/cat1 && $(ln) \ - `echo vi.0 | sed '$(transform)'` `echo ex.0 | sed '$(transform)'` - cd $(mandir)/cat1 && $(ln) \ - `echo vi.0 | sed '$(transform)'` `echo view.0 | sed '$(transform)'` + #$(cp) $(srcdir)/docs/USD.doc/vi.man/vi.0 \ + #$(mandir)/cat1/`echo vi.0 | sed '$(transform)'` + #cd $(mandir)/cat1 && $(chmod) $(fmode) `echo vi.0 | sed '$(transform)'` + #cd $(mandir)/cat1 && $(rm) -f `echo ex.0 | sed '$(transform)'` + #cd $(mandir)/cat1 && $(rm) -f `echo view.0 | sed '$(transform)'` + #cd $(mandir)/cat1 && $(ln) \ + #`echo vi.0 | sed '$(transform)'` `echo ex.0 | sed '$(transform)'` + #cd $(mandir)/cat1 && $(ln) \ + #`echo vi.0 | sed '$(transform)'` `echo view.0 | sed '$(transform)'` [ -d $(mandir)/man1 ] || \ ($(mkdir) $(mandir)/man1 && $(chmod) $(dmode) $(mandir)/man1) cd $(mandir)/man1 && $(rm) -f `echo vi.1 | sed '$(transform)'` @@ -137,16 +137,16 @@ $(chmod) $(dmode) $(datadir)/vi/catalog (cd $(srcdir)/catalog && $(cp) $(cat) $(datadir)/vi/catalog && \ cd $(datadir)/vi/catalog && $(chmod) $(fmode) *) - @echo "Installing Perl scripts: $(datadir)/vi/perl ..." - $(mkdir) $(datadir)/vi/perl && $(chmod) $(dmode) $(datadir)/vi/perl - [ -f VI.pm ] && $(cp) VI.pm $(datadir)/vi/perl && \ - cd $(datadir)/vi/perl && $(chmod) $(fmode) VI.pm) - (cd $(srcdir)/perl_scripts && $(cp) *.pl $(datadir)/vi/perl && \ - cd $(datadir)/vi/perl && $(chmod) $(fmode) *.pl) - @echo "Installing Tcl scripts: $(datadir)/vi/tcl ..." - $(mkdir) $(datadir)/vi/tcl && $(chmod) $(dmode) $(datadir)/vi/tcl - (cd $(srcdir)/tcl_scripts && $(cp) *.tcl $(datadir)/vi/tcl && \ - cd $(datadir)/vi/tcl && $(chmod) $(fmode) *.tcl) + #@echo "Installing Perl scripts: $(datadir)/vi/perl ..." + #$(mkdir) $(datadir)/vi/perl && $(chmod) $(dmode) $(datadir)/vi/perl + #[ -f VI.pm ] && $(cp) VI.pm $(datadir)/vi/perl && \ + # cd $(datadir)/vi/perl && $(chmod) $(fmode) VI.pm) + #(cd $(srcdir)/perl_scripts && $(cp) *.pl $(datadir)/vi/perl && \ + # cd $(datadir)/vi/perl && $(chmod) $(fmode) *.pl) + #@echo "Installing Tcl scripts: $(datadir)/vi/tcl ..." + #$(mkdir) $(datadir)/vi/tcl && $(chmod) $(dmode) $(datadir)/vi/tcl + #(cd $(srcdir)/tcl_scripts && $(cp) *.tcl $(datadir)/vi/tcl && \ + # cd $(datadir)/vi/tcl && $(chmod) $(fmode) *.tcl) @echo "Installing recover script: $(datadir)/vi/recover ..." ($(cp) recover $(datadir)/vi/recover && \ $(chmod) $(emode) $(datadir)/vi/recover) --- nvi-1.79.orig/build/recover +++ nvi-1.79/build/recover @@ -0,0 +1,49 @@ +#!/bin/sh - +# +# @(#)recover.in 8.8 (Berkeley) 10/10/96 +# +# Script to recover nvi edit sessions. + +RECDIR="/var/tmp/vi.recover" +SENDMAIL="/usr/sbin/sendmail" + +echo 'Recovering nvi editor sessions.' + +# Check editor backup files. +vibackup=`echo $RECDIR/vi.*` +if [ "$vibackup" != "$RECDIR/vi.*" ]; then + for i in $vibackup; do + # Only test files that are readable. + if test ! -r $i; then + continue + fi + + # Unmodified nvi editor backup files either have the + # execute bit set or are zero length. Delete them. + if test -x $i -o ! -s $i; then + rm $i + fi + done +fi + +# It is possible to get incomplete recovery files, if the editor crashes +# at the right time. +virecovery=`echo $RECDIR/recover.*` +if [ "$virecovery" != "$RECDIR/recover.*" ]; then + for i in $virecovery; do + # Only test files that are readable. + if test ! -r $i; then + continue + fi + + # Delete any recovery files that are zero length, corrupted, + # or that have no corresponding backup file. Else send mail + # to the user. + recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i` + if test -n "$recfile" -a -s "$recfile"; then + $SENDMAIL -t < $i + else + rm $i + fi + done +fi --- nvi-1.79.orig/debian/README.debian +++ nvi-1.79/debian/README.debian @@ -0,0 +1,14 @@ +nvi for DEBIAN +---------------------- + +This package was debianized by Steve Greenland + on Tue, 29 Oct 1996, using +the new source format. Much of it is based on previous work by Robert +Sanders or , and +Ian Murdock . + +It was downloaded from ftp://mongoose.bostic.com/pub/nvi.tar.gz, +which seems to be the new home site: ftp.cs.berkeley.edu no longer +archives nvi. + +Steve Greenland , Sat, 15 Nov 1997 --- nvi-1.79.orig/debian/changelog +++ nvi-1.79/debian/changelog @@ -0,0 +1,53 @@ +nvi (1.79-5) frozen unstable; urgency=low + + * Fixed removal of editor alternative in prerm (reported by Dale Scheetz) + + -- Steve Greenland Sun, 10 May 1998 18:54:02 -0500 + +nvi (1.79-4) unstable; urgency=low + + * fixed uncompressed alternatives links (closes:Bug#16171) + * fixed build problem (clean failed when already clean) (closes:Bug#15263) + + -- Steve Greenland Sun, 5 Apr 1998 13:31:46 -0500 + +nvi (1.79-3) frozen unstable; urgency=low + + * Rebuilt with clean md5sum file. (closes:Bug#19377,Bug#18683) + + -- Steve Greenland Thu, 19 Mar 1998 22:14:12 -0600 + +nvi (1.79-2) unstable; urgency=low + + * Fixed build (actually clean) procedure (Bug#15263) + + -- Steve Greenland Fri, 28 Nov 1997 13:58:17 -0600 + +nvi (1.79-1) unstable; urgency=low + + * Removed cleanup of nvi-1.34-4 from postinst, shouldn't be necessary + any longer (Bug #6563) + * Removed /usr/man/cat1 from package (Bug #6240, #8226) + * Fixed permissions on executables (and man pages) (Bug #5998) + * New upstream version (Bug #14086) + * Compiled for libc6 (Bug #11709) + * debian/rules calls 'make distclean' on clean to remove configuration stuff + * Added update-alternatve calls to support Debian's /usr/bin/editor. + + -- Steve Greenland Sat, 15 Nov 1997 17:50:02 -0600 + +nvi (1.76-1) unstable; urgency=low + + * New upstream version. (Fixes Bugs 2825, 3967, 4511) + * Modified Makefile.in permissions. + * New source package format, using debstd (from debmake package). + * Modified Makefile.in to not install pre-formatted man pages. + * Cleaned up postinst to avoid dangling links from update alternatives. + * Modified Makefile.in to not install Perl, Tcl, and Tk stuff. (Will + probably add back later as a separate package.) + + -- Steve Greenland Sun, 1 Dec 1996 22:03:37 -0600 + +Local variables: +mode: debian-changelog +End: --- nvi-1.79.orig/debian/conffiles +++ nvi-1.79/debian/conffiles @@ -0,0 +1 @@ +/etc/rc.boot/nvi --- nvi-1.79.orig/debian/control +++ nvi-1.79/debian/control @@ -0,0 +1,19 @@ +Source: nvi +Section: editors +Priority: important +Maintainer: Steve Greenland +Standards-Version: 2.4.0.0 + +Package: nvi +Architecture: any +Depends: ${shlibs:Depends} +Description: 4.4BSD re-implementation of vi. + Vi is the original screen based text editor for Unix systems. + It is considered the standard text editor, and is available on + almost all Unix systems. + . + Nvi is intended as a "bug-for-bug compatible" clone of the original + BSD vi editor. As such, it doesn't have a lot of snazzy features as do + some of the other vi clones such as elvis and vim. However, if all + you want is vi, this is the one to get. + --- nvi-1.79.orig/debian/postinst +++ nvi-1.79/debian/postinst @@ -0,0 +1,21 @@ +#! /bin/sh + +# Remove the old view link (nvi-1.34-14, maybe earlier) +# Don't bother the user with it. +update-alternatives --remove view /usr/bin/nvi >/dev/null + +update-alternatives --install /usr/bin/ex ex /usr/bin/nex 30 \ + --slave /usr/man/man1/ex.1.gz ex.1.gz /usr/man/man1/nex.1.gz +update-alternatives --install /usr/bin/vi vi /usr/bin/nvi 30 \ + --slave /usr/man/man1/vi.1.gz vi.1.gz /usr/man/man1/nvi.1.gz +update-alternatives --install /usr/bin/view view /usr/bin/nview 30 \ + --slave /usr/man/man1/view.1.gz view.1.gz /usr/man/man1/nview.1.gz + +# These are for the generic editor links + +update-alternatives --install /usr/bin/editor editor /usr/bin/nvi 100 \ + --slave /usr/man/man1/editor.1.gz editor.1.gz /usr/man/man1/nvi.1.gz + + + +exit 0 --- nvi-1.79.orig/debian/prerm +++ nvi-1.79/debian/prerm @@ -0,0 +1,11 @@ +#! /bin/sh + +if [ "$1" != "upgrade" ] +then + update-alternatives --remove editor /usr/bin/nvi + update-alternatives --remove ex /usr/bin/nex + update-alternatives --remove vi /usr/bin/nvi + update-alternatives --remove view /usr/bin/nview +fi + +exit 0 --- nvi-1.79.orig/debian/rc.boot +++ nvi-1.79/debian/rc.boot @@ -0,0 +1,58 @@ +#!/bin/sh +# @(#)recover.script 8.7 (Berkeley) 8/16/94 +# +# Script to recover nvi edit sessions. +# +RECDIR=/var/tmp/vi.recover +SENDMAIL=/usr/lib/sendmail + +case "$1" in + start) + echo -n 'Recovering nvi editor sessions... ' + + # Check editor backup files. + vibackup=`echo $RECDIR/vi.*` + if [ "$vibackup" != "$RECDIR/vi.*" ]; then + for i in $vibackup; do + # Only test files that are readable. + if test ! -r $i; then + continue + fi + + # Unmodified nvi editor backup files either have the + # execute bit set or are zero length. Delete them. + if test -x $i -o ! -s $i; then + rm $i + fi + done + fi + + # It is possible to get incomplete recovery files, if the editor crashes + # at the right time. + virecovery=`echo $RECDIR/recover.*` + if [ "$virecovery" != "$RECDIR/recover.*" ]; then + for i in $virecovery; do + # Only test files that are readable. + if test ! -r $i; then + continue + fi + + # Delete any recovery files that are zero length, corrupted, + # or that have no corresponding backup file. Else send mail + # to the user. + recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i` + if test -n "$recfile" -a -s "$recfile"; then + $SENDMAIL -t < $i + else + rm $i + fi + done + fi + + echo "done." + ;; + stop) + ;; +esac + +exit 0 --- nvi-1.79.orig/debian/rules +++ nvi-1.79/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# Sample debian.rules file - for GNU Hello (1.3). +# Copyright 1994,1995 by Ian Jackson. +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified + +# There used to be `source' and `diff' targets in this file, and many +# packages also had `changes' and `dist' targets. These functions +# have been taken over by dpkg-source, dpkg-genchanges and +# dpkg-buildpackage in a package-independent way, and so these targets +# are obsolete. + +package=nvi + +# This is needed for the install target +curdir=$(shell pwd) + +# This bit with build.deb is because the nvi package has a +# 'build' directory, and the normal use of 'touch build' won't +# work. + +build: build.deb + +build.deb: + $(checkdir) + (cd ./build && CC=gcc ADDCPPFLAGS="-O2 -g" ./configure --prefix=/usr --disable-curses --datadir=/usr/lib --program-prefix=n) + (cd ./build && make) + touch build.deb + + +clean: + $(checkdir) + -rm -f build.deb + (cd ./build && make distclean || /bin/true ) + -rm -rf *~ debian/tmp debian/*~ debian/files* + +binary-indep: checkroot build.deb + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build.deb + $(checkdir) + -rm -rf debian/tmp + install -d debian/tmp/usr/bin debian/tmp/etc + (cd build && make install prefix=$(curdir)/debian/tmp/usr) + -rmdir debian/tmp/usr/man/cat1 + chmod u+w debian/tmp/usr/bin/* debian/tmp/usr/man/man1/nvi.* + cp LICENSE debian/copyright + # Compress the man pages -- debstd can't do this because they + # are all links. Also, make them soft links instead of hard links + (cd debian/tmp/usr/man/man1 && \ + rm {nex,nview}.1 && gzip -9 nvi.1 && \ + ln -s nvi.1.gz nex.1.gz && ln -s nvi.1.gz nview.1.gz) +# Must have debmake installed for this to work. Otherwise please copy +# /usr/bin/debstd into the debian directory and change debstd to debian/debstd + debstd -m docs/changelog README FAQ + # + # Compress the changelogs if debstd didn't + # + ( set -e && cd debian/tmp/usr/doc/nvi && \ + if [ -f changelog ] ; then gzip -9 changelog ; fi &&\ + if [ -f changelog.Debian ] ; then gzip -9 changelog.Debian;fi) + dpkg-gencontrol + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + dpkg --build debian/tmp .. + + +define checkdir + test -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot --- nvi-1.79.orig/debian/substvars +++ nvi-1.79/debian/substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6, ncurses3.4 --- nvi-1.79.orig/debian/copyright +++ nvi-1.79/debian/copyright @@ -0,0 +1,40 @@ +The vi program is freely redistributable. You are welcome to copy, modify +and share it with others under the conditions listed in this file. If any +company (not any individual!) finds vi sufficiently useful that you would +have purchased it, or if any company wishes to redistribute it, contributions +to the authors would be appreciated. + +/*- + * Copyright (c) 1991, 1992, 1993, 1994 + * The Regents of the University of California. All rights reserved. + * Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996 + * Keith Bostic. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ diffstat-1.68/testing/case04k.ref0000644000000000000000000000666007530543207015374 0ustar rootroot diffstat.orig/config.cache | 8 !!!!!!!! diffstat.orig/config.cache | 8 ++++---- diffstat.orig/config.h | 1 + diffstat.orig/config.h | 1 + diffstat.orig/config.log | 38 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diffstat.orig/config.log | 38 +++++++++++++++----------------------- diffstat.orig/config.status | 12 !!!!!!!!!!!! diffstat.orig/config.status | 12 ++++++------ diffstat.orig/configure.out |only diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 2 !! diffstat.orig/makefile | 2 +- diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only diffstat/testing/xterm-9.ref |only 80 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case18b.ref0000644000000000000000000000005510667374025015365 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case27k.ref0000644000000000000000000000067310664325751015403 0ustar rootroot Makefile | 4 ++++ b/Documentation/parport-lowlevel.txt | 29 +++-------------------------- b/drivers/cpuidle/governors/menu.c | 2 +- b/drivers/parport/daisy.c | 29 ----------------------------- b/fs/select.c | 2 +- b/include/linux/parport.h | 1 - scripts/export_report.pl | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case36f0.ref0000644000000000000000000000340012133111320015417 0ustar rootroot diffstat.orig/config.cache | 16 4 + 4 - 8 ! diffstat.orig/config.h | 2 2 + 0 - 0 ! diffstat.orig/config.log | 76 15 + 23 - 38 ! diffstat.orig/config.status | 24 6 + 6 - 12 ! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 1 + 1 - 2 ! diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case31lR.ref0000644000000000000000000000010011700545544015476 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case43Rp0.ref0000644000000000000000000000163714320603177015603 0ustar rootroot --unified=0 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case37u.ref0000644000000000000000000000173312133114345015400 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case41R.ref0000644000000000000000000000020613777421437015344 0ustar rootroot /dev/null | 6 ------ a/hello.c | 2 +- a/hello.o |binary b/hello.c | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) diffstat-1.68/testing/case38r.pat0000644000000000000000000001031212546610563015412 0ustar rootrootdiff -r -u -N "testing/READ ME!" "test ink/READ ME!" --- "testing/READ ME!" 2004-12-18 07:19:21.000000000 -0500 +++ "test ink/READ ME!" 1969-12-31 19:00:00.000000000 -0500 @@ -1,5 +0,0 @@ --- @Id: README,v 1.1 2004/12/18 12:19:21 tom Exp @ - -The files in this directory are used for regression-checks of diffstat. The -full test-suite is not distributed since some of the test-data is not freely -distributable. diff -r -u -N "testing/README ?" "test ink/README ?" --- "testing/README ?" 1969-12-31 19:00:00.000000000 -0500 +++ "test ink/README ?" 2004-12-18 07:19:21.000000000 -0500 @@ -0,0 +1,5 @@ +-- @Id: README,v 1.1 2004/12/18 12:19:21 tom Exp @ + +The files in this directory are used for regression-checks of diffstat. The +full test-suite is not distributed since some of the test-data is not freely +distributable. diff -r -u -N "testing/run atac.sh" "test ink/run atac.sh" --- "testing/run atac.sh" 1998-01-16 20:10:06.000000000 -0500 +++ "test ink/run atac.sh" 1969-12-31 19:00:00.000000000 -0500 @@ -1,6 +0,0 @@ -#!/bin/sh -# @Id: run_atac.sh,v 1.2 1998/01/17 01:10:06 tom Exp @ -rm -f /tmp/atac_dir/* -run_test.sh -atac -u ../*.atac /tmp/atac_dir/* -atacmin ../*.atac /tmp/atac_dir/* diff -r -u -N testing/run_atac.sh "test ink/run_atac.sh" --- testing/run_atac.sh 1969-12-31 19:00:00.000000000 -0500 +++ "test ink/run_atac.sh" 1998-01-16 20:10:06.000000000 -0500 @@ -0,0 +1,6 @@ +#!/bin/sh +# @Id: run_atac.sh,v 1.2 1998/01/17 01:10:06 tom Exp @ +rm -f /tmp/atac_dir/* +run_test.sh +atac -u ../*.atac /tmp/atac_dir/* +atacmin ../*.atac /tmp/atac_dir/* diff -r -u -N "testing/run test.sh" "test ink/run test.sh" --- "testing/run test.sh" 2012-01-03 05:18:14.000000000 -0500 +++ "test ink/run test.sh" 1969-12-31 19:00:00.000000000 -0500 @@ -1,51 +0,0 @@ -#!/bin/sh -# @Id: run_test.sh,v 1.15 2012/01/03 10:18:14 tom Exp @ -# Test-script for DIFFSTAT - -# change this for ad hoc testing of compression -#TYPE=.pat.Z -#TYPE=.pat.gz -#TYPE=.pat.bz2 -TYPE=.pat - -if [ $# = 0 ] -then - eval '"$0" *${TYPE}' - exit -fi -PATH=`cd ..;pwd`:$PATH; export PATH -# Sanity check, remembering that not every system has `which'. -(which diffstat) >/dev/null 2>/dev/null && echo "Checking `which diffstat`" - -for item in $* -do - echo "testing `basename $item $TYPE`" - for OPTS in "" "-p1" "-p9" "-f0" "-u" "-k" "-r1" "-r2" "-b" "-R" "-Rp0" - do - NAME=`echo $item | sed -e 's/'$TYPE'$//'` - DATA=${NAME}${TYPE} - if [ ".$OPTS" != "." ] ; then - NAME=$NAME`echo ./$OPTS|sed -e 's@./-@@'` - fi - TEST=`basename $NAME` - diffstat -e $TEST.err -o $TEST.out $OPTS $DATA - if [ -f $NAME.ref ] - then - diff -b $NAME.ref $TEST.out >check.out - if test -s check.out - then - echo "?? fail: $TEST" - ls -l check.out - cat check.out - else - echo "** ok: $TEST" - rm -f $TEST.out - rm -f $TEST.err - fi - else - echo "** save: $TEST" - mv $TEST.out $NAME.ref - rm -f $TEST.err - fi - done -done diff -r -u -N testing/run_test.sh "test ink/run_test.sh" --- testing/run_test.sh 1969-12-31 19:00:00.000000000 -0500 +++ "test ink/run_test.sh" 2012-01-03 05:18:14.000000000 -0500 @@ -0,0 +1,51 @@ +#!/bin/sh +# @Id: run_test.sh,v 1.15 2012/01/03 10:18:14 tom Exp @ +# Test-script for DIFFSTAT + +# change this for ad hoc testing of compression +#TYPE=.pat.Z +#TYPE=.pat.gz +#TYPE=.pat.bz2 +TYPE=.pat + +if [ $# = 0 ] +then + eval '"$0" *${TYPE}' + exit +fi +PATH=`cd ..;pwd`:$PATH; export PATH +# Sanity check, remembering that not every system has `which'. +(which diffstat) >/dev/null 2>/dev/null && echo "Checking `which diffstat`" + +for item in $* +do + echo "testing `basename $item $TYPE`" + for OPTS in "" "-p1" "-p9" "-f0" "-u" "-k" "-r1" "-r2" "-b" "-R" "-Rp0" + do + NAME=`echo $item | sed -e 's/'$TYPE'$//'` + DATA=${NAME}${TYPE} + if [ ".$OPTS" != "." ] ; then + NAME=$NAME`echo ./$OPTS|sed -e 's@./-@@'` + fi + TEST=`basename $NAME` + diffstat -e $TEST.err -o $TEST.out $OPTS $DATA + if [ -f $NAME.ref ] + then + diff -b $NAME.ref $TEST.out >check.out + if test -s check.out + then + echo "?? fail: $TEST" + ls -l check.out + cat check.out + else + echo "** ok: $TEST" + rm -f $TEST.out + rm -f $TEST.err + fi + else + echo "** save: $TEST" + mv $TEST.out $NAME.ref + rm -f $TEST.err + fi + done +done diffstat-1.68/testing/case38rp1.ref0000644000000000000000000000045612546615551015655 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case11.ref0000644000000000000000000000006410300164551015175 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case05Rp0.ref0000644000000000000000000000010011700545534015562 0ustar rootroot diffstat/config.cache | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case20r1.ref0000644000000000000000000000017210277702417015454 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case09.ref0000644000000000000000000000002106122641403015200 0ustar rootroot 0 files changed diffstat-1.68/testing/case13k.ref0000644000000000000000000000030310276756342015367 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case33p1.ref0000644000000000000000000000010511246713507015451 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case35p9.ref0000644000000000000000000000024712133111243015453 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case14u.ref0000644000000000000000000000006410300164552015366 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case33.ref0000644000000000000000000000010511246713507015210 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case36R.ref0000644000000000000000000000337312133111320015324 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 16 ++--!!!! diffstat/config.h | 2 - diffstat/config.log | 76 +++++++++++--------!!!!!!!!!!!!!!!!!! diffstat/config.status | 24 +++---!!!!!! diffstat/diffstat |binary diffstat/diffstat.o |binary diffstat/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 34 insertions(+), 28 deletions(-), 60 modifications(!) diffstat-1.68/testing/case31l.ref0000644000000000000000000000010011234653226015353 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case41.ref0000644000000000000000000000016313777421437015224 0ustar rootroot b/hello.c | 8 +++++++- b/hello.o |binary hello.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case42r2.ref0000644000000000000000000000047514320561540015460 0ustar rootroot testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/case39k.ref | 1 + testing2/full.log |only testing2/full.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case47r1.ref0000644000000000000000000000062714377643723015503 0ustar rootroot headers-sh.in | 57 ++++++++++++++++++++++++++++--- package/debian/cdialog-dev.install | 11 +++--- package/debian/cdialog.install | 9 +++-- package/debian/cdialog.lintian-overrides | 2 +- po/makefile.inn | 14 ++++---- samples/inputbox6-utf8 | 4 ++- 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case46u.ref0000644000000000000000000000121614320603177015402 0ustar rootroot configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- NEWS | 9 ++++++++- package/debian/changelog | 4 ++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- VERSION | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case25u.ref0000644000000000000000000000055410160421167015376 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 +- cmdtbl | 15 ++++++++++-- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case17R.ref0000644000000000000000000000030611700545540015332 0ustar rootroot include/linux/sched.h.user | 11 ---------- kernel/sched.c.user | 47 --------------------------------------------- kernel/user.c.user | 2 - 3 files changed, 60 deletions(-) diffstat-1.68/testing/case01k.ref0000644000000000000000000000405407530543206015363 0ustar rootroot config/cf/Imake.cf | 7 +++++ config/cf/hp.cf | 7 +++++ config/cf/hpLib.rules | 2 + config/imake/imakemdep.h | 13 ++++++++++ config/makedepend/main.c | 2 - include/Xos.h | 7 ++++- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - test/xsuite/xtest/src/bin/mc/files.c | 2 - util/patch/malloc.c | 12 +++------ util/patch/pch.c | 2 - 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case17Rp0.ref0000644000000000000000000000032111700545540015567 0ustar rootroot linux/include/linux/sched.h.user | 11 --------- linux/kernel/sched.c.user | 47 --------------------------------------- linux/kernel/user.c.user | 2 - 3 files changed, 60 deletions(-) diffstat-1.68/testing/case48f0.ref0000644000000000000000000000011614714413374015450 0ustar rootroot unknown | 5 3 + 2 - 0 ! 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case39.ref0000644000000000000000000000015613777406456015241 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case45f0.ref0000644000000000000000000000136314320603177015445 0ustar rootroot NEWS | 9 8 + 1 - 0 ! VERSION | 2 1 + 1 - 0 ! configure | 4 2 + 2 - 0 ! configure.in | 6 3 + 3 - 0 ! dist.mk | 4 2 + 2 - 0 ! misc/gen-pkgconfig.in | 8 6 + 2 - 0 ! package/debian-mingw/changelog | 4 2 + 2 - 0 ! package/debian-mingw64/changelog | 4 2 + 2 - 0 ! package/debian/changelog | 4 2 + 2 - 0 ! package/mingw-ncurses.nsi | 4 2 + 2 - 0 ! package/mingw-ncurses.spec | 2 1 + 1 - 0 ! package/ncurses.spec | 2 1 + 1 - 0 ! package/ncursest.spec | 2 1 + 1 - 0 ! 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case12k.ref0000644000000000000000000000022207605676150015366 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case21b.ref0000644000000000000000000000010010667374025015346 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case45u.ref0000644000000000000000000000121614320603177015401 0ustar rootroot configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- NEWS | 9 ++++++++- package/debian/changelog | 4 ++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- VERSION | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case48r1.ref0000644000000000000000000000010714714413375015466 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case09k.ref0000644000000000000000000000002107530543207015362 0ustar rootroot 0 files changed diffstat-1.68/testing/case38lr2.ref0000644000000000000000000000045612546615551015652 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case24u.ref0000644000000000000000000000056110144014205015364 0ustar rootroot gen/gen.c | 5 ++--- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++++---- samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case13r1.ref0000644000000000000000000000030210300177115015435 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!! def7_uni.tbl | 118 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case14.pat0000644000000000000000000000041106457770454015233 0ustar rootroot*** /tmp/xx010 Sat Dec 21 08:04:03 1996 --- test/ncurses.c Sun Dec 29 00:11:07 1996 *************** *** 2746,2751 **** --- 2746,2752 ---- static void set_terminal_modes(void) { + noraw(); cbreak(); noecho(); scrollok(stdscr, TRUE); diffstat-1.68/testing/case13r2.ref0000644000000000000000000000030210277702416015451 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!! def7_uni.tbl | 118 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case07r2.ref0000644000000000000000000000026610277702416015465 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case31lr2.ref0000644000000000000000000000010011237775205015624 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case38r.ref0000644000000000000000000000045612546615551015414 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case13Rp0.ref0000644000000000000000000000030311700545536015570 0ustar rootroot UCAux.c | 42 ++++++++!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 18 insertions(+), 1 deletion(-), 141 modifications(!) diffstat-1.68/testing/case32p1.ref0000644000000000000000000000010511246713507015450 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case43R.ref0000644000000000000000000000163714320603177015343 0ustar rootroot --unified=0 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case22u.ref0000644000000000000000000000221407623304420015370 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case14Rp0.ref0000644000000000000000000000006411700545537015576 0ustar rootroot /tmp/xx010 | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case08p1.ref0000644000000000000000000000121710276756033015463 0ustar rootroot build/x11r6/XFree86-current/xc/programs/xterm/Imakefile | 15 +++++++++ build/x11r6/XFree86-current/xc/programs/xterm/Tekproc.c | 7 ++++ build/x11r6/XFree86-current/xc/programs/xterm/charproc.c | 22 ++++++++++++++ build/x11r6/XFree86-current/xc/programs/xterm/data.c | 4 ++ build/x11r6/XFree86-current/xc/programs/xterm/main.c | 20 +++--!!!!!! build/x11r6/XFree86-current/xc/programs/xterm/menu.c | 6 !!! build/x11r6/XFree86-current/xc/programs/xterm/misc.c | 6 +++ build/x11r6/XFree86-current/xc/programs/xterm/scrollbar.c | 2 ! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case13p1.ref0000644000000000000000000000030310276756034015453 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case48r2.ref0000644000000000000000000000010714714413375015467 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case21f0.ref0000644000000000000000000000010410300164553015421 0ustar rootroot diffstat.c | 8 0 + 0 - 8 ! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case24R.ref0000644000000000000000000000056111700545542015335 0ustar rootroot gen/gen.c | 5 +++-- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++------ samples/ncurses2-acs_and_scroll.adb | 15 +++++++-------- samples/ncurses2-acs_display.adb | 21 +++++++++------------ 5 files changed, 26 insertions(+), 31 deletions(-) diffstat-1.68/testing/case18f0.ref0000644000000000000000000000007010300164552015430 0ustar rootroot foo | 1 0 + 1 - 0 ! 1 file changed, 1 deletion(-) diffstat-1.68/testing/case19k.ref0000644000000000000000000000011410300164552015355 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case48Rp0.ref0000644000000000000000000000010714714413375015605 0ustar rootroot unknown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diffstat-1.68/testing/case41p1.ref0000644000000000000000000000013413777421437015463 0ustar rootroot hello.c | 9 ++++++++- hello.o |binary 2 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case19p1.ref0000644000000000000000000000011410300164552015443 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case10.ref0000644000000000000000000000035107073762772015221 0ustar rootroot /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ xc/programs/Xserver/Xi/allowev.c | 6 ! 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case44.pat0000644000000000000000000001567314320570414015234 0ustar rootrootdiff '--unified=1' -r ncurses-6.3-20221001/configure ncurses-6.3-20221008/configure --- ncurses-6.3-20221001/configure 2022-10-01 09:25:01.000000000 -0400 +++ ncurses-6.3-20221008/configure 2022-10-08 12:55:47.000000000 -0400 @@ -1,3 +1,3 @@ #! /bin/sh -# From configure.in Revision: 1.749 . +# From configure.in Revision: 1.750 . # Guess values for system-dependent variables and create Makefiles. @@ -15411,3 +15411,3 @@ ;; -(789) +([789]) NCURSES_MOUSE_VERSION=3 diff '--unified=1' -r ncurses-6.3-20221001/configure.in ncurses-6.3-20221008/configure.in --- ncurses-6.3-20221001/configure.in 2022-10-01 09:16:18.000000000 -0400 +++ ncurses-6.3-20221008/configure.in 2022-10-08 11:54:35.000000000 -0400 @@ -31,3 +31,3 @@ dnl -dnl $Id: configure.in,v 1.749 2022/10/01 13:16:18 tom Exp $ +dnl $Id: configure.in,v 1.750 2022/10/08 15:54:35 tom Exp $ dnl Process this file with autoconf to produce a configure script. @@ -40,3 +40,3 @@ AC_PREREQ(2.52.20210101) -AC_REVISION($Revision: 1.749 $) +AC_REVISION($Revision: 1.750 $) AC_INIT(ncurses/base/lib_initscr.c) @@ -1274,3 +1274,3 @@ ;; -([789]) +([[789]]) NCURSES_MOUSE_VERSION=3 diff '--unified=1' -r ncurses-6.3-20221001/dist.mk ncurses-6.3-20221008/dist.mk --- ncurses-6.3-20221001/dist.mk 2022-10-01 09:15:31.000000000 -0400 +++ ncurses-6.3-20221008/dist.mk 2022-10-08 06:25:44.000000000 -0400 @@ -28,3 +28,3 @@ ############################################################################## -# $Id: dist.mk,v 1.1505 2022/10/01 13:15:31 tom Exp $ +# $Id: dist.mk,v 1.1506 2022/10/08 10:25:44 tom Exp $ # Makefile for creating ncurses distributions. @@ -40,3 +40,3 @@ NCURSES_MINOR = 3 -NCURSES_PATCH = 20221001 +NCURSES_PATCH = 20221008 diff '--unified=1' -r ncurses-6.3-20221001/misc/gen-pkgconfig.in ncurses-6.3-20221008/misc/gen-pkgconfig.in --- ncurses-6.3-20221001/misc/gen-pkgconfig.in 2022-08-27 15:07:03.000000000 -0400 +++ ncurses-6.3-20221008/misc/gen-pkgconfig.in 2022-10-08 12:45:20.000000000 -0400 @@ -1,3 +1,3 @@ #!@SHELL@ -# $Id: gen-pkgconfig.in,v 1.55 2022/08/27 19:07:03 tom Exp $ +# $Id: gen-pkgconfig.in,v 1.56 2022/10/08 16:45:20 tom Exp $ ############################################################################## @@ -105,3 +105,7 @@ lib_check=`echo "x$opt" | sed -e 's/^.-L//'` - [ -d "$lib_check" ] || continue + # on a new/nonstandard install, $libdir may not yet exist at this point + if [ "$libdir" != "$lib_check" ] + then + [ -d "$lib_check" ] || continue + fi case "$lib_check" in diff '--unified=1' -r ncurses-6.3-20221001/NEWS ncurses-6.3-20221008/NEWS --- ncurses-6.3-20221001/NEWS 2022-10-01 18:20:28.000000000 -0400 +++ ncurses-6.3-20221008/NEWS 2022-10-08 12:50:03.000000000 -0400 @@ -28,3 +28,3 @@ ------------------------------------------------------------------------------- --- $Id: NEWS,v 1.3862 2022/10/01 22:20:28 tom Exp $ +-- $Id: NEWS,v 1.3864 2022/10/08 16:50:03 tom Exp $ ------------------------------------------------------------------------------- @@ -48,2 +48,9 @@ +20221008 + + correct a switch-statement case in configure script to allow for test + builds with ABI=7. + + modify misc/gen-pkgconfig.in to allow for the case where the library + directory does not yet exist, since this is processed before doing an + install (report by Michal Liszcz). + 20221001 diff '--unified=1' -r ncurses-6.3-20221001/package/debian/changelog ncurses-6.3-20221008/package/debian/changelog --- ncurses-6.3-20221001/package/debian/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,2 +1,2 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low @@ -4,3 +4,3 @@ - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 diff '--unified=1' -r ncurses-6.3-20221001/package/debian-mingw/changelog ncurses-6.3-20221008/package/debian-mingw/changelog --- ncurses-6.3-20221001/package/debian-mingw/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,2 +1,2 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low @@ -4,3 +4,3 @@ - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 diff '--unified=1' -r ncurses-6.3-20221001/package/debian-mingw64/changelog ncurses-6.3-20221008/package/debian-mingw64/changelog --- ncurses-6.3-20221001/package/debian-mingw64/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw64/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,2 +1,2 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low @@ -4,3 +4,3 @@ - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 diff '--unified=1' -r ncurses-6.3-20221001/package/mingw-ncurses.nsi ncurses-6.3-20221008/package/mingw-ncurses.nsi --- ncurses-6.3-20221001/package/mingw-ncurses.nsi 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.nsi 2022-10-08 06:25:44.000000000 -0400 @@ -1,2 +1,2 @@ -; $Id: mingw-ncurses.nsi,v 1.544 2022/10/01 09:34:57 tom Exp $ +; $Id: mingw-ncurses.nsi,v 1.545 2022/10/08 10:25:44 tom Exp $ @@ -12,3 +12,3 @@ !define VERSION_YYYY "2022" -!define VERSION_MMDD "1001" +!define VERSION_MMDD "1008" !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD} diff '--unified=1' -r ncurses-6.3-20221001/package/mingw-ncurses.spec ncurses-6.3-20221008/package/mingw-ncurses.spec --- ncurses-6.3-20221001/package/mingw-ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -5,3 +5,3 @@ Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 diff '--unified=1' -r ncurses-6.3-20221001/package/ncurses.spec ncurses-6.3-20221008/package/ncurses.spec --- ncurses-6.3-20221001/package/ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -3,3 +3,3 @@ Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 diff '--unified=1' -r ncurses-6.3-20221001/package/ncursest.spec ncurses-6.3-20221008/package/ncursest.spec --- ncurses-6.3-20221001/package/ncursest.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncursest.spec 2022-10-08 06:25:44.000000000 -0400 @@ -3,3 +3,3 @@ Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 diff '--unified=1' -r ncurses-6.3-20221001/VERSION ncurses-6.3-20221008/VERSION --- ncurses-6.3-20221001/VERSION 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/VERSION 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -5:0:10 6.3 20221001 +5:0:10 6.3 20221008 diffstat-1.68/testing/case12b.ref0000644000000000000000000000022210667374023015351 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case01R.ref0000644000000000000000000000405411700545532015330 0ustar rootroot config/cf/Imake.cf | 7 ----- config/cf/hp.cf | 7 ----- config/cf/hpLib.rules | 2 - config/imake/imakemdep.h | 13 ---------- config/makedepend/main.c | 2 - include/Xos.h | 7 ----- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - test/xsuite/xtest/src/bin/mc/files.c | 2 - util/patch/malloc.c | 12 +++++---- util/patch/pch.c | 2 - 27 files changed, 36 insertions(+), 68 deletions(-) diffstat-1.68/testing/case24p9.ref0000644000000000000000000000053510226221642015457 0ustar rootroot gen.c | 5 ++--- ncurses2-acs_and_scroll.adb | 15 ++++++++------- ncurses2-acs_display.adb | 21 ++++++++++++--------- terminal_interface-curses-mouse.ads.m4 | 6 +++--- terminal_interface-curses.ads.m4 | 10 ++++++---- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case21p1.ref0000644000000000000000000000010010300164552015427 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case32.pat0000644000000000000000000000103611246713336015223 0ustar rootroot--- README 2001-10-10 20:23:46.000000000 -0400 +++ README.new 2009-08-31 05:24:30.000000000 -0400 @@ -1,7 +1,7 @@ $Id: README,v 1.5 2001/10/11 00:23:46 tom Exp $ -Readme file for DiffStat. +Readme file for dIFFsTAT. This program is a simple filter that reads the output of the 'diff' program, and produces a histogram of the total number of lines that were changed. It is -useful for scanning a patch file to see which files were changed. +useful for scanning a patch file to see which files were changed. \ No newline at end of file diffstat-1.68/testing/case36p9.ref0000644000000000000000000000215012133111320015443 0ustar rootroot Xlib-1.patch- |only Xlib-1.ref |only Xlib-2.patch- |only Xlib-2.ref |only Xlib-3.patch- |only Xlib-3.ref |only config-1.ref |only config.cache | 16 ++---!!!! config.h | 2 + config.log | 76 ++++++++++-----------------!!!!!!!!!!!!!!!!!!!!!!!!!! config.status | 24 ++++----!!!!!!!! configure.out |only diffstat |binary diffstat.o |binary makefile | 4 - nugent.ref |only xserver-1.ref |only xserver-2.patch- |only xserver-2.ref |only xterm-1.patch- |only xterm-1.ref |only xterm-10.patch- |only xterm-10.ref |only xterm-11.patch- |only xterm-11.ref |only xterm-2.patch- |only xterm-2.ref |only xterm-3.patch- |only xterm-3.ref |only xterm-4.patch- |only xterm-4.ref |only xterm-5.patch- |only xterm-5.ref |only xterm-6.patch- |only xterm-6.ref |only xterm-7.ref |only xterm-8.patch- |only xterm-8.ref |only xterm-9.patch- |only xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case25k.ref0000644000000000000000000000055410160421167015364 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 +- cmdtbl | 15 ++++++++++-- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case26b.ref0000644000000000000000000000367110667374027015375 0ustar rootroot Frame.C | 294 ++++++++++++++++++++------- Frame.H | 21 + Hotkeys.C | 32 ++ Makefile | 2 Menu.C | 70 +++--- README | 18 - Rotated.C | 61 +++-- config.h | 6 debian/changelog | 12 + debian/patched/100_double_ampersand.dpatch | 1 debian/patched/100_fl_filename_name.dpatch | 2 debian/patched/101_visible_focus.dpatch | 1 debian/patched/102_charstruct.dpatch | 1 debian/patched/103_man_typo.dpatch | 1 debian/patched/104_g++-4.1_warning.dpatch | 3 debian/patched/105_double_ampersand.dpatch | 1 debian/patched/201_background_color.dpatch | 2 debian/patches/00list | 8 debian/patches/100_double_ampersand.dpatch | 19 + debian/patches/100_fl_filename_name.dpatch | 20 - debian/patches/101_visible_focus.dpatch | 19 - debian/patches/102_charstruct.dpatch | 45 ---- debian/patches/103_man_typo.dpatch | 19 - debian/patches/104_g++-4.1_warning.dpatch | 58 ----- debian/patches/105_double_ampersand.dpatch | 48 ---- debian/patches/200_Debian_menu.dpatch | 14 - debian/patches/201_background_color.dpatch | 57 ----- debian/patches/202_background_color_2.dpatch | 92 -------- debian/watch | 3 flwm.1 | 4 flwm_wmconfig | 4 logo.fl | 19 + main.C | 99 ++++++--- patch-stamp | 25 -- 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case06f0.ref0000644000000000000000000000042607530543242015442 0ustar rootroot NEWS | 2 2 + 0 - 0 ! ncurses/lib_doupdate.c | 91 69 + 22 - 0 ! ncurses/lib_initscr.c | 4 4 + 0 - 0 ! ncurses/lib_pad.c | 48 38 + 10 - 0 ! test/ncurses.c | 29 29 + 0 - 0 ! 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case31lf0.ref0000644000000000000000000000011211237775205015611 0ustar rootroot tty.c | 2 1 + 1 - 0 ! 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case09p1.ref0000644000000000000000000000002106122654443015451 0ustar rootroot 0 files changed diffstat-1.68/testing/case38lRp0.ref0000644000000000000000000000054412546615551015766 0ustar rootroot test ink/READ ME! | 5 ----- test ink/README ? | 5 +++++ test ink/run atac.sh | 6 ------ test ink/run test.sh | 51 --------------------------------------------------- test ink/run_atac.sh | 6 ++++++ test ink/run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case20.pat0000644000000000000000000001050107605627427015226 0ustar rootrootdiff -c 'vile-9.3+/README' 'vile-9.3j+/README' Index: ./README Prereq: 1.88 *** ./README Tue Jun 25 20:25:57 2002 --- ./README Sun Jun 30 16:27:52 2002 *************** *** 23,41 **** impatient? just type "./configure; make", and get a cup of coffee, decaf if necessary. want X11 support? you'd better look at doc/config.doc, although "./configure --with-screen=x11"; make" may well do what you want. want PC support? look for precompiled binaries at the various ftp sites. want to build vile on a PC host? refer to the file README.PC . ! want VMS support? you'll need to build vile yourself. refer to the ! file README.VMS . ! ! if you like vile, and wish to be informed of new releases, let me ! know -- i maintain a mailing list for that purpose. don't worry -- the ! volume won't fill your inbox. paul fox, pgf@foxharp.boston.ma.us (original author) kevin buettner, kev@primenet.com --- 23,49 ---- impatient? just type "./configure; make", and get a cup of coffee, decaf if necessary. + want to know more about configure options? type "./configure --help" + and then read doc/config.doc for further details. + want X11 support? you'd better look at doc/config.doc, although "./configure --with-screen=x11"; make" may well do what you want. + want syntax coloring? add "--with-builtin-filters" to your configure + options and then read the topics "Color basics" and "Syntax coloring" in + the file vile.hlp. + want PC support? look for precompiled binaries at the various ftp sites. want to build vile on a PC host? refer to the file README.PC . ! want VMS support? some precompiled binaries are available at ! ftp://ftp.phred.org/pub/vile. otherwise, you'll need to build vile ! yourself. In either case, refer to the file README.VMS . ! ! if you like vile, and wish to be informed of new releases, let me know -- i ! maintain a mailing list for that purpose (scroll down a bit for details). ! don't worry -- the volume won't fill your inbox. paul fox, pgf@foxharp.boston.ma.us (original author) kevin buettner, kev@primenet.com *************** *** 628,632 **** + add $prompt variable, to allow changing the command-line prompt. ------------------------------- ! @Header: /users/tom/src/diffstat/testing/RCS/case20.pat,v 1.1 2003/01/04 18:59:35 tom Exp @ ------------------------------- --- 636,640 ---- + add $prompt variable, to allow changing the command-line prompt. ------------------------------- ! @Header: /users/tom/src/diffstat/testing/RCS/case20.pat,v 1.1 2003/01/04 18:59:35 tom Exp @ ------------------------------- diff -c 'vile-9.3+/README.PC' 'vile-9.3j+/README.PC' Index: ./README.PC Prereq: 1.29 *** ./README.PC Tue Jun 25 20:25:57 2002 --- ./README.PC Sun Jun 30 16:27:52 2002 *************** *** 198,208 **** install it in a directory located in your PATH and add the following command-line option: ! nmake -f makefile.wnt LEX=flex # or LEX=lex take note that flex is a component of cygwin's GNU emulation package and works quite well for this purpose. cygwin can be obtained from ! Redhat at http://sources.redhat.com/cygwin. [2] this option requires prior installation of perl. refer to the section entitled "Perl preconditions" below. --- 198,209 ---- install it in a directory located in your PATH and add the following command-line option: ! nmake -f makefile.wnt FLT=1 LEX=flex # or LEX=lex take note that flex is a component of cygwin's GNU emulation package and works quite well for this purpose. cygwin can be obtained from ! Redhat at http://sources.redhat.com/cygwin. the FLT option binds ! all syntax coloring filters into the resultant [win]vile executable. [2] this option requires prior installation of perl. refer to the section entitled "Perl preconditions" below. *************** *** 263,267 **** paul fox, pgf@foxharp.boston.ma.us (home) ------------------------ ! @Header: /users/tom/src/diffstat/testing/RCS/case20.pat,v 1.1 2003/01/04 18:59:35 tom Exp @ ------------------------ --- 264,268 ---- paul fox, pgf@foxharp.boston.ma.us (home) ------------------------ ! @Header: /users/tom/src/diffstat/testing/RCS/case20.pat,v 1.1 2003/01/04 18:59:35 tom Exp @ ------------------------ diffstat-1.68/testing/case42p1.ref0000644000000000000000000000034314320561540015447 0ustar rootroot case39k.ref | 1 + case42.pat |only full.log |only full.txt |only full1.log |only full1.txt |only short.log |only short.txt |only short1.log |only short1.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case49.ref0000644000000000000000000000011714714413542015221 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case10f0.ref0000644000000000000000000000036707530543242015441 0ustar rootroot /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 26 + 0 - 0 ! xc/programs/Xserver/Xi/allowev.c | 6 1 + 1 - 4 ! 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case31ur1.ref0000644000000000000000000000012111240121111015606 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case42r1.ref0000644000000000000000000000047514320561540015457 0ustar rootroot testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/case39k.ref | 1 + testing2/full.log |only testing2/full.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case39u.ref0000644000000000000000000000015613777406456015426 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case06u.ref0000644000000000000000000000046107530534454015405 0ustar rootroot NEWS | 2 + ncurses/lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++------------ ncurses/lib_initscr.c | 4 ++ ncurses/lib_pad.c | 48 ++++++++++++++++++++----- test/ncurses.c | 29 +++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case37.ref0000644000000000000000000000173312133114345015213 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case03r2.ref0000644000000000000000000000024710277702415015457 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case19Rp0.ref0000644000000000000000000000011411700545540015571 0ustar rootroot data.old | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diffstat-1.68/testing/case43p1.ref0000644000000000000000000000121614320603177015453 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case25f0.ref0000644000000000000000000000043110160421167015431 0ustar rootroot CHANGES | 58 58 + 0 - 0 ! MANIFEST | 3 2 + 1 - 0 ! cmdtbl | 15 12 + 3 - 0 ! configure.in | 16 12 + 4 - 0 ! doc/filters.doc | 36 34 + 2 - 0 ! doc/macros.doc | 67 41 + 26 - 0 ! 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case39p9.ref0000644000000000000000000000015613777406456015512 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case46p9.ref0000644000000000000000000000064014320603177015466 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- changelog | 12 ++++++------ configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- gen-pkgconfig.in | 8 ++++++-- mingw-ncurses.nsi | 4 ++-- mingw-ncurses.spec | 2 +- ncurses.spec | 2 +- ncursest.spec | 2 +- 11 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case21r2.ref0000644000000000000000000000010010300164553015433 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case05r1.ref0000644000000000000000000000006610300164550015444 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/run_atac.sh0000755000000000000000000000024706460002356015566 0ustar rootroot#!/bin/sh # $Id: run_atac.sh,v 1.2 1998/01/17 01:10:06 tom Exp $ rm -f /tmp/atac_dir/* run_test.sh atac -u ../*.atac /tmp/atac_dir/* atacmin ../*.atac /tmp/atac_dir/* diffstat-1.68/testing/case39Rp0.ref0000644000000000000000000000016413777406456015622 0ustar rootroot a/diffstat |binary a/diffstat.c | 2 +- a/diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case10p9.ref0000644000000000000000000000021410226221641015443 0ustar rootroot XIstubs.h | 26 ++++++++++++++++++++++++++ allowev.c | 6 +-!!!! 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case05.ref0000644000000000000000000000006610300164550015201 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case10b.ref0000644000000000000000000000035110667374023015352 0ustar rootroot /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ xc/programs/Xserver/Xi/allowev.c | 6 ! 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case48b.ref0000644000000000000000000000010714714413375015365 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case33u.ref0000644000000000000000000000010511246713507015375 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case13b.ref0000644000000000000000000000030310667374023015352 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case12R.ref0000644000000000000000000000022211700545536015327 0ustar rootroot main.c | 11 ++--------- resize.c | 47 ++++++++--------------------------------------- 2 files changed, 10 insertions(+), 48 deletions(-) diffstat-1.68/testing/case34p1.ref0000644000000000000000000000014411762443774015466 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case12p9.ref0000644000000000000000000000022207073762772015471 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case09R.ref0000644000000000000000000000002111700545535015331 0ustar rootroot 0 files changed diffstat-1.68/testing/case03.pat0000644000000000000000000000215406122631113015210 0ustar rootrootdiff -r -c diffstat/config.cache diffstat.orig/config.cache *** 1.1 Fri Mar 15 19:27:13 1996 --- diffstat.orig/config.cache Fri Mar 15 19:51:02 1996 *************** *** 13,28 **** # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ! ac_cv_c_cross=${ac_cv_c_cross='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} --- 13,28 ---- # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} diff -r -c diffstat/config.h diffstat.orig/config.h *** diffstat/config.h Fri Mar 15 19:27:15 1996 --- diffstat.orig/config.h Fri Mar 15 19:51:04 1996 *************** *** 6,11 **** --- 6,12 ---- */ + #define STDC_HEADERS 1 #define HAVE_STDLIB_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETOPT_H 1 Only in diffstat.orig: configure.out Binary files diffstat/diffstat and diffstat.orig/diffstat differ < nothing > nothing again Binary files diffstat/diffstat.o and diffstat.orig/diffstat.o differ diffstat-1.68/testing/case22r2.ref0000644000000000000000000000221410277702417015456 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case26.pat0000644000000000000000000020011110451333770015216 0ustar rootrootdiff -Nru /tmp/8FTwAYJlot/flwm-1.00/config.h /tmp/KfNDqvamm0/flwm-1.01/config.h --- /tmp/8FTwAYJlot/flwm-1.00/config.h 1999-08-24 22:59:35.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/config.h 2002-03-24 02:02:33.000000000 +0100 @@ -25,6 +25,12 @@ // nothing is done if this is not defined: //#define AUTO_RAISE 0.5 +// Perform "smart" autoplacement. +// New windows are put at positions where they cover as few existing windows +// as possible. A brute force algorithm is used, so it consumes quite a bit +// of CPU time. +#define SMART_PLACEMENT 1 + // set this to zero to remove the multiple-desktop code. This will // make flwm about 20K smaller #define DESKTOPS 1 diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/changelog /tmp/KfNDqvamm0/flwm-1.01/debian/changelog --- /tmp/8FTwAYJlot/flwm-1.00/debian/changelog 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/changelog 2006-06-30 11:01:41.000000000 +0200 @@ -1,3 +1,15 @@ +flwm (1.01-1) unstable; urgency=low + + * New upstream release + + This release catch the release of the Alt key again. Closes: #246089. + + The following patches were applied upstream (Thanks Bill Spitzak). + 100_fl_filename_name 101_visible_focus 102_charstruct 103_man_typo + 104_g++-4.1_warning 105_double_ampersand 201_background_color + + Add 100_double_ampersand to fix atypo in this release. + * debian/watch: added. + + -- Bill Allombert Fri, 30 Jun 2006 01:17:06 +0200 + flwm (1.00-10) unstable; urgency=low * Add patch 104_g++-4.1_warning that fix five warnings. diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/100_double_ampersand.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/100_double_ampersand.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/100_double_ampersand.dpatch 1970-01-01 01:00:00.000000000 +0100 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/100_double_ampersand.dpatch 2006-06-30 11:01:41.000000000 +0200 @@ -0,0 +1 @@ +patching file Menu.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/100_fl_filename_name.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/100_fl_filename_name.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/100_fl_filename_name.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/100_fl_filename_name.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -patching file main.C -Hunk #1 succeeded at 351 (offset -1 lines). diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/101_visible_focus.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/101_visible_focus.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/101_visible_focus.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/101_visible_focus.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -patching file main.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/102_charstruct.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/102_charstruct.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/102_charstruct.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/102_charstruct.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -patching file Rotated.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/103_man_typo.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/103_man_typo.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/103_man_typo.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/103_man_typo.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -patching file flwm.1 diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/104_g++-4.1_warning.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/104_g++-4.1_warning.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/104_g++-4.1_warning.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/104_g++-4.1_warning.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -patching file Frame.C -patching file Menu.C -patching file Rotated.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/105_double_ampersand.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/105_double_ampersand.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/105_double_ampersand.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/105_double_ampersand.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -patching file Menu.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patched/201_background_color.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patched/201_background_color.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patched/201_background_color.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patched/201_background_color.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -patching file Frame.C -patching file Menu.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/00list /tmp/KfNDqvamm0/flwm-1.01/debian/patches/00list --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/00list 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/00list 2006-06-30 11:01:41.000000000 +0200 @@ -1,8 +1,2 @@ -100_fl_filename_name -101_visible_focus -102_charstruct -103_man_typo -104_g++-4.1_warning -105_double_ampersand +100_double_ampersand 200_Debian_menu -201_background_color diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/100_double_ampersand.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/100_double_ampersand.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/100_double_ampersand.dpatch 1970-01-01 01:00:00.000000000 +0100 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/100_double_ampersand.dpatch 2006-06-30 11:01:41.000000000 +0200 @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 100_double_ampersand.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fix handling of ampersand in titles in windows list. + +@DPATCH@ +diff -urNad flwm-1.01~/Menu.C flwm-1.01/Menu.C +--- flwm-1.01~/Menu.C 2006-06-30 10:52:34.000000000 +0200 ++++ flwm-1.01/Menu.C 2006-06-30 10:54:31.000000000 +0200 +@@ -98,7 +98,7 @@ + char* t = buf; + while (t < buf+254 && *l) { + if (*l=='&') *t++ = *l; +- *t++ = *l; ++ *t++ = *l++; + } + *t = 0; + l = buf; diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/100_fl_filename_name.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/100_fl_filename_name.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/100_fl_filename_name.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/100_fl_filename_name.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 100_fl_filename_name.dpatch by Tommi Virtanen -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Transition from fltk-1.0 to fltk-1.1. -## DP: Applied upstream. - -@DPATCH@ -diff -urNad flwm-1.00~/main.C flwm-1.00/main.C ---- flwm-1.00~/main.C 2006-02-23 21:41:10.000000000 +0100 -+++ flwm-1.00/main.C 2006-02-23 21:41:39.000000000 +0100 -@@ -352,7 +352,7 @@ - } - - int main(int argc, char** argv) { -- program_name = filename_name(argv[0]); -+ program_name = fl_filename_name(argv[0]); - int i; if (Fl::args(argc, argv, i, arg) < argc) Fl::error( - "options are:\n" - " -d[isplay] host:#.#\tX display & screen to use\n" diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/101_visible_focus.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/101_visible_focus.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/101_visible_focus.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/101_visible_focus.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 101_visible_focus.dpatch by Bill Allombert -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Restore fltk-1.0 focus behaviour -## DP: (Applied upstream) - -@DPATCH@ -diff -urNad flwm-1.00~/main.C flwm-1.00/main.C ---- flwm-1.00~/main.C 2006-02-23 21:41:57.000000000 +0100 -+++ flwm-1.00/main.C 2006-02-23 21:42:21.000000000 +0100 -@@ -298,6 +298,7 @@ - XFree((void *)wins); - - #endif -+ Fl::visible_focus(0); - } - - //////////////////////////////////////////////////////////////// diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/102_charstruct.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/102_charstruct.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/102_charstruct.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/102_charstruct.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 102_charstruct.dpatch by Tommi Virtanen -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Support fonts for which fontstruct->per_char is NULL. -## DP: (Applied upstream). - -@DPATCH@ -diff -urNad flwm-1.00~/Rotated.C flwm-1.00/Rotated.C ---- flwm-1.00~/Rotated.C 2006-02-23 21:42:31.000000000 +0100 -+++ flwm-1.00/Rotated.C 2006-02-23 21:43:03.000000000 +0100 -@@ -116,20 +116,27 @@ - /* font needs rotation ... */ - /* loop through each character ... */ - for (ichar = min_char; ichar <= max_char; ichar++) { -+ XCharStruct *charstruct; - - index = ichar-fontstruct->min_char_or_byte2; -- -+ -+ if (fontstruct->per_char) { -+ charstruct = &fontstruct->per_char[index]; -+ } else { -+ charstruct = &fontstruct->min_bounds; -+ } -+ - /* per char dimensions ... */ - ascent = rotfont->per_char[ichar].ascent = -- fontstruct->per_char[index].ascent; -+ charstruct->ascent; - descent = rotfont->per_char[ichar].descent = -- fontstruct->per_char[index].descent; -+ charstruct->descent; - lbearing = rotfont->per_char[ichar].lbearing = -- fontstruct->per_char[index].lbearing; -+ charstruct->lbearing; - rbearing = rotfont->per_char[ichar].rbearing = -- fontstruct->per_char[index].rbearing; -+ charstruct->rbearing; - rotfont->per_char[ichar].width = -- fontstruct->per_char[index].width; -+ charstruct->width; - - /* some space chars have zero body, but a bitmap can't have ... */ - if (!ascent && !descent) diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/103_man_typo.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/103_man_typo.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/103_man_typo.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/103_man_typo.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 103_man_typo.dpatch by Bill Allombert -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Fix typo in man page. - -@DPATCH@ -diff -urNad flwm-1.00~/flwm.1 flwm-1.00/flwm.1 ---- flwm-1.00~/flwm.1 2006-02-23 21:54:54.000000000 +0100 -+++ flwm-1.00/flwm.1 2006-02-23 21:55:39.000000000 +0100 -@@ -78,7 +78,7 @@ - - .SH MENU ITEMS - --Flwm can launch programs from it's menu. This is controlled by files -+Flwm can launch programs from its menu. This is controlled by files - in the directory - .B ~/.wmx - (this was chosen to be compatible with wmx and wm2). diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/104_g++-4.1_warning.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/104_g++-4.1_warning.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/104_g++-4.1_warning.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/104_g++-4.1_warning.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,58 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 104_g++-4.1-warning.dpatch by Bill Allombert -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Fix 5 g++ -4.1 warnings - -@DPATCH@ -diff -urNad flwm-1.00~/Frame.C flwm-1.00/Frame.C ---- flwm-1.00~/Frame.C 2006-06-10 13:41:04.000000000 +0200 -+++ flwm-1.00/Frame.C 2006-06-10 13:41:08.000000000 +0200 -@@ -1681,15 +1681,15 @@ - int format; - unsigned long n, extra; - int status; -- void* prop; -+ uchar* prop; - status = XGetWindowProperty(fl_display, w, - a, 0L, 256L, False, type, &realType, -- &format, &n, &extra, (uchar**)&prop); -+ &format, &n, &extra, &prop); - if (status != Success) return 0; - if (!prop) return 0; - if (!n) {XFree(prop); return 0;} - if (np) *np = (int)n; -- return prop; -+ return (void *)prop; - } - - int Frame::getIntProperty(Atom a, Atom type, int deflt) const { -diff -urNad flwm-1.00~/Menu.C flwm-1.00/Menu.C ---- flwm-1.00~/Menu.C 2006-06-10 13:41:04.000000000 +0200 -+++ flwm-1.00/Menu.C 2006-06-10 13:41:08.000000000 +0200 -@@ -246,8 +246,8 @@ - if (fork() == 0) { - if (fork() == 0) { - close(ConnectionNumber(fl_display)); -- if (name == xtermname) execlp(name, name, "-ut", 0); -- else execl(name, name, 0); -+ if (name == xtermname) execlp(name, name, "-ut", NULL); -+ else execl(name, name, NULL); - fprintf(stderr, "flwm: can't run %s, %s\n", name, strerror(errno)); - XBell(fl_display, 70); - exit(1); -diff -urNad flwm-1.00~/Rotated.C flwm-1.00/Rotated.C ---- flwm-1.00~/Rotated.C 2006-06-10 13:41:07.000000000 +0200 -+++ flwm-1.00/Rotated.C 2006-06-10 13:41:41.000000000 +0200 -@@ -242,9 +242,9 @@ - } - - for (ichar = 0; ichar < min_char; ichar++) -- rotfont->per_char[ichar] = rotfont->per_char['?']; -+ rotfont->per_char[ichar] = rotfont->per_char[(int)'?']; - for (ichar = max_char+1; ichar < 256; ichar++) -- rotfont->per_char[ichar] = rotfont->per_char['?']; -+ rotfont->per_char[ichar] = rotfont->per_char[(int)'?']; - - /* free pixmap and GC ... */ - XFreePixmap(dpy, canvas); diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/105_double_ampersand.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/105_double_ampersand.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/105_double_ampersand.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/105_double_ampersand.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,48 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 105_double_ampersand.dpatch by Bill Allombert -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Handle & in window titles correctly in the windows list. - -@DPATCH@ -diff -urNad flwm-1.00~/Menu.C flwm-1.00/Menu.C ---- flwm-1.00~/Menu.C 2006-03-24 00:02:57.000000000 +0100 -+++ flwm-1.00/Menu.C 2006-03-24 00:03:18.000000000 +0100 -@@ -20,6 +20,24 @@ - #include - #include - -+static char *double_ampersand(const char *s) -+{ -+ long i,l; -+ for(i=0,l=0;s[i];i++) -+ if (s[i]=='&') -+ l++; -+ char *c = new (char [l+i+1]); -+ for(i=0,l=0;s[i];i++) -+ { -+ c[l++]=s[i]; -+ if (s[i]=='&') -+ c[l++]=s[i]; -+ } -+ c[l]=0; -+ return c; -+} -+ -+ - // it is possible for the window to be deleted or withdrawn while - // the menu is up. This will detect that case (with reasonable - // reliability): -@@ -90,8 +108,11 @@ - } - fl_font(o->font, o->size); - fl_color((Fl_Color)o->color); -- const char* l = f->label(); if (!l) l = "unnamed"; -+ const char* l = f->label(); -+ if (!l) l = "unnamed"; -+ else l = double_ampersand(f->label()); - fl_draw(l, X+MENU_ICON_W+3, Y, W-MENU_ICON_W-3, H, align); -+ delete l; - } - - static void diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/200_Debian_menu.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/200_Debian_menu.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/200_Debian_menu.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/200_Debian_menu.dpatch 2006-06-30 11:01:41.000000000 +0200 @@ -5,10 +5,10 @@ ## DP: Add Debian menu support. @DPATCH@ -diff -urNad flwm-1.00~/Menu.C flwm-1.00/Menu.C ---- flwm-1.00~/Menu.C 2006-06-10 22:22:59.000000000 +0200 -+++ flwm-1.00/Menu.C 2006-06-10 22:23:00.000000000 +0200 -@@ -395,7 +395,11 @@ +diff -urNad flwm-1.01~/Menu.C flwm-1.01/Menu.C +--- flwm-1.01~/Menu.C 2006-06-30 09:02:01.000000000 +0200 ++++ flwm-1.01/Menu.C 2006-06-30 09:02:05.000000000 +0200 +@@ -393,7 +393,11 @@ strcpy(path, home); if (path[strlen(path)-1] != '/') strcat(path, "/"); strcat(path, ".wmx/"); @@ -21,9 +21,9 @@ if (st.st_mtime == wmx_time) return; wmx_time = st.st_mtime; num_wmx = 0; -diff -urNad flwm-1.00~/flwm.1 flwm-1.00/flwm.1 ---- flwm-1.00~/flwm.1 2006-06-10 22:22:59.000000000 +0200 -+++ flwm-1.00/flwm.1 2006-06-10 22:23:00.000000000 +0200 +diff -urNad flwm-1.01~/flwm.1 flwm-1.01/flwm.1 +--- flwm-1.01~/flwm.1 2006-06-30 09:02:01.000000000 +0200 ++++ flwm-1.01/flwm.1 2006-06-30 09:02:05.000000000 +0200 @@ -102,10 +102,13 @@ chmod +x !* .fi diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/201_background_color.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/201_background_color.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/201_background_color.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/201_background_color.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,57 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 201_background_color.dpatch by Bill Allombert -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Fix -fg and -bg options - -@DPATCH@ -diff -urNad flwm-1.00~/Frame.C flwm-1.00/Frame.C ---- flwm-1.00~/Frame.C 2006-06-10 22:24:58.000000000 +0200 -+++ flwm-1.00/Frame.C 2006-06-10 22:25:00.000000000 +0200 -@@ -88,6 +88,7 @@ - min_w_button.callback(button_cb_static); - end(); - box(FL_NO_BOX); // relies on background color erasing interior -+ labelcolor(FL_FOREGROUND_COLOR); - next = first; - first = this; - -@@ -674,7 +675,7 @@ - XSetWindowAttributes a; - a.background_pixel = fl_xpixel(FL_SELECTION_COLOR); - XChangeWindowAttributes(fl_display, fl_xid(this), CWBackPixel, &a); -- labelcolor(contrast(FL_BLACK, FL_SELECTION_COLOR)); -+ labelcolor(contrast(FL_FOREGROUND_COLOR, FL_SELECTION_COLOR)); - XClearArea(fl_display, fl_xid(this), 2, 2, w()-4, h()-4, 1); - #else - #if defined(SHOW_CLOCK) -@@ -694,7 +695,7 @@ - XSetWindowAttributes a; - a.background_pixel = fl_xpixel(FL_GRAY); - XChangeWindowAttributes(fl_display, fl_xid(this), CWBackPixel, &a); -- labelcolor(FL_BLACK); -+ labelcolor(FL_FOREGROUND_COLOR); - XClearArea(fl_display, fl_xid(this), 2, 2, w()-4, h()-4, 1); - #else - #if defined(SHOW_CLOCK) -diff -urNad flwm-1.00~/Menu.C flwm-1.00/Menu.C ---- flwm-1.00~/Menu.C 2006-06-10 22:24:59.000000000 +0200 -+++ flwm-1.00/Menu.C 2006-06-10 22:25:00.000000000 +0200 -@@ -99,7 +99,7 @@ - if (h < 3) h = 3; - if (y+h > SCREEN_H) y = SCREEN_H-h; - if (y < 0) y = 0; -- fl_color(FL_BLACK); -+ fl_color(FL_FOREGROUND_COLOR); - if (c->state() == ICONIC) - fl_rect(X+x+SCREEN_DX, Y+y+SCREEN_DX, w, h); - else -@@ -304,7 +304,7 @@ - m.shortcut(0); - m.labelfont(MENU_FONT_SLOT); - m.labelsize(MENU_FONT_SIZE); -- m.labelcolor(FL_BLACK); -+ m.labelcolor(FL_FOREGROUND_COLOR); - } - - #if WMX_MENU_ITEMS diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/patches/202_background_color_2.dpatch /tmp/KfNDqvamm0/flwm-1.01/debian/patches/202_background_color_2.dpatch --- /tmp/8FTwAYJlot/flwm-1.00/debian/patches/202_background_color_2.dpatch 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/patches/202_background_color_2.dpatch 1970-01-01 01:00:00.000000000 +0100 @@ -1,92 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 203_background_color.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: fix the -fg -bg, -bg2 options. - -@DPATCH@ -diff -urNad flwm-1.00~/Menu.C flwm-1.00/Menu.C ---- flwm-1.00~/Menu.C 2006-02-23 21:32:53.000000000 +0100 -+++ flwm-1.00/Menu.C 2006-02-23 21:36:32.000000000 +0100 -@@ -172,10 +172,14 @@ - new_desktop_input = new Fl_Input(10,30,170,25,"New desktop name:"); - new_desktop_input->align(FL_ALIGN_TOP_LEFT); - new_desktop_input->labelfont(FL_BOLD); -+ new_desktop_input->labelcolor(FL_FOREGROUND_COLOR); -+ - Fl_Return_Button* b = new Fl_Return_Button(100,60,80,20,"OK"); - b->callback(new_desktop_ok_cb); -+ b->labelcolor(FL_FOREGROUND_COLOR); - Fl_Button* b2 = new Fl_Button(10,60,80,20,"Cancel"); - b2->callback(cancel_cb); -+ b2->labelcolor(FL_FOREGROUND_COLOR); - w->set_non_modal(); - w->end(); - } -@@ -217,10 +221,13 @@ - w = new FrameWindow(190,90); - Fl_Box* l = new Fl_Box(0, 0, 190, 60, "Really log out?"); - l->labelfont(FL_BOLD); -+ l->labelcolor(FL_FOREGROUND_COLOR); - Fl_Return_Button* b = new Fl_Return_Button(100,60,80,20,"OK"); - b->callback(exit_cb); -+ b->labelcolor(FL_FOREGROUND_COLOR); - Fl_Button* b2 = new Fl_Button(10,60,80,20,"Cancel"); - b2->callback(cancel_cb); -+ b2->labelcolor(FL_FOREGROUND_COLOR); - w->set_non_modal(); - w->end(); - } -@@ -280,10 +287,10 @@ - m.label(data); - m.flags = 0; - m.labeltype(FL_NORMAL_LABEL); -+ m.labelcolor(FL_FOREGROUND_COLOR); - m.shortcut(0); - m.labelfont(MENU_FONT_SLOT); - m.labelsize(MENU_FONT_SIZE); -- m.labelcolor(FL_FOREGROUND_COLOR); - } - - #if WMX_MENU_ITEMS -@@ -513,6 +520,7 @@ - if (c->state() == UNMAPPED || c->transient_for()) continue; - init(menu[n],(char*)c); - menu[n].labeltype(FRAME_LABEL); -+ menu[n].labelcolor(FL_FOREGROUND_COLOR); - menu[n].callback(frame_callback, c); - if (is_active_frame(c)) preset = menu+n; - n++; -@@ -542,6 +550,7 @@ - if (c->desktop() == d || !c->desktop() && d == Desktop::current()) { - init(menu[n],(char*)c); - menu[n].labeltype(FRAME_LABEL); -+ menu[n].labelcolor(FL_FOREGROUND_COLOR); - menu[n].callback(d == Desktop::current() ? - frame_callback : move_frame_callback, c); - if (d == Desktop::current() && is_active_frame(c)) preset = menu+n; -@@ -589,7 +598,10 @@ - if (one_desktop) - #endif - if (!level) -+ { - menu[n].labeltype(TEXT_LABEL); -+ menu[n].labelcolor(FL_FOREGROUND_COLOR); -+ } - - int nextlev = (i==num_wmx-1)?0:strspn(wmxlist[i+1], "/")-1; - if (nextlev < level) { -@@ -621,8 +633,11 @@ - if (one_desktop) - #endif - // fix the menus items so they are indented to align with window names: -- while (menu[n].label()) menu[n++].labeltype(TEXT_LABEL); -- -+ while (menu[n].label()) -+ { -+ menu[n].labelcolor(FL_FOREGROUND_COLOR); -+ menu[n++].labeltype(TEXT_LABEL); -+ } - const Fl_Menu_Item* picked = - menu->popup(Fl::event_x(), Fl::event_y(), 0, preset); - if (picked && picked->callback()) picked->do_callback(0); diff -Nru /tmp/8FTwAYJlot/flwm-1.00/debian/watch /tmp/KfNDqvamm0/flwm-1.01/debian/watch --- /tmp/8FTwAYJlot/flwm-1.00/debian/watch 1970-01-01 01:00:00.000000000 +0100 +++ /tmp/KfNDqvamm0/flwm-1.01/debian/watch 2006-06-30 11:01:41.000000000 +0200 @@ -0,0 +1,3 @@ +# Site Directory Pattern Version Script +version=2 +http://flwm.sourceforge.net/flwm-(.*)\.tgz debian uupdate diff -Nru /tmp/8FTwAYJlot/flwm-1.00/flwm.1 /tmp/KfNDqvamm0/flwm-1.01/flwm.1 --- /tmp/8FTwAYJlot/flwm-1.00/flwm.1 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/flwm.1 2006-06-30 11:01:41.000000000 +0200 @@ -184,14 +184,14 @@ the keyboard, use left arrow to go to the desktop names, move up and down to the other desktop). -If a desktop is empty you can delete it. It's sub menu will show +If a desktop is empty you can delete it. Its sub menu will show .B delete this desktop. Pick that and the desktop is gone. .B Sticky is a special "desktop": windows on it appear on all desktops. To make a window "sticky" switch to the Sticky desktop and pick the window off -it's current desktop (thus "moving" it to the Sticky desktop). To +its current desktop (thus "moving" it to the Sticky desktop). To "unstick" a window go to another desktop and pick the window off the sticky desktop menu. diff -Nru /tmp/8FTwAYJlot/flwm-1.00/flwm_wmconfig /tmp/KfNDqvamm0/flwm-1.01/flwm_wmconfig --- /tmp/8FTwAYJlot/flwm-1.00/flwm_wmconfig 1999-04-26 21:09:10.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/flwm_wmconfig 2000-09-19 18:38:37.000000000 +0200 @@ -16,7 +16,9 @@ set name "" set exec "" while {[gets $f list]>=0} { - if [llength $list]<3 continue + set n 0 + catch {set n [llength $list]} + if $n<3 continue set tag [lindex $list 1] set value [lrange $list 2 1000] if [llength $value]==1 {set value [lindex $value 0]} diff -Nru /tmp/8FTwAYJlot/flwm-1.00/Frame.C /tmp/KfNDqvamm0/flwm-1.01/Frame.C --- /tmp/8FTwAYJlot/flwm-1.00/Frame.C 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/Frame.C 2006-06-29 08:08:35.000000000 +0200 @@ -8,6 +8,7 @@ #include #include "Rotated.H" + static Atom wm_state = 0; static Atom wm_change_state; static Atom wm_protocols; @@ -63,7 +64,7 @@ // passed for an already-existing window when the window manager is // starting up. If so we don't want to alter the state, size, or // position. If null than this is a MapRequest of a new window. -Frame::Frame(Window window, XWindowAttributes* existing) : +Frame::Frame(XWindow window, XWindowAttributes* existing) : Fl_Window(0,0), window_(window), state_flags_(0), @@ -78,6 +79,9 @@ max_w_button(BUTTON_LEFT,BUTTON_TOP+BUTTON_H,BUTTON_W,BUTTON_H,"w"), min_w_button(BUTTON_LEFT,BUTTON_TOP+2*BUTTON_H,BUTTON_W,BUTTON_H,"W") { +#if FL_MAJOR_VERSION > 1 + clear_double_buffer(); +#endif close_button.callback(button_cb_static); iconize_button.callback(button_cb_static); max_h_button.type(FL_TOGGLE_BUTTON); @@ -224,20 +228,9 @@ show_hide_buttons(); if (autoplace && !existing && !(transient_for() && (x() || y()))) { - // autoplacement (stupid version for now) - x(Root->x()+(Root->w()-w())/2); - y(Root->y()+(Root->h()-h())/2); - // move it until it does not hide any existing windows: - const int delta = TITLE_WIDTH+LEFT; - for (Frame* f = next; f; f = f->next) { - if (f->x()+delta > x() && f->y()+delta > y() && - f->x()+f->w()-delta < x()+w() && f->y()+f->h()-delta < y()+h()) { - x(max(x(),f->x()+delta)); - y(max(y(),f->y()+delta)); - f = this; - } - } + place_window(); } + // move window so contents and border are visible: x(force_x_onscreen(x(), w())); y(force_y_onscreen(y(), h())); @@ -261,7 +254,8 @@ sattr.bit_gravity = NorthWestGravity; sattr.override_redirect = 1; sattr.background_pixel = fl_xpixel(FL_GRAY); - Fl_X::set_xid(this, XCreateWindow(fl_display, fl_xid(Root), + Fl_X::set_xid(this, XCreateWindow(fl_display, + RootWindow(fl_display,fl_screen), x(), y(), w(), h(), 0, fl_visual->depth, InputOutput, @@ -278,15 +272,140 @@ sendConfigureNotify(); // many apps expect this even if window size unchanged #if CLICK_RAISES || CLICK_TO_TYPE - XGrabButton(fl_display, AnyButton, AnyModifier, window, False, - ButtonPressMask, GrabModeSync, GrabModeAsync, None, None); + if (!dont_set_event_mask) + XGrabButton(fl_display, AnyButton, AnyModifier, window, False, + ButtonPressMask, GrabModeSync, GrabModeAsync, None, None); #endif if (state_ == NORMAL) { XMapWindow(fl_display, fl_xid(this)); if (!existing) activate_if_transient(); } + set_visible(); +} + +#if SMART_PLACEMENT +// Helper functions for "smart" window placement. +int overlap1(int p1, int l1, int p2, int l2) { + int ret = 0; + if(p1 <= p2 && p2 <= p1 + l1) { + ret = min(p1 + l1 - p2, l2); + } else if (p2 <= p1 && p1 <= p2 + l2) { + ret = min(p2 + l2 - p1, l1); + } + return ret; +} + +int overlap(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2) { + return (overlap1(x1, w1, x2, w2) * overlap1(y1, h1, y2, h2)); +} + +// Compute the overlap with existing windows. +// For normal windows the overlapping area is taken into account plus a +// constant value for every overlapping window. +// The active window counts twice. +// For iconic windows half the overlapping area is taken into account. +int getOverlap(int x, int y, int w, int h, Frame *first, Frame *self) { + int ret = 0; + short state; + for (Frame* f = first; f; f = f->next) { + if (f != self) { + state = f->state(); + if (state == NORMAL || state == ICONIC) { + int o = overlap(x, y, w, h, f->x(), f->y(), f->w(), f->h()); + if (state == NORMAL) { + ret = ret + o + (o>0?40000:0) + (o * f->active()); + } else if (state == ICONIC) { + ret = ret + o/2; + } + } + } + } + return ret; +} + +// autoplacement (brute force version for now) +void Frame::place_window() { + int min_overlap = -1; + int tmp_x, tmp_y, tmp_o; + int best_x = 0; + int best_y = 0; + int _w = w(); + int _h = h(); + int max_x = Root->x() + Root->w(); + int max_y = Root->y() + Root->h(); + + Frame *f1 = Frame::first; + for(int i=0;; i++) { + if (i==0) { + tmp_x = 0; + } else if (i==1) { + tmp_x = max_x - _w; + } else { + if (f1 == this) { + f1 = f1->next; + } + if (!f1) { + break; + } + tmp_x = f1->x() + f1->w(); + f1 = f1->next; + } + Frame *f2 = Frame::first; + for(int j=0;; j++) { + if (j==0) { + tmp_y = 0; + } else if (j==1) { + tmp_y = max_y - _h; + } else { + if (f2 == this) { + f2 = f2->next; + } + if (!f2) { + break; + } + tmp_y = f2->y() + f2->h(); + f2 = f2->next; + } + + if ((tmp_x + _w <= max_x) && (tmp_y + _h <= max_y)) { + tmp_o = getOverlap(tmp_x, tmp_y, _w, _h, Frame::first, this); + if(tmp_o < min_overlap || min_overlap < 0) { + best_x = tmp_x; + best_y = tmp_y; + min_overlap = tmp_o; + if (min_overlap == 0) { + break; + } + } + } + } + if (min_overlap == 0) { + break; + } + } + x(best_x); + y(best_y); +} + +#else + +// autoplacement (stupid version for now) +void Frame::place_window() { + x(Root->x()+(Root->w()-w())/2); + y(Root->y()+(Root->h()-h())/2); + // move it until it does not hide any existing windows: + const int delta = TITLE_WIDTH+LEFT; + for (Frame* f = next; f; f = f->next) { + if (f->x()+delta > x() && f->y()+delta > y() && + f->x()+f->w()-delta < x()+w() && f->y()+f->h()-delta < y()+h()) { + x(max(x(),f->x()+delta)); + y(max(y(),f->y()+delta)); + f = this; + } + } } +#endif // modify the passed X & W to a legal horizontal window position int Frame::force_x_onscreen(int X, int W) { @@ -334,10 +453,12 @@ // a legal state value to this location: state_ = UNMAPPED; +#if FL_MAJOR_VERSION < 2 // fix fltk bug: fl_xfocus = 0; fl_xmousewin = 0; Fl::focus_ = 0; +#endif // remove any pointers to this: Frame** cp; for (cp = &first; *cp; cp = &((*cp)->next)) @@ -555,7 +676,7 @@ // see if they set "input hint" to non-zero: // prop[3] should be nonzero but the only example of this I have // found is Netscape 3.0 and it sets it to zero... - if (!shown() && (prop[0]&4) /*&& prop[3]*/) set_flag(MODAL); + if (!shown() && (prop[0]&4) /*&& prop[3]*/) set_flag(::MODAL); // see if it is forcing the iconize button back on. This makes // transient_for act like group instead... @@ -579,7 +700,7 @@ delete[] window_Colormaps; } int n; - Window* cw = (Window*)getProperty(wm_colormap_windows, XA_WINDOW, &n); + XWindow* cw = (XWindow*)getProperty(wm_colormap_windows, XA_WINDOW, &n); if (cw) { colormapWinCount = n; colormapWindows = cw; @@ -645,7 +766,7 @@ int Frame::activate(int warp) { // see if a modal & newer window is up: for (Frame* c = first; c && c != this; c = c->next) - if (c->flag(MODAL) && c->transient_for() == this) + if (c->flag(::MODAL) && c->transient_for() == this) if (c->activate(warp)) return 1; // ignore invisible windows: if (state() != NORMAL || w() <= dwidth) return 0; @@ -671,14 +792,14 @@ if (active_ != this) { if (active_) active_->deactivate(); active_ = this; -#if defined(ACTIVE_COLOR) +#ifdef ACTIVE_COLOR XSetWindowAttributes a; a.background_pixel = fl_xpixel(FL_SELECTION_COLOR); XChangeWindowAttributes(fl_display, fl_xid(this), CWBackPixel, &a); labelcolor(contrast(FL_FOREGROUND_COLOR, FL_SELECTION_COLOR)); XClearArea(fl_display, fl_xid(this), 2, 2, w()-4, h()-4, 1); #else -#if defined(SHOW_CLOCK) +#ifdef SHOW_CLOCK redraw(); #endif #endif @@ -691,14 +812,14 @@ // this private function should only be called by constructor and if // the window is active(): void Frame::deactivate() { -#if defined(ACTIVE_COLOR) +#ifdef ACTIVE_COLOR XSetWindowAttributes a; a.background_pixel = fl_xpixel(FL_GRAY); XChangeWindowAttributes(fl_display, fl_xid(this), CWBackPixel, &a); labelcolor(FL_FOREGROUND_COLOR); XClearArea(fl_display, fl_xid(this), 2, 2, w()-4, h()-4, 1); #else -#if defined(SHOW_CLOCK) +#ifdef SHOW_CLOCK redraw(); #endif #endif @@ -738,9 +859,9 @@ switch (newstate) { case UNMAPPED: throw_focus(); - set_state_flag(IGNORE_UNMAP); XUnmapWindow(fl_display, fl_xid(this)); - XUnmapWindow(fl_display, window_); + //set_state_flag(IGNORE_UNMAP); + //XUnmapWindow(fl_display, window_); XRemoveFromSaveSet(fl_display, window_); break; case NORMAL: @@ -754,9 +875,9 @@ XAddToSaveSet(fl_display, window_); } else if (oldstate == NORMAL) { throw_focus(); - set_state_flag(IGNORE_UNMAP); XUnmapWindow(fl_display, fl_xid(this)); - XUnmapWindow(fl_display, window_); + //set_state_flag(IGNORE_UNMAP); + //XUnmapWindow(fl_display, window_); } else { return; // don't setStateProperty IconicState multiple times } @@ -906,10 +1027,10 @@ int minh = (nh < h()) ? nh : h(); XClearArea(fl_display, fl_xid(this), 0, minh-BOTTOM, w(), BOTTOM, 1); // see if label or close box moved, erase the minimum area: - int old_label_y = label_y; - int old_label_h = label_h; +// int old_label_y = label_y; +// int old_label_h = label_h; h(nh); show_hide_buttons(); -#ifdef SHOW_CLOCK +#if 1 //def SHOW_CLOCK int t = label_y + 3; // we have to clear the entire label area #else int t = nh; @@ -1076,6 +1197,12 @@ // make sure fltk does not try to set the window size: void Frame::resize(int, int, int, int) {} +// For fltk2.0: +void Frame::layout() { +#if FL_MAJOR_VERSION>1 + layout_damage(0); // actually this line is not needed in newest cvs fltk2.0 +#endif +} //////////////////////////////////////////////////////////////// @@ -1111,19 +1238,28 @@ //////////////////////////////////////////////////////////////// // Drawing code: +#if FL_MAJOR_VERSION>1 +# include +#endif void Frame::draw() { if (flag(NO_BORDER)) return; if (!flag(THIN_BORDER)) Fl_Window::draw(); if (damage() != FL_DAMAGE_CHILD) { -#if ACTIVE_COLOR +#ifdef ACTIVE_COLOR fl_frame2(active() ? "AAAAJJWW" : "AAAAJJWWNNTT",0,0,w(),h()); if (active()) { fl_color(FL_GRAY_RAMP+('N'-'A')); fl_xyline(2, h()-3, w()-3, 2); } #else +# if FL_MAJOR_VERSION>1 + static fltk::FrameBox framebox(0,"AAAAJJWWNNTT"); + drawstyle(style(),fltk::INVISIBLE); // INVISIBLE = draw edge only + framebox.draw(Rectangle(w(),h())); +# else fl_frame("AAAAWWJJTTNN",0,0,w(),h()); +# endif #endif if (!flag(THIN_BORDER) && label_h > 3) { #ifdef SHOW_CLOCK @@ -1169,39 +1305,48 @@ #endif void FrameButton::draw() { +#if FL_MAJOR_VERSION>1 + const int x = value()?1:0; + const int y = x; + drawstyle(style(),flags()|fltk::OUTPUT); + FL_UP_BOX->draw(Rectangle(w(),h())); +#else + const int x = this->x(); + const int y = this->y(); Fl_Widget::draw_box(value() ? FL_DOWN_FRAME : FL_UP_FRAME, FL_GRAY); +#endif fl_color(parent()->labelcolor()); switch (label()[0]) { case 'W': #if MINIMIZE_ARROW - fl_line (x()+2,y()+(h())/2,x()+w()-4,y()+h()/2); - fl_line (x()+2,y()+(h())/2,x()+2+4,y()+h()/2+4); - fl_line (x()+2,y()+(h())/2,x()+2+4,y()+h()/2-4); + fl_line (x+2,y+(h())/2,x+w()-4,y+h()/2); + fl_line (x+2,y+(h())/2,x+2+4,y+h()/2+4); + fl_line (x+2,y+(h())/2,x+2+4,y+h()/2-4); #else - fl_rect(x()+(h()-7)/2,y()+3,2,h()-6); + fl_rect(x+(h()-7)/2,y+3,2,h()-6); #endif return; case 'w': - fl_rect(x()+2,y()+(h()-7)/2,w()-4,7); + fl_rect(x+2,y+(h()-7)/2,w()-4,7); return; case 'h': - fl_rect(x()+(h()-7)/2,y()+2,7,h()-4); + fl_rect(x+(h()-7)/2,y+2,7,h()-4); return; case 'X': #if CLOSE_X - fl_line(x()+2,y()+3,x()+w()-5,y()+h()-4); - fl_line(x()+3,y()+3,x()+w()-4,y()+h()-4); - fl_line(x()+2,y()+h()-4,x()+w()-5,y()+3); - fl_line(x()+3,y()+h()-4,x()+w()-4,y()+3); + fl_line(x+2,y+3,x+w()-5,y+h()-4); + fl_line(x+3,y+3,x+w()-4,y+h()-4); + fl_line(x+2,y+h()-4,x+w()-5,y+3); + fl_line(x+3,y+h()-4,x+w()-4,y+3); #endif #if CLOSE_HITTITE_LIGHTNING - fl_arc(x()+3,y()+3,w()-6,h()-6,0,360); - fl_line(x()+7,y()+3, x()+7,y()+11); + fl_arc(x+3,y+3,w()-6,h()-6,0,360); + fl_line(x+7,y+3, x+7,y+11); #endif return; case 'i': #if ICONIZE_BOX - fl_rect(x()+w()/2-1,y()+h()/2-1,3,3); + fl_rect(x+w()/2-1,y+h()/2-1,3,3); #endif return; } @@ -1320,6 +1465,9 @@ c = FL_CURSOR_NESW; break; } +#if FL_MAJOR_VERSION>1 + cursor(c); +#else static Frame* previous_frame; static Fl_Cursor previous_cursor; if (this != previous_frame || c != previous_cursor) { @@ -1327,6 +1475,7 @@ previous_cursor = c; cursor(c, CURSOR_FG_SLOT, CURSOR_BG_SLOT); } +#endif } #ifdef AUTO_RAISE @@ -1348,10 +1497,17 @@ int Frame::handle(int e) { static int what, dx, dy, ix, iy, iw, ih; // see if child widget handles event: - if (Fl_Window::handle(e) && e != FL_ENTER && e != FL_MOVE) { +#if FL_MAJOR_VERSION > 1 + if (fltk::Group::handle(e) && e != FL_ENTER && e != FL_MOVE) { + if (e == FL_PUSH) set_cursor(-1); + return 1; + } +#else + if (Fl_Group::handle(e) && e != FL_ENTER && e != FL_MOVE) { if (e == FL_PUSH) set_cursor(-1); return 1; } +#endif switch (e) { case FL_SHOW: @@ -1381,42 +1537,33 @@ #endif goto GET_CROSSINGS; - case 0: + case FL_MOVE: GET_CROSSINGS: // set cursor_inside to true when the mouse is inside a window // set it false when mouse is on a frame or outside a window. // fltk mangles the X enter/leave events, we need the original ones: switch (fl_xevent->type) { - case EnterNotify: + case LeaveNotify: + if (fl_xevent->xcrossing.detail == NotifyInferior) { + // cursor moved from frame to interior + cursor_inside = this; + break; + } else { + // cursor moved to another window + return 1; + } + case EnterNotify: // see if cursor skipped over frame and directly to interior: if (fl_xevent->xcrossing.detail == NotifyVirtual || fl_xevent->xcrossing.detail == NotifyNonlinearVirtual) cursor_inside = this; - else { // cursor is now pointing at frame: cursor_inside = 0; } - - // fall through to FL_MOVE: - break; - - case LeaveNotify: - if (fl_xevent->xcrossing.detail == NotifyInferior) { - // cursor moved from frame to interior - cursor_inside = this; - set_cursor(-1); - return 1; - } - return 1; - - default: - return 0; // other X event we don't understand } - - case FL_MOVE: if (Fl::belowmouse() != this || cursor_inside == this) set_cursor(-1); else @@ -1578,9 +1725,10 @@ case UnmapNotify: { const XUnmapEvent* e = &(ei->xunmap); - if (e->from_configure); - else if (state_flags_&IGNORE_UNMAP) clear_state_flag(IGNORE_UNMAP); - else state(UNMAPPED); + if (e->window == window_ && !e->from_configure) { + if (state_flags_&IGNORE_UNMAP) clear_state_flag(IGNORE_UNMAP); + else state(UNMAPPED); + } return 1;} case DestroyNotify: { @@ -1677,7 +1825,7 @@ return ::getProperty(window_, a, type, np); } -void* getProperty(Window w, Atom a, Atom type, int* np) { +void* getProperty(XWindow w, Atom a, Atom type, int* np) { Atom realType; int format; unsigned long n, extra; @@ -1690,14 +1838,14 @@ if (!prop) return 0; if (!n) {XFree(prop); return 0;} if (np) *np = (int)n; - return (void *)prop; + return (void*)prop; } int Frame::getIntProperty(Atom a, Atom type, int deflt) const { return ::getIntProperty(window_, a, type, deflt); } -int getIntProperty(Window w, Atom a, Atom type, int deflt) { +int getIntProperty(XWindow w, Atom a, Atom type, int deflt) { void* prop = getProperty(w, a, type); if (!prop) return deflt; int r = int(*(long*)prop); @@ -1705,7 +1853,7 @@ return r; } -void setProperty(Window w, Atom a, Atom type, int v) { +void setProperty(XWindow w, Atom a, Atom type, int v) { long prop = v; XChangeProperty(fl_display, w, a, type, 32, PropModeReplace, (uchar*)&prop,1); } diff -Nru /tmp/8FTwAYJlot/flwm-1.00/Frame.H /tmp/KfNDqvamm0/flwm-1.01/Frame.H --- /tmp/8FTwAYJlot/flwm-1.00/Frame.H 1999-08-24 22:59:35.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/Frame.H 2003-12-16 16:15:40.000000000 +0100 @@ -9,6 +9,9 @@ #include #include #include +#if FL_MAJOR_VERSION<2 +# define XWindow Window +#endif // The state is an enumeration of reasons why the window may be invisible. // Only if it is NORMAL is the window visible. @@ -58,7 +61,7 @@ class Frame : public Fl_Window { - Window window_; + XWindow window_; short state_; // X server state: iconic, withdrawn, normal short state_flags_; // above state flags @@ -79,14 +82,14 @@ int label_y, label_h; // location of label int label_w; // measured width of printed label - Window transient_for_xid; // value from X + XWindow transient_for_xid; // value from X Frame* transient_for_; // the frame for that xid, if found Frame* revert_to; // probably the xterm this was run from Colormap colormap; // this window's colormap int colormapWinCount; // list of other windows to install colormaps for - Window *colormapWindows; + XWindow *colormapWindows; Colormap *window_Colormaps; // their colormaps Desktop* desktop_; @@ -101,6 +104,7 @@ int maximize_height(); int force_x_onscreen(int X, int W); int force_y_onscreen(int Y, int H); + void place_window(); void sendMessage(Atom, Atom) const; void sendConfigureNotify() const; @@ -122,6 +126,7 @@ void set_size(int,int,int,int, int warp=0); void resize(int,int,int,int); + void layout(); void show_hide_buttons(); int handle(int); // handle fltk events @@ -151,10 +156,10 @@ static Frame* first; Frame* next; // stacking order, top to bottom - Frame(Window, XWindowAttributes* = 0); + Frame(XWindow, XWindowAttributes* = 0); ~Frame(); - Window window() const {return window_;} + XWindow window() const {return window_;} Frame* transient_for() const {return transient_for_;} int is_transient_for(const Frame*) const; @@ -185,8 +190,8 @@ }; // handy wrappers for those ugly X routines: -void* getProperty(Window, Atom, Atom = AnyPropertyType, int* length = 0); -int getIntProperty(Window, Atom, Atom = AnyPropertyType, int deflt = 0); -void setProperty(Window, Atom, Atom, int); +void* getProperty(XWindow, Atom, Atom = AnyPropertyType, int* length = 0); +int getIntProperty(XWindow, Atom, Atom = AnyPropertyType, int deflt = 0); +void setProperty(XWindow, Atom, Atom, int); #endif diff -Nru /tmp/8FTwAYJlot/flwm-1.00/Hotkeys.C /tmp/KfNDqvamm0/flwm-1.01/Hotkeys.C --- /tmp/8FTwAYJlot/flwm-1.00/Hotkeys.C 2000-09-22 18:53:05.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/Hotkeys.C 2006-06-29 09:18:08.000000000 +0200 @@ -149,6 +149,36 @@ #endif {0}}; +#if FL_MAJOR_VERSION > 1 +// Define missing function, this should get put in fltk2.0: +namespace fltk { +int test_shortcut(int shortcut) { + if (!shortcut) return 0; + + int shift = Fl::event_state(); + // see if any required shift flags are off: + if ((shortcut&shift) != (shortcut&0x7fff0000)) return 0; + // record shift flags that are wrong: + int mismatch = (shortcut^shift)&0x7fff0000; + // these three must always be correct: + if (mismatch&(FL_META|FL_ALT|FL_CTRL)) return 0; + + int key = shortcut & 0xffff; + + // if shift is also correct, check for exactly equal keysyms: + if (!(mismatch&(FL_SHIFT)) && unsigned(key) == Fl::event_key()) return 1; + + // try matching ascii, ignore shift: + if (key == event_text()[0]) return 1; + + // kludge so that Ctrl+'_' works (as opposed to Ctrl+'^_'): + if ((shift&FL_CTRL) && key >= 0x3f && key <= 0x5F + && event_text()[0]==(key^0x40)) return 1; + return 0; +} +} +#endif + int Handle_Hotkey() { for (int i = 0; keybindings[i].key; i++) { if (Fl::test_shortcut(keybindings[i].key) || @@ -165,7 +195,7 @@ extern Fl_Window* Root; void Grab_Hotkeys() { - Window root = fl_xid(Root); + XWindow root = fl_xid(Root); for (int i = 0; keybindings[i].key; i++) { int k = keybindings[i].key; int keycode = XKeysymToKeycode(fl_display, k & 0xFFFF); diff -Nru /tmp/8FTwAYJlot/flwm-1.00/logo.fl /tmp/KfNDqvamm0/flwm-1.01/logo.fl --- /tmp/8FTwAYJlot/flwm-1.00/logo.fl 1970-01-01 01:00:00.000000000 +0100 +++ /tmp/KfNDqvamm0/flwm-1.01/logo.fl 2006-04-13 18:06:59.000000000 +0200 @@ -0,0 +1,19 @@ +# data file for the FLTK User Interface Designer (FLUID) +version 2.0100 +header_name {.h} +code_name {.cxx} +gridx 5 +gridy 5 +snap 3 +Function {make_window()} {open +} { + {fltk::Window} {} { + label flwm open + xywh {990 285 265 115} visible + } { + {fltk::Group} {} { + label {The Fast Light Window Manager} open selected + xywh {0 0 265 115} align 128 box PLASTIC_UP_BOX labelfont 1 labeltype ENGRAVED_LABEL color 0x7d9dae00 textcolor 0x979b9700 labelcolor 0x393a3900 labelsize 27 + } {} + } +} diff -Nru /tmp/8FTwAYJlot/flwm-1.00/main.C /tmp/KfNDqvamm0/flwm-1.01/main.C --- /tmp/8FTwAYJlot/flwm-1.00/main.C 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/main.C 2006-06-29 09:17:24.000000000 +0200 @@ -43,10 +43,15 @@ class Fl_Root : public Fl_Window { int handle(int); public: - Fl_Root() : Fl_Window(0,0,Fl::w(),Fl::h()) {} + Fl_Root() : Fl_Window(0,0,Fl::w(),Fl::h()) { +#if FL_MAJOR_VERSION > 1 + clear_double_buffer(); +#endif + } void show() { if (!shown()) Fl_X::set_xid(this, RootWindow(fl_display, fl_screen)); } + void flush() {} }; Fl_Window *Root; @@ -69,7 +74,7 @@ // fltk calls this for any events it does not understand: static int flwm_event_handler(int e) { if (!e) { // XEvent that fltk did not understand. - Window window = fl_xevent->xany.window; + XWindow window = fl_xevent->xany.window; // unfortunately most of the redirect events put the interesting // window id in a different place: switch (fl_xevent->type) { @@ -107,18 +112,31 @@ const XMapRequestEvent* e = &(fl_xevent->xmaprequest); (void)new Frame(e->window); return 1;} - case KeyRelease: { +#if FL_MAJOR_VERSION<2 + // this was needed for *some* earlier versions of fltk + case KeyRelease: if (!Fl::grab()) return 0; - // see if they released the alt key: - unsigned long keysym = + Fl::e_keysym = XKeycodeToKeysym(fl_display, fl_xevent->xkey.keycode, 0); - if (keysym == FL_Alt_L || keysym == FL_Alt_R) { - Fl::e_keysym = FL_Enter; - return Fl::grab()->handle(FL_KEYBOARD); - } - return 0;} + goto KEYUP; +#endif + } + } else if (e == FL_KEYUP) { +#if FL_MAJOR_VERSION<2 + KEYUP: +#endif + if (!Fl::grab()) return 0; + // when alt key released, pretend they hit enter & pick menu item + if (Fl::event_key()==FL_Alt_L || Fl::event_key()==FL_Alt_R) { + Fl::e_keysym = FL_Enter; +#if FL_MAJOR_VERSION>1 + return Fl::modal()->handle(FL_KEYBOARD); +#else + return Fl::grab()->handle(FL_KEYBOARD); +#endif } - } else if (e == FL_SHORTCUT) { + return 0; + } else if (e == FL_SHORTCUT || e == FL_KEYBOARD) { #if FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION == 0 && FL_PATCH_VERSION < 3 // make the tab keys work in the menus in older fltk's: // (they do not cycle around however, so a new fltk is a good idea) @@ -189,28 +207,26 @@ #endif static const char* cfg, *cbg; +#if FL_MAJOR_VERSION>1 +static fltk::Cursor* cursor = FL_CURSOR_ARROW; +extern FL_API fltk::Color fl_cursor_fg; +extern FL_API fltk::Color fl_cursor_bg; +#else static int cursor = FL_CURSOR_ARROW; - -static void color_setup(Fl_Color slot, const char* arg, ulong value) { - if (arg) { - XColor x; - if (XParseColor(fl_display, fl_colormap, arg, &x)) - value = ((x.red>>8)<<24)|((x.green>>8)<<16)|((x.blue)); - } - Fl::set_color(slot, value); -} +#endif static void initialize() { Display* d = fl_display; #ifdef TEST - Window w = XCreateSimpleWindow(d, root, + XWindow w = XCreateSimpleWindow(d, RootWindow(d, fl_screen), 100, 100, 200, 300, 10, BlackPixel(fl_display, 0), // WhitePixel(fl_display, 0)); 0x1234); Frame* frame = new Frame(w); + frame->label("flwm test window"); XSelectInput(d, w, ExposureMask | StructureNotifyMask | KeyPressMask | KeyReleaseMask | FocusChangeMask | @@ -230,9 +246,12 @@ ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | KeyPressMask | KeyReleaseMask | KeymapStateMask); - color_setup(CURSOR_FG_SLOT, cfg, CURSOR_FG_COLOR<<8); - color_setup(CURSOR_BG_SLOT, cbg, CURSOR_BG_COLOR<<8); +#if FL_MAJOR_VERSION>1 + Root->cursor(cursor); +#else Root->cursor((Fl_Cursor)cursor, CURSOR_FG_SLOT, CURSOR_BG_SLOT); +#endif + Fl::visible_focus(0); #ifdef TITLE_FONT Fl::set_font(TITLE_FONT_SLOT, TITLE_FONT); @@ -247,7 +266,7 @@ // Gnome crap: // First create a window that can be watched to see if wm dies: Atom a = XInternAtom(d, "_WIN_SUPPORTING_WM_CHECK", False); - Window win = XCreateSimpleWindow(d, fl_xid(Root), -200, -200, 5, 5, 0, 0, 0); + XWindow win = XCreateSimpleWindow(d, fl_xid(Root), -200, -200, 5, 5, 0, 0, 0); CARD32 val = win; XChangeProperty(d, fl_xid(Root), a, XA_CARDINAL, 32, PropModeReplace, (uchar*)&val, 1); XChangeProperty(d, win, a, XA_CARDINAL, 32, PropModeReplace, (uchar*)&val, 1); @@ -287,7 +306,7 @@ // find all the windows and create a Frame for each: unsigned int n; - Window w1, w2, *wins; + XWindow w1, w2, *wins; XWindowAttributes attr; XQueryTree(d, fl_xid(Root), &w1, &w2, &wins, &n); for (i = 0; i < n; ++i) { @@ -298,7 +317,6 @@ XFree((void *)wins); #endif - Fl::visible_focus(0); } //////////////////////////////////////////////////////////////// @@ -329,8 +347,10 @@ cfg = v; } else if (!strcmp(s, "cbg")) { cbg = v; +#if FL_MAJOR_VERSION < 2 } else if (*s == 'c') { cursor = atoi(v); +#endif } else if (*s == 'v') { int visid = atoi(v); fl_open_display(); @@ -351,6 +371,17 @@ return 2; } +#if FL_MAJOR_VERSION<2 +static void color_setup(Fl_Color slot, const char* arg, ulong value) { + if (arg) { + XColor x; + if (XParseColor(fl_display, fl_colormap, arg, &x)) + value = ((x.red>>8)<<24)|((x.green>>8)<<16)|((x.blue)); + } + Fl::set_color(slot, value); +} +#endif + int main(int argc, char** argv) { program_name = fl_filename_name(argv[0]); int i; if (Fl::args(argc, argv, i, arg) < argc) Fl::error( @@ -370,8 +401,22 @@ #ifndef FL_NORMAL_SIZE // detect new versions of fltk where this is a variable FL_NORMAL_SIZE = 12; #endif +#if FL_MAJOR_VERSION>1 + if (cfg) fl_cursor_fg = fltk::color(cfg); + if (cbg) fl_cursor_bg = fltk::color(cbg); +#else + fl_open_display(); + color_setup(CURSOR_FG_SLOT, cfg, CURSOR_FG_COLOR<<8); + color_setup(CURSOR_BG_SLOT, cbg, CURSOR_BG_COLOR<<8); Fl::set_color(FL_SELECTION_COLOR,0,0,128); - Root = new Fl_Root(); +#endif + Fl_Root root; + Root = &root; +#if FL_MAJOR_VERSION>1 + // show() is not a virtual function in fltk2.0, this fools it: + fltk::load_theme(); + root.show(); +#endif Root->show(argc,argv); // fools fltk into using -geometry to set the size XSetErrorHandler(xerror_handler); initialize(); diff -Nru /tmp/8FTwAYJlot/flwm-1.00/Makefile /tmp/KfNDqvamm0/flwm-1.01/Makefile --- /tmp/8FTwAYJlot/flwm-1.00/Makefile 2000-09-22 18:53:04.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/Makefile 2006-06-30 00:11:16.000000000 +0200 @@ -1,7 +1,7 @@ SHELL=/bin/sh PROGRAM = flwm -VERSION = 1.00 +VERSION = 1.01 CXXFILES = main.C Frame.C Rotated.C Menu.C FrameWindow.C Desktop.C Hotkeys.C diff -Nru /tmp/8FTwAYJlot/flwm-1.00/Menu.C /tmp/KfNDqvamm0/flwm-1.01/Menu.C --- /tmp/8FTwAYJlot/flwm-1.00/Menu.C 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/Menu.C 2006-06-30 11:01:41.000000000 +0200 @@ -20,24 +20,6 @@ #include #include -static char *double_ampersand(const char *s) -{ - long i,l; - for(i=0,l=0;s[i];i++) - if (s[i]=='&') - l++; - char *c = new (char [l+i+1]); - for(i=0,l=0;s[i];i++) - { - c[l++]=s[i]; - if (s[i]=='&') - c[l++]=s[i]; - } - c[l]=0; - return c; -} - - // it is possible for the window to be deleted or withdrawn while // the menu is up. This will detect that case (with reasonable // reliability): @@ -79,6 +61,7 @@ extern Fl_Window* Root; +#if FL_MAJOR_VERSION < 2 static void frame_label_draw(const Fl_Label* o, int X, int Y, int W, int H, Fl_Align align) { @@ -108,11 +91,19 @@ } fl_font(o->font, o->size); fl_color((Fl_Color)o->color); - const char* l = f->label(); - if (!l) l = "unnamed"; - else l = double_ampersand(f->label()); + const char* l = f->label(); if (!l) l = "unnamed"; + // double any ampersands to turn off the underscores: + char buf[256]; + if (strchr(l,'&')) { + char* t = buf; + while (t < buf+254 && *l) { + if (*l=='&') *t++ = *l; + *t++ = *l++; + } + *t = 0; + l = buf; + } fl_draw(l, X+MENU_ICON_W+3, Y, W-MENU_ICON_W-3, H, align); - delete l; } static void @@ -152,6 +143,8 @@ #define FRAME_LABEL FL_FREE_LABELTYPE #define TEXT_LABEL Fl_Labeltype(FL_FREE_LABELTYPE+1) +#endif // FL_MAJOR_VERSION < 2 + //////////////////////////////////////////////////////////////// static void @@ -176,7 +169,7 @@ #if ASK_FOR_NEW_DESKTOP_NAME -static Fl_Input* new_desktop_input; +static Fl_Input* new_desktop_input = 0; static void new_desktop_ok_cb(Fl_Widget* w, void*) @@ -226,6 +219,7 @@ static void exit_cb(Fl_Widget*, void*) { + printf("exit_cb\n"); Frame::save_protocol(); exit(0); } @@ -233,7 +227,7 @@ static void logout_cb(Fl_Widget*, void*) { - static FrameWindow* w; + static FrameWindow* w = 0; if (!w) { w = new FrameWindow(190,90); Fl_Box* l = new Fl_Box(0, 0, 190, 60, "Really log out?"); @@ -267,8 +261,8 @@ if (fork() == 0) { if (fork() == 0) { close(ConnectionNumber(fl_display)); - if (name == xtermname) execlp(name, name, "-ut", NULL); - else execl(name, name, NULL); + if (name == xtermname) execlp(name, name, "-ut", (void*)0); + else execl(name, name, (void*)0); fprintf(stderr, "flwm: can't run %s, %s\n", name, strerror(errno)); XBell(fl_display, 70); exit(1); @@ -299,7 +293,11 @@ m.style = 0; #endif m.label(data); +#if FL_MAJOR_VERSION > 2 + m.flags = fltk::RAW_LABEL; +#else m.flags = 0; +#endif m.labeltype(FL_NORMAL_LABEL); m.shortcut(0); m.labelfont(MENU_FONT_SLOT); @@ -444,8 +442,10 @@ static char beenhere; if (!beenhere) { beenhere = 1; +#if FL_MAJOR_VERSION < 2 Fl::set_labeltype(FRAME_LABEL, frame_label_draw, frame_label_measure); Fl::set_labeltype(TEXT_LABEL, label_draw, label_measure); +#endif if (exit_flag) { Fl_Menu_Item* m = other_menu_items+num_other_items-2; m->label("Exit"); @@ -532,8 +532,12 @@ #endif for (c = Frame::first; c; c = c->next) { if (c->state() == UNMAPPED || c->transient_for()) continue; +#if FL_MAJOR_VERSION < 2 init(menu[n],(char*)c); menu[n].labeltype(FRAME_LABEL); +#else + init(menu[n],c->label()); +#endif menu[n].callback(frame_callback, c); if (is_active_frame(c)) preset = menu+n; n++; @@ -562,7 +566,12 @@ if (c->state() == UNMAPPED || c->transient_for()) continue; if (c->desktop() == d || !c->desktop() && d == Desktop::current()) { init(menu[n],(char*)c); +#if FL_MAJOR_VERSION < 2 + init(menu[n],(char*)c); menu[n].labeltype(FRAME_LABEL); +#else + init(menu[n],c->label()); +#endif menu[n].callback(d == Desktop::current() ? frame_callback : move_frame_callback, c); if (d == Desktop::current() && is_active_frame(c)) preset = menu+n; @@ -606,13 +615,14 @@ cmd = wmxlist[i]; cmd += strspn(cmd, "/")-1; init(menu[n], cmd+pathlen[level]); +#if FL_MAJOR_VERSION < 2 #if DESKTOPS if (one_desktop) #endif if (!level) menu[n].labeltype(TEXT_LABEL); - - int nextlev = (i==num_wmx-1)?0:strspn(wmxlist[i+1], "/")-1; +#endif + int nextlev = (i==num_wmx-1)?0:strspn(wmxlist[i+1], "/")-1; if (nextlev < level) { menu[n].callback(spawn_cb, cmd); // Close 'em off @@ -638,15 +648,19 @@ #endif #endif memcpy(menu+n, other_menu_items, sizeof(other_menu_items)); +#if FL_MAJOR_VERSION < 2 #if DESKTOPS if (one_desktop) #endif // fix the menus items so they are indented to align with window names: while (menu[n].label()) menu[n++].labeltype(TEXT_LABEL); +#endif const Fl_Menu_Item* picked = menu->popup(Fl::event_x(), Fl::event_y(), 0, preset); +#if FL_MAJOR_VERSION < 2 if (picked && picked->callback()) picked->do_callback(0); +#endif } void ShowMenu() {ShowTabMenu(0);} diff -Nru /tmp/8FTwAYJlot/flwm-1.00/patch-stamp /tmp/KfNDqvamm0/flwm-1.01/patch-stamp --- /tmp/8FTwAYJlot/flwm-1.00/patch-stamp 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/patch-stamp 2006-06-30 11:01:41.000000000 +0200 @@ -1,29 +1,8 @@ Patches applied in the Debian version of : -debian/patches/100_fl_filename_name.dpatch (Tommi Virtanen ): - Transition from fltk-1.0 to fltk-1.1. - Applied upstream. - -debian/patches/101_visible_focus.dpatch (Bill Allombert ): - Restore fltk-1.0 focus behaviour - (Applied upstream) - -debian/patches/102_charstruct.dpatch (Tommi Virtanen ): - Support fonts for which fontstruct->per_char is NULL. - (Applied upstream). - -debian/patches/103_man_typo.dpatch (Bill Allombert ): - Fix typo in man page. - -debian/patches/104_g++-4.1_warning.dpatch (Bill Allombert ): - Fix 5 g++ -4.1 warnings - -debian/patches/105_double_ampersand.dpatch (Bill Allombert ): - Handle & in window titles correctly in the windows list. +debian/patches/100_double_ampersand.dpatch (): + fix handling of ampersand in titles in windows list. debian/patches/200_Debian_menu.dpatch (Tommi Virtanen ): Add Debian menu support. -debian/patches/201_background_color.dpatch (Bill Allombert ): - Fix -fg and -bg options - diff -Nru /tmp/8FTwAYJlot/flwm-1.00/README /tmp/KfNDqvamm0/flwm-1.01/README --- /tmp/8FTwAYJlot/flwm-1.00/README 1999-08-24 22:59:35.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/README 2001-04-13 17:40:54.000000000 +0200 @@ -5,7 +5,7 @@ ---------------------------------------------------------------- You need fltk. If you do not have it yet, download it from -http://fltk.easysw.com, and compile and install it. +http://www.fltk.org, and compile and install it. To customize flwm (for instance to turn on click-to-type), edit the config.h file. @@ -22,21 +22,21 @@ How to run flwm: ---------------------------------------------------------------- -Flwm should be run by X when it logs you in. This is done by putting -a call to flwm into the file ~/.xinitrc. With any luck you already -have this file. If not try copying /usr/X11/lib/X11/xinit/xinitrc. -Edit the file and try to remove any call to another window manager -(these are usually near the end). +To run flwm as your login script, you need to create or replace +~/.xinitrc or ~/.xsession (or both). Newer Linux systems with a login +panel use .xsession, older systems where X was started after login +use .xinitrc. You may also have to pick "default" from the "type of +session" popup in your login window. -Recommended contents of ~/.xinitrc: +The .xinitrc or .xsession file should look like this: #!/bin/sh xsetroot -solid \#006060 xrdb .Xresources -# +# xset, xmodmap, other configuration programs flwm & WindowManager=$! -# +# xterm, other automatically-launched programs wait $WindowManager ALLOWING THE WINDOW MANAGER TO EXIT W/O LOGOUT: diff -Nru /tmp/8FTwAYJlot/flwm-1.00/Rotated.C /tmp/KfNDqvamm0/flwm-1.01/Rotated.C --- /tmp/8FTwAYJlot/flwm-1.00/Rotated.C 2006-06-30 11:01:38.000000000 +0200 +++ /tmp/KfNDqvamm0/flwm-1.01/Rotated.C 2005-09-19 06:29:11.000000000 +0200 @@ -27,6 +27,9 @@ /* ********************************************************************** */ #include +#if FL_MAJOR_VERSION < 2 +# define XWindow Window +#endif #include #include "Rotated.H" #include @@ -67,7 +70,7 @@ char val; XImage *I1, *I2; Pixmap canvas; - Window root; + XWindow root; int screen; GC font_gc; char text[3];/*, errstr[300];*/ @@ -116,27 +119,21 @@ /* font needs rotation ... */ /* loop through each character ... */ for (ichar = min_char; ichar <= max_char; ichar++) { - XCharStruct *charstruct; index = ichar-fontstruct->min_char_or_byte2; - if (fontstruct->per_char) { - charstruct = &fontstruct->per_char[index]; - } else { + XCharStruct* charstruct; + if (fontstruct->per_char) + charstruct = fontstruct->per_char+index; + else charstruct = &fontstruct->min_bounds; - } /* per char dimensions ... */ - ascent = rotfont->per_char[ichar].ascent = - charstruct->ascent; - descent = rotfont->per_char[ichar].descent = - charstruct->descent; - lbearing = rotfont->per_char[ichar].lbearing = - charstruct->lbearing; - rbearing = rotfont->per_char[ichar].rbearing = - charstruct->rbearing; - rotfont->per_char[ichar].width = - charstruct->width; + ascent = rotfont->per_char[ichar].ascent = charstruct->ascent; + descent = rotfont->per_char[ichar].descent = charstruct->descent; + lbearing = rotfont->per_char[ichar].lbearing = charstruct->lbearing; + rbearing = rotfont->per_char[ichar].rbearing = charstruct->rbearing; + rotfont->per_char[ichar].width = charstruct->width; /* some space chars have zero body, but a bitmap can't have ... */ if (!ascent && !descent) @@ -242,9 +239,9 @@ } for (ichar = 0; ichar < min_char; ichar++) - rotfont->per_char[ichar] = rotfont->per_char[(int)'?']; + rotfont->per_char[ichar] = rotfont->per_char[int('?')]; for (ichar = max_char+1; ichar < 256; ichar++) - rotfont->per_char[ichar] = rotfont->per_char[(int)'?']; + rotfont->per_char[ichar] = rotfont->per_char[int('?')]; /* free pixmap and GC ... */ XFreePixmap(dpy, canvas); @@ -358,23 +355,25 @@ static XRotFontStruct* font; -void draw_rotated(const char* text, int n, int x, int y, int angle) { - if (!text || !*text) return; +static void setrotfont(int angle) { /* make angle positive ... */ if (angle < 0) do angle += 360; while (angle < 0); /* get nearest vertical or horizontal direction ... */ int dir = ((angle+45)/90)%4; - - if (font && font->xfontstruct == fl_xfont && font->dir == dir) { - ; - } else { - if (font) XRotUnloadFont(fl_display, font); - font = XRotLoadFont(fl_display, fl_xfont, dir); + if (font) { + if (font->xfontstruct == fl_xfont && font->dir == dir) return; + XRotUnloadFont(fl_display, font); } + font = XRotLoadFont(fl_display, fl_xfont, dir); +} + +void draw_rotated(const char* text, int n, int x, int y, int angle) { + if (!text || !*text) return; + setrotfont(angle); XRotDrawString(fl_display, font, fl_window, fl_gc, x, y, text, n); } -#ifndef FLWM +#if !defined(FLWM) || FL_MAJOR_VERSION>=2 void draw_rotated(const char* text, int x, int y, int angle) { if (!text || !*text) return; draw_rotated(text, strlen(text), x, y, angle); @@ -391,12 +390,20 @@ if (!str || !*str) return; if (w && h && !fl_not_clipped(x, y, w, h)) return; if (align & FL_ALIGN_CLIP) fl_clip(x, y, w, h); +#if FL_MAJOR_VERSION>1 + setrotfont(90); + int a = font->xfontstruct->ascent; + int d = font->xfontstruct->descent; + XRotDrawString(fl_display, font, fl_window, fl_gc, + x+(w+a-d+1)/2, y+h, str, strlen(str)); +#else int a1 = align&(-16); if (align & FL_ALIGN_LEFT) a1 |= FL_ALIGN_TOP; if (align & FL_ALIGN_RIGHT) a1 |= FL_ALIGN_BOTTOM; if (align & FL_ALIGN_TOP) a1 |= FL_ALIGN_RIGHT; if (align & FL_ALIGN_BOTTOM) a1 |= FL_ALIGN_LEFT; fl_draw(str, -(y+h), x, h, w, (Fl_Align)a1, draw_rot90); +#endif if (align & FL_ALIGN_CLIP) fl_pop_clip(); } diffstat-1.68/testing/case06r2.ref0000644000000000000000000000046310277702415015462 0ustar rootroot NEWS | 2 + ncurses/lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++------------ ncurses/lib_initscr.c | 4 ++ ncurses/lib_pad.c | 48 +++++++++++++++++++++----- test/ncurses.c | 29 ++++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case36.pat0000644000000000000000000003566612133111025015226 0ustar rootrootdiff -r -c diffstat/config.cache diffstat.orig/config.cache *** diffstat/config.cache Fri Mar 15 19:27:13 1996 --- diffstat.orig/config.cache Fri Mar 15 19:51:02 1996 *************** *** 13,28 **** # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ! ac_cv_c_cross=${ac_cv_c_cross='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} ! ac_cv_header_stdc=${ac_cv_header_stdc='no'} ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h='yes'} ac_cv_header_string_h=${ac_cv_header_string_h='yes'} ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'} ac_cv_path_install=${ac_cv_path_install='/home/tom/com/install -c'} ! ac_cv_prog_CC=${ac_cv_prog_CC='atacCC'} ! ac_cv_prog_CPP=${ac_cv_prog_CPP='atacCC -E'} ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'} ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'} ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'} --- 13,28 ---- # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ! ac_cv_c_cross=${ac_cv_c_cross='no'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} ! ac_cv_header_stdc=${ac_cv_header_stdc='yes'} ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h='yes'} ac_cv_header_string_h=${ac_cv_header_string_h='yes'} ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'} ac_cv_path_install=${ac_cv_path_install='/home/tom/com/install -c'} ! ac_cv_prog_CC=${ac_cv_prog_CC='gcc'} ! ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'} ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'} ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'} ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'} diff -r -c diffstat/config.h diffstat.orig/config.h *** diffstat/config.h Fri Mar 15 19:27:15 1996 --- diffstat.orig/config.h Fri Mar 15 19:51:04 1996 *************** *** 6,11 **** --- 6,12 ---- */ + #define STDC_HEADERS 1 #define HAVE_STDLIB_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETOPT_H 1 diff -r -c diffstat/config.log diffstat.orig/config.log *** diffstat/config.log Fri Mar 15 19:26:59 1996 --- diffstat.orig/config.log Fri Mar 15 19:50:58 1996 *************** *** 2,27 **** running configure, to aid debugging if configure makes a mistake. configure:607: sgtty.h: No such file or directory ! /usr/tmp/atacCC17934/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' ! /usr/tmp/atacCC17934/conftest.c:66: warning: function declaration isn't a prototype ! /usr/tmp/atacCC17934/conftest.c: In function `main': ! /usr/tmp/atacCC17934/conftest.c:67: warning: implicit declaration of function `aTaC' ! /usr/tmp/atacCC17934/conftest.c: At top level: ! /usr/tmp/atacCC17934/conftest.c:76: warning: function declaration isn't a prototype ! /usr/tmp/atacCC17934/conftest.c: In function `t': ! /usr/tmp/atacCC17934/conftest.c:97: warning: declaration of `t' shadows global declaration ! /usr/tmp/atacCC17934/conftest.c:98: warning: unused variable `s' ! /usr/tmp/atacCC17934/conftest.c:104: warning: declaration of `x' shadows previous local ! /usr/tmp/atacCC17934/conftest.c:111: warning: declaration of `p' shadows previous local ! /usr/tmp/atacCC17934/conftest.c:125: warning: unused variable `foo' ! /usr/tmp/atacCC17934/conftest.c:86: warning: unused variable `zero' ! /usr/tmp/atacCC17934/conftest.c:80: warning: unused variable `x' ! /usr/tmp/atacCC17934/conftest.c: At top level: ! /usr/tmp/atacCC17934/conftest.c:1: warning: `ZIDENT' defined but not used ! /usr/tmp/atacCC17972/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' ! /usr/tmp/atacCC17972/conftest.c:39: warning: return-type defaults to `int' ! /usr/tmp/atacCC17972/conftest.c:39: warning: function declaration isn't a prototype ! /usr/tmp/atacCC17972/conftest.c: In function `main': ! /usr/tmp/atacCC17972/conftest.c:40: warning: implicit declaration of function `aTaC' ! /usr/tmp/atacCC17972/conftest.c: At top level: ! /usr/tmp/atacCC17972/conftest.c:1: warning: `ZIDENT' defined but not used --- 2,19 ---- running configure, to aid debugging if configure makes a mistake. configure:607: sgtty.h: No such file or directory ! configure:659: warning: function declaration isn't a prototype ! configure:660: warning: function declaration isn't a prototype ! configure: In function `t': ! configure:680: warning: declaration of `t' shadows global declaration ! configure:681: warning: unused variable `s' ! configure:686: warning: declaration of `x' shadows previous local ! configure:692: warning: declaration of `p' shadows previous local ! configure:701: warning: unused variable `foo' ! configure:669: warning: unused variable `zero' ! configure:663: warning: unused variable `x' ! configure:680: warning: `t' might be used uninitialized in this function ! configure:698: warning: `b' might be used uninitialized in this function ! configure:735: warning: return-type defaults to `int' ! configure:735: warning: function declaration isn't a prototype ! configure:821: warning: function declaration isn't a prototype diff -r -c diffstat/config.status diffstat.orig/config.status *** diffstat/config.status Fri Mar 15 19:27:14 1996 --- diffstat.orig/config.status Fri Mar 15 19:51:03 1996 *************** *** 4,10 **** # This directory was configured as follows, # on host dickey-ppp: # ! # ./configure # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. --- 4,10 ---- # This directory was configured as follows, # on host dickey-ppp: # ! # ./configure --verbose --disable-echo --enable-warnings --with-warnings # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. *************** *** 14,21 **** do case "$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion" ! exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "./config.status generated by autoconf version 2.3" exit 0 ;; --- 14,21 ---- do case "$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! echo "running ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion" ! exec ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "./config.status generated by autoconf version 2.3" exit 0 ;; *************** *** 38,53 **** s%@CFLAGS@%-O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes%g s%@CPPFLAGS@%%g s%@CXXFLAGS@%%g ! s%@DEFS@% -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g s%@LDFLAGS@%%g s%@LIBS@%%g s%@exec_prefix@%${prefix}%g s%@prefix@%/usr/local%g s%@program_transform_name@%s,x,x,%g ! s%@CC@%atacCC%g s%@INSTALL_PROGRAM@%${INSTALL}%g s%@INSTALL_DATA@%${INSTALL} -m 644%g ! s%@CPP@%atacCC -E%g CEOF --- 38,53 ---- s%@CFLAGS@%-O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes%g s%@CPPFLAGS@%%g s%@CXXFLAGS@%%g ! s%@DEFS@% -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g s%@LDFLAGS@%%g s%@LIBS@%%g s%@exec_prefix@%${prefix}%g s%@prefix@%/usr/local%g s%@program_transform_name@%s,x,x,%g ! s%@CC@%gcc%g s%@INSTALL_PROGRAM@%${INSTALL}%g s%@INSTALL_DATA@%${INSTALL} -m 644%g ! s%@CPP@%gcc -E%g CEOF Only in diffstat.orig: configure.out Files diffstat/diffstat and diffstat.orig/diffstat differ Files diffstat/diffstat.o and diffstat.orig/diffstat.o differ diff -r -c diffstat/makefile diffstat.orig/makefile *** diffstat/makefile Fri Mar 15 19:27:15 1996 --- diffstat.orig/makefile Fri Mar 15 19:51:04 1996 *************** *** 7,13 **** srcdir = . ! CC = atacCC LINK = $(CC) INSTALL = /home/tom/com/install -c INSTALL_PROGRAM = ${INSTALL} --- 7,13 ---- srcdir = . ! CC = gcc LINK = $(CC) INSTALL = /home/tom/com/install -c INSTALL_PROGRAM = ${INSTALL} Only in diffstat/testing: Xlib-1.patch- Only in diffstat/testing: Xlib-1.ref Only in diffstat/testing: Xlib-2.patch- Only in diffstat/testing: Xlib-2.ref Only in diffstat/testing: Xlib-3.patch- Only in diffstat/testing: Xlib-3.ref Only in diffstat/testing: config-1.ref Only in diffstat/testing: nugent.ref Only in diffstat/testing: xserver-1.ref Only in diffstat/testing: xserver-2.patch- Only in diffstat/testing: xserver-2.ref Only in diffstat/testing: xterm-1.patch- Only in diffstat/testing: xterm-1.ref Only in diffstat/testing: xterm-10.patch- Only in diffstat/testing: xterm-10.ref Only in diffstat/testing: xterm-11.patch- Only in diffstat/testing: xterm-11.ref Only in diffstat/testing: xterm-2.patch- Only in diffstat/testing: xterm-2.ref Only in diffstat/testing: xterm-3.patch- Only in diffstat/testing: xterm-3.ref Only in diffstat/testing: xterm-4.patch- Only in diffstat/testing: xterm-4.ref Only in diffstat/testing: xterm-5.patch- Only in diffstat/testing: xterm-5.ref Only in diffstat/testing: xterm-6.patch- Only in diffstat/testing: xterm-6.ref Only in diffstat/testing: xterm-7.ref Only in diffstat/testing: xterm-8.patch- Only in diffstat/testing: xterm-8.ref Only in diffstat/testing: xterm-9.patch- Only in diffstat/testing: xterm-9.ref diff -r diffstat/config.cache diffstat.orig/config.cache 16c16 < ac_cv_c_cross=${ac_cv_c_cross='yes'} --- > ac_cv_c_cross=${ac_cv_c_cross='no'} 19c19 < ac_cv_header_stdc=${ac_cv_header_stdc='no'} --- > ac_cv_header_stdc=${ac_cv_header_stdc='yes'} 24,25c24,25 < ac_cv_prog_CC=${ac_cv_prog_CC='atacCC'} < ac_cv_prog_CPP=${ac_cv_prog_CPP='atacCC -E'} --- > ac_cv_prog_CC=${ac_cv_prog_CC='gcc'} > ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'} diff -r diffstat/config.h diffstat.orig/config.h 8a9 > #define STDC_HEADERS 1 diff -r diffstat/config.log diffstat.orig/config.log 5,27c5,19 < /usr/tmp/atacCC17934/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' < /usr/tmp/atacCC17934/conftest.c:66: warning: function declaration isn't a prototype < /usr/tmp/atacCC17934/conftest.c: In function `main': < /usr/tmp/atacCC17934/conftest.c:67: warning: implicit declaration of function `aTaC' < /usr/tmp/atacCC17934/conftest.c: At top level: < /usr/tmp/atacCC17934/conftest.c:76: warning: function declaration isn't a prototype < /usr/tmp/atacCC17934/conftest.c: In function `t': < /usr/tmp/atacCC17934/conftest.c:97: warning: declaration of `t' shadows global declaration < /usr/tmp/atacCC17934/conftest.c:98: warning: unused variable `s' < /usr/tmp/atacCC17934/conftest.c:104: warning: declaration of `x' shadows previous local < /usr/tmp/atacCC17934/conftest.c:111: warning: declaration of `p' shadows previous local < /usr/tmp/atacCC17934/conftest.c:125: warning: unused variable `foo' < /usr/tmp/atacCC17934/conftest.c:86: warning: unused variable `zero' < /usr/tmp/atacCC17934/conftest.c:80: warning: unused variable `x' < /usr/tmp/atacCC17934/conftest.c: At top level: < /usr/tmp/atacCC17934/conftest.c:1: warning: `ZIDENT' defined but not used < /usr/tmp/atacCC17972/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' < /usr/tmp/atacCC17972/conftest.c:39: warning: return-type defaults to `int' < /usr/tmp/atacCC17972/conftest.c:39: warning: function declaration isn't a prototype < /usr/tmp/atacCC17972/conftest.c: In function `main': < /usr/tmp/atacCC17972/conftest.c:40: warning: implicit declaration of function `aTaC' < /usr/tmp/atacCC17972/conftest.c: At top level: < /usr/tmp/atacCC17972/conftest.c:1: warning: `ZIDENT' defined but not used --- > configure:659: warning: function declaration isn't a prototype > configure:660: warning: function declaration isn't a prototype > configure: In function `t': > configure:680: warning: declaration of `t' shadows global declaration > configure:681: warning: unused variable `s' > configure:686: warning: declaration of `x' shadows previous local > configure:692: warning: declaration of `p' shadows previous local > configure:701: warning: unused variable `foo' > configure:669: warning: unused variable `zero' > configure:663: warning: unused variable `x' > configure:680: warning: `t' might be used uninitialized in this function > configure:698: warning: `b' might be used uninitialized in this function > configure:735: warning: return-type defaults to `int' > configure:735: warning: function declaration isn't a prototype > configure:821: warning: function declaration isn't a prototype diff -r diffstat/config.status diffstat.orig/config.status 7c7 < # ./configure --- > # ./configure --verbose --disable-echo --enable-warnings --with-warnings 17,18c17,18 < echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion" < exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;; --- > echo "running ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion" > exec ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion ;; 41c41 < s%@DEFS@% -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g --- > s%@DEFS@% -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g 47c47 < s%@CC@%atacCC%g --- > s%@CC@%gcc%g 50c50 < s%@CPP@%atacCC -E%g --- > s%@CPP@%gcc -E%g Only in diffstat.orig: configure.out Files diffstat/diffstat and diffstat.orig/diffstat differ Files diffstat/diffstat.o and diffstat.orig/diffstat.o differ diff -r diffstat/makefile diffstat.orig/makefile 10c10 < CC = atacCC --- > CC = gcc Only in diffstat/testing: Xlib-1.patch- Only in diffstat/testing: Xlib-1.ref Only in diffstat/testing: Xlib-2.patch- Only in diffstat/testing: Xlib-2.ref Only in diffstat/testing: Xlib-3.patch- Only in diffstat/testing: Xlib-3.ref Only in diffstat/testing: config-1.ref Only in diffstat/testing: nugent.ref Only in diffstat/testing: xserver-1.ref Only in diffstat/testing: xserver-2.patch- Only in diffstat/testing: xserver-2.ref Only in diffstat/testing: xterm-1.patch- Only in diffstat/testing: xterm-1.ref Only in diffstat/testing: xterm-10.patch- Only in diffstat/testing: xterm-10.ref Only in diffstat/testing: xterm-11.patch- Only in diffstat/testing: xterm-11.ref Only in diffstat/testing: xterm-2.patch- Only in diffstat/testing: xterm-2.ref Only in diffstat/testing: xterm-3.patch- Only in diffstat/testing: xterm-3.ref Only in diffstat/testing: xterm-4.patch- Only in diffstat/testing: xterm-4.ref Only in diffstat/testing: xterm-5.patch- Only in diffstat/testing: xterm-5.ref Only in diffstat/testing: xterm-6.patch- Only in diffstat/testing: xterm-6.ref Only in diffstat/testing: xterm-7.ref Only in diffstat/testing: xterm-8.patch- Only in diffstat/testing: xterm-8.ref Only in diffstat/testing: xterm-9.patch- Only in diffstat/testing: xterm-9.ref diffstat-1.68/testing/case33r2.ref0000644000000000000000000000010511246713507015454 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case20p9.ref0000644000000000000000000000017207605627533015470 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case36u.ref0000644000000000000000000000337312133111243015373 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++------------!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case33Rp0.ref0000644000000000000000000000011111700545545015567 0ustar rootroot README.new | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case02r1.ref0000644000000000000000000000041210277702415015447 0ustar rootroot bug-report | 2 ! clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! clients/xterm/misc.c | 104 ++++++++++++++++++++++++++++++++++++++!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case02R.ref0000644000000000000000000000037111700545533015330 0ustar rootroot da17839 | 98 +++------------!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! da20646 | 2 ! da21897 | 104 --------------------------------------------------!!!!!!!!!!!!!! 3 files changed, 5 insertions(+), 102 deletions(-), 97 modifications(!) diffstat-1.68/testing/case25p9.ref0000644000000000000000000000054310160421167015460 0ustar rootroot CHANGES | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 +- cmdtbl | 15 ++++++++++--- configure.in | 16 ++++++++++---- filters.doc | 36 +++++++++++++++++++++++++++++-- macros.doc | 67 ++++++++++++++++++++++++++++++++++++----------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case12u.ref0000644000000000000000000000022207530534455015376 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case34b.ref0000644000000000000000000000014411762443774015367 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case38l.pat0000644000000000000000000001031212546610505015400 0ustar rootrootdiff -r -u -N "test ink/READ ME!" "testing/READ ME!" --- "test ink/READ ME!" 1969-12-31 19:00:00.000000000 -0500 +++ "testing/READ ME!" 2004-12-18 07:19:21.000000000 -0500 @@ -0,0 +1,5 @@ +-- @Id: README,v 1.1 2004/12/18 12:19:21 tom Exp @ + +The files in this directory are used for regression-checks of diffstat. The +full test-suite is not distributed since some of the test-data is not freely +distributable. diff -r -u -N "test ink/README ?" "testing/README ?" --- "test ink/README ?" 2004-12-18 07:19:21.000000000 -0500 +++ "testing/README ?" 1969-12-31 19:00:00.000000000 -0500 @@ -1,5 +0,0 @@ --- @Id: README,v 1.1 2004/12/18 12:19:21 tom Exp @ - -The files in this directory are used for regression-checks of diffstat. The -full test-suite is not distributed since some of the test-data is not freely -distributable. diff -r -u -N "test ink/run atac.sh" "testing/run atac.sh" --- "test ink/run atac.sh" 1969-12-31 19:00:00.000000000 -0500 +++ "testing/run atac.sh" 1998-01-16 20:10:06.000000000 -0500 @@ -0,0 +1,6 @@ +#!/bin/sh +# @Id: run_atac.sh,v 1.2 1998/01/17 01:10:06 tom Exp @ +rm -f /tmp/atac_dir/* +run_test.sh +atac -u ../*.atac /tmp/atac_dir/* +atacmin ../*.atac /tmp/atac_dir/* diff -r -u -N "test ink/run_atac.sh" testing/run_atac.sh --- "test ink/run_atac.sh" 1998-01-16 20:10:06.000000000 -0500 +++ testing/run_atac.sh 1969-12-31 19:00:00.000000000 -0500 @@ -1,6 +0,0 @@ -#!/bin/sh -# @Id: run_atac.sh,v 1.2 1998/01/17 01:10:06 tom Exp @ -rm -f /tmp/atac_dir/* -run_test.sh -atac -u ../*.atac /tmp/atac_dir/* -atacmin ../*.atac /tmp/atac_dir/* diff -r -u -N "test ink/run test.sh" "testing/run test.sh" --- "test ink/run test.sh" 1969-12-31 19:00:00.000000000 -0500 +++ "testing/run test.sh" 2012-01-03 05:18:14.000000000 -0500 @@ -0,0 +1,51 @@ +#!/bin/sh +# @Id: run_test.sh,v 1.15 2012/01/03 10:18:14 tom Exp @ +# Test-script for DIFFSTAT + +# change this for ad hoc testing of compression +#TYPE=.pat.Z +#TYPE=.pat.gz +#TYPE=.pat.bz2 +TYPE=.pat + +if [ $# = 0 ] +then + eval '"$0" *${TYPE}' + exit +fi +PATH=`cd ..;pwd`:$PATH; export PATH +# Sanity check, remembering that not every system has `which'. +(which diffstat) >/dev/null 2>/dev/null && echo "Checking `which diffstat`" + +for item in $* +do + echo "testing `basename $item $TYPE`" + for OPTS in "" "-p1" "-p9" "-f0" "-u" "-k" "-r1" "-r2" "-b" "-R" "-Rp0" + do + NAME=`echo $item | sed -e 's/'$TYPE'$//'` + DATA=${NAME}${TYPE} + if [ ".$OPTS" != "." ] ; then + NAME=$NAME`echo ./$OPTS|sed -e 's@./-@@'` + fi + TEST=`basename $NAME` + diffstat -e $TEST.err -o $TEST.out $OPTS $DATA + if [ -f $NAME.ref ] + then + diff -b $NAME.ref $TEST.out >check.out + if test -s check.out + then + echo "?? fail: $TEST" + ls -l check.out + cat check.out + else + echo "** ok: $TEST" + rm -f $TEST.out + rm -f $TEST.err + fi + else + echo "** save: $TEST" + mv $TEST.out $NAME.ref + rm -f $TEST.err + fi + done +done diff -r -u -N "test ink/run_test.sh" testing/run_test.sh --- "test ink/run_test.sh" 2012-01-03 05:18:14.000000000 -0500 +++ testing/run_test.sh 1969-12-31 19:00:00.000000000 -0500 @@ -1,51 +0,0 @@ -#!/bin/sh -# @Id: run_test.sh,v 1.15 2012/01/03 10:18:14 tom Exp @ -# Test-script for DIFFSTAT - -# change this for ad hoc testing of compression -#TYPE=.pat.Z -#TYPE=.pat.gz -#TYPE=.pat.bz2 -TYPE=.pat - -if [ $# = 0 ] -then - eval '"$0" *${TYPE}' - exit -fi -PATH=`cd ..;pwd`:$PATH; export PATH -# Sanity check, remembering that not every system has `which'. -(which diffstat) >/dev/null 2>/dev/null && echo "Checking `which diffstat`" - -for item in $* -do - echo "testing `basename $item $TYPE`" - for OPTS in "" "-p1" "-p9" "-f0" "-u" "-k" "-r1" "-r2" "-b" "-R" "-Rp0" - do - NAME=`echo $item | sed -e 's/'$TYPE'$//'` - DATA=${NAME}${TYPE} - if [ ".$OPTS" != "." ] ; then - NAME=$NAME`echo ./$OPTS|sed -e 's@./-@@'` - fi - TEST=`basename $NAME` - diffstat -e $TEST.err -o $TEST.out $OPTS $DATA - if [ -f $NAME.ref ] - then - diff -b $NAME.ref $TEST.out >check.out - if test -s check.out - then - echo "?? fail: $TEST" - ls -l check.out - cat check.out - else - echo "** ok: $TEST" - rm -f $TEST.out - rm -f $TEST.err - fi - else - echo "** save: $TEST" - mv $TEST.out $NAME.ref - rm -f $TEST.err - fi - done -done diffstat-1.68/testing/case08f0.ref0000644000000000000000000000052307530543242015442 0ustar rootroot Imakefile | 15 15 + 0 - 0 ! Tekproc.c | 7 7 + 0 - 0 ! charproc.c | 22 22 + 0 - 0 ! data.c | 4 4 + 0 - 0 ! main.c | 20 6 + 2 - 12 ! menu.c | 6 0 + 0 - 6 ! misc.c | 6 6 + 0 - 0 ! scrollbar.c | 2 0 + 0 - 2 ! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case46b.ref0000644000000000000000000000121614320603177015357 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case16k.ref0000644000000000000000000000205107605676572015404 0ustar rootroot Makefile.in | 61 ++++---- README | 5 aclocal.m4 | 7 config.h.in | 6 configure | 386 +++++++++++++++++++++++++++++++++------------------ curses.h | 37 +++- curspriv.h | 12 - demos/testcurs.c | 9 - doc/intro.man | 27 ++- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 +++ install-sh | 26 ++- os2/gccos2.mak | 14 - os2/pdckbd.c | 28 +++ os2/pdcurses.def | 8 - pdcurses/Makefile.in | 120 ++++++++++----- pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 + pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 - x11/README | 15 + x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 - 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case17.ref0000644000000000000000000000027407524717237015231 0ustar rootroot include/linux/sched.h | 11 +++++++++++ kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case35.ref0000644000000000000000000000024712133111243015202 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case26f0.ref0000644000000000000000000000442210451755075015451 0ustar rootroot Frame.C | 294 221 + 73 - 0 ! Frame.H | 21 13 + 8 - 0 ! Hotkeys.C | 32 31 + 1 - 0 ! Makefile | 2 1 + 1 - 0 ! Menu.C | 70 42 + 28 - 0 ! README | 18 9 + 9 - 0 ! Rotated.C | 61 34 + 27 - 0 ! config.h | 6 6 + 0 - 0 ! debian/changelog | 12 12 + 0 - 0 ! debian/patched/100_double_ampersand.dpatch | 1 1 + 0 - 0 ! debian/patched/100_fl_filename_name.dpatch | 2 0 + 2 - 0 ! debian/patched/101_visible_focus.dpatch | 1 0 + 1 - 0 ! debian/patched/102_charstruct.dpatch | 1 0 + 1 - 0 ! debian/patched/103_man_typo.dpatch | 1 0 + 1 - 0 ! debian/patched/104_g++-4.1_warning.dpatch | 3 0 + 3 - 0 ! debian/patched/105_double_ampersand.dpatch | 1 0 + 1 - 0 ! debian/patched/201_background_color.dpatch | 2 0 + 2 - 0 ! debian/patches/00list | 8 1 + 7 - 0 ! debian/patches/100_double_ampersand.dpatch | 19 19 + 0 - 0 ! debian/patches/100_fl_filename_name.dpatch | 20 0 + 20 - 0 ! debian/patches/101_visible_focus.dpatch | 19 0 + 19 - 0 ! debian/patches/102_charstruct.dpatch | 45 0 + 45 - 0 ! debian/patches/103_man_typo.dpatch | 19 0 + 19 - 0 ! debian/patches/104_g++-4.1_warning.dpatch | 58 0 + 58 - 0 ! debian/patches/105_double_ampersand.dpatch | 48 0 + 48 - 0 ! debian/patches/200_Debian_menu.dpatch | 14 7 + 7 - 0 ! debian/patches/201_background_color.dpatch | 57 0 + 57 - 0 ! debian/patches/202_background_color_2.dpatch | 92 0 + 92 - 0 ! debian/watch | 3 3 + 0 - 0 ! flwm.1 | 4 2 + 2 - 0 ! flwm_wmconfig | 4 3 + 1 - 0 ! logo.fl | 19 19 + 0 - 0 ! main.C | 99 72 + 27 - 0 ! patch-stamp | 25 2 + 23 - 0 ! 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case17r2.ref0000644000000000000000000000027410277702417015466 0ustar rootroot include/linux/sched.h | 11 +++++++++++ kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case02b.ref0000644000000000000000000000041010667374021015345 0ustar rootroot bug-report | 2 clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! clients/xterm/misc.c | 104 +++++++++++++++++++++++++++++++++++++!!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case40R.ref0000644000000000000000000000015613777412631015343 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case45r1.ref0000644000000000000000000000121614320603177015457 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case33.pat0000644000000000000000000000103611246713344015223 0ustar rootroot--- README.new 2009-08-31 05:24:30.000000000 -0400 +++ README 2001-10-10 20:23:46.000000000 -0400 @@ -1,7 +1,7 @@ $Id: README,v 1.5 2001/10/11 00:23:46 tom Exp $ -Readme file for dIFFsTAT. +Readme file for DiffStat. This program is a simple filter that reads the output of the 'diff' program, and produces a histogram of the total number of lines that were changed. It is -useful for scanning a patch file to see which files were changed. \ No newline at end of file +useful for scanning a patch file to see which files were changed. diffstat-1.68/testing/case38rb.ref0000644000000000000000000000045612546615551015556 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case16.ref0000644000000000000000000000205107605676572015231 0ustar rootroot Makefile.in | 61 ++++---- README | 5 aclocal.m4 | 7 config.h.in | 6 configure | 386 +++++++++++++++++++++++++++++++++------------------ curses.h | 37 +++- curspriv.h | 12 - demos/testcurs.c | 9 - doc/intro.man | 27 ++- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 +++ install-sh | 26 ++- os2/gccos2.mak | 14 - os2/pdckbd.c | 28 +++ os2/pdcurses.def | 8 - pdcurses/Makefile.in | 120 ++++++++++----- pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 + pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 - x11/README | 15 + x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 - 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case46Rp0.ref0000644000000000000000000000163714320603177015606 0ustar rootroot --unified=3 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case41f0.ref0000644000000000000000000000020213777421437015444 0ustar rootroot b/hello.c | 8 7 + 1 - 0 ! b/hello.o |binary hello.c | 1 1 + 0 - 0 ! 3 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case03f0.ref0000644000000000000000000000027507530543241015440 0ustar rootroot config.cache | 1 0 + 0 - 1 ! config.h | 1 1 + 0 - 0 ! configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case35R.ref0000644000000000000000000000035412133111243015323 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 1 ! diffstat/config.h | 1 - diffstat/diffstat |binary diffstat/diffstat.o |binary 5 files changed, 1 deletion(-), 1 modification(!) diffstat-1.68/testing/case31lRp0.ref0000644000000000000000000000014111700545544015743 0ustar rootroot //depot/user/ed/newcons/sys/kern/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case24.ref0000644000000000000000000000056110144014205015177 0ustar rootroot gen/gen.c | 5 ++--- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++++---- samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case20u.ref0000644000000000000000000000017207605627534015405 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case48R.ref0000644000000000000000000000010714714413375015345 0ustar rootroot unknown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diffstat-1.68/testing/case24r2.ref0000644000000000000000000000056110277702420015455 0ustar rootroot gen/gen.c | 5 ++--- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++++---- samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case49p9.ref0000644000000000000000000000011714714413542015472 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case28u.ref0000644000000000000000000000020411163734344015401 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case29.pat0000644000000000000000000000654011163731757015243 0ustar rootroot@@ -1,11 +1,11 @@ -revlist for vile-9.7c, version v9_7c +revlist for vile, version v9_7d -------------------------------------------------------------------------------- -aclocal.m4 1.183 +aclocal.m4 1.185 ansi.c 1.49 api.c 1.44 api.h 1.13 basic.c 1.161 -bind.c 1.320 +bind.c 1.322 blist.c 1.11 blist.h 1.4 borland.c 1.38 @@ -14,7 +14,7 @@ buffer.c 1.331 buglist 1.412 builtflt.c 1.63 -CHANGES 1.1177 +CHANGES 1.1189 CHANGES.R3 1.1 CHANGES.R4 1.1 CHANGES.R5 1.1 @@ -23,12 +23,12 @@ CHANGES.R8 1.1 charsets.c 1.56 chgdfunc.h 1.22 -cmdtbl 1.253 +cmdtbl 1.255 config.guess 1.8 config_h.in 1.2 config.sub 1.9 -configure 1.21 -configure.in 1.246 +configure 1.22 +configure.in 1.247 COPYING 1.4 csrch.c 1.34 curses.c 1.38 @@ -37,11 +37,11 @@ display.c 1.476 djhandl.c 1.6 dumbterm.c 1.23 -edef.h 1.339 +edef.h 1.341 eightbit.c 1.45 -estruct.h 1.663 -eval.c 1.383 -exec.c 1.314 +estruct.h 1.665 +eval.c 1.386 +exec.c 1.325 externs.c 1.11 fences.c 1.86 file.c 1.415 @@ -52,46 +52,46 @@ glob.c 1.93 gppconio.c 1.2 history.c 1.87 -input.c 1.320 +input.c 1.321 insert.c 1.167 INSTALL 1.6 install.sh 1.7 isearch.c 1.60 itbuff.c 1.25 lckfiles.c 1.11 -line.c 1.193 -main.c 1.642 +line.c 1.194 +main.c 1.647 makeargv.c 1.3 makeargv.h 1.3 makefile.blc 1.22 makefile.djg 1.38 makefile.icc 1.17 -makefile.in 1.211 +makefile.in 1.212 makefile.wnt 1.99 MANIFEST none map.c 1.112 -menu.c 1.51 +menu.c 1.52 mkdirs.sh 1.7 mkprlenv.wnt 1.9 mktbls.c 1.151 modes.c 1.363 -modetbl 1.275 +modetbl 1.276 msgs.c 1.29 -npopen.c 1.95 +npopen.c 1.96 ntconio.c 1.91 ntwinio.c 1.188 nullterm.c 1.5 oneliner.c 1.112 -opers.c 1.93 +opers.c 1.97 os2keys.h 1.2 os2pipe.c 1.5 os2vio.c 1.36 -patchlev.h 1.378 +patchlev.h 1.379 path.c 1.162 perl.xs 1.111 plugin.c 1.1 plugin.h 1.1 -proto.h 1.650 +proto.h 1.657 pscreen.h 1.2 ptypemap 1.7 random.c 1.319 @@ -100,26 +100,26 @@ README.VMS 1.5 regexp.c 1.139 region.c 1.149 -revlist v9_7c +revlist v9_7d search.c 1.146 -select.c 1.167 +select.c 1.168 sinstall.sh 1.1 -spawn.c 1.195 -statevar.c 1.122 +spawn.c 1.200 +statevar.c 1.123 tags.c 1.138 -tbuff.c 1.68 +tbuff.c 1.69 tcap.c 1.177 tcap.h 1.14 termio.c 1.214 test_io.c 1.2 -trace.c 1.80 +trace.c 1.81 trace.h 1.31 ucrypt.c 1.15 -undo.c 1.96 +undo.c 1.99 version.c 1.66 vile.1 1.37 -vile-9.7.spec 1.5 -vile.hlp 1.655 +vile-9.7.spec 1.6 +vile.hlp 1.657 vile.wmconfig 1.1 vl_alloc.h 1.1 vl_ctype.h 1.15 @@ -159,7 +159,7 @@ doc/config.doc 1.15 doc/dir.doc 1.3 doc/filters.doc 1.40 -doc/macros.doc 1.107 +doc/macros.doc 1.111 doc/menus.doc 1.7 doc/modes.doc 1.17 doc/ncu-indent 1.16 @@ -237,14 +237,14 @@ filters/key-filt.c 1.41 filters/latexflt.l 1.48 filters/latex.key 1.2 -filters/lex-filt.l 1.62 +filters/lex-filt.l 1.67 filters/lex.key 1.8 filters/lispfilt.l 1.20 filters/lisp.key 1.2 filters/lua-filt.l 1.8 filters/lua.key 1.2 filters/m4-filt.c 1.30 -filters/m4.key 1.3 +filters/m4.key 1.5 filters/mailcap.key 1.3 filters/mailfilt.l 1.22 filters/mail.key 1.3 @@ -332,7 +332,7 @@ filters/vb6.key 1.5 filters/vb.key 1.15 filters/vbs.key 1.4 -filters/vilefilt.l 1.57 +filters/vilefilt.l 1.59 filters/vile.key 1.8 filters/vim.key 1.2 filters/vl-filt.l 1.15 @@ -362,7 +362,7 @@ macros/gnugpg.rc 1.3 macros/loaderrs.rc 1.2 macros/manpage.rc 1.24 -macros/modes.rc 1.79 +macros/modes.rc 1.80 macros/palettes.rc 1.8 macros/pictmode.rc 1.4 macros/search.rc 1.3 diffstat-1.68/testing/case32k.ref0000644000000000000000000000010511246713507015362 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case22p1.ref0000644000000000000000000000221407623304420015444 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case14r2.ref0000644000000000000000000000006410300164552015445 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case29r2.ref0000644000000000000000000000020311163734345015461 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case25Rp0.ref0000644000000000000000000000055411700545542015600 0ustar rootroot CHANGES | 58 ------------------------------------------------ MANIFEST | 3 -- cmdtbl | 15 ++---------- configure.in | 16 +++---------- doc/filters.doc | 36 +----------------------------- doc/macros.doc | 67 +++++++++++++++++++++----------------------------------- 6 files changed, 36 insertions(+), 159 deletions(-) diffstat-1.68/testing/case01.ref0000644000000000000000000000405407073762770015223 0ustar rootroot config/cf/Imake.cf | 7 +++++ config/cf/hp.cf | 7 +++++ config/cf/hpLib.rules | 2 + config/imake/imakemdep.h | 13 ++++++++++ config/makedepend/main.c | 2 - include/Xos.h | 7 ++++- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - test/xsuite/xtest/src/bin/mc/files.c | 2 - util/patch/malloc.c | 12 +++------ util/patch/pch.c | 2 - 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case35b.ref0000644000000000000000000000017112133111320015334 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only 3 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case16u.ref0000644000000000000000000000205107605676572015416 0ustar rootroot Makefile.in | 61 ++++---- README | 5 aclocal.m4 | 7 config.h.in | 6 configure | 386 +++++++++++++++++++++++++++++++++------------------ curses.h | 37 +++- curspriv.h | 12 - demos/testcurs.c | 9 - doc/intro.man | 27 ++- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 +++ install-sh | 26 ++- os2/gccos2.mak | 14 - os2/pdckbd.c | 28 +++ os2/pdcurses.def | 8 - pdcurses/Makefile.in | 120 ++++++++++----- pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 + pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 - x11/README | 15 + x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 - 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case02.ref0000644000000000000000000000041007073762770015214 0ustar rootroot bug-report | 2 clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! clients/xterm/misc.c | 104 +++++++++++++++++++++++++++++++++++++!!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case28p9.ref0000644000000000000000000000020411163734344015465 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case38rk.ref0000644000000000000000000000045612546615551015567 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case22R.ref0000644000000000000000000000221411700545541015327 0ustar rootroot PATCHES | 1 - compose.c | 17 ++++------------- crypt.c | 26 +++++++++++++++----------- init.h | 54 +++++++----------------------------------------------- mutt.h | 4 +--- pgp.c | 5 +---- pgplib.h | 1 - po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 ++++----- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 ++++----- po/ko.po | 8 ++++---- po/lt.po | 13 +++++++------ po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 +++++++------ po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 ------- send.c | 16 +--------------- sendlib.c | 2 -- 36 files changed, 139 insertions(+), 214 deletions(-) diffstat-1.68/testing/case38lb.ref0000644000000000000000000000045612546615551015550 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case03p1.ref0000644000000000000000000000024707073762770015466 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case26p1.ref0000644000000000000000000000531610451755075015467 0ustar rootroot tmp/KfNDqvamm0/flwm-1.01/Frame.C | 294 +++++++--- tmp/KfNDqvamm0/flwm-1.01/Frame.H | 21 tmp/KfNDqvamm0/flwm-1.01/Hotkeys.C | 32 + tmp/KfNDqvamm0/flwm-1.01/Makefile | 2 tmp/KfNDqvamm0/flwm-1.01/Menu.C | 70 +- tmp/KfNDqvamm0/flwm-1.01/README | 18 tmp/KfNDqvamm0/flwm-1.01/Rotated.C | 61 +- tmp/KfNDqvamm0/flwm-1.01/config.h | 6 tmp/KfNDqvamm0/flwm-1.01/debian/changelog | 12 tmp/KfNDqvamm0/flwm-1.01/debian/patched/100_double_ampersand.dpatch | 1 tmp/KfNDqvamm0/flwm-1.01/debian/patched/100_fl_filename_name.dpatch | 2 tmp/KfNDqvamm0/flwm-1.01/debian/patched/101_visible_focus.dpatch | 1 tmp/KfNDqvamm0/flwm-1.01/debian/patched/102_charstruct.dpatch | 1 tmp/KfNDqvamm0/flwm-1.01/debian/patched/103_man_typo.dpatch | 1 tmp/KfNDqvamm0/flwm-1.01/debian/patched/104_g++-4.1_warning.dpatch | 3 tmp/KfNDqvamm0/flwm-1.01/debian/patched/105_double_ampersand.dpatch | 1 tmp/KfNDqvamm0/flwm-1.01/debian/patched/201_background_color.dpatch | 2 tmp/KfNDqvamm0/flwm-1.01/debian/patches/00list | 8 tmp/KfNDqvamm0/flwm-1.01/debian/patches/100_double_ampersand.dpatch | 19 tmp/KfNDqvamm0/flwm-1.01/debian/patches/100_fl_filename_name.dpatch | 20 tmp/KfNDqvamm0/flwm-1.01/debian/patches/101_visible_focus.dpatch | 19 tmp/KfNDqvamm0/flwm-1.01/debian/patches/102_charstruct.dpatch | 45 - tmp/KfNDqvamm0/flwm-1.01/debian/patches/103_man_typo.dpatch | 19 tmp/KfNDqvamm0/flwm-1.01/debian/patches/104_g++-4.1_warning.dpatch | 58 - tmp/KfNDqvamm0/flwm-1.01/debian/patches/105_double_ampersand.dpatch | 48 - tmp/KfNDqvamm0/flwm-1.01/debian/patches/200_Debian_menu.dpatch | 14 tmp/KfNDqvamm0/flwm-1.01/debian/patches/201_background_color.dpatch | 57 - tmp/KfNDqvamm0/flwm-1.01/debian/patches/202_background_color_2.dpatch | 92 --- tmp/KfNDqvamm0/flwm-1.01/debian/watch | 3 tmp/KfNDqvamm0/flwm-1.01/flwm.1 | 4 tmp/KfNDqvamm0/flwm-1.01/flwm_wmconfig | 4 tmp/KfNDqvamm0/flwm-1.01/logo.fl | 19 tmp/KfNDqvamm0/flwm-1.01/main.C | 99 ++- tmp/KfNDqvamm0/flwm-1.01/patch-stamp | 25 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case34Rp0.ref0000644000000000000000000000017611762443774015614 0ustar rootroot ergh eek arf/quux bar baz | 2 +- ergh eek arf/quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case46.pat0000644000000000000000000002215614320570414015230 0ustar rootrootdiff '--unified=3' -r ncurses-6.3-20221001/configure ncurses-6.3-20221008/configure --- ncurses-6.3-20221001/configure 2022-10-01 09:25:01.000000000 -0400 +++ ncurses-6.3-20221008/configure 2022-10-08 12:55:47.000000000 -0400 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.749 . +# From configure.in Revision: 1.750 . # Guess values for system-dependent variables and create Makefiles. # Generated by Autoconf 2.52.20210509. # @@ -15409,7 +15409,7 @@ (6) NCURSES_MOUSE_VERSION=2 ;; -(789) +([789]) NCURSES_MOUSE_VERSION=3 ;; esac diff '--unified=3' -r ncurses-6.3-20221001/configure.in ncurses-6.3-20221008/configure.in --- ncurses-6.3-20221001/configure.in 2022-10-01 09:16:18.000000000 -0400 +++ ncurses-6.3-20221008/configure.in 2022-10-08 11:54:35.000000000 -0400 @@ -29,7 +29,7 @@ dnl dnl Author: Thomas E. Dickey 1995-on dnl -dnl $Id: configure.in,v 1.749 2022/10/01 13:16:18 tom Exp $ +dnl $Id: configure.in,v 1.750 2022/10/08 15:54:35 tom Exp $ dnl Process this file with autoconf to produce a configure script. dnl dnl For additional information, see @@ -38,7 +38,7 @@ dnl dnl --------------------------------------------------------------------------- AC_PREREQ(2.52.20210101) -AC_REVISION($Revision: 1.749 $) +AC_REVISION($Revision: 1.750 $) AC_INIT(ncurses/base/lib_initscr.c) AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin) @@ -1272,7 +1272,7 @@ (6) NCURSES_MOUSE_VERSION=2 ;; -([789]) +([[789]]) NCURSES_MOUSE_VERSION=3 ;; esac diff '--unified=3' -r ncurses-6.3-20221001/dist.mk ncurses-6.3-20221008/dist.mk --- ncurses-6.3-20221001/dist.mk 2022-10-01 09:15:31.000000000 -0400 +++ ncurses-6.3-20221008/dist.mk 2022-10-08 06:25:44.000000000 -0400 @@ -26,7 +26,7 @@ # use or other dealings in this Software without prior written # # authorization. # ############################################################################## -# $Id: dist.mk,v 1.1505 2022/10/01 13:15:31 tom Exp $ +# $Id: dist.mk,v 1.1506 2022/10/08 10:25:44 tom Exp $ # Makefile for creating ncurses distributions. # # This only needs to be used directly as a makefile by developers, but @@ -38,7 +38,7 @@ # These define the major/minor/patch versions of ncurses. NCURSES_MAJOR = 6 NCURSES_MINOR = 3 -NCURSES_PATCH = 20221001 +NCURSES_PATCH = 20221008 # We don't append the patch to the version, since this only applies to releases VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR) diff '--unified=3' -r ncurses-6.3-20221001/misc/gen-pkgconfig.in ncurses-6.3-20221008/misc/gen-pkgconfig.in --- ncurses-6.3-20221001/misc/gen-pkgconfig.in 2022-08-27 15:07:03.000000000 -0400 +++ ncurses-6.3-20221008/misc/gen-pkgconfig.in 2022-10-08 12:45:20.000000000 -0400 @@ -1,5 +1,5 @@ #!@SHELL@ -# $Id: gen-pkgconfig.in,v 1.55 2022/08/27 19:07:03 tom Exp $ +# $Id: gen-pkgconfig.in,v 1.56 2022/10/08 16:45:20 tom Exp $ ############################################################################## # Copyright 2018-2021,2022 Thomas E. Dickey # # Copyright 2009-2015,2018 Free Software Foundation, Inc. # @@ -103,7 +103,11 @@ ;; -L*) lib_check=`echo "x$opt" | sed -e 's/^.-L//'` - [ -d "$lib_check" ] || continue + # on a new/nonstandard install, $libdir may not yet exist at this point + if [ "$libdir" != "$lib_check" ] + then + [ -d "$lib_check" ] || continue + fi case "$lib_check" in @LD_SEARCHPATH@) # skip standard libdir if [ "$lib_check" = "$libdir" ] diff '--unified=3' -r ncurses-6.3-20221001/NEWS ncurses-6.3-20221008/NEWS --- ncurses-6.3-20221001/NEWS 2022-10-01 18:20:28.000000000 -0400 +++ ncurses-6.3-20221008/NEWS 2022-10-08 12:50:03.000000000 -0400 @@ -26,7 +26,7 @@ -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------- --- $Id: NEWS,v 1.3862 2022/10/01 22:20:28 tom Exp $ +-- $Id: NEWS,v 1.3864 2022/10/08 16:50:03 tom Exp $ ------------------------------------------------------------------------------- This is a log of changes that ncurses has gone through since Zeyd started @@ -46,6 +46,13 @@ Changes through 1.9.9e did not credit all contributions; it is not possible to add this information. +20221008 + + correct a switch-statement case in configure script to allow for test + builds with ABI=7. + + modify misc/gen-pkgconfig.in to allow for the case where the library + directory does not yet exist, since this is processed before doing an + install (report by Michal Liszcz). + 20221001 + modify configure/scripts to work around interference by GNU grep 3.8 (report by Sam James). diff '--unified=3' -r ncurses-6.3-20221001/package/debian/changelog ncurses-6.3-20221008/package/debian/changelog --- ncurses-6.3-20221001/package/debian/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,8 +1,8 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 ncurses6 (5.9-20120608) unstable; urgency=low diff '--unified=3' -r ncurses-6.3-20221001/package/debian-mingw/changelog ncurses-6.3-20221008/package/debian-mingw/changelog --- ncurses-6.3-20221001/package/debian-mingw/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,8 +1,8 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 ncurses6 (5.9-20131005) unstable; urgency=low diff '--unified=3' -r ncurses-6.3-20221001/package/debian-mingw64/changelog ncurses-6.3-20221008/package/debian-mingw64/changelog --- ncurses-6.3-20221001/package/debian-mingw64/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw64/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,8 +1,8 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 ncurses6 (5.9-20131005) unstable; urgency=low diff '--unified=3' -r ncurses-6.3-20221001/package/mingw-ncurses.nsi ncurses-6.3-20221008/package/mingw-ncurses.nsi --- ncurses-6.3-20221001/package/mingw-ncurses.nsi 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.nsi 2022-10-08 06:25:44.000000000 -0400 @@ -1,4 +1,4 @@ -; $Id: mingw-ncurses.nsi,v 1.544 2022/10/01 09:34:57 tom Exp $ +; $Id: mingw-ncurses.nsi,v 1.545 2022/10/08 10:25:44 tom Exp $ ; TODO add examples ; TODO bump ABI to 6 @@ -10,7 +10,7 @@ !define VERSION_MAJOR "6" !define VERSION_MINOR "3" !define VERSION_YYYY "2022" -!define VERSION_MMDD "1001" +!define VERSION_MMDD "1008" !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD} !define MY_ABI "5" diff '--unified=3' -r ncurses-6.3-20221001/package/mingw-ncurses.spec ncurses-6.3-20221008/package/mingw-ncurses.spec --- ncurses-6.3-20221001/package/mingw-ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -3,7 +3,7 @@ Summary: shared libraries for terminal handling Name: mingw32-ncurses6 Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 Group: Development/Libraries Source: ncurses-%{version}-%{release}.tgz diff '--unified=3' -r ncurses-6.3-20221001/package/ncurses.spec ncurses-6.3-20221008/package/ncurses.spec --- ncurses-6.3-20221001/package/ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -1,7 +1,7 @@ Summary: shared libraries for terminal handling Name: ncurses6 Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 Group: Development/Libraries Source: ncurses-%{version}-%{release}.tgz diff '--unified=3' -r ncurses-6.3-20221001/package/ncursest.spec ncurses-6.3-20221008/package/ncursest.spec --- ncurses-6.3-20221001/package/ncursest.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncursest.spec 2022-10-08 06:25:44.000000000 -0400 @@ -1,7 +1,7 @@ Summary: Curses library with POSIX thread support. Name: ncursest6 Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 Group: Development/Libraries Source: ncurses-%{version}-%{release}.tgz diff '--unified=3' -r ncurses-6.3-20221001/VERSION ncurses-6.3-20221008/VERSION --- ncurses-6.3-20221001/VERSION 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/VERSION 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -5:0:10 6.3 20221001 +5:0:10 6.3 20221008 diffstat-1.68/testing/case43.ref0000644000000000000000000000121614320603177015212 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case22r1.ref0000644000000000000000000000221410277702417015455 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case11k.ref0000644000000000000000000000006410300164551015350 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case35p1.ref0000644000000000000000000000024712133111243015443 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case14b.ref0000644000000000000000000000006410667374024015360 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case15u.ref0000644000000000000000000000117307530534455015407 0ustar rootroot build/Makefile.in | 38 ++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 debian/control | 19 ++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 debian/copyright | 40 ++++++++++++++++++++++ 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case26r1.ref0000644000000000000000000000370510451755075015471 0ustar rootroot Frame.C | 294 ++++++++++++++++++++------- Frame.H | 21 +- Hotkeys.C | 32 +++ Makefile | 2 Menu.C | 70 ++++--- README | 18 +- Rotated.C | 61 +++-- config.h | 6 + debian/changelog | 12 + debian/patched/100_double_ampersand.dpatch | 1 debian/patched/100_fl_filename_name.dpatch | 2 debian/patched/101_visible_focus.dpatch | 1 debian/patched/102_charstruct.dpatch | 1 debian/patched/103_man_typo.dpatch | 1 debian/patched/104_g++-4.1_warning.dpatch | 3 debian/patched/105_double_ampersand.dpatch | 1 debian/patched/201_background_color.dpatch | 2 debian/patches/00list | 8 - debian/patches/100_double_ampersand.dpatch | 19 ++ debian/patches/100_fl_filename_name.dpatch | 20 -- debian/patches/101_visible_focus.dpatch | 19 -- debian/patches/102_charstruct.dpatch | 45 ---- debian/patches/103_man_typo.dpatch | 19 -- debian/patches/104_g++-4.1_warning.dpatch | 58 ----- debian/patches/105_double_ampersand.dpatch | 48 ---- debian/patches/200_Debian_menu.dpatch | 14 +- debian/patches/201_background_color.dpatch | 57 ----- debian/patches/202_background_color_2.dpatch | 92 -------- debian/watch | 3 flwm.1 | 4 flwm_wmconfig | 4 logo.fl | 19 ++ main.C | 99 +++++++-- patch-stamp | 25 -- 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case40u.ref0000644000000000000000000000015613777412640015406 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case18.ref0000644000000000000000000000005510300164552015205 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case16Rp0.ref0000644000000000000000000000242411700545537015602 0ustar rootroot PDCurses/Makefile.in | 61 ++---- PDCurses/README | 5 PDCurses/aclocal.m4 | 7 PDCurses/config.h.in | 6 PDCurses/configure | 386 ++++++++++++++---------------------------- PDCurses/curses.h | 37 ---- PDCurses/curspriv.h | 12 - PDCurses/demos/testcurs.c | 9 PDCurses/doc/intro.man | 27 +- PDCurses/doc/x11.man | 100 +++------- PDCurses/dos/pdckbd.c | 28 --- PDCurses/dos/wccdos.lrf | 26 -- PDCurses/os2/gccos2.mak | 14 - PDCurses/os2/pdckbd.c | 28 --- PDCurses/os2/pdcurses.def | 8 PDCurses/pdcurses/Makefile.in | 120 ++++--------- PDCurses/pdcurses/border.c | 168 ------------------ PDCurses/pdcurses/color.c | 26 -- PDCurses/pdcurses/getch.c | 12 - PDCurses/pdcurses/initscr.c | 6 PDCurses/pdcurses/util.c | 6 PDCurses/win32/curses.def | 3 PDCurses/win32/pdckbd.c | 10 - PDCurses/x11/README | 15 - PDCurses/x11/ScrollBox.c | 32 +-- PDCurses/x11/pdcdisp.c | 4 PDCurses/x11/pdckbd.c | 4 PDCurses/x11/pdcscrn.c | 3 PDCurses/x11/pdcsetsc.c | 11 - 29 files changed, 327 insertions(+), 847 deletions(-) diffstat-1.68/testing/case04R.ref0000644000000000000000000000337311700545533015337 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 16 ++--!!!! diffstat/config.h | 2 - diffstat/config.log | 76 +++++++++++--------!!!!!!!!!!!!!!!!!! diffstat/config.status | 24 +++---!!!!!! diffstat/diffstat |binary diffstat/diffstat.o |binary diffstat/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 34 insertions(+), 28 deletions(-), 60 modifications(!) diffstat-1.68/testing/case23Rp0.ref0000644000000000000000000000025311700545542015572 0ustar rootroot bfm-0.6.1.orig/README | 1 bfm-0.6.1.orig/gkrellm-bfm.c | 99 +++++++++---------------------------------- 2 files changed, 23 insertions(+), 77 deletions(-) diffstat-1.68/testing/case47p9.ref0000644000000000000000000000052214377643723015503 0ustar rootroot cdialog-dev.install | 11 ++++---- cdialog.install | 9 ++++--- cdialog.lintian-overrides | 2 - headers-sh.in | 57 +++++++++++++++++++++++++++++++++++++++++----- inputbox6-utf8 | 4 ++- makefile.inn | 14 +++++------ 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case24r1.ref0000644000000000000000000000056110277702420015454 0ustar rootroot gen/gen.c | 5 ++--- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++++---- samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case49.pat0000644000000000000000000000155514714413526015242 0ustar rootroot863a864,869 > product APPLE KBD_TP_ANSI 0x0223 Apple Internal Keyboard/Trackpad (Wellspring/ANSI) > product APPLE KBD_TP_ISO 0x0224 Apple Internal Keyboard/Trackpad (Wellspring/ISO) > product APPLE KBD_TP_JIS 0x0225 Apple Internal Keyboard/Trackpad (Wellspring/JIS) > product APPLE KBD_TP_ANSI2 0x0230 Apple Internal Keyboard/Trackpad (Wellspring2/ANSI) > product APPLE KBD_TP_ISO2 0x0231 Apple Internal Keyboard/Trackpad (Wellspring2/ISO) > product APPLE KBD_TP_JIS2 0x0232 Apple Internal Keyboard/Trackpad (Wellspring2/JIS) 904a911 > product ASUS GMSC 0x422f ASUS Generic Mass Storage 1180,1181d1186 < product DLINK2 DWA120_NF 0x3a0d DWA-120 (no firmware) < product DLINK2 DWA120 0x3a0e DWA-120 1185a1191,1192 > product DLINK2 DWA120_NF 0x3c0d DWA-120 (no firmware) > product DLINK2 DWA120 0x3c0e DWA-120 1973a1981 > product PHILIPS SPE3030CC 0x083a USB 2.0 External Disk diffstat-1.68/testing/case39k.ref0000644000000000000000000000015613777433126015406 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case48p1.ref0000644000000000000000000000010714714413374015463 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case28.pat0000644000000000000000000001361111163732270015226 0ustar rootroot*************** *** 1,11 **** - revlist for vile-9.7c, version v9_7c -------------------------------------------------------------------------------- - aclocal.m4 1.183 ansi.c 1.49 api.c 1.44 api.h 1.13 basic.c 1.161 - bind.c 1.320 blist.c 1.11 blist.h 1.4 borland.c 1.38 --- 1,11 ---- + revlist for vile, version v9_7d -------------------------------------------------------------------------------- + aclocal.m4 1.185 ansi.c 1.49 api.c 1.44 api.h 1.13 basic.c 1.161 + bind.c 1.322 blist.c 1.11 blist.h 1.4 borland.c 1.38 *************** *** 14,20 **** buffer.c 1.331 buglist 1.412 builtflt.c 1.63 - CHANGES 1.1177 CHANGES.R3 1.1 CHANGES.R4 1.1 CHANGES.R5 1.1 --- 14,20 ---- buffer.c 1.331 buglist 1.412 builtflt.c 1.63 + CHANGES 1.1189 CHANGES.R3 1.1 CHANGES.R4 1.1 CHANGES.R5 1.1 *************** *** 23,34 **** CHANGES.R8 1.1 charsets.c 1.56 chgdfunc.h 1.22 - cmdtbl 1.253 config.guess 1.8 config_h.in 1.2 config.sub 1.9 - configure 1.21 - configure.in 1.246 COPYING 1.4 csrch.c 1.34 curses.c 1.38 --- 23,34 ---- CHANGES.R8 1.1 charsets.c 1.56 chgdfunc.h 1.22 + cmdtbl 1.255 config.guess 1.8 config_h.in 1.2 config.sub 1.9 + configure 1.22 + configure.in 1.247 COPYING 1.4 csrch.c 1.34 curses.c 1.38 *************** *** 37,47 **** display.c 1.476 djhandl.c 1.6 dumbterm.c 1.23 - edef.h 1.339 eightbit.c 1.45 - estruct.h 1.663 - eval.c 1.383 - exec.c 1.314 externs.c 1.11 fences.c 1.86 file.c 1.415 --- 37,47 ---- display.c 1.476 djhandl.c 1.6 dumbterm.c 1.23 + edef.h 1.341 eightbit.c 1.45 + estruct.h 1.665 + eval.c 1.386 + exec.c 1.325 externs.c 1.11 fences.c 1.86 file.c 1.415 *************** *** 52,97 **** glob.c 1.93 gppconio.c 1.2 history.c 1.87 - input.c 1.320 insert.c 1.167 INSTALL 1.6 install.sh 1.7 isearch.c 1.60 itbuff.c 1.25 lckfiles.c 1.11 - line.c 1.193 - main.c 1.642 makeargv.c 1.3 makeargv.h 1.3 makefile.blc 1.22 makefile.djg 1.38 makefile.icc 1.17 - makefile.in 1.211 makefile.wnt 1.99 MANIFEST none map.c 1.112 - menu.c 1.51 mkdirs.sh 1.7 mkprlenv.wnt 1.9 mktbls.c 1.151 modes.c 1.363 - modetbl 1.275 msgs.c 1.29 - npopen.c 1.95 ntconio.c 1.91 ntwinio.c 1.188 nullterm.c 1.5 oneliner.c 1.112 - opers.c 1.93 os2keys.h 1.2 os2pipe.c 1.5 os2vio.c 1.36 - patchlev.h 1.378 path.c 1.162 perl.xs 1.111 plugin.c 1.1 plugin.h 1.1 - proto.h 1.650 pscreen.h 1.2 ptypemap 1.7 random.c 1.319 --- 52,97 ---- glob.c 1.93 gppconio.c 1.2 history.c 1.87 + input.c 1.321 insert.c 1.167 INSTALL 1.6 install.sh 1.7 isearch.c 1.60 itbuff.c 1.25 lckfiles.c 1.11 + line.c 1.194 + main.c 1.647 makeargv.c 1.3 makeargv.h 1.3 makefile.blc 1.22 makefile.djg 1.38 makefile.icc 1.17 + makefile.in 1.212 makefile.wnt 1.99 MANIFEST none map.c 1.112 + menu.c 1.52 mkdirs.sh 1.7 mkprlenv.wnt 1.9 mktbls.c 1.151 modes.c 1.363 + modetbl 1.276 msgs.c 1.29 + npopen.c 1.96 ntconio.c 1.91 ntwinio.c 1.188 nullterm.c 1.5 oneliner.c 1.112 + opers.c 1.97 os2keys.h 1.2 os2pipe.c 1.5 os2vio.c 1.36 + patchlev.h 1.379 path.c 1.162 perl.xs 1.111 plugin.c 1.1 plugin.h 1.1 + proto.h 1.657 pscreen.h 1.2 ptypemap 1.7 random.c 1.319 *************** *** 100,125 **** README.VMS 1.5 regexp.c 1.139 region.c 1.149 - revlist v9_7c search.c 1.146 - select.c 1.167 sinstall.sh 1.1 - spawn.c 1.195 - statevar.c 1.122 tags.c 1.138 - tbuff.c 1.68 tcap.c 1.177 tcap.h 1.14 termio.c 1.214 test_io.c 1.2 - trace.c 1.80 trace.h 1.31 ucrypt.c 1.15 - undo.c 1.96 version.c 1.66 vile.1 1.37 - vile-9.7.spec 1.5 - vile.hlp 1.655 vile.wmconfig 1.1 vl_alloc.h 1.1 vl_ctype.h 1.15 --- 100,125 ---- README.VMS 1.5 regexp.c 1.139 region.c 1.149 + revlist v9_7d search.c 1.146 + select.c 1.168 sinstall.sh 1.1 + spawn.c 1.200 + statevar.c 1.123 tags.c 1.138 + tbuff.c 1.69 tcap.c 1.177 tcap.h 1.14 termio.c 1.214 test_io.c 1.2 + trace.c 1.81 trace.h 1.31 ucrypt.c 1.15 + undo.c 1.99 version.c 1.66 vile.1 1.37 + vile-9.7.spec 1.6 + vile.hlp 1.657 vile.wmconfig 1.1 vl_alloc.h 1.1 vl_ctype.h 1.15 *************** *** 159,165 **** doc/config.doc 1.15 doc/dir.doc 1.3 doc/filters.doc 1.40 - doc/macros.doc 1.107 doc/menus.doc 1.7 doc/modes.doc 1.17 doc/ncu-indent 1.16 --- 159,165 ---- doc/config.doc 1.15 doc/dir.doc 1.3 doc/filters.doc 1.40 + doc/macros.doc 1.111 doc/menus.doc 1.7 doc/modes.doc 1.17 doc/ncu-indent 1.16 *************** *** 237,250 **** filters/key-filt.c 1.41 filters/latexflt.l 1.48 filters/latex.key 1.2 - filters/lex-filt.l 1.62 filters/lex.key 1.8 filters/lispfilt.l 1.20 filters/lisp.key 1.2 filters/lua-filt.l 1.8 filters/lua.key 1.2 filters/m4-filt.c 1.30 - filters/m4.key 1.3 filters/mailcap.key 1.3 filters/mailfilt.l 1.22 filters/mail.key 1.3 --- 237,250 ---- filters/key-filt.c 1.41 filters/latexflt.l 1.48 filters/latex.key 1.2 + filters/lex-filt.l 1.67 filters/lex.key 1.8 filters/lispfilt.l 1.20 filters/lisp.key 1.2 filters/lua-filt.l 1.8 filters/lua.key 1.2 filters/m4-filt.c 1.30 + filters/m4.key 1.5 filters/mailcap.key 1.3 filters/mailfilt.l 1.22 filters/mail.key 1.3 *************** *** 332,338 **** filters/vb6.key 1.5 filters/vb.key 1.15 filters/vbs.key 1.4 - filters/vilefilt.l 1.57 filters/vile.key 1.8 filters/vim.key 1.2 filters/vl-filt.l 1.15 --- 332,338 ---- filters/vb6.key 1.5 filters/vb.key 1.15 filters/vbs.key 1.4 + filters/vilefilt.l 1.59 filters/vile.key 1.8 filters/vim.key 1.2 filters/vl-filt.l 1.15 *************** *** 362,368 **** macros/gnugpg.rc 1.3 macros/loaderrs.rc 1.2 macros/manpage.rc 1.24 - macros/modes.rc 1.79 macros/palettes.rc 1.8 macros/pictmode.rc 1.4 macros/search.rc 1.3 --- 362,368 ---- macros/gnugpg.rc 1.3 macros/loaderrs.rc 1.2 macros/manpage.rc 1.24 + macros/modes.rc 1.80 macros/palettes.rc 1.8 macros/pictmode.rc 1.4 macros/search.rc 1.3 diffstat-1.68/testing/case31up9.ref0000644000000000000000000000012111240121111015614 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case49p1.ref0000644000000000000000000000011714714413542015462 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case45.pat0000644000000000000000000002012114320570414015215 0ustar rootrootdiff '--unified=2' -r ncurses-6.3-20221001/configure ncurses-6.3-20221008/configure --- ncurses-6.3-20221001/configure 2022-10-01 09:25:01.000000000 -0400 +++ ncurses-6.3-20221008/configure 2022-10-08 12:55:47.000000000 -0400 @@ -1,4 +1,4 @@ #! /bin/sh -# From configure.in Revision: 1.749 . +# From configure.in Revision: 1.750 . # Guess values for system-dependent variables and create Makefiles. # Generated by Autoconf 2.52.20210509. @@ -15410,5 +15410,5 @@ NCURSES_MOUSE_VERSION=2 ;; -(789) +([789]) NCURSES_MOUSE_VERSION=3 ;; diff '--unified=2' -r ncurses-6.3-20221001/configure.in ncurses-6.3-20221008/configure.in --- ncurses-6.3-20221001/configure.in 2022-10-01 09:16:18.000000000 -0400 +++ ncurses-6.3-20221008/configure.in 2022-10-08 11:54:35.000000000 -0400 @@ -30,5 +30,5 @@ dnl Author: Thomas E. Dickey 1995-on dnl -dnl $Id: configure.in,v 1.749 2022/10/01 13:16:18 tom Exp $ +dnl $Id: configure.in,v 1.750 2022/10/08 15:54:35 tom Exp $ dnl Process this file with autoconf to produce a configure script. dnl @@ -39,5 +39,5 @@ dnl --------------------------------------------------------------------------- AC_PREREQ(2.52.20210101) -AC_REVISION($Revision: 1.749 $) +AC_REVISION($Revision: 1.750 $) AC_INIT(ncurses/base/lib_initscr.c) AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin) @@ -1273,5 +1273,5 @@ NCURSES_MOUSE_VERSION=2 ;; -([789]) +([[789]]) NCURSES_MOUSE_VERSION=3 ;; diff '--unified=2' -r ncurses-6.3-20221001/dist.mk ncurses-6.3-20221008/dist.mk --- ncurses-6.3-20221001/dist.mk 2022-10-01 09:15:31.000000000 -0400 +++ ncurses-6.3-20221008/dist.mk 2022-10-08 06:25:44.000000000 -0400 @@ -27,5 +27,5 @@ # authorization. # ############################################################################## -# $Id: dist.mk,v 1.1505 2022/10/01 13:15:31 tom Exp $ +# $Id: dist.mk,v 1.1506 2022/10/08 10:25:44 tom Exp $ # Makefile for creating ncurses distributions. # @@ -39,5 +39,5 @@ NCURSES_MAJOR = 6 NCURSES_MINOR = 3 -NCURSES_PATCH = 20221001 +NCURSES_PATCH = 20221008 # We don't append the patch to the version, since this only applies to releases diff '--unified=2' -r ncurses-6.3-20221001/misc/gen-pkgconfig.in ncurses-6.3-20221008/misc/gen-pkgconfig.in --- ncurses-6.3-20221001/misc/gen-pkgconfig.in 2022-08-27 15:07:03.000000000 -0400 +++ ncurses-6.3-20221008/misc/gen-pkgconfig.in 2022-10-08 12:45:20.000000000 -0400 @@ -1,4 +1,4 @@ #!@SHELL@ -# $Id: gen-pkgconfig.in,v 1.55 2022/08/27 19:07:03 tom Exp $ +# $Id: gen-pkgconfig.in,v 1.56 2022/10/08 16:45:20 tom Exp $ ############################################################################## # Copyright 2018-2021,2022 Thomas E. Dickey # @@ -104,5 +104,9 @@ -L*) lib_check=`echo "x$opt" | sed -e 's/^.-L//'` - [ -d "$lib_check" ] || continue + # on a new/nonstandard install, $libdir may not yet exist at this point + if [ "$libdir" != "$lib_check" ] + then + [ -d "$lib_check" ] || continue + fi case "$lib_check" in @LD_SEARCHPATH@) # skip standard libdir diff '--unified=2' -r ncurses-6.3-20221001/NEWS ncurses-6.3-20221008/NEWS --- ncurses-6.3-20221001/NEWS 2022-10-01 18:20:28.000000000 -0400 +++ ncurses-6.3-20221008/NEWS 2022-10-08 12:50:03.000000000 -0400 @@ -27,5 +27,5 @@ -- authorization. -- ------------------------------------------------------------------------------- --- $Id: NEWS,v 1.3862 2022/10/01 22:20:28 tom Exp $ +-- $Id: NEWS,v 1.3864 2022/10/08 16:50:03 tom Exp $ ------------------------------------------------------------------------------- @@ -47,4 +47,11 @@ it is not possible to add this information. +20221008 + + correct a switch-statement case in configure script to allow for test + builds with ABI=7. + + modify misc/gen-pkgconfig.in to allow for the case where the library + directory does not yet exist, since this is processed before doing an + install (report by Michal Liszcz). + 20221001 + modify configure/scripts to work around interference by GNU grep 3.8 diff '--unified=2' -r ncurses-6.3-20221001/package/debian/changelog ncurses-6.3-20221008/package/debian/changelog --- ncurses-6.3-20221001/package/debian/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,7 +1,7 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 ncurses6 (5.9-20120608) unstable; urgency=low diff '--unified=2' -r ncurses-6.3-20221001/package/debian-mingw/changelog ncurses-6.3-20221008/package/debian-mingw/changelog --- ncurses-6.3-20221001/package/debian-mingw/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,7 +1,7 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 ncurses6 (5.9-20131005) unstable; urgency=low diff '--unified=2' -r ncurses-6.3-20221001/package/debian-mingw64/changelog ncurses-6.3-20221008/package/debian-mingw64/changelog --- ncurses-6.3-20221001/package/debian-mingw64/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw64/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1,7 +1,7 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 ncurses6 (5.9-20131005) unstable; urgency=low diff '--unified=2' -r ncurses-6.3-20221001/package/mingw-ncurses.nsi ncurses-6.3-20221008/package/mingw-ncurses.nsi --- ncurses-6.3-20221001/package/mingw-ncurses.nsi 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.nsi 2022-10-08 06:25:44.000000000 -0400 @@ -1,3 +1,3 @@ -; $Id: mingw-ncurses.nsi,v 1.544 2022/10/01 09:34:57 tom Exp $ +; $Id: mingw-ncurses.nsi,v 1.545 2022/10/08 10:25:44 tom Exp $ ; TODO add examples @@ -11,5 +11,5 @@ !define VERSION_MINOR "3" !define VERSION_YYYY "2022" -!define VERSION_MMDD "1001" +!define VERSION_MMDD "1008" !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD} diff '--unified=2' -r ncurses-6.3-20221001/package/mingw-ncurses.spec ncurses-6.3-20221008/package/mingw-ncurses.spec --- ncurses-6.3-20221001/package/mingw-ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -4,5 +4,5 @@ Name: mingw32-ncurses6 Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 Group: Development/Libraries diff '--unified=2' -r ncurses-6.3-20221001/package/ncurses.spec ncurses-6.3-20221008/package/ncurses.spec --- ncurses-6.3-20221001/package/ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -2,5 +2,5 @@ Name: ncurses6 Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 Group: Development/Libraries diff '--unified=2' -r ncurses-6.3-20221001/package/ncursest.spec ncurses-6.3-20221008/package/ncursest.spec --- ncurses-6.3-20221001/package/ncursest.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncursest.spec 2022-10-08 06:25:44.000000000 -0400 @@ -2,5 +2,5 @@ Name: ncursest6 Version: 6.3 -Release: 20221001 +Release: 20221008 License: X11 Group: Development/Libraries diff '--unified=2' -r ncurses-6.3-20221001/VERSION ncurses-6.3-20221008/VERSION --- ncurses-6.3-20221001/VERSION 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/VERSION 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -5:0:10 6.3 20221001 +5:0:10 6.3 20221008 diffstat-1.68/testing/case27R.ref0000644000000000000000000000067311700545543015345 0ustar rootroot a/Documentation/parport-lowlevel.txt | 29 ++++++++++++++++++++++++++--- a/drivers/cpuidle/governors/menu.c | 2 +- a/drivers/parport/daisy.c | 29 +++++++++++++++++++++++++++++ a/fs/select.c | 2 +- a/include/linux/parport.h | 1 + a/scripts/export_report.pl | 2 +- b/Makefile | 4 ---- 7 files changed, 59 insertions(+), 10 deletions(-) diffstat-1.68/testing/case17p9.ref0000644000000000000000000000022210226221641015451 0ustar rootroot sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ sched.h | 11 +++++++++++ user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case41k.ref0000644000000000000000000000026113777421437015376 0ustar rootroot hello.c | 2 +- hello.c | 1 + hello.c | 0 hello.c | 6 ++++++ hello.o |binary hello.o |binary hello.o | 0 7 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case27.pat0000644000000000000000000003023610664272536015240 0ustar rootrootFrom bunk@kernel.org Fri Aug 24 01:11:51 2007 From: Adrian Bunk To: Andrew Morton , Ram Pai , Sam Ravnborg Cc: linux-kernel@vger.kernel.org Subject: [2.6 patch] fix export_report.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Mutt-Fcc: =sent-mail Status: RO Content-Length: 466 Lines: 22 This patch fixes an annoying bug of export_report.pl missing the usages of some exports. Signed-off-by: Adrian Bunk --- This patch has been sent on: - 14 Aug 2007 --- a/scripts/export_report.pl +++ b/scripts/export_report.pl @@ -112,7 +112,7 @@ foreach my $thismod (@allcfiles) { next; } if ($state eq 2) { - if ( $_ !~ /0x[0-9a-f]{7,8},/ ) { + if ( $_ !~ /0x[0-9a-f]+,/ ) { next; } my $sym = (split /([,"])/,)[4]; From bunk@kernel.org Fri Aug 24 01:13:29 2007 From: Adrian Bunk To: Andrew Morton , Ram Pai , Sam Ravnborg Cc: linux-kernel@vger.kernel.org Subject: [2.6 patch] call export_report from the Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Mutt-Fcc: =sent-mail Status: RO Content-Length: 827 Lines: 31 The main feature is that export_report now automatically works for O= builds. Signed-off-by: Adrian Bunk --- This patch has been sent on: - 14 Aug 2007 --- a/Makefile +++ b/Makefile @@ -1153,6 +1153,7 @@ help: @echo 'Static analysers' @echo ' checkstack - Generate a list of stack hogs' @echo ' namespacecheck - Name space analysis on compiled kernel' + @echo ' export_report - List the usages of all exported symbols' @if [ -r $(srctree)/include/asm-$(ARCH)/Kbuild ]; then \ echo ' headers_check - Sanity check on exported headers'; \ fi @@ -1412,6 +1413,9 @@ versioncheck: namespacecheck: $(PERL) $(srctree)/scripts/namespace.pl +export_report: + $(PERL) $(srctree)/scripts/export_report.pl + endif #ifeq ($(config-targets),1) endif #ifeq ($(mixed-targets),1) From bunk@kernel.org Fri Aug 24 04:43:31 2007 From: Adrian Bunk To: Samuel Thibault , Andrew Morton , linux-input@atrey.karlin.mff.cuni.cz, linux-kernel@vger.kernel.org, dtor@mail.ru, Jiri Kosina Subject: Re: [PATCH] Console keyboard events and accessibility References: <20070821005718.GD3658@interface.famille.thibault.fr> <20070821130233.58faaa8a.akpm@linux-foundation.org> <20070821202251.GB3658@interface.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070821202251.GB3658@interface.famille.thibault.fr> X-Mutt-References: <20070821202251.GB3658@interface.famille.thibault.fr> X-Mutt-Fcc: =sent-mail Status: RO Content-Length: 2121 Lines: 57 On Tue, Aug 21, 2007 at 10:22:51PM +0200, Samuel Thibault wrote: > Hi, > > Andrew Morton, le Tue 21 Aug 2007 13:02:33 -0700, a écrit : > > On Tue, 21 Aug 2007 02:57:18 +0200 > > Samuel Thibault wrote: > > > > > Some external modules like Speakup need to use the PC keyboard to control > > > them and also need to get keyboard feedback (caps lock status, etc.) > > > > > > This adds a keyboard notifier that such modules can use to get the keyboard > > > events and possibly eat them, at several stages: > > > > Adding hooks for non-merged modules is considered sinful. Making these new > > exports EXPORT_SYMBOL_GPL might ease the pain. > > That should be fine. > > I'll soon propose a notifier for the console writes too, same story. > > > Is there any prospect of getting at least one of these "external modules > > like Speakup" merged into mainline? > > I'm working on it. The problem is that the current code quality is > still far from mainline requirements (though improving over time). This > hook (and the other one I'll post) is a step toward merging. If these > hooks can go mainline, then great, that will make life easier for the > few distributions that want to provide speakup as modules. How long does it take you for getting the first users submitted for review? If you are working on it it should be in the order of "a few months", and earlier merging would anyway gain you only one or two kernel releases. > If they > remain in -mm for some time and people don't complain, well that's good > too: at least we know how speakup may hook into the kernel when it gets > merged. >... Without any users it's dead code noone uses, and complaints will most likely not occur until you submit the first users for review... > Samuel cu Adrian BTW: Are these the speakup patches that were in -ac five years ago? -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed From bunk@kernel.org Fri Aug 24 04:50:47 2007 From: Adrian Bunk To: Andrew Morton , Adam Belay , Venkatesh Pallipadi , Shaohua Li Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [-mm patch] make "struct menu_governor" static (again) References: <20070822020648.5ea3a612.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070822020648.5ea3a612.akpm@linux-foundation.org> X-Mutt-References: <20070822020648.5ea3a612.akpm@linux-foundation.org> X-Mutt-Fcc: =sent-mail Status: RO Content-Length: 740 Lines: 29 On Wed, Aug 22, 2007 at 02:06:48AM -0700, Andrew Morton wrote: >... > Changes since 2.6.23-rc2-mm2: >... > git-acpi.patch >... > git trees >... "struct menu_governor" needlessly again became global. Signed-off-by: Adrian Bunk --- cb33b296204127cf50df54b84b2d79e152fb924b diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index f5a8865..8d3fdc5 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -117,7 +117,7 @@ static int menu_enable_device(struct cpuidle_device *dev) return 0; } -struct cpuidle_governor menu_governor = { +static struct cpuidle_governor menu_governor = { .name = "menu", .rating = 20, .enable = menu_enable_device, From bunk@kernel.org Fri Aug 24 05:01:58 2007 From: Adrian Bunk To: Andrew Morton , "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org Subject: [-mm patch] remove parport_device_num() References: <20070822020648.5ea3a612.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070822020648.5ea3a612.akpm@linux-foundation.org> X-Mutt-References: <20070822020648.5ea3a612.akpm@linux-foundation.org> X-Mutt-Fcc: =sent-mail Status: RO Content-Length: 3917 Lines: 135 On Wed, Aug 22, 2007 at 02:06:48AM -0700, Andrew Morton wrote: >... > Changes since 2.6.23-rc2-mm2: >... > +sysctl-parport-remove-binary-paths.patch >... > More sysctl work >... parport_device_num() is no longer used. Signed-off-by: Adrian Bunk --- Documentation/parport-lowlevel.txt | 29 +++-------------------------- drivers/parport/daisy.c | 29 ----------------------------- include/linux/parport.h | 1 - 3 files changed, 3 insertions(+), 56 deletions(-) 0066510df2b5d4972cfd6a4450af8b82c763adfd diff --git a/Documentation/parport-lowlevel.txt b/Documentation/parport-lowlevel.txt index 8f23024..265fcdc 100644 --- a/Documentation/parport-lowlevel.txt +++ b/Documentation/parport-lowlevel.txt @@ -25,7 +25,6 @@ Global functions: parport_open parport_close parport_device_id - parport_device_num parport_device_coords parport_find_class parport_find_device @@ -735,7 +734,7 @@ NULL is returned. SEE ALSO -parport_register_device, parport_device_num +parport_register_device parport_close - unregister device for particular device number ------------- @@ -787,29 +786,7 @@ Many devices have ill-formed IEEE 1284 Device IDs. SEE ALSO -parport_find_class, parport_find_device, parport_device_num - -parport_device_num - convert device coordinates to device number ------------------- - -SYNOPSIS - -#include - -int parport_device_num (int parport, int mux, int daisy); - -DESCRIPTION - -Convert between device coordinates (port, multiplexor, daisy chain -address) and device number (zero-based). - -RETURN VALUE - -Device number, or -1 if no device at given coordinates. - -SEE ALSO - -parport_device_coords, parport_open, parport_device_id +parport_find_class, parport_find_device parport_device_coords - convert device number to device coordinates ------------------ @@ -833,7 +810,7 @@ Zero on success, in which case the coordinates are (*parport, *mux, SEE ALSO -parport_device_num, parport_open, parport_device_id +parport_open, parport_device_id parport_find_class - find a device by its class ------------------ diff --git a/drivers/parport/daisy.c b/drivers/parport/daisy.c index ff9f344..5bbff20 100644 --- a/drivers/parport/daisy.c +++ b/drivers/parport/daisy.c @@ -275,35 +275,6 @@ void parport_close(struct pardevice *dev) parport_unregister_device(dev); } -/** - * parport_device_num - convert device coordinates - * @parport: parallel port number - * @mux: multiplexor port number (-1 for no multiplexor) - * @daisy: daisy chain address (-1 for no daisy chain address) - * - * This tries to locate a device on the given parallel port, - * multiplexor port and daisy chain address, and returns its - * device number or %-ENXIO if no device with those coordinates - * exists. - **/ - -int parport_device_num(int parport, int mux, int daisy) -{ - int res = -ENXIO; - struct daisydev *dev; - - spin_lock(&topology_lock); - dev = topology; - while (dev && dev->port->portnum != parport && - dev->port->muxport != mux && dev->daisy != daisy) - dev = dev->next; - if (dev) - res = dev->devnum; - spin_unlock(&topology_lock); - - return res; -} - /* Send a daisy-chain-style CPP command packet. */ static int cpp_daisy(struct parport *port, int cmd) { diff --git a/include/linux/parport.h b/include/linux/parport.h index 9cdd694..ec3f765 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -510,7 +510,6 @@ extern struct pardevice *parport_open (int devnum, const char *name, int flags, void *handle); extern void parport_close (struct pardevice *dev); extern ssize_t parport_device_id (int devnum, char *buffer, size_t len); -extern int parport_device_num (int parport, int mux, int daisy); extern void parport_daisy_deselect_all (struct parport *port); extern int parport_daisy_select (struct parport *port, int daisy, int mode); From bunk@kernel.org Fri Aug 24 05:07:37 2007 From: Adrian Bunk To: Andrew Morton , Chris Wright Cc: linux-kernel@vger.kernel.org Subject: [-mm patch] make do_restart_poll() static References: <20070822020648.5ea3a612.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070822020648.5ea3a612.akpm@linux-foundation.org> X-Mutt-References: <20070822020648.5ea3a612.akpm@linux-foundation.org> X-Mutt-Fcc: =sent-mail Status: RO Content-Length: 728 Lines: 29 On Wed, Aug 22, 2007 at 02:06:48AM -0700, Andrew Morton wrote: >... > Changes since 2.6.23-rc2-mm2: >... > +use-erestart_restartblock-if-poll-is-interrupted-by-a-signal.patch >... > The infamous misc >... do_restart_poll() can become static. Signed-off-by: Adrian Bunk --- 59cd2d11f5f0189973bb280c59262eb50984cb88 diff --git a/fs/select.c b/fs/select.c index 5a3ab01..3e515aa 100644 --- a/fs/select.c +++ b/fs/select.c @@ -711,7 +711,7 @@ out_fds: return err; } -long do_restart_poll(struct restart_block *restart_block) +static long do_restart_poll(struct restart_block *restart_block) { struct pollfd __user *ufds = (struct pollfd __user*)restart_block->arg0; int nfds = restart_block->arg1; diffstat-1.68/testing/case08Rp0.ref0000644000000000000000000000050211700545535015574 0ustar rootroot Imakefile | 15 --------------- Tekproc.c | 7 ------- charproc.c | 22 ---------------------- data.c | 4 ---- main.c | 20 ++------!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ------ scrollbar.c | 2 !! 8 files changed, 2 insertions(+), 60 deletions(-), 20 modifications(!) diffstat-1.68/testing/case10r1.ref0000644000000000000000000000035210277702416015452 0ustar rootroot /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ xc/programs/Xserver/Xi/allowev.c | 6 !! 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case45p9.ref0000644000000000000000000000064014320603177015465 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- changelog | 12 ++++++------ configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- gen-pkgconfig.in | 8 ++++++-- mingw-ncurses.nsi | 4 ++-- mingw-ncurses.spec | 2 +- ncurses.spec | 2 +- ncursest.spec | 2 +- 11 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case34u.ref0000644000000000000000000000014411762443774015412 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case19u.ref0000644000000000000000000000011410300164552015367 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case14.ref0000644000000000000000000000006410300164551015200 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case32f0.ref0000644000000000000000000000011511246713507015436 0ustar rootroot README | 4 2 + 2 - 0 ! 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case15Rp0.ref0000644000000000000000000000134411700545537015601 0ustar rootroot nvi-1.79.orig/build/Makefile.in | 38 +++++++-------- nvi-1.79.orig/build/recover | 49 -------------------- nvi-1.79.orig/debian/README.debian | 14 ----- nvi-1.79.orig/debian/changelog | 53 ---------------------- nvi-1.79.orig/debian/conffiles | 1 nvi-1.79.orig/debian/control | 19 ------- nvi-1.79.orig/debian/copyright | 40 ---------------- nvi-1.79.orig/debian/postinst | 21 -------- nvi-1.79.orig/debian/prerm | 11 ---- nvi-1.79.orig/debian/rc.boot | 58 ------------------------ nvi-1.79.orig/debian/rules | 89 ------------------------------------- nvi-1.79.orig/debian/substvars | 1 12 files changed, 19 insertions(+), 375 deletions(-) diffstat-1.68/testing/case15k.ref0000644000000000000000000000117307530543210015362 0ustar rootroot build/Makefile.in | 38 ++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 debian/control | 19 ++++++++++ debian/copyright | 40 ++++++++++++++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case08k.ref0000644000000000000000000000050207530543207015365 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case02p1.ref0000644000000000000000000000041007073762770015455 0ustar rootroot bug-report | 2 clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! clients/xterm/misc.c | 104 +++++++++++++++++++++++++++++++++++++!!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case10k.ref0000644000000000000000000000046507530543207015366 0ustar rootroot /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ XIstubs.h | 0 xc/programs/Xserver/Xi/allowev.c | 6 ! 3 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case31ur2.ref0000644000000000000000000000012111240121111015607 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case11r1.ref0000644000000000000000000000006410300164551015440 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case46r2.ref0000644000000000000000000000121614320603177015461 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case31up1.ref0000644000000000000000000000016711240121111015616 0ustar rootroot /depot/vendor/freebsd/src/sys/dev/usb/usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case34.pat0000644000000000000000000000077311762261410015226 0ustar rootrootIndex: ergh eek arf/quux bar baz =================================================================== --- ergh eek arf/quux bar baz (.../branch1) (revision 4) +++ ergh eek arf/quux bar baz (.../branch2) (revision 4) @@ -1 +1 @@ -foo goo +foo bar Index: ergh eek arf/quux bar baz2 =================================================================== --- ergh eek arf/quux bar baz2 (.../branch1) (revision 4) +++ ergh eek arf/quux bar baz2 (.../branch2) (revision 4) @@ -1 +1 @@ -foo goo +foo bar diffstat-1.68/testing/case42Rp0.ref0000644000000000000000000000046214320561540015572 0ustar rootroot testing/case39k.ref | 1 - testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/full.log |only testing2/full.txt |only 10 files changed, 1 deletion(-) diffstat-1.68/testing/case38rp9.ref0000644000000000000000000000045612546615551015665 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case23b.ref0000644000000000000000000000023410667374026015361 0ustar rootroot README | 1 gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case23f0.ref0000644000000000000000000000017407753454053015451 0ustar rootroot README | 1 0 + 1 - 0 ! gkrellm-bfm.c | 99 77 + 22 - 0 ! 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case19R.ref0000644000000000000000000000011411700545540015331 0ustar rootroot data.old | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diffstat-1.68/testing/case02r2.ref0000644000000000000000000000041210277702415015450 0ustar rootroot bug-report | 2 ! clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! clients/xterm/misc.c | 104 ++++++++++++++++++++++++++++++++++++++!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case01f0.ref0000644000000000000000000000445507530543241015442 0ustar rootroot config/cf/Imake.cf | 7 7 + 0 - 0 ! config/cf/hp.cf | 7 7 + 0 - 0 ! config/cf/hpLib.rules | 2 2 + 0 - 0 ! config/imake/imakemdep.h | 13 13 + 0 - 0 ! config/makedepend/main.c | 2 1 + 1 - 0 ! include/Xos.h | 7 6 + 1 - 0 ! programs/Xserver/XIE/mixie/import/mijpeg.c | 2 1 + 1 - 0 ! programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 1 + 1 - 0 ! programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 1 + 1 - 0 ! programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 1 + 1 - 0 ! programs/Xserver/hw/hp/input/hpKeyMap.c | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 3 + 3 - 0 ! programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 2 + 2 - 0 ! programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 2 + 2 - 0 ! programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 3 + 3 - 0 ! programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 2 + 2 - 0 ! programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 1 + 1 - 0 ! programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 1 + 1 - 0 ! test/xsuite/xtest/src/bin/mc/files.c | 2 1 + 1 - 0 ! util/patch/malloc.c | 12 5 + 7 - 0 ! util/patch/pch.c | 2 1 + 1 - 0 ! 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case32Rp0.ref0000644000000000000000000000010511700545545015571 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case28Rp0.ref0000644000000000000000000000020411700545543015574 0ustar rootroot ./testing/case28.pat | 70 +++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case29b.ref0000644000000000000000000000020411163734345015360 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case39R.ref0000644000000000000000000000015613777406456015363 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case44.ref0000644000000000000000000000121614320603177015213 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case01p1.ref0000644000000000000000000000556107073762770015470 0ustar rootroot build/x11r6/XFree86-current/xc/config/cf/Imake.cf | 7 +++++ build/x11r6/XFree86-current/xc/config/cf/hp.cf | 7 +++++ build/x11r6/XFree86-current/xc/config/cf/hpLib.rules | 2 + build/x11r6/XFree86-current/xc/config/imake/imakemdep.h | 13 ++++++++++ build/x11r6/XFree86-current/xc/config/makedepend/main.c | 2 - build/x11r6/XFree86-current/xc/include/Xos.h | 7 ++++- build/x11r6/XFree86-current/xc/programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - build/x11r6/XFree86-current/xc/test/xsuite/xtest/src/bin/mc/files.c | 2 - build/x11r6/XFree86-current/xc/util/patch/malloc.c | 12 +++------ build/x11r6/XFree86-current/xc/util/patch/pch.c | 2 - 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case47u.ref0000644000000000000000000000062214377643723015420 0ustar rootroot package/debian/cdialog-dev.install | 11 +++-- package/debian/cdialog.install | 9 ++-- package/debian/cdialog.lintian-overrides | 2 - headers-sh.in | 57 ++++++++++++++++++++++++++++--- samples/inputbox6-utf8 | 4 +- po/makefile.inn | 14 +++---- 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case16.pat0000644000000000000000000020666607270664574015260 0ustar rootroot PDCurses 2.5 (Public Domain Curses for DOS, OS/2, X11 and Win32) INTRODUCTION: This release of PDCurses includes the following changes: - full support of X11 selection handling - removed the need for the cursos2.h file - enabled the "shifted" key on the numeric keypad - added native clipboard support for X11, Win32 and OS/2 - added extra functions for obtaining internal PDCUrses status - added clipboard and key modifier tests in testcurs.c - fixes for panel library - key modifiers pressed by themselves are now returned as keys - Added X11 shared library support - Added extra slk formats supported by ncurses - Fixed bug with resizing the terminal when slk were on. - Changed behaviour of slk_attrset(), slk_attron() alk_attroff() functions to work more like ncurses. BUGS FIXED: some minor bug and portability fixes were included in this release NEW FUNCTIONS: PDC_getclipboard() and PDC_setclipboard() for accessing the native clipboard. PDC_set_title() for setting the title of the window (X11 and Win32 only) PDC_get_input_fd() for getting the file handle of the PDCurses input PDC_get_key_modifiers() for getting the keyboard modifier settings at the time of the last (w)getch() initscrX() (only for X11 port) which allows standard X11 switches to be passed to the application NEW COMPILER SUPPORT: - MingW32 GNU compiler under Win95/NT - Cygnus Win32 GNU compiler under Win95/NT - Borland C++ for OS/2 1.0+ - lcc-win32 compiler under Win95/NT Makefiles for each platform/compiler option reside in the platform directory. These all have an extension of .mak. ACKNOWLEGEMENTS: (for this release) Georg Fuchs for various changes. Juan David Palomar for pointing out getnstr() was not implemented. William McBrine for fix to allow black/black as valid color pair. Peter Preus for pointing out the missing bccos2.mak file. Laura Michaels for a couple of bug fixes and changes required to support Mingw32 compiler. Frank Heckenbach for PDC_get_input_fd() and some portability fixes and the fixes for panel library. Matthias Burian for the lcc-win32 compiler support. Cheers, Mark ------------------------------------------------------------------------ Mark Hessling Email: M.Hessling@qut.edu.au PO Box 203 http://www.lightlink.com/hessling/ Bellara AUTHOR of | MAINTAINER of QLD 4507 THE | PDCurses Australia Rexx/SQL | Regina Member of RexxLA: http://www.rexxla.org/ ------------------------------------------------------------------------ Module: PDCurses Detailed differences between 2_4 and Latest -------------------------------------------------------------------------------- Index: PDCurses/Makefile.in =================================================================== RCS file: /usr/local/cvsroot/PDCurses/Makefile.in,v retrieving revision 1.1 retrieving revision 1.3 diff -b -w -r1.1 -r1.3 7,8c7,8 < VER=24 < VER_DOT=2.4 --- > VER=25 > VER_DOT=2.5 18,19c18 < INSTALL =@INSTALL@ < INSTALL_DATA =@INSTALL_DATA@ --- > INSTALL =$(srcdir)/install-sh 20a20,22 > RXLIBPRE = @RXLIBPRE@ > RXLIBPST = @RXLIBPST@ > SHLFILE = XCurses 35,42c37,46 < $(INSTALL_DATA) $(srcdir)/curses.h $(includedir)/xcurses.h < sed -e 's/#include /#include/' < panel.h > xpanel.h < $(INSTALL_DATA) $(srcdir)/xpanel.h $(includedir)/panel.h < $(INSTALL_DATA) pdcurses/libXCurses.a $(libdir)/libXCurses.a < $(INSTALL_DATA) pdcurses/$(RXLIBPRE)$(SHLFILE)$(RXLIBPST) $(libdir)/$(RXLIBPRE)$(SHLFILE)$(RXLIBPST) < $(RANLIB) $(libdir)/libXCurses.a < $(INSTALL_DATA) panel/libpanel.a $(libdir)/libpanel.a < $(RANLIB) $(libdir)/libpanel.a --- > $(INSTALL) -d -m 755 $(libdir) > $(INSTALL) -d -m 755 $(includedir) > $(INSTALL) -c -m 644 $(srcdir)/curses.h $(includedir)/xcurses.h > sed -e 's/#include /#include /' < $(srcdir)/panel.h > ./xpanel.h > $(INSTALL) -m 644 ./xpanel.h $(includedir)/xpanel.h > $(INSTALL) -c -m 644 pdcurses/libXCurses.a $(libdir)/libXCurses.a > -$(RANLIB) $(libdir)/libXCurses.a > $(INSTALL) -c -m 555 pdcurses/$(RXLIBPRE)$(SHLFILE)$(RXLIBPST) $(libdir)/$(RXLIBPRE)$(SHLFILE)$(RXLIBPST) > $(INSTALL) -c -m 644 panel/libpanel.a $(libdir)/libpanel.a > -$(RANLIB) $(libdir)/libpanel.a 57c61 < curses.h xcurses.h curspriv.h panel.h x11.h maintain.er readme.* makezip.cmd \ --- > curses.h xcurses.h curspriv.h panel.h maintain.er readme.* makezip.cmd \ 63c67,68 < x11/README x11/*.c x11/*.xbm x11/*.def x11/*.h \ --- > x11/README x11/*.c x11/*.xbm x11/*.def x11/*.h x11/process/*.c x11/*.exp \ > x11/process/*.c x11/process/*.h x11/thread/*.c x11/thread/*.h \ 66c71 < pdcurses/Makefile.in demos/Makefile.in panel/Makefile.in tools/Makefile.in --- > pdcurses/Makefile.in pdcurses/Makefile.aix.in demos/Makefile.in panel/Makefile.in tools/Makefile.in 69c74 < (cd ..; tar cvf - $(PDC_DIR)/README $(PDC_DIR)/INSTALL $(PDC_DIR)/README $(PDC_DIR)/Makefile.in \ --- > (cd ..; tar cvf - $(PDC_DIR)/README $(PDC_DIR)/INSTALL $(PDC_DIR)/TODO $(PDC_DIR)/Makefile.in \ 71c76 < $(PDC_DIR)/config.sub $(PDC_DIR)/install-sh $(PDC_DIR)/curses.h $(PDC_DIR)/xcurses.h \ --- > $(PDC_DIR)/config.sub $(PDC_DIR)/configure.in $(PDC_DIR)/install-sh $(PDC_DIR)/curses.h $(PDC_DIR)/xcurses.h \ 73c78 < $(PDC_DIR)/x11.h $(PDC_DIR)/maintain.er $(PDC_DIR)/readme.* $(PDC_DIR)/makezip.cmd \ --- > $(PDC_DIR)/maintain.er $(PDC_DIR)/readme.* $(PDC_DIR)/makezip.cmd \ 75c80 < $(PDC_DIR)/panel/README $(PDC_DIR)/panel/*.c \ --- > $(PDC_DIR)/panel/README $(PDC_DIR)/panel/*.c $(PDC_DIR)/*.spec \ 79c84,85 < $(PDC_DIR)/x11/README $(PDC_DIR)/x11/*.c $(PDC_DIR)/x11/*.xbm $(PDC_DIR)/x11/*.def $(PDC_DIR)/x11/*.h \ --- > $(PDC_DIR)/x11/README $(PDC_DIR)/x11/*.c $(PDC_DIR)/x11/*.xbm $(PDC_DIR)/x11/*.def $(PDC_DIR)/x11/*.h $(PDC_DIR)/x11/*.exp \ > $(PDC_DIR)/x11/process/*.c $(PDC_DIR)/x11/process/*.h $(PDC_DIR)/x11/thread/*.c $(PDC_DIR)/x11/thread/*.h \ 82c88 < $(PDC_DIR)/pdcurses/Makefile.in $(PDC_DIR)/demos/Makefile.in $(PDC_DIR)/tools/Makefile.in \ --- > $(PDC_DIR)/pdcurses/Makefile.in $(PDC_DIR)/pdcurses/Makefile.aix.in $(PDC_DIR)/demos/Makefile.in $(PDC_DIR)/tools/Makefile.in \ 86c92 < (cd ..; tar cvf - $(PDC_DIR)/README $(PDC_DIR)/INSTALL $(PDC_DIR)/README $(PDC_DIR)/Makefile.in \ --- > (cd ..; tar cvf - $(PDC_DIR)/README $(PDC_DIR)/INSTALL $(PDC_DIR)/TODO $(PDC_DIR)/Makefile.in \ 88c94 < $(PDC_DIR)/config.sub $(PDC_DIR)/install-sh $(PDC_DIR)/curses.h $(PDC_DIR)/xcurses.h \ --- > $(PDC_DIR)/config.sub $(PDC_DIR)/configure.in $(PDC_DIR)/install-sh $(PDC_DIR)/curses.h $(PDC_DIR)/xcurses.h \ 90c96 < $(PDC_DIR)/x11.h $(PDC_DIR)/maintain.er $(PDC_DIR)/readme.* $(PDC_DIR)/makezip.cmd \ --- > $(PDC_DIR)/maintain.er $(PDC_DIR)/readme.* $(PDC_DIR)/makezip.cmd \ 92c98 < $(PDC_DIR)/panel/README $(PDC_DIR)/panel/*.c \ --- > $(PDC_DIR)/panel/README $(PDC_DIR)/panel/*.c $(PDC_DIR)/*.spec \ 96c102,103 < $(PDC_DIR)/x11/README $(PDC_DIR)/x11/*.c $(PDC_DIR)/x11/*.xbm $(PDC_DIR)/x11/*.def $(PDC_DIR)/x11/*.h \ --- > $(PDC_DIR)/x11/README $(PDC_DIR)/x11/*.c $(PDC_DIR)/x11/*.xbm $(PDC_DIR)/x11/*.def $(PDC_DIR)/x11/*.h $(PDC_DIR)/x11/*.exp \ > $(PDC_DIR)/x11/process/*.c $(PDC_DIR)/x11/process/*.h $(PDC_DIR)/x11/thread/*.c $(PDC_DIR)/x11/thread/*.h \ 99c106 < $(PDC_DIR)/pdcurses/Makefile.in $(PDC_DIR)/demos/Makefile.in $(PDC_DIR)/tools/Makefile.in \ --- > $(PDC_DIR)/pdcurses/Makefile.in $(PDC_DIR)/pdcurses/Makefile.aix.in $(PDC_DIR)/demos/Makefile.in $(PDC_DIR)/tools/Makefile.in \ Index: PDCurses/README =================================================================== RCS file: /usr/local/cvsroot/PDCurses/README,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 21,22c21,23 < PDCurses has been ported to DOS, OS/2, X11, WIN32 and Flexos. A < directory containing the port-specific source files exists for each --- > PDCurses has been ported to DOS, OS/2, X11, WIN32 and Amiga. A port > to Flexos is also included, but likely to be out of date. > A directory containing the port-specific source files exists for each Index: PDCurses/aclocal.m4 =================================================================== RCS file: /usr/local/cvsroot/PDCurses/aclocal.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 329c329,334 < LD_RXLIB1="${CC} -Wl,-shared" --- > LD_RXLIB1="${CC} -shared" > RXLIBPRE="lib" > RXLIBPST=".so" > ;; > *nto-qnx*) > LD_RXLIB1="${CC} -shared" Index: PDCurses/config.h.in =================================================================== RCS file: /usr/local/cvsroot/PDCurses/config.h.in,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 127a128,133 > /* Define if you want to build XCurses with threads */ > #undef USE_THREADS > > /* Define if you want to build XCurses with processes */ > #undef USE_PROCESSES > Index: PDCurses/configure =================================================================== RCS file: /usr/local/cvsroot/PDCurses/configure,v retrieving revision 1.1 retrieving revision 1.4 diff -b -w -r1.1 -r1.4 4c4 < # Generated automatically using autoconf version 2.12 --- > # Generated automatically using autoconf version 2.13 18a19,20 > --with-threads build XCurses with threads" > ac_help="$ac_help 59a62 > SHELL=${CONFIG_SHELL-/bin/sh} 343c346 < echo "configure generated by autoconf version 2.12" --- > echo "configure generated by autoconf version 2.13" 513c516 < ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' --- > ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 515a519,520 > ac_exeext= > ac_objext=o 537c542 < echo "configure:538: checking for one of the following C compilers: $all_words" >&5 --- > echo "configure:543: checking for one of the following C compilers: $all_words" >&5 576c581 < echo "configure:577: checking for $ac_word" >&5 --- > echo "configure:582: checking for $ac_word" >&5 583,584c588,590 < IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" < for ac_dir in $PATH; do --- > IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" > ac_dummy="$PATH" > for ac_dir in $ac_dummy; do 605c611 < echo "configure:606: checking for $ac_word" >&5 --- > echo "configure:612: checking for $ac_word" >&5 612c618 < IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" --- > IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 614c620,621 < for ac_dir in $PATH; do --- > ac_dummy="$PATH" > for ac_dir in $ac_dummy; do 648a656,689 > if test -z "$CC"; then > case "`uname -s`" in > *win32* | *WIN32*) > # Extract the first word of "cl", so it can be a program name with args. > set dummy cl; ac_word=$2 > echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 > echo "configure:663: checking for $ac_word" >&5 > if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then > echo $ac_n "(cached) $ac_c" 1>&6 > else > if test -n "$CC"; then > ac_cv_prog_CC="$CC" # Let the user override the test. > else > IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" > ac_dummy="$PATH" > for ac_dir in $ac_dummy; do > test -z "$ac_dir" && ac_dir=. > if test -f $ac_dir/$ac_word; then > ac_cv_prog_CC="cl" > break > fi > done > IFS="$ac_save_ifs" > fi > fi > CC="$ac_cv_prog_CC" > if test -n "$CC"; then > echo "$ac_t""$CC" 1>&6 > else > echo "$ac_t""no" 1>&6 > fi > ;; > esac > fi 653c694 < echo "configure:654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 --- > echo "configure:695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 659c700 < ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' --- > ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 663c704,705 < #line 664 "configure" --- > > #line 706 "configure" 664a707 > 667c710 < if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then --- > if { (eval echo configure:711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 680a724,729 > ac_ext=c > # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. > ac_cpp='$CPP $CPPFLAGS' > ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' > ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' > cross_compiling=$ac_cv_prog_cc_cross 687c736 < echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 --- > echo "configure:737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 692c741 < echo "configure:693: checking whether we are using GNU C" >&5 --- > echo "configure:742: checking whether we are using GNU C" >&5 701c750 < if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then --- > if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 711a761,764 > else > GCC= > fi > 716c769 < echo "configure:717: checking whether ${CC-cc} accepts -g" >&5 --- > echo "configure:770: checking whether ${CC-cc} accepts -g" >&5 733a787 > if test "$GCC" = yes; then 736c790 < CFLAGS="-O2" --- > CFLAGS="-g" 739,740c793,797 < GCC= < test "${CFLAGS+set}" = set || CFLAGS="-g" --- > if test "$GCC" = yes; then > CFLAGS="-O2" > else > CFLAGS= > fi 744c801 < echo "configure:745: checking for POSIXized ISC" >&5 --- > echo "configure:802: checking for POSIXized ISC" >&5 808c865 < if $ac_config_sub sun4 >/dev/null 2>&1; then : --- > if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 813c870 < echo "configure:814: checking host system type" >&5 --- > echo "configure:871: checking host system type" >&5 820c877 < if host_alias=`$ac_config_guess`; then : --- > if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 827c884 < host=`$ac_config_sub $host_alias` --- > host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 834c891 < echo "configure:835: checking target system type" >&5 --- > echo "configure:892: checking target system type" >&5 845c902 < target=`$ac_config_sub $target_alias` --- > target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 852c909 < echo "configure:853: checking build system type" >&5 --- > echo "configure:910: checking build system type" >&5 863c920 < build=`$ac_config_sub $build_alias` --- > build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 874a932 > mymakefile="Makefile" 881a940 > mymakefile="Makefile.aix" 894a954,955 > *nto-qnx*) > ;; 907c968 < echo "configure:908: checking for maximum signal specifier:" >&5 --- > echo "configure:969: checking for maximum signal specifier:" >&5 914c975 < #line 915 "configure" --- > #line 976 "configure" 921c982 < if { (eval echo configure:922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 953c1014 < echo "configure:954: checking for main in -l$mh_lib" >&5 --- > echo "configure:1015: checking for main in -l$mh_lib" >&5 961c1022 < #line 962 "configure" --- > #line 1023 "configure" 968c1029 < if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then --- > if { (eval echo configure:1030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1002c1063 < echo "configure:1003: checking for $ac_word" >&5 --- > echo "configure:1064: checking for $ac_word" >&5 1009,1010c1070,1072 < IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" < for ac_dir in $PATH; do --- > IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" > ac_dummy="$PATH" > for ac_dir in $ac_dummy; do 1034a1097 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1039c1102 < echo "configure:1040: checking for a BSD compatible install" >&5 --- > echo "configure:1103: checking for a BSD compatible install" >&5 1044c1107 < IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" --- > IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1051c1114,1116 < for ac_prog in ginstall installbsd scoinst install; do --- > # Don't use installbsd from OSF since it installs stuff as root > # by default. > for ac_prog in ginstall scoinst install; do 1056d1120 < # OSF/1 installbsd also uses dspmsg, but is usable. 1085a1150,1151 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' > 1089c1155 < echo "configure:1090: checking whether ${MAKE-make} sets \${MAKE}" >&5 --- > echo "configure:1156: checking whether ${MAKE-make} sets \${MAKE}" >&5 1117c1183 < echo "configure:1118: checking how to run the C preprocessor" >&5 --- > echo "configure:1184: checking how to run the C preprocessor" >&5 1132c1198 < #line 1133 "configure" --- > #line 1199 "configure" 1138,1139c1204,1205 < { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } < ac_err=`grep -v '^ *+' conftest.out` --- > { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1149c1215 < #line 1150 "configure" --- > #line 1216 "configure" 1155,1156c1221,1239 < { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } < ac_err=`grep -v '^ *+' conftest.out` --- > { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` > if test -z "$ac_err"; then > : > else > echo "$ac_err" >&5 > echo "configure: failed program was:" >&5 > cat conftest.$ac_ext >&5 > rm -rf conftest* > CPP="${CC-cc} -nologo -E" > cat > conftest.$ac_ext < #line 1233 "configure" > #include "confdefs.h" > #include > Syntax Error > EOF > ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" > { (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1168a1252,1253 > fi > rm -f conftest* 1179c1264 < echo "configure:1180: checking for System V IPC support" >&5 --- > echo "configure:1265: checking for System V IPC support" >&5 1182c1267 < echo "configure:1183: checking for sys/ipc.h" >&5 --- > echo "configure:1268: checking for sys/ipc.h" >&5 1187c1272 < #line 1188 "configure" --- > #line 1273 "configure" 1192,1193c1277,1278 < { (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } < ac_err=`grep -v '^ *+' conftest.out` --- > { (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1220c1305 < echo "configure:1221: checking for ANSI C header files" >&5 --- > echo "configure:1306: checking for ANSI C header files" >&5 1225c1310 < #line 1226 "configure" --- > #line 1311 "configure" 1233,1234c1318,1319 < { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } < ac_err=`grep -v '^ *+' conftest.out` --- > { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1250c1335 < #line 1251 "configure" --- > #line 1336 "configure" 1268c1353 < #line 1269 "configure" --- > #line 1354 "configure" 1289c1374 < #line 1290 "configure" --- > #line 1375 "configure" 1300c1385 < if { (eval echo configure:1301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null --- > if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1339c1424 < echo "configure:1340: checking for $ac_hdr" >&5 --- > echo "configure:1425: checking for $ac_hdr" >&5 1344c1429 < #line 1345 "configure" --- > #line 1430 "configure" 1349,1350c1434,1435 < { (eval echo configure:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } < ac_err=`grep -v '^ *+' conftest.out` --- > { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1377c1462 < echo "configure:1378: checking if compiler supports ANSI prototypes" >&5 --- > echo "configure:1463: checking if compiler supports ANSI prototypes" >&5 1380c1465 < #line 1381 "configure" --- > #line 1466 "configure" 1387c1472 < if { (eval echo configure:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1405c1490 < echo "configure:1406: checking for working const" >&5 --- > echo "configure:1491: checking for working const" >&5 1410c1495 < #line 1411 "configure" --- > #line 1496 "configure" 1459c1544 < if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1480c1565 < echo "configure:1481: checking for size_t" >&5 --- > echo "configure:1566: checking for size_t" >&5 1485c1570 < #line 1486 "configure" --- > #line 1571 "configure" 1494c1579 < egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then --- > egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1513c1598 < echo "configure:1514: checking whether time.h and sys/time.h may both be included" >&5 --- > echo "configure:1599: checking whether time.h and sys/time.h may both be included" >&5 1518c1603 < #line 1519 "configure" --- > #line 1604 "configure" 1527c1612 < if { (eval echo configure:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:1613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1548c1633 < echo "configure:1549: checking whether struct tm is in sys/time.h or time.h" >&5 --- > echo "configure:1634: checking whether struct tm is in sys/time.h or time.h" >&5 1553c1638 < #line 1554 "configure" --- > #line 1639 "configure" 1561c1646 < if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1586c1671 < echo "configure:1587: checking for main in -l$mh_lib" >&5 --- > echo "configure:1672: checking for main in -l$mh_lib" >&5 1594c1679 < #line 1595 "configure" --- > #line 1680 "configure" 1601c1686 < if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then --- > if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1633c1718 < echo "configure:1634: checking whether $CC understand -c and -o together" >&5 --- > echo "configure:1719: checking whether $CC understand -c and -o together" >&5 1644c1729 < if { (eval echo configure:__oline__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.ooo && { (eval echo configure:1645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; --- > if { (eval echo configure:__oline__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.ooo && { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1647c1732 < if { (eval echo configure:__oline__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.ooo && { (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; --- > if { (eval echo configure:__oline__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.ooo && { (eval echo configure:1733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1672c1757 < echo "configure:1673: checking whether ${CC-cc} needs -traditional" >&5 --- > echo "configure:1758: checking whether ${CC-cc} needs -traditional" >&5 1678c1763 < #line 1679 "configure" --- > #line 1764 "configure" 1696c1781 < #line 1697 "configure" --- > #line 1782 "configure" 1718c1803 < echo "configure:1719: checking for 8-bit clean memcmp" >&5 --- > echo "configure:1804: checking for 8-bit clean memcmp" >&5 1726c1811 < #line 1727 "configure" --- > #line 1812 "configure" 1736c1821 < if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null --- > if { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1751c1836 < test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o" --- > test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" 1754c1839 < echo "configure:1755: checking return type of signal handlers" >&5 --- > echo "configure:1840: checking return type of signal handlers" >&5 1759c1844 < #line 1760 "configure" --- > #line 1845 "configure" 1776c1861 < if { (eval echo configure:1777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:1862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1795c1880 < echo "configure:1796: checking for vprintf" >&5 --- > echo "configure:1881: checking for vprintf" >&5 1800c1885 < #line 1801 "configure" --- > #line 1886 "configure" 1823c1908 < if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then --- > if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1847c1932 < echo "configure:1848: checking for _doprnt" >&5 --- > echo "configure:1933: checking for _doprnt" >&5 1852c1937 < #line 1853 "configure" --- > #line 1938 "configure" 1875c1960 < if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then --- > if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1902c1987 < echo "configure:1903: checking for $ac_func" >&5 --- > echo "configure:1988: checking for $ac_func" >&5 1907c1992 < #line 1908 "configure" --- > #line 1993 "configure" 1930c2015 < if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then --- > if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1957c2042 < echo "configure:1958: checking for location of X headers" >&5 --- > echo "configure:2043: checking for location of X headers" >&5 2052c2137 < echo "configure:2053: checking for location of X libraries" >&5 --- > echo "configure:2138: checking for location of X libraries" >&5 2187c2272 < echo "configure:2188: checking for $ac_hdr" >&5 --- > echo "configure:2273: checking for $ac_hdr" >&5 2192c2277 < #line 2193 "configure" --- > #line 2278 "configure" 2197,2198c2282,2283 < { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } < ac_err=`grep -v '^ *+' conftest.out` --- > { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } > ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2232c2317 < echo "configure:2233: checking for $mh_keydef in keysym.h" >&5 --- > echo "configure:2318: checking for $mh_keydef in keysym.h" >&5 2235c2320 < #line 2236 "configure" --- > #line 2321 "configure" 2242c2327 < if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then --- > if { (eval echo configure:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2316a2402,2424 > # Check whether --with-threads or --without-threads was given. > if test "${with_threads+set}" = set; then > withval="$with_threads" > with_threads=$withval > else > with_threads=no > fi > > if test "$with_threads" = yes; then > cat >> confdefs.h <<\EOF > #define USE_THREADS 1 > EOF > > x11type="thread" > else > cat >> confdefs.h <<\EOF > #define USE_PROCESSES 1 > EOF > > x11type="process" > fi > > 2397c2505 < echo "configure:2398: checking compiler flags for a dynamic object" >&5 --- > echo "configure:2506: checking compiler flags for a dynamic object" >&5 2400c2508 < #line 2401 "configure" --- > #line 2509 "configure" 2412c2520 < if { (eval echo configure:2413: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; }; then --- > if { (eval echo configure:2521: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; }; then 2500c2608 < LD_RXLIB1="ld" --- > LD_RXLIB1="ld -assert pure-text" 2510c2618,2623 < LD_RXLIB1="${CC} -Wl,-shared" --- > LD_RXLIB1="${CC} -shared" > RXLIBPRE="lib" > RXLIBPST=".so" > ;; > *nto-qnx*) > LD_RXLIB1="${CC} -shared" 2524c2637 < #line 2525 "configure" --- > #line 2638 "configure" 2530c2643 < if { (eval echo configure:2531: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; } && test -s conftest.o; then --- > if { (eval echo configure:2644: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; } && test -s conftest.o; then 2532c2645 < if { (eval echo configure:2533: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then --- > if { (eval echo configure:2646: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then 2538c2651 < if { (eval echo configure:2539: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then --- > if { (eval echo configure:2652: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then 2606c2719 < case `(ac_space=' '; set) 2>&1` in --- > case `(ac_space=' '; set | grep ac_space) 2>&1` in 2673c2786 < echo "$CONFIG_STATUS generated by autoconf version 2.12" --- > echo "$CONFIG_STATUS generated by autoconf version 2.13" 2684c2797 < trap 'rm -fr `echo "Makefile pdcurses/Makefile demos/Makefile panel/Makefile tools/Makefile saa/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 --- > trap 'rm -fr `echo "Makefile pdcurses/$mymakefile demos/Makefile panel/Makefile tools/Makefile saa/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2692a2806 > s%@SHELL@%$SHELL%g 2695a2810 > s%@FFLAGS@%$FFLAGS%g 2732a2848 > s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2739a2856 > s%@x11type@%$x11type%g 2802c2919 < CONFIG_FILES=\${CONFIG_FILES-"Makefile pdcurses/Makefile demos/Makefile panel/Makefile tools/Makefile saa/Makefile"} --- > CONFIG_FILES=\${CONFIG_FILES-"Makefile pdcurses/$mymakefile demos/Makefile panel/Makefile tools/Makefile saa/Makefile"} 2979a3097,3105 > > case "$target" in > *ibm-aix*) > mv pdcurses/Makefile.aix pdcurses/Makefile > echo "$ac_t""renaming pdcurses/Makefile.aix to pdcurses/Makefile" 1>&6 > ;; > *) > ;; > esac Index: PDCurses/curses.h =================================================================== RCS file: /usr/local/cvsroot/PDCurses/curses.h,v retrieving revision 1.2 retrieving revision 1.5 diff -b -w -r1.2 -r1.5 21c21 < @Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @ --- > @Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @ 172c172 < #define PDC_BUILD 2401 --- > #define PDC_BUILD 2501 970a971,972 > short line_color; /* Color of line attributes - default white */ > 1044,1045d1045 < #define A_STANDOUT 0x00A00000L < #define A_BOLD 0x00800000L 1048a1049,1050 > # define A_BOLD 0x00800000L > # define A_RIGHTLINE 0x00010000L 1050,1051d1051 < #define A_INVIS 0x00080000L < #define A_PROTECT 0x00010000L 1052a1053 > # define A_INVIS 0x00080000L 1056a1058,1062 > # define A_LEFTLINE A_DIM > # define A_ITALIC A_INVIS > # define A_STANDOUT ( A_BOLD | A_REVERSE ) > # define A_PROTECT ( A_UNDERLINE | A_LEFTLINE | A_RIGHTLINE ) > 1059c1065 < #define A_NORMAL (chtype)0x0000 /* SysV */ --- > # define A_NORMAL (chtype)0x0000 /* System V */ 1499c1505,1507 < # define KEY_MAX 0x222 /* Maximum curses key */ --- > # define KEY_SUP 0x223 /* Shifted up arrow */ > # define KEY_SDOWN 0x224 /* Shifted down arrow */ > # define KEY_MAX 0x224 /* Maximum curses key */ 1712a1721 > int PDC_CDECL PDC_curs_set( int ); 1714a1724,1728 > int PDC_CDECL PDC_wunderline( WINDOW*, int, bool ); > int PDC_CDECL PDC_wleftline( WINDOW*, int, bool ); > int PDC_CDECL PDC_wrightline( WINDOW*, int, bool ); > int PDC_CDECL PDC_set_line_color( short ); > 1914a1929 > int PDC_CDECL PDC_curs_set( /* int */ ); 1916a1932,1936 > int PDC_CDECL PDC_wunderline( /* WINDOW*, int, bool */ ); > int PDC_CDECL PDC_wleftline( /* WINDOW*, int, bool */ ); > int PDC_CDECL PDC_wrightline( /* WINDOW*, int, bool */ ); > int PDC_CDECL PDC_set_line_color( /* short */ ); > 1954a1975 > #define getbkgd(w) ((w)->_bkgd) Index: PDCurses/curspriv.h =================================================================== RCS file: /usr/local/cvsroot/PDCurses/curspriv.h,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 21c21 < @Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @ --- > @Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @ 370,371c370,371 < int XCurses_display_cursor(int,int,int,int); < int XCurses_rawgetch(void); --- > int XCurses_display_cursor(int,int,int,int,int); > int XCurses_rawgetch(int); 385d384 < void XCurses_set_title(char *); 490,491c489,490 < int XCurses_display_cursor( /*int,int,int,int*/ ); < int XCurses_rawgetch( /*void*/ ); --- > int XCurses_display_cursor( /*int,int,int,int,int*/ ); > int XCurses_rawgetch( /*int*/ ); 577a577 > #define CURSES_DISPLAY_CURSOR 999986 Index: PDCurses/demos/testcurs.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/demos/testcurs.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 36c36 < char *rcsid_testcurs = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_testcurs = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 826c826,830 < attrset(A_NORMAL); --- > #ifdef XCURSES > attrset(A_PROTECT); > #else > attrset(A_BOLD); > #endif 827a832 > attrset(A_NORMAL); Index: PDCurses/doc/intro.man =================================================================== RCS file: /usr/local/cvsroot/PDCurses/doc/intro.man,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 366,376c366,376 < *** slk_attroff slk < *** slk_attron slk < *** slk_attrset slk < *** slk_clear slk < *** slk_init slk < *** slk_label slk < *** slk_noutrefresh slk < *** slk_refresh slk < *** slk_restore slk < *** slk_set slk < *** slk_touch slk --- > slk_attroff slk > slk_attron slk > slk_attrset slk > slk_clear slk > slk_init slk > slk_label slk > slk_noutrefresh slk > slk_refresh slk > slk_restore slk > slk_set slk > slk_touch slk 497a498,499 > PDC_get_input_fd pdckbd > PDC_get_key_modifiers pdckbd 499a502 > PDC_getclipboard pdcclip 519a523,524 > PDC_set_title pdcsetsc > PDC_setclipboard pdcclip Index: PDCurses/doc/x11.man =================================================================== RCS file: /usr/local/cvsroot/PDCurses/doc/x11.man,v retrieving revision 1.1 retrieving revision 1.3 diff -b -w -r1.1 -r1.3 11,12c11,12 < To use XCurses with an existing curses program, you need to make two < changes to your code. --- > To use XCurses with an existing curses program, you need to make one > change to your code: 14,25c14 < The first is the addition of a definition of the program name as a < global char pointer. eg. < < #ifdef XCURSES < char *XCursesProgramName="sample"; < #endif < < This name is used as the title of the X window, and for defining X < resources specific to your program. < < The second is a call to XCursesExit() just before exiting from your < program. eg. --- > Call XCursesExit() just before exiting from your program. eg. 35c24,26 < When compiling your curses application, you need to add -DXCURSES. --- > When compiling your curses application, you need to add -DXCURSES, and > include the or that comes with XCurses. You also > need to link your code with the XCurses library. 47a39,45 > To get the most out of XCurses in your curses application you need > to call Xinitscr() rather than initscr(). This allows you to pass > your program name and resource overrides to XCurses. > > The program name is used as the title of the X window, and for defining X > resources specific to your program. > 70c68 < boldFont --- > italicFont 82a81,88 > colorBoldBlack > colorBoldRed > colorBoldGreen > colorBoldYellow > colorBoldBlue > colorBoldMagenta > colorBoldCyan > colorBoldWhite 104c110 < normalFont: the name of a fixed width font, used for A_NORMAL attribute --- > normalFont: the name of a fixed width font 107,110c113,116 < boldFont: the name of a fixed width font, used for A_BOLD attribute < Default: 7x13bold < < NB. The dimensions of font and boldFont MUST be the same. --- > italicFont: the name of a fixed width font to be used for > characters with A_ITALIC attributes. Must have the same > cell size as normalFont > Default: 7x13 (obviously not an italic font) 125a132 > Default: Black 126a134 > Default: red3 127a136 > Default: green3 128a138 > Default: yellow3 129a140 > Default: blue3 130a142 > Default: magenta3 131a144 > Default: cyan3 133c146,162 < Defaults are obvious :) --- > Default: Grey > colorBoldBlack: the color of the COLOR_BLACK attribute combined with A_BOLD > Default: grey40 > colorBoldRed the color of the COLOR_RED attribute combined with A_BOLD > Default: red1 > colorBoldGreen the color of the COLOR_GREEN attribute combined with A_BOLD > Default: green1 > colorBoldYellow the color of the COLOR_YELLOW attribute combined with A_BOLD > Default: yellow1 > colorBoldBlue the color of the COLOR_BLUE attribute combined with A_BOLD > Default: blue1 > colorBoldMagenta the color of the COLOR_MAGENTA attribute combined with A_BOLD > Default: magenta1 > colorBoldCyan the color of the COLOR_CYAN attribute combined with A_BOLD > Default: cyan1 > colorBoldWhite the color of the COLOR_WHITE attribute combined with A_BOLD > Default: White 222d250 < XCurses*boldFont: 9x13bold 236,242c264,276 < the.normalFont: 9x15 < the.boldFont: 9x15bold < the.lines: 40 < the.cols: 86 < the.pointer: xterm < the.pointerForeColor: black < the.pointerBackColor: black --- > ! resources with the * wildcard can be overridden by a parameter passed > ! to initscr() > ! > the*normalFont: 9x15 > the*lines: 40 > the*cols: 86 > the*pointer: xterm > the*pointerForeColor: white > the*pointerBackColor: black > ! > ! resources with the . format can not be overridden by a parameter passed > ! to Xinitscr() > ! 243a278,283 > > Resources may also be passed as a parameter to the Xinitscr() function. > The parameter is a string in the form of switches. eg. to set the color > "red" to "indianred", and the number of lines to 30, the string passed to > Xinitscr would be: > "-colorRed indianred -lines 30" Index: PDCurses/dos/pdckbd.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/dos/pdckbd.c,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 35c35 < char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 56a57,62 > /* Shifted Keypad */ > 0xb0, KEY_SHOME, 0xb1, KEY_SUP, 0xb2, KEY_SPREVIOUS, > 0xb3, KEY_SLEFT, 0xb4, KEY_SRIGHT, > 0xb5, KEY_SEND, 0xb6, KEY_SDOWN, 0xb7, KEY_SNEXT, > 0xb8, KEY_SIC, 0xb9, KEY_SDC, > 338a345,364 > if (ascii == 0xe0 && scan == 0x47 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Home */ > return ((int) (0xb0 << 8)); > if (ascii == 0xe0 && scan == 0x48 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Up */ > return ((int) (0xb1 << 8)); > if (ascii == 0xe0 && scan == 0x49 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift PgUp */ > return ((int) (0xb2 << 8)); > if (ascii == 0xe0 && scan == 0x4b && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Left */ > return ((int) (0xb3 << 8)); > if (ascii == 0xe0 && scan == 0x4d && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Right */ > return ((int) (0xb4 << 8)); > if (ascii == 0xe0 && scan == 0x4f && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift End */ > return ((int) (0xb5 << 8)); > if (ascii == 0xe0 && scan == 0x50 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Down */ > return ((int) (0xb6 << 8)); > if (ascii == 0xe0 && scan == 0x51 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift PgDn */ > return ((int) (0xb7 << 8)); > if (ascii == 0xe0 && scan == 0x52 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Ins */ > return ((int) (0xb8 << 8)); > if (ascii == 0xe0 && scan == 0x53 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Del */ > return ((int) (0xb9 << 8)); Index: PDCurses/dos/wccdos.lrf =================================================================== RCS file: /usr/local/cvsroot/PDCurses/dos/wccdos.lrf,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 Index: PDCurses/dos/wccdos16.mak =================================================================== RCS file: /usr/local/cvsroot/PDCurses/dos/wccdos16.mak,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 Index: PDCurses/dos/wccdos4g.mak =================================================================== RCS file: /usr/local/cvsroot/PDCurses/dos/wccdos4g.mak,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 Index: PDCurses/install-sh =================================================================== RCS file: /usr/local/cvsroot/PDCurses/install-sh,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 4c4,16 < # This comes from X11R5. --- > # This comes from X11R5 (mit/util/scripts/install.sh). > # > # Copyright 1991 by the Massachusetts Institute of Technology > # > # Permission to use, copy, modify, distribute, and sell this software and its > # documentation for any purpose is hereby granted without fee, provided that > # the above copyright notice appear in all copies and that both that > # copyright notice and this permission notice appear in supporting > # documentation, and that the name of M.I.T. not be used in advertising or > # publicity pertaining to distribution of the software without specific, > # written prior permission. M.I.T. makes no representations about the > # suitability of this software for any purpose. It is provided "as is" > # without express or implied warranty. 11,12c23,24 < # from scratch. < # --- > # from scratch. It can only install one file at a time, a restriction > # shared with many OS's install programs. 17a30,32 > # > # Modified 1 Feb 2000 MHES to cater for mkdir -p > # 32c47 < tranformbasename="" --- > transformbasename="" 40a56 > mkdircmd="$mkdirprog -p" 171c187 < $mkdirprog "${pathcomp}" --- > $mkdircmd "${pathcomp}" Index: PDCurses/os2/gccos2.mak =================================================================== RCS file: /usr/local/cvsroot/PDCurses/os2/gccos2.mak,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 18c18 < PDCURSES_HOME =c:\curses --- > PDCURSES_HOME =e:\curses 50c50 < DLLTARGET = pdcurses.dll --- > DLLTARGET = curses.dll 62c62 < DLLCURSES = pdcurses_dll.lib --- > DLLCURSES = curses.lib 206,209c206,209 < pdcurses.dll : $(DLLOBJS) $(PDCDLOS) < $(LINK) $(DLLFLAGS) -o pdcurses.dll $(DLLOBJS) $(PDCDLOS) $(osdir)\pdcurses.def < emximp -o pdcurses_dll.lib $(osdir)\pdcurses.def < emximp -o pdcurses_dll.a pdcurses_dll.lib --- > curses.dll : $(DLLOBJS) $(PDCDLOS) > $(LINK) $(DLLFLAGS) -o curses.dll $(DLLOBJS) $(PDCDLOS) $(osdir)\pdcurses.def > emximp -o curses.lib $(osdir)\pdcurses.def > emximp -o curses.a curses.lib Index: PDCurses/os2/pdckbd.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/os2/pdckbd.c,v retrieving revision 1.2 retrieving revision 1.3 diff -b -w -r1.2 -r1.3 36c36 < char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 57a58,63 > /* Shifted Keypad */ > 0xb0, KEY_SHOME, 0xb1, KEY_SUP, 0xb2, KEY_SPREVIOUS, > 0xb3, KEY_SLEFT, 0xb4, KEY_SRIGHT, > 0xb5, KEY_SEND, 0xb6, KEY_SDOWN, 0xb7, KEY_SNEXT, > 0xb8, KEY_SIC, 0xb9, KEY_SDC, > 358a365,384 > if (ascii == 0xe0 && scan == 0x47 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Home */ > return ((int) (0xb0 << 8)); > if (ascii == 0xe0 && scan == 0x48 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Up */ > return ((int) (0xb1 << 8)); > if (ascii == 0xe0 && scan == 0x49 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift PgUp */ > return ((int) (0xb2 << 8)); > if (ascii == 0xe0 && scan == 0x4b && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Left */ > return ((int) (0xb3 << 8)); > if (ascii == 0xe0 && scan == 0x4d && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Right */ > return ((int) (0xb4 << 8)); > if (ascii == 0xe0 && scan == 0x4f && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift End */ > return ((int) (0xb5 << 8)); > if (ascii == 0xe0 && scan == 0x50 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Down */ > return ((int) (0xb6 << 8)); > if (ascii == 0xe0 && scan == 0x51 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift PgDn */ > return ((int) (0xb7 << 8)); > if (ascii == 0xe0 && scan == 0x52 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Ins */ > return ((int) (0xb8 << 8)); > if (ascii == 0xe0 && scan == 0x53 && pdc_key_modifiers & PDC_KEY_MODIFIER_SHIFT) /* Shift Del */ > return ((int) (0xb9 << 8)); Index: PDCurses/os2/pdcurses.def =================================================================== RCS file: /usr/local/cvsroot/PDCurses/os2/pdcurses.def,v retrieving revision 1.2 retrieving revision 1.4 diff -b -w -r1.2 -r1.4 1c1 < LIBRARY PDCURSES --- > LIBRARY CURSES 95a96,98 > slk_attroff > slk_attron > slk_attrset 97a101 > slk_label 98a103,104 > slk_refresh > slk_restore Index: PDCurses/pdcurses/Makefile.in =================================================================== RCS file: /usr/local/cvsroot/PDCurses/pdcurses/Makefile.in,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 13c13,14 < x11dir = $(srcdir)/../x11 --- > x11basedir = $(srcdir)/../x11 > x11dir = $(x11basedir)/@x11type@ 26c27 < PDCURSES_X11_H =$(PDCURSES_HOME)/x11.h --- > PDCURSES_X11_H =$(x11basedir)/pdcx11.h 47c48 < CPPFLAGS = -I$(INCDIR) -I$(srcdir)/.. -I.. @DEFS@ -DXCURSES @SYS_DEFS@ --- > CPPFLAGS = -I$(INCDIR) -I$(srcdir)/.. -I.. @DEFS@ -DXCURSES @SYS_DEFS@ -I$(x11basedir) -I$(x11dir) 129a131,133 > pdcx11.o \ > x11curses.o \ > x11common.o \ 185a190,192 > pdcx11.sho \ > x11curses.sho \ > x11common.sho \ 311,312c318,319 < pdcclip.o: $(x11dir)/pdcclip.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdcclip.c --- > pdcclip.o: $(x11basedir)/pdcclip.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcclip.c 317,318c324,325 < pdcdisp.o: $(x11dir)/pdcdisp.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdcdisp.c --- > pdcdisp.o: $(x11basedir)/pdcdisp.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcdisp.c 320,321c327,328 < pdcgetsc.o: $(x11dir)/pdcgetsc.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdcgetsc.c --- > pdcgetsc.o: $(x11basedir)/pdcgetsc.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcgetsc.c 323,324c330,331 < pdckbd.o: $(x11dir)/pdckbd.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdckbd.c --- > pdckbd.o: $(x11basedir)/pdckbd.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdckbd.c 326,327c333,334 < pdcprint.o: $(x11dir)/pdcprint.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdcprint.c --- > pdcprint.o: $(x11basedir)/pdcprint.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcprint.c 329,330c336,337 < pdcscrn.o: $(x11dir)/pdcscrn.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdcscrn.c --- > pdcscrn.o: $(x11basedir)/pdcscrn.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcscrn.c 332,333c339,340 < pdcsetsc.o: $(x11dir)/pdcsetsc.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/pdcsetsc.c --- > pdcsetsc.o: $(x11basedir)/pdcsetsc.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcsetsc.c 341,342c348,355 < x11.o: $(x11dir)/x11.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/x11.c --- > pdcx11.o: $(x11basedir)/pdcx11.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/pdcx11.c > > ScrollBox.o: $(x11basedir)/ScrollBox.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/ScrollBox.c > > sb.o: $(x11basedir)/sb.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11basedir)/sb.c 344,345c357,361 < ScrollBox.o: $(x11dir)/ScrollBox.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/ScrollBox.c --- > x11common.o: $(x11dir)/x11common.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11dir)/x11common.c > > x11.o: $(x11dir)/x11.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11dir)/x11.c 347,348c363,364 < sb.o: $(x11dir)/sb.c $(PDCURSES_HEADERS) < $(CC) $(CCFLAGS) -o $@ $(x11dir)/sb.c --- > x11curses.o: $(x11dir)/x11curses.c $(PDCURSES_HEADERS) > $(CC) $(CCFLAGS) -o $@ $(x11dir)/x11curses.c 574c590 < pdcclip.sho: $(x11dir)/pdcclip.c $(PDCURSES_HEADERS) --- > pdcclip.sho: $(x11basedir)/pdcclip.c $(PDCURSES_HEADERS) 576c592 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdcclip.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcclip.c 586c602 < pdcdisp.sho: $(x11dir)/pdcdisp.c $(PDCURSES_HEADERS) --- > pdcdisp.sho: $(x11basedir)/pdcdisp.c $(PDCURSES_HEADERS) 588c604 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdcdisp.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcdisp.c 592c608 < pdcgetsc.sho: $(x11dir)/pdcgetsc.c $(PDCURSES_HEADERS) --- > pdcgetsc.sho: $(x11basedir)/pdcgetsc.c $(PDCURSES_HEADERS) 594c610 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdcgetsc.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcgetsc.c 598c614 < pdckbd.sho: $(x11dir)/pdckbd.c $(PDCURSES_HEADERS) --- > pdckbd.sho: $(x11basedir)/pdckbd.c $(PDCURSES_HEADERS) 600c616 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdckbd.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdckbd.c 604c620 < pdcprint.sho: $(x11dir)/pdcprint.c $(PDCURSES_HEADERS) --- > pdcprint.sho: $(x11basedir)/pdcprint.c $(PDCURSES_HEADERS) 606c622 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdcprint.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcprint.c 610c626 < pdcscrn.sho: $(x11dir)/pdcscrn.c $(PDCURSES_HEADERS) --- > pdcscrn.sho: $(x11basedir)/pdcscrn.c $(PDCURSES_HEADERS) 612c628 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdcscrn.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcscrn.c 616c632 < pdcsetsc.sho: $(x11dir)/pdcsetsc.c $(PDCURSES_HEADERS) --- > pdcsetsc.sho: $(x11basedir)/pdcsetsc.c $(PDCURSES_HEADERS) 618c634 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/pdcsetsc.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcsetsc.c 634c650 < x11.sho: $(x11dir)/x11.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) --- > pdcx11.sho: $(x11basedir)/pdcx11.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) 636c652,658 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/x11.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/pdcx11.c > $(O2SHO) > $(SAVE2O) > > ScrollBox.sho: $(x11basedir)/ScrollBox.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) > $(O2SAVE) > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/ScrollBox.c 640c662 < ScrollBox.sho: $(x11dir)/ScrollBox.c $(PDCURSES_HEADERS) $(PDCURSES_X11_H) --- > sb.sho: $(x11basedir)/sb.c $(PDCURSES_HEADERS) 642c664,676 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/ScrollBox.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11basedir)/sb.c > $(O2SHO) > $(SAVE2O) > > x11common.sho: $(x11dir)/x11common.c $(PDCURSES_HEADERS) > $(O2SAVE) > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/x11common.c > $(O2SHO) > $(SAVE2O) > > x11.sho: $(x11dir)/x11.c $(PDCURSES_HEADERS) > $(O2SAVE) > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/x11.c 646c680 < sb.sho: $(x11dir)/sb.c $(PDCURSES_HEADERS) --- > x11curses.sho: $(x11dir)/x11curses.c $(PDCURSES_HEADERS) 648c682 < $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/sb.c --- > $(CC) $(CCFLAGS) $(DYN_COMP) $(CC2O) $(x11dir)/x11curses.c Index: PDCurses/pdcurses/border.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/pdcurses/border.c,v retrieving revision 1.1 retrieving revision 1.3 diff -b -w -r1.1 -r1.3 33a34,36 > #undef PDC_wunderline > #undef PDC_leftline > #undef PDC_rightline 40c43 < char *rcsid_border = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_border = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 56a60,62 > int PDC_wunderline(WINDOW *win, int n, bool state); > int PDC_wleftline(WINDOW *win, int n, bool state); > int PDC_wrightline(WINDOW *win, int n, bool state); 90c96 < Portability X/Open BSD SYS V --- > Portability X/Open BSD SYS V PDCurses 92,98c98,107 < border - - 4.0 < wborder - - 4.0 < box Y Y Y < hline - - 4.0 < whline - - 4.0 < vline - - 4.0 < wvline - - 4.0 --- > border - - 4.0 Y > wborder - - 4.0 Y > box Y Y Y Y > hline - - 4.0 Y > whline - - 4.0 Y > vline - - 4.0 Y > wvline - - 4.0 Y > PDC_wunderline - - - Y > PDC_wleftline - - - Y > PDC_wrightline - - - Y 415a425,565 > > if (win->_firstch[n] == _NO_CHANGE) > { > win->_firstch[n] = win->_curx; > win->_lastch[n] = win->_curx; > } > else > { > win->_firstch[n] = min(win->_firstch[n], win->_curx); > win->_lastch[n] = max(win->_lastch[n], win->_curx); > } > } > > PDC_sync(win); > return (OK); > } > /***********************************************************************/ > #ifdef HAVE_PROTO > int PDC_CDECL PDC_wunderline(WINDOW *win, int n, bool state) > #else > int PDC_CDECL PDC_wunderline(win,n,state) > WINDOW *win; > int n; > bool state; > #endif > /***********************************************************************/ > { > int endpos; > > #ifdef PDCDEBUG > if (trace_on) PDC_debug("PDC_wunderline() - called\n"); > #endif > > if (win == (WINDOW *)NULL) > return( ERR ); > > if (n < 1) > return( ERR ); > > endpos = min(win->_cury + n -1, win->_maxy); > > for (n = win->_cury; n <= endpos; n++) > { > if ( state ) > win->_y[n][win->_curx] |= A_UNDERLINE; /* Turn ON A_UNDERLINE */ > else > win->_y[n][win->_curx] |= ~A_UNDERLINE; /* Turn OFF A_UNDERLINE */ > > if (win->_firstch[n] == _NO_CHANGE) > { > win->_firstch[n] = win->_curx; > win->_lastch[n] = win->_curx; > } > else > { > win->_firstch[n] = min(win->_firstch[n], win->_curx); > win->_lastch[n] = max(win->_lastch[n], win->_curx); > } > } > > PDC_sync(win); > return (OK); > } > /***********************************************************************/ > #ifdef HAVE_PROTO > int PDC_CDECL PDC_wleftline(WINDOW *win, int n, bool state) > #else > int PDC_CDECL PDC_wleftline(win,n,state) > WINDOW *win; > int n; > bool state; > #endif > /***********************************************************************/ > { > int endpos; > > #ifdef PDCDEBUG > if (trace_on) PDC_debug("PDC_wleftline() - called\n"); > #endif > > if (win == (WINDOW *)NULL) > return( ERR ); > > if (n < 1) > return( ERR ); > > endpos = min(win->_cury + n -1, win->_maxy); > > for (n = win->_cury; n <= endpos; n++) > { > if ( state ) > win->_y[n][win->_curx] |= A_LEFTLINE; /* Turn ON A_LEFTLINE */ > else > win->_y[n][win->_curx] |= ~A_LEFTLINE; /* Turn OFF A_LEFTLINE */ > > if (win->_firstch[n] == _NO_CHANGE) > { > win->_firstch[n] = win->_curx; > win->_lastch[n] = win->_curx; > } > else > { > win->_firstch[n] = min(win->_firstch[n], win->_curx); > win->_lastch[n] = max(win->_lastch[n], win->_curx); > } > } > > PDC_sync(win); > return (OK); > } > /***********************************************************************/ > #ifdef HAVE_PROTO > int PDC_CDECL PDC_wrightline(WINDOW *win, int n, bool state) > #else > int PDC_CDECL PDC_wrightline(win,n,state) > WINDOW *win; > int n; > bool state; > #endif > /***********************************************************************/ > { > int endpos; > > #ifdef PDCDEBUG > if (trace_on) PDC_debug("PDC_wrightline() - called\n"); > #endif > > if (win == (WINDOW *)NULL) > return( ERR ); > > if (n < 1) > return( ERR ); > > endpos = min(win->_cury + n -1, win->_maxy); > > for (n = win->_cury; n <= endpos; n++) > { > if ( state ) > win->_y[n][win->_curx] |= A_RIGHTLINE; /* Turn ON A_RIGHTLINE */ > else > win->_y[n][win->_curx] |= ~A_RIGHTLINE; /* Turn OFF A_RIGHTLINE */ Index: PDCurses/pdcurses/color.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/pdcurses/color.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 38a39 > #undef PDC_set_line_color 51c52 < char *rcsid_color = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_color = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 65a67 > int PDC_set_line_color(short color); 101a104,107 > PDC_set_line_color() is used to set the color, globally, for the > color of the lines drawn for the attributes: A_UNDERLINE, A_OVERLINE, > A_LEFTLINE and A_RIGHTLINE. PDCurses only feature. > 111c117 < Portability X/Open BSD SYS V --- > Portability X/Open BSD SYS V PDCurses 119a126 > PDC_set_line_color - - - Y 349a357,371 > return(OK); > } > /***********************************************************************/ > #ifdef HAVE_PROTO > int PDC_CDECL PDC_set_line_color(short color) > #else > int PDC_CDECL PDC_set_line_color(color) > short color; > #endif > /***********************************************************************/ > { > > if (color >= COLORS || color < 0) > return(ERR); > SP->line_color = color; Index: PDCurses/pdcurses/getch.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/pdcurses/getch.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 42c42 < char *rcsid_getch = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_getch = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 163c163 < int waitingtenths = SP->delaytenths; --- > int waitingtenths = 0; 171a172,174 > if ( SP->delaytenths ) > waitingtenths = 10*SP->delaytenths; > 282c285,286 < napms(100); --- > napms(10); > continue; 304c308 < if (SP->raw_inp || SP->cbreak) --- > if ( (SP->raw_inp || SP->cbreak) ) Index: PDCurses/pdcurses/initscr.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/pdcurses/initscr.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 64c64 < char *rcsid_initscr = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_initscr = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 324,325c324,325 < ACS_SBSS = (chtype)21|A_ALTCHARSET; < ACS_SSSB = (chtype)22|A_ALTCHARSET; --- > ACS_SBSS = (chtype)22|A_ALTCHARSET; > ACS_SSSB = (chtype)21|A_ALTCHARSET; Index: PDCurses/pdcurses/util.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/pdcurses/util.c,v retrieving revision 1.1 retrieving revision 1.3 diff -b -w -r1.1 -r1.3 68c68 < char *rcsid_util = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_util = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 237c237 < "KEY_RESIZE" --- > "KEY_RESIZE", "KEY_SUP", "KEY_SDOWN" 352c352 < (void)XCurses_rawgetch(); --- > (void)XCurses_rawgetch(0); Index: PDCurses/win32/curses.def =================================================================== RCS file: /usr/local/cvsroot/PDCurses/win32/curses.def,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 2a3,5 > ; used for Win32 port as well as AIX port > ; each entry point MUST be on a seperate line prefixed > ; by EXPORTS in column 1 Index: PDCurses/win32/pdckbd.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/win32/pdckbd.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 28c28 < char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 318c318 < {KEY_UP, SHF_UP, CTL_UP, ALT_UP }, /* 38 */ --- > {KEY_UP, KEY_SUP, CTL_UP, ALT_UP }, /* 38 */ 320,322c320,322 < {KEY_DOWN, SHF_DOWN, CTL_DOWN, ALT_DOWN }, /* 40 */ < {KEY_IC, SHF_IC, CTL_INS, ALT_INS }, /* 45 */ < {KEY_DC, SHF_DC, CTL_DEL, ALT_DEL }, /* 46 */ --- > {KEY_DOWN, KEY_SDOWN, CTL_DOWN, ALT_DOWN }, /* 40 */ > {KEY_IC, KEY_SIC, CTL_INS, ALT_INS }, /* 45 */ > {KEY_DC, KEY_SDC, CTL_DEL, ALT_DEL }, /* 46 */ Index: PDCurses/x11/README =================================================================== RCS file: /usr/local/cvsroot/PDCurses/x11/README,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 12c12 < The files in this directory are copyright Mark Hessling 1995-1999. --- > The files in this directory are copyright Mark Hessling 1995-2000. 26a27,39 > > Structure > --------- > > x11.c - contains functions that are X11 specific functions that are > used by both the process and thread implementations > x11.h - #defines and includes for the X11 process/thread > x11_proc.c - contains functions that are used by the X11 (child) process > in the process implementation > curses_proc.c - contains functions that are used by the curses (parent) > process in the process implementation > x11_thread.c - > curses_thread.c - Index: PDCurses/x11/ScrollBox.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/x11/ScrollBox.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 124c124 < Widget main, vscroll, hscroll; --- > Widget wmain, vscroll, hscroll; 130a131 > #if 0 132a134 > #endif 151c153 < main = sbw->composite.children[0]; --- > wmain = sbw->composite.children[0]; 161c163 < (2 * main->core.border_width); --- > (2 * wmain->core.border_width); 165c167 < (2 * main->core.border_width); --- > (2 * wmain->core.border_width); 167c169 < vx = main->core.x + mw + sbw->scrollBox.h_space + main->core.border_width + vscroll->core.border_width; --- > vx = wmain->core.x + mw + sbw->scrollBox.h_space + wmain->core.border_width + vscroll->core.border_width; 169c171 < hy = main->core.y + mh + sbw->scrollBox.v_space + main->core.border_width + hscroll->core.border_width; --- > hy = wmain->core.y + mh + sbw->scrollBox.v_space + wmain->core.border_width + hscroll->core.border_width; 175c177 < XtResizeWidget(main, mw, mh, 1); --- > XtResizeWidget(wmain, mw, mh, 1); 177c179 < tw = main->core.width + (2 * sbw->scrollBox.h_space) + --- > tw = wmain->core.width + (2 * sbw->scrollBox.h_space) + 179c181 < (2 * main->core.border_width); --- > (2 * wmain->core.border_width); 181c183 < th = main->core.height + (2 * sbw->scrollBox.v_space) + --- > th = wmain->core.height + (2 * sbw->scrollBox.v_space) + 183c185 < (2 * main->core.border_width); --- > (2 * wmain->core.border_width); 185,186c187,188 < hw = mw = main->core.width; < vh = mh = main->core.height; --- > hw = mw = wmain->core.width; > vh = mh = wmain->core.height; 188c190 < vx = main->core.x + mw + sbw->scrollBox.h_space + main->core.border_width + vscroll->core.border_width; --- > vx = wmain->core.x + mw + sbw->scrollBox.h_space + wmain->core.border_width + vscroll->core.border_width; 190c192 < hy = main->core.y + mh + sbw->scrollBox.v_space + main->core.border_width + hscroll->core.border_width; --- > hy = wmain->core.y + mh + sbw->scrollBox.v_space + wmain->core.border_width + hscroll->core.border_width; Index: PDCurses/x11/pdcdisp.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/x11/pdcdisp.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 37c37 < char *rcsid_PDCdisp = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCdisp = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 201c201 < XCurses_display_cursor(SP->cursrow,SP->curscol,row,col); --- > XCurses_display_cursor(SP->cursrow,SP->curscol,row,col,SP->visibility); Index: PDCurses/x11/pdckbd.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/x11/pdckbd.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 28c28 < char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCkbd = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 243c243 < c = XCurses_rawgetch(); --- > c = XCurses_rawgetch( SP->delaytenths ); Index: PDCurses/x11/pdcscrn.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/x11/pdcscrn.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 27c27 < char *rcsid_PDCscrn = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCscrn = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 179a180 > internal->line_color = COLOR_WHITE; Index: PDCurses/x11/pdcsetsc.c =================================================================== RCS file: /usr/local/cvsroot/PDCurses/x11/pdcsetsc.c,v retrieving revision 1.1 retrieving revision 1.2 diff -b -w -r1.1 -r1.2 27c27 < char *rcsid_PDCsetsc = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; --- > char *rcsid_PDCsetsc = "@Id: case16.pat,v 1.1 2001/04/22 23:30:04 tom Exp @"; 123c123 < int ret_vis; --- > int ret_vis = SP->visibility; 129c129,130 < ret_vis = SP->visibility; --- > if ( visibility != -1 ) > { 131,132c132,133 < < XCurses_display_cursor(SP->cursrow,SP->curscol,SP->cursrow,SP->curscol); --- > } > XCurses_display_cursor(SP->cursrow,SP->curscol,SP->cursrow,SP->curscol,visibility); diffstat-1.68/testing/case26Rp0.ref0000644000000000000000000000536011700545543015602 0ustar rootroot /tmp/8FTwAYJlot/flwm-1.00/Frame.C | 294 ++-------- /tmp/8FTwAYJlot/flwm-1.00/Frame.H | 21 /tmp/8FTwAYJlot/flwm-1.00/Hotkeys.C | 32 - /tmp/8FTwAYJlot/flwm-1.00/Makefile | 2 /tmp/8FTwAYJlot/flwm-1.00/Menu.C | 70 -- /tmp/8FTwAYJlot/flwm-1.00/README | 18 /tmp/8FTwAYJlot/flwm-1.00/Rotated.C | 61 -- /tmp/8FTwAYJlot/flwm-1.00/config.h | 6 /tmp/8FTwAYJlot/flwm-1.00/debian/changelog | 12 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/100_double_ampersand.dpatch | 1 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/100_fl_filename_name.dpatch | 2 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/101_visible_focus.dpatch | 1 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/102_charstruct.dpatch | 1 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/103_man_typo.dpatch | 1 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/104_g++-4.1_warning.dpatch | 3 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/105_double_ampersand.dpatch | 1 /tmp/8FTwAYJlot/flwm-1.00/debian/patched/201_background_color.dpatch | 2 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/00list | 8 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/100_double_ampersand.dpatch | 19 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/100_fl_filename_name.dpatch | 20 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/101_visible_focus.dpatch | 19 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/102_charstruct.dpatch | 45 + /tmp/8FTwAYJlot/flwm-1.00/debian/patches/103_man_typo.dpatch | 19 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/104_g++-4.1_warning.dpatch | 58 + /tmp/8FTwAYJlot/flwm-1.00/debian/patches/105_double_ampersand.dpatch | 48 + /tmp/8FTwAYJlot/flwm-1.00/debian/patches/200_Debian_menu.dpatch | 14 /tmp/8FTwAYJlot/flwm-1.00/debian/patches/201_background_color.dpatch | 57 + /tmp/8FTwAYJlot/flwm-1.00/debian/patches/202_background_color_2.dpatch | 92 +++ /tmp/8FTwAYJlot/flwm-1.00/debian/watch | 3 /tmp/8FTwAYJlot/flwm-1.00/flwm.1 | 4 /tmp/8FTwAYJlot/flwm-1.00/flwm_wmconfig | 4 /tmp/8FTwAYJlot/flwm-1.00/logo.fl | 19 /tmp/8FTwAYJlot/flwm-1.00/main.C | 99 --- /tmp/8FTwAYJlot/flwm-1.00/patch-stamp | 25 34 files changed, 583 insertions(+), 498 deletions(-) diffstat-1.68/testing/case15p9.ref0000644000000000000000000000110510226221641015450 0ustar rootroot Makefile.in | 38 ++++++++++++------------ README.debian | 14 +++++++++ changelog | 53 ++++++++++++++++++++++++++++++++++ conffiles | 1 control | 19 ++++++++++++ copyright | 40 ++++++++++++++++++++++++++ postinst | 21 +++++++++++++ prerm | 11 +++++++ rc.boot | 58 +++++++++++++++++++++++++++++++++++++ recover | 49 +++++++++++++++++++++++++++++++ rules | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ substvars | 1 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case31lr1.ref0000644000000000000000000000010011237775205015623 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case31Rp0.ref0000644000000000000000000000017011700545544015571 0ustar rootroot //depot/vendor/freebsd/src/sys/dev/usb/usbdevs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diffstat-1.68/testing/case17b.ref0000644000000000000000000000027410667374024015366 0ustar rootroot include/linux/sched.h | 11 +++++++++++ kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case25r1.ref0000644000000000000000000000055610277702420015461 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 ++- cmdtbl | 15 ++++++++++--- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case31.pat0000644000000000000000000000223311234652516015221 0ustar rootroot==== //depot/vendor/freebsd/src/sys/dev/usb/usbdevs#353 (text+ko) - //depot/projects/usb/src/sys/dev/usb/usbdevs#72 (text+ko) ==== content 1c1 < $FreeBSD: src/sys/dev/usb/usbdevs,v 1.421 2009/07/30 18:53:06 weongyo Exp $ --- > $FreeBSD: src/sys/dev/usb/usbdevs,v 1.420 2009/07/30 00:15:17 alfred Exp $ 863a864,869 > product APPLE KBD_TP_ANSI 0x0223 Apple Internal Keyboard/Trackpad (Wellspring/ANSI) > product APPLE KBD_TP_ISO 0x0224 Apple Internal Keyboard/Trackpad (Wellspring/ISO) > product APPLE KBD_TP_JIS 0x0225 Apple Internal Keyboard/Trackpad (Wellspring/JIS) > product APPLE KBD_TP_ANSI2 0x0230 Apple Internal Keyboard/Trackpad (Wellspring2/ANSI) > product APPLE KBD_TP_ISO2 0x0231 Apple Internal Keyboard/Trackpad (Wellspring2/ISO) > product APPLE KBD_TP_JIS2 0x0232 Apple Internal Keyboard/Trackpad (Wellspring2/JIS) 904a911 > product ASUS GMSC 0x422f ASUS Generic Mass Storage 1180,1181d1186 < product DLINK2 DWA120_NF 0x3a0d DWA-120 (no firmware) < product DLINK2 DWA120 0x3a0e DWA-120 1185a1191,1192 > product DLINK2 DWA120_NF 0x3c0d DWA-120 (no firmware) > product DLINK2 DWA120 0x3c0e DWA-120 1973a1981 > product PHILIPS SPE3030CC 0x083a USB 2.0 External Disk diffstat-1.68/testing/case40r2.ref0000644000000000000000000000015613777412637015473 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case34p9.ref0000644000000000000000000000014411762443774015476 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case11f0.ref0000644000000000000000000000007710300164551015427 0ustar rootroot ncurses.c | 1 1 + 0 - 0 ! 1 file changed, 1 insertion(+) diffstat-1.68/testing/case20.ref0000644000000000000000000000017207605627533015217 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case27b.ref0000644000000000000000000000067310667374027015375 0ustar rootroot Makefile | 4 ++++ b/Documentation/parport-lowlevel.txt | 29 +++-------------------------- b/drivers/cpuidle/governors/menu.c | 2 +- b/drivers/parport/daisy.c | 29 ----------------------------- b/fs/select.c | 2 +- b/include/linux/parport.h | 1 - scripts/export_report.pl | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case41r1.ref0000644000000000000000000000016313777421437015467 0ustar rootroot b/hello.c | 8 +++++++- b/hello.o |binary hello.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case26r2.ref0000644000000000000000000000371510451755075015473 0ustar rootroot Frame.C | 294 ++++++++++++++++++++------- Frame.H | 21 +- Hotkeys.C | 32 +++ Makefile | 2 Menu.C | 70 ++++-- README | 18 +- Rotated.C | 61 +++--- config.h | 6 + debian/changelog | 12 + debian/patched/100_double_ampersand.dpatch | 1 + debian/patched/100_fl_filename_name.dpatch | 2 - debian/patched/101_visible_focus.dpatch | 1 - debian/patched/102_charstruct.dpatch | 1 - debian/patched/103_man_typo.dpatch | 1 - debian/patched/104_g++-4.1_warning.dpatch | 3 - debian/patched/105_double_ampersand.dpatch | 1 - debian/patched/201_background_color.dpatch | 2 - debian/patches/00list | 8 - debian/patches/100_double_ampersand.dpatch | 19 ++ debian/patches/100_fl_filename_name.dpatch | 20 -- debian/patches/101_visible_focus.dpatch | 19 -- debian/patches/102_charstruct.dpatch | 45 ---- debian/patches/103_man_typo.dpatch | 19 -- debian/patches/104_g++-4.1_warning.dpatch | 58 ----- debian/patches/105_double_ampersand.dpatch | 48 ---- debian/patches/200_Debian_menu.dpatch | 14 debian/patches/201_background_color.dpatch | 57 ----- debian/patches/202_background_color_2.dpatch | 92 -------- debian/watch | 3 + flwm.1 | 4 flwm_wmconfig | 4 + logo.fl | 19 ++ main.C | 99 +++++++-- patch-stamp | 25 -- 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case37R.ref0000644000000000000000000000265112133114345015335 0ustar rootroot diffstat-1.56+/config.log |differ diffstat-1.56+/configure.out |differ diffstat-1.56+/diffstat |differ diffstat-1.56+/diffstat.c |differ diffstat-1.56+/diffstat.o |differ diffstat-1.56+/makefile |differ diffstat-1.57/LOGS |only diffstat-1.57/bin |only diffstat-1.57/check.out |only diffstat-1.57/testing/case35.pat |only diffstat-1.57/testing/case35.ref |only diffstat-1.57/testing/case35R.ref |only diffstat-1.57/testing/case35Rp0.ref |only diffstat-1.57/testing/case35b.ref |only diffstat-1.57/testing/case35f0.ref |only diffstat-1.57/testing/case35k.ref |only diffstat-1.57/testing/case35p1.ref |only diffstat-1.57/testing/case35p9.ref |only diffstat-1.57/testing/case35r1.ref |only diffstat-1.57/testing/case35r2.ref |only diffstat-1.57/testing/case35u.ref |only diffstat-1.57/testing/case36.pat |only diffstat-1.57/testing/case36.ref |only diffstat-1.57/testing/case36R.ref |only diffstat-1.57/testing/case36Rp0.ref |only diffstat-1.57/testing/case36b.ref |only diffstat-1.57/testing/case36f0.ref |only diffstat-1.57/testing/case36k.ref |only diffstat-1.57/testing/case36p1.ref |only diffstat-1.57/testing/case36p9.ref |only diffstat-1.57/testing/case36r1.ref |only diffstat-1.57/testing/case36r2.ref |only diffstat-1.57/testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case33r1.ref0000644000000000000000000000010511246713507015453 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case46k.ref0000644000000000000000000000121614320603177015370 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case42p9.ref0000644000000000000000000000034314320561540015457 0ustar rootroot case39k.ref | 1 + case42.pat |only full.log |only full.txt |only full1.log |only full1.txt |only short.log |only short.txt |only short1.log |only short1.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case34r2.ref0000644000000000000000000000014411762443774015471 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case45r2.ref0000644000000000000000000000121614320603177015460 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case41r2.ref0000644000000000000000000000016313777421437015470 0ustar rootroot b/hello.c | 8 +++++++- b/hello.o |binary hello.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case35r1.ref0000644000000000000000000000024712133111320015441 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case02k.ref0000644000000000000000000000041007530543206015354 0ustar rootroot bug-report | 2 clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! clients/xterm/misc.c | 104 +++++++++++++++++++++++++++++++++++++!!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case21p9.ref0000644000000000000000000000010010300164552015437 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case28f0.ref0000644000000000000000000000012511163734344015444 0ustar rootroot case28.pat | 70 35 + 35 - 0 ! 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case09b.ref0000644000000000000000000000002110667374022015353 0ustar rootroot 0 files changed diffstat-1.68/testing/case16p9.ref0000644000000000000000000000135510226221641015460 0ustar rootroot Makefile.in | 181 ++++++++++++++++----------- README | 20 ++- ScrollBox.c | 32 ++-- aclocal.m4 | 7 - border.c | 168 ++++++++++++++++++++++++- color.c | 26 +++ config.h.in | 6 configure | 386 +++++++++++++++++++++++++++++++++++++++-------------------- curses.def | 3 curses.h | 37 ++++- curspriv.h | 12 - gccos2.mak | 14 +- getch.c | 12 + initscr.c | 6 install-sh | 26 +++ intro.man | 27 ++-- pdcdisp.c | 4 pdckbd.c | 70 +++++++++- pdcscrn.c | 3 pdcsetsc.c | 11 - pdcurses.def | 8 + testcurs.c | 9 + util.c | 6 x11.man | 100 ++++++++++----- 24 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case19r1.ref0000644000000000000000000000011410300164552015445 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case25b.ref0000644000000000000000000000055410667374026015370 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 +- cmdtbl | 15 ++++++++++-- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case47k.ref0000644000000000000000000000062214377643723015406 0ustar rootroot headers-sh.in | 57 ++++++++++++++++++++++++++++--- package/debian/cdialog-dev.install | 11 +++-- package/debian/cdialog.install | 9 ++-- package/debian/cdialog.lintian-overrides | 2 - po/makefile.inn | 14 +++---- samples/inputbox6-utf8 | 4 +- 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case40.pat0000644000000000000000000000166113777263434015240 0ustar rootrootdiff --git a/diffstat b/diffstat index 70d0e907ea8b868938d35671d4a06bfa8fd2f766..9d24fbd5884652ae2ba2b0c6fa5fea9320d22390 100755 GIT binary patch delta 42 zcmV+_0M-AXtOKB|1F+Nr6vwUx^n+a delta 42 zcmV+_0M-AXtOKB|1F+Nr6jCdhHOT;q0Pkhm-7LEF*vB&P^t0#!osI!BvxbqHM6o0l A6#xJL diff --git a/diffstat.c b/diffstat.c index b9cbe0a..26ce142 100644 --- a/diffstat.c +++ b/diffstat.c @@ -20,7 +20,7 @@ ******************************************************************************/ #ifndef NO_IDENT -static const char *Id = "$Id: diffstat.c,v 1.63 2019/11/29 20:39:01 tom Exp $"; +static const char *Id = "$Id: diffstat.c,v 1.64 2019/11/29 20:39:01 tom Exp $"; #endif /* diff --git a/diffstat.o b/diffstat.o index c98d6ff866bb903861512512556145acd1604197..4368a92ee91c71f0f3cee94582b478b27543d849 100644 GIT binary patch delta 16 WcmdmRf@K2`#fCGQY>o@RbOr!G1P7P^ delta 16 WcmdmRf@K2`#fCE)Z;lJUbOr!F{s)%; diffstat-1.68/testing/case03p9.ref0000644000000000000000000000024707073762770015476 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case24.pat0000644000000000000000000002370410144001463015215 0ustar rootroot# ncurses 5.4 - patch 20040821 - T.Dickey # # ------------------------------------------------------------------------------ # # Ncurses 5.4 is at # ftp.gnu.org:/pub/gnu # # Patches for ncurses 5.4 are in the subdirectory # ftp://invisible-island.net/ncurses/5.4 # # ------------------------------------------------------------------------------ Index: Ada95/gen/gen.c --- ncurses-5.4-20040814+/Ada95/gen/gen.c 2003-10-25 15:39:18.000000000 +0000 +++ ncurses-5.4-20040821/Ada95/gen/gen.c 2004-08-21 20:37:13.000000000 +0000 @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998,2000 Free Software Foundation, Inc. * + * Copyright (c) 1998,2000,2004 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -32,7 +32,7 @@ /* Version Control - @Revision: 1.36 @ + @Id: gen.c,v 1.38 2004/08/21 20:37:13 tom Exp @ --------------------------------------------------------------------------*/ /* This program generates various record structures and constants from the @@ -131,7 +131,6 @@ printf(" %-*s : Boolean;\n",width,nap[i].name); } printf(" end record;\n"); - printf(" pragma Pack (%s);\n",name); printf(" pragma Convention (C, %s);\n\n",name); printf(" for %s use\n",name); Index: Ada95/gen/terminal_interface-curses-mouse.ads.m4 --- ncurses-5.4-20040814+/Ada95/gen/terminal_interface-curses-mouse.ads.m4 2003-10-25 15:39:18.000000000 +0000 +++ ncurses-5.4-20040821/Ada95/gen/terminal_interface-curses-mouse.ads.m4 2004-08-21 21:37:00.000000000 +0000 @@ -10,7 +10,7 @@ -- S P E C -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998 Free Software Foundation, Inc. -- +-- Copyright (c) 1998,2004 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -38,7 +38,8 @@ ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Version Control: --- @Revision: 1.22 @ +-- @Revision: 1.25 @ +-- @Date: 2004/08/21 21:37:00 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ include(`Mouse_Base_Defs') @@ -169,7 +170,6 @@ Bstate : Event_Mask; end record; pragma Convention (C, Mouse_Event); - pragma Pack (Mouse_Event); include(`Mouse_Event_Rep') Generation_Bit_Order : constant System.Bit_Order := System.M4_BIT_ORDER; Index: Ada95/gen/terminal_interface-curses.ads.m4 --- ncurses-5.4-20040814+/Ada95/gen/terminal_interface-curses.ads.m4 2003-10-25 15:39:18.000000000 +0000 +++ ncurses-5.4-20040821/Ada95/gen/terminal_interface-curses.ads.m4 2004-08-21 21:37:00.000000000 +0000 @@ -9,7 +9,7 @@ -- S P E C -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998 Free Software Foundation, Inc. -- +-- Copyright (c) 1998,2004 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -37,7 +37,8 @@ ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Version Control: --- @Revision: 1.31 @ +-- @Revision: 1.35 @ +-- @Date: 2004/08/21 21:37:00 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ include(`Base_Defs') @@ -59,11 +60,12 @@ subtype Column_Count is Column_Position range 1 .. Column_Position'Last; -- Type to count columns. We do not allow null windows, so must be positive - type Key_Code is new Natural; + type Key_Code is new Integer; -- That is anything including real characters, special keys and logical -- request codes. - subtype Real_Key_Code is Key_Code range 0 .. M4_KEY_MAX; + -- FIXME: The "-1" should be Curses_Err + subtype Real_Key_Code is Key_Code range -1 .. M4_KEY_MAX; -- This are the codes that potentially represent a real keystroke. -- Not all codes may be possible on a specific terminal. To check the -- availability of a special key, the Has_Key function is provided. Index: Ada95/samples/ncurses2-acs_and_scroll.adb --- ncurses-5.4-20040814+/Ada95/samples/ncurses2-acs_and_scroll.adb 2000-12-02 22:31:22.000000000 +0000 +++ ncurses-5.4-20040821/Ada95/samples/ncurses2-acs_and_scroll.adb 2004-08-21 21:37:00.000000000 +0000 @@ -7,7 +7,7 @@ -- B O D Y -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 2000 Free Software Foundation, Inc. -- +-- Copyright (c) 2000,2004 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -35,7 +35,8 @@ ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno 2000 -- Version Control --- @Revision: 1.1 @ +-- @Revision: 1.6 @ +-- @Date: 2004/08/21 21:37:00 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- Windows and scrolling tester. @@ -224,8 +225,8 @@ ); buf : Bounded_String; - do_keypad : Boolean := HaveKeyPad (curpw); - do_scroll : Boolean := HaveScroll (curpw); + do_keypad : constant Boolean := HaveKeyPad (curpw); + do_scroll : constant Boolean := HaveScroll (curpw); pos : Natural; @@ -331,8 +332,8 @@ res : pair; i : Line_Position := 0; j : Column_Position := 0; - si : Line_Position := lri - uli + 1; - sj : Column_Position := lrj - ulj + 1; + si : constant Line_Position := lri - uli + 1; + sj : constant Column_Position := lrj - ulj + 1; begin res.y := uli; res.x := ulj; @@ -714,7 +715,7 @@ Allow_Scrolling (Mode => True); - End_Mouse; + End_Mouse (Mask2); Set_Raw_Mode (SwitchOn => True); Erase; End_Windows; Index: Ada95/samples/ncurses2-acs_display.adb --- ncurses-5.4-20040814+/Ada95/samples/ncurses2-acs_display.adb 2000-12-02 22:31:23.000000000 +0000 +++ ncurses-5.4-20040821/Ada95/samples/ncurses2-acs_display.adb 2004-08-21 21:37:00.000000000 +0000 @@ -7,7 +7,7 @@ -- B O D Y -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 2000 Free Software Foundation, Inc. -- +-- Copyright (c) 2000,2004 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -35,7 +35,8 @@ ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno 2000 -- Version Control --- @Revision: 1.1 @ +-- @Revision: 1.4 @ +-- @Date: 2004/08/21 21:37:00 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ with ncurses2.util; use ncurses2.util; @@ -57,8 +58,8 @@ procedure show_upper_chars (first : Integer) is - C1 : Boolean := (first = 128); - last : Integer := first + 31; + C1 : constant Boolean := (first = 128); + last : constant Integer := first + 31; package p is new ncurses2.genericPuts (200); use p; use p.BS; @@ -91,9 +92,11 @@ for code in first .. last loop declare - row : Line_Position := Line_Position (4 + ((code - first) mod 16)); - col : Column_Position := Column_Position (((code - first) / 16) * - Integer (Columns) / 2); + row : constant Line_Position + := Line_Position (4 + ((code - first) mod 16)); + col : constant Column_Position + := Column_Position (((code - first) / 16) * + Integer (Columns) / 2); tmp3 : String (1 .. 3); tmpx : String (1 .. Integer (Columns / 4)); reply : Key_Code; @@ -129,8 +132,8 @@ code : Attributed_Character) return Integer is height : constant Integer := 16; - row : Line_Position := Line_Position (4 + (N mod height)); - col : Column_Position := Column_Position ((N / height) * + row : constant Line_Position := Line_Position (4 + (N mod height)); + col : constant Column_Position := Column_Position ((N / height) * Integer (Columns) / 2); tmpx : String (1 .. Integer (Columns) / 3); begin diffstat-1.68/testing/case26R.ref0000644000000000000000000000367111700545543015345 0ustar rootroot Frame.C | 294 ++++++--------------------- Frame.H | 21 - Hotkeys.C | 32 -- Makefile | 2 Menu.C | 70 ++---- README | 18 - Rotated.C | 61 ++--- config.h | 6 debian/changelog | 12 - debian/patched/100_double_ampersand.dpatch | 1 debian/patched/100_fl_filename_name.dpatch | 2 debian/patched/101_visible_focus.dpatch | 1 debian/patched/102_charstruct.dpatch | 1 debian/patched/103_man_typo.dpatch | 1 debian/patched/104_g++-4.1_warning.dpatch | 3 debian/patched/105_double_ampersand.dpatch | 1 debian/patched/201_background_color.dpatch | 2 debian/patches/00list | 8 debian/patches/100_double_ampersand.dpatch | 19 - debian/patches/100_fl_filename_name.dpatch | 20 + debian/patches/101_visible_focus.dpatch | 19 + debian/patches/102_charstruct.dpatch | 45 ++++ debian/patches/103_man_typo.dpatch | 19 + debian/patches/104_g++-4.1_warning.dpatch | 58 +++++ debian/patches/105_double_ampersand.dpatch | 48 ++++ debian/patches/200_Debian_menu.dpatch | 14 - debian/patches/201_background_color.dpatch | 57 +++++ debian/patches/202_background_color_2.dpatch | 92 ++++++++ debian/watch | 3 flwm.1 | 4 flwm_wmconfig | 4 logo.fl | 19 - main.C | 99 ++------- patch-stamp | 25 ++ 34 files changed, 583 insertions(+), 498 deletions(-) diffstat-1.68/testing/case27Rp0.ref0000644000000000000000000000067311700545543015605 0ustar rootroot a/Documentation/parport-lowlevel.txt | 29 ++++++++++++++++++++++++++--- a/drivers/cpuidle/governors/menu.c | 2 +- a/drivers/parport/daisy.c | 29 +++++++++++++++++++++++++++++ a/fs/select.c | 2 +- a/include/linux/parport.h | 1 + a/scripts/export_report.pl | 2 +- b/Makefile | 4 ---- 7 files changed, 59 insertions(+), 10 deletions(-) diffstat-1.68/testing/case13f0.ref0000644000000000000000000000022007530543243015431 0ustar rootroot UCAux.c | 42 0 + 17 - 25 ! def7_uni.tbl | 118 1 + 1 - 116 ! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case28p1.ref0000644000000000000000000000020411163734344015455 0ustar rootroot testing/case28.pat | 70 ++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case20p1.ref0000644000000000000000000000017207605627533015460 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case12.ref0000644000000000000000000000022207073762772015220 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case31lk.ref0000644000000000000000000000010011237775205015533 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case09p9.ref0000644000000000000000000000002106122656672015467 0ustar rootroot 0 files changed diffstat-1.68/testing/case44r2.ref0000644000000000000000000000121614320603177015457 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case22b.ref0000644000000000000000000000221410667374026015360 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case43f0.ref0000644000000000000000000000136314320603177015443 0ustar rootroot NEWS | 9 8 + 1 - 0 ! VERSION | 2 1 + 1 - 0 ! configure | 4 2 + 2 - 0 ! configure.in | 6 3 + 3 - 0 ! dist.mk | 4 2 + 2 - 0 ! misc/gen-pkgconfig.in | 8 6 + 2 - 0 ! package/debian-mingw/changelog | 4 2 + 2 - 0 ! package/debian-mingw64/changelog | 4 2 + 2 - 0 ! package/debian/changelog | 4 2 + 2 - 0 ! package/mingw-ncurses.nsi | 4 2 + 2 - 0 ! package/mingw-ncurses.spec | 2 1 + 1 - 0 ! package/ncurses.spec | 2 1 + 1 - 0 ! package/ncursest.spec | 2 1 + 1 - 0 ! 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case38ru.ref0000644000000000000000000000045612546615551015601 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run_atac.sh | 6 ++++++ run test.sh | 51 --------------------------------------------------- run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case07u.ref0000644000000000000000000000026607530534454015411 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case14r1.ref0000644000000000000000000000006410300164552015444 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case15f0.ref0000644000000000000000000000107107530543243015440 0ustar rootroot build/Makefile.in | 38 19 + 19 - 0 ! build/recover | 49 49 + 0 - 0 ! debian/README.debian | 14 14 + 0 - 0 ! debian/changelog | 53 53 + 0 - 0 ! debian/conffiles | 1 1 + 0 - 0 ! debian/control | 19 19 + 0 - 0 ! debian/copyright | 40 40 + 0 - 0 ! debian/postinst | 21 21 + 0 - 0 ! debian/prerm | 11 11 + 0 - 0 ! debian/rc.boot | 58 58 + 0 - 0 ! debian/rules | 89 89 + 0 - 0 ! debian/substvars | 1 1 + 0 - 0 ! 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case24p1.ref0000644000000000000000000000061710144014205015442 0ustar rootroot Ada95/gen/gen.c | 5 ++--- Ada95/gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- Ada95/gen/terminal_interface-curses.ads.m4 | 10 ++++++---- Ada95/samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- Ada95/samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case38lk.ref0000644000000000000000000000045612546615551015561 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case28r1.ref0000644000000000000000000000020311163734345015457 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case27u.ref0000644000000000000000000000067310664325751015415 0ustar rootroot scripts/export_report.pl | 2 +- Makefile | 4 ++++ b/drivers/cpuidle/governors/menu.c | 2 +- b/Documentation/parport-lowlevel.txt | 29 +++-------------------------- b/drivers/parport/daisy.c | 29 ----------------------------- b/include/linux/parport.h | 1 - b/fs/select.c | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case06.ref0000644000000000000000000000046107073762771015227 0ustar rootroot NEWS | 2 + ncurses/lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++------------ ncurses/lib_initscr.c | 4 ++ ncurses/lib_pad.c | 48 ++++++++++++++++++++----- test/ncurses.c | 29 +++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case37k.ref0000644000000000000000000000173312133114345015366 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case04p1.ref0000644000000000000000000000263510276756033015464 0ustar rootroot config.cache | 16 ++--!!!! config.h | 2 + config.log | 76 +++++++++--------------!!!!!!!!!!!!!!!!!!!!!!! config.status | 24 +++----!!!!!! configure.out |only diffstat |binary diffstat.o |binary makefile | 4 - testing/Xlib-1.patch- |only testing/Xlib-1.ref |only testing/Xlib-2.patch- |only testing/Xlib-2.ref |only testing/Xlib-3.patch- |only testing/Xlib-3.ref |only testing/config-1.ref |only testing/nugent.ref |only testing/xserver-1.ref |only testing/xserver-2.patch- |only testing/xserver-2.ref |only testing/xterm-1.patch- |only testing/xterm-1.ref |only testing/xterm-10.patch- |only testing/xterm-10.ref |only testing/xterm-11.patch- |only testing/xterm-11.ref |only testing/xterm-2.patch- |only testing/xterm-2.ref |only testing/xterm-3.patch- |only testing/xterm-3.ref |only testing/xterm-4.patch- |only testing/xterm-4.ref |only testing/xterm-5.patch- |only testing/xterm-5.ref |only testing/xterm-6.patch- |only testing/xterm-6.ref |only testing/xterm-7.ref |only testing/xterm-8.patch- |only testing/xterm-8.ref |only testing/xterm-9.patch- |only testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case46p1.ref0000644000000000000000000000121614320603177015456 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case38lr1.ref0000644000000000000000000000045612546615551015651 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case44b.ref0000644000000000000000000000121614320603177015355 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case47R.ref0000644000000000000000000000062214377643724015356 0ustar rootroot headers.sh | 57 ++----------------------------- install.sh | 11 ++--- package/debian/cdialog.links | 9 ++-- package/debian/cdialog.lintian-overrides | 2 - po/Makefile.inn | 14 +++---- samples/inputbox6 | 4 -- 6 files changed, 23 insertions(+), 74 deletions(-) diffstat-1.68/testing/case11Rp0.ref0000644000000000000000000000007511700545536015574 0ustar rootroot test/ncurses.orig.c | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case29k.ref0000644000000000000000000000020411163734345015371 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case16f0.ref0000644000000000000000000000241707605676572015465 0ustar rootroot Makefile.in | 61 34 + 27 - 0 ! README | 5 3 + 2 - 0 ! aclocal.m4 | 7 6 + 1 - 0 ! config.h.in | 6 6 + 0 - 0 ! configure | 386 256 + 130 - 0 ! curses.h | 37 29 + 8 - 0 ! curspriv.h | 12 6 + 6 - 0 ! demos/testcurs.c | 9 7 + 2 - 0 ! doc/intro.man | 27 16 + 11 - 0 ! doc/x11.man | 100 70 + 30 - 0 ! dos/pdckbd.c | 28 27 + 1 - 0 ! install-sh | 26 21 + 5 - 0 ! os2/gccos2.mak | 14 7 + 7 - 0 ! os2/pdckbd.c | 28 27 + 1 - 0 ! os2/pdcurses.def | 8 7 + 1 - 0 ! pdcurses/Makefile.in | 120 77 + 43 - 0 ! pdcurses/border.c | 168 159 + 9 - 0 ! pdcurses/color.c | 26 24 + 2 - 0 ! pdcurses/getch.c | 12 8 + 4 - 0 ! pdcurses/initscr.c | 6 3 + 3 - 0 ! pdcurses/util.c | 6 3 + 3 - 0 ! win32/curses.def | 3 3 + 0 - 0 ! win32/pdckbd.c | 10 5 + 5 - 0 ! x11/README | 15 14 + 1 - 0 ! x11/ScrollBox.c | 32 17 + 15 - 0 ! x11/pdcdisp.c | 4 2 + 2 - 0 ! x11/pdckbd.c | 4 2 + 2 - 0 ! x11/pdcscrn.c | 3 2 + 1 - 0 ! x11/pdcsetsc.c | 11 6 + 5 - 0 ! 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case16r2.ref0000644000000000000000000000206610277702417015466 0ustar rootroot Makefile.in | 61 ++++---- README | 5 + aclocal.m4 | 7 + config.h.in | 6 + configure | 386 ++++++++++++++++++++++++++++++++++----------------- curses.h | 37 ++++- curspriv.h | 12 +- demos/testcurs.c | 9 + doc/intro.man | 27 ++-- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 ++++ install-sh | 26 +++ os2/gccos2.mak | 14 +- os2/pdckbd.c | 28 ++++ os2/pdcurses.def | 8 + pdcurses/Makefile.in | 120 ++++++++++------ pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 +- pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 + win32/pdckbd.c | 10 x11/README | 15 ++ x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 + x11/pdcsetsc.c | 11 + 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case25R.ref0000644000000000000000000000055411700545542015340 0ustar rootroot CHANGES | 58 ------------------------------------------------ MANIFEST | 3 -- cmdtbl | 15 ++---------- configure.in | 16 +++---------- doc/filters.doc | 36 +----------------------------- doc/macros.doc | 67 +++++++++++++++++++++----------------------------------- 6 files changed, 36 insertions(+), 159 deletions(-) diffstat-1.68/testing/case01.pat0000644000000000000000000004027406122640235015220 0ustar rootroot-------------------------------------------------------------------------------- --- /build/x11r6/XFree86-3.1.2Cf/xc/config/cf/hp.cf Sat Feb 10 13:55:35 1996 +++ /build/x11r6/XFree86-current/xc/config/cf/hp.cf Mon Feb 19 19:10:15 1996 @@ -59,9 +59,16 @@ #define Malloc0ReturnsNull YES #ifdef __hp9000s800 +#if HasGcc2 +#define OptimizedCDebugFlags -O +#define DefaultCCOptions +#define SharedLibraryCCOptions -fPIC +#define PositionIndependentCFlags -fPIC +#else #define OptimizedCDebugFlags +O1 #define DefaultCCOptions -Ae +ESlit #define SharedLibraryCCOptions -Ae +#endif #define StandardDefines -Dhpux -DSYSV #define ServerExtraDefines -DXOS -DBSTORE -DSOFTWARE_CURSOR -DNO_ALLOCA -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE --- /build/x11r6/XFree86-3.1.2Cf/xc/config/cf/hpLib.rules Sat Jan 6 08:11:01 1996 +++ /build/x11r6/XFree86-current/xc/config/cf/hpLib.rules Mon Feb 19 19:11:14 1996 @@ -29,8 +29,10 @@ #define InstLibFlags -m 0555 #endif #ifndef UseInstalled +#ifndef HasGcc2 /* assert: LdPostLib pulls in -L$(USRLIBDIR), so it doesn't need to be here */ #define ExtraLoadFlags -Wl,+s,+b,$(USRLIBDIR) +#endif #endif /* --- /build/x11r6/XFree86-3.1.2Cf/xc/config/imake/imakemdep.h Sat Jan 6 08:11:01 1996 +++ /build/x11r6/XFree86-current/xc/config/imake/imakemdep.h Mon Feb 19 19:15:01 1996 @@ -41,6 +41,10 @@ * These will be passed to the compile along with the contents of the * make variable BOOTSTRAPCFLAGS. */ +#if defined(clipper) || defined(__clipper__) +#define imake_ccflags "-O -DSYSV -DBOOTSTRAPCFLAGS=-DSYSV" +#endif + #ifdef hpux #ifdef hp9000s800 #define imake_ccflags "-DSYSV" @@ -224,6 +228,9 @@ #ifdef apollo #define DEFAULT_CPP "/usr/lib/cpp" #endif +#if defined(clipper) || defined(__clipper__) +#define DEFAULT_CPP "/usr/lib/cpp" +#endif #if defined(_IBMR2) && !defined(DEFAULT_CPP) #define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp" #endif @@ -529,6 +536,12 @@ struct symtab predefs[] = { #ifdef apollo {"apollo", "1"}, +#endif +#if defined(clipper) || defined(__clipper__) + {"clipper", "1"}, + {"__clipper__", "1"}, + {"clix", "1"}, + {"__clix__", "1"}, #endif #ifdef ibm032 {"ibm032", "1"}, --- /build/x11r6/XFree86-3.1.2Cf/xc/config/makedepend/main.c Fri Jan 26 11:43:22 1996 +++ /build/x11r6/XFree86-current/xc/config/makedepend/main.c Mon Feb 19 19:16:06 1996 @@ -570,7 +570,7 @@ return(file); } -#if defined(USG) && !defined(CRAY) && !defined(SVR4) && !defined(__EMX__) +#if defined(USG) && !defined(CRAY) && !defined(SVR4) && !defined(__EMX__) && !defined(clipper) && !defined(__clipper__) int rename (from, to) char *from, *to; { --- /build/x11r6/XFree86-3.1.2Cf/xc/include/Xos.h Fri Jan 26 11:43:22 1996 +++ /build/x11r6/XFree86-current/xc/include/Xos.h Mon Feb 19 19:18:23 1996 @@ -77,6 +77,7 @@ #ifndef X_NOT_STDC_ENV +#if !(defined(sun) && !defined(SVR4)) /* 'index' is problem with K&R */ #include #ifndef index #define index(s,c) (strchr((s),(c))) @@ -84,10 +85,14 @@ #ifndef rindex #define rindex(s,c) (strrchr((s),(c))) #endif +#endif #else #ifdef SYSV +#if defined(clipper) || defined(__clipper__) +#include +#endif #include #define index strchr #define rindex strrchr @@ -149,7 +154,7 @@ #ifdef CRAY #undef word #endif /* CRAY */ -#if defined(USG) && !defined(CRAY) && !defined(MOTOROLA) && !defined(uniosu) && !defined(__sxg__) +#if defined(USG) && !defined(CRAY) && !defined(MOTOROLA) && !defined(uniosu) && !defined(__sxg__) && !defined(clipper) && !defined(__clipper__) struct timeval { long tv_sec; long tv_usec; --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/XIE/mixie/import/mijpeg.c Sun Apr 17 20:34:54 1994 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/XIE/mixie/import/mijpeg.c Mon Feb 19 18:48:31 1996 @@ -114,7 +114,7 @@ /* * routines referenced by other DDXIE modules -/* + */ int CreateIPhotoJpegBase(); int InitializeIPhotoJpegBase(); int InitializeICPhotoJpegBase(); --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/XIE/mixie/process/mpgeomaa.c Sun Apr 17 20:35:19 1994 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/XIE/mixie/process/mpgeomaa.c Mon Feb 19 18:49:43 1996 @@ -242,7 +242,7 @@ } } /*------------------------------------------------------------------------ -/*------------------------------------------------------------------------ +-------------------------------------------------------------------------- ---------------------------- initialize peTex . . . ---------------------- ------------------------------------------------------------------------*/ static int InitializeGeomAA(flo,ped) --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/XIE/mixie/process/mpgeomnn.c Sat Jan 6 08:11:01 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/XIE/mixie/process/mpgeomnn.c Mon Feb 19 18:50:29 1996 @@ -259,7 +259,7 @@ } /*------------------------------------------------------------------------ -/*------------------------------------------------------------------------ +-------------------------------------------------------------------------- ---------------------------- initialize peTex . . . ---------------------- ------------------------------------------------------------------------*/ static int InitializeGeomNN(flo,ped) --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/hp/input/drivers/hil_driver.c Mon Jan 30 23:07:07 1995 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/hp/input/drivers/hil_driver.c Mon Feb 19 18:51:11 1996 @@ -431,7 +431,7 @@ return FALSE; id = describe[0]; -/* printf("fd is %d errno is %d id is %x\n", fd, errno, id); /* */ +/* printf("fd is %d errno is %d id is %x\n", fd, errno, id); */ num_axes = (describe[1] & HIL_NUM_AXES); if (id == NINE_KNOB_ID && num_axes != 3) id = QUAD_ID; --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/hp/input/hpKeyMap.c Mon Jan 30 23:06:55 1995 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/hp/input/hpKeyMap.c Mon Feb 19 18:52:20 1996 @@ -85,7 +85,7 @@ /* code values in comments at line end are actual value reported on HIL. REMEMBER, there is an offset of MIN_KEYCODE+2 applied to this table! The PS2 keyboard table begins at offset 0, the 46021A table begins with - the third row. *./ + the third row. */ /* Extend Char Right -- a.k.a. Kanji? */ XK_Control_R, NoSymbol, NoSymbol, NoSymbol, /* 0x00 */ NoSymbol, NoSymbol, NoSymbol, NoSymbol, /* 0x01 */ --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/accel/i128/i128scrin.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/accel/i128/i128scrin.c Mon Feb 19 18:53:02 1996 @@ -348,7 +348,7 @@ pScreen->DestroyColormap = (DestroyColormapProcPtr)NoopDDA; pScreen->ResolveColor = cfbResolveColor; pScreen->BitmapToRegion = mfbPixmapToRegion; -#if 0 /* What's this for?! /* *TO*DO* */ +#if 0 /* What's this for?! *TO*DO* */ pScreen->BlockHandler = i128BlockHandler; #endif --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c Mon Feb 19 18:53:37 1996 @@ -351,7 +351,7 @@ pScreen->DestroyColormap = (DestroyColormapProcPtr)NoopDDA; pScreen->ResolveColor = cfbResolveColor; pScreen->BitmapToRegion = mfbPixmapToRegion; -#if 0 /* What's this for?! /* *TO*DO* */ +#if 0 /* What's this for?! *TO*DO* */ pScreen->BlockHandler = p9000BlockHandler; #endif --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h Mon Feb 19 18:54:57 1996 @@ -8,7 +8,7 @@ * Hamish Coleman 11/93 hamish@zot.apana.org.au * * derived from: - * bdm2/hgc1280/* + * bdm2/hgc1280/... * Pascal Haible 8/93, haible@izfm.uni-stuttgart.de * * see mono/COPYRIGHT for copyright and disclaimers. --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c Mon Feb 19 18:55:33 1996 @@ -8,12 +8,12 @@ * Hamish Coleman 11/93 hamish@zot.apana.org.au * * derived from: - * bdm2/hgc1280/* + * bdm2/hgc1280/... * Pascal Haible 8/93, haible@izfm.uni-stuttgart.de - * hga2/* + * hga2/... * Author: Davor Matic, dmatic@athena.mit.edu * and - * vga256/* + * vga256/... * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * * Thanks to Herb Peyerl (hpeyerl@novatel.ca) for the information on --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c Mon Feb 19 18:55:54 1996 @@ -6,10 +6,10 @@ * mono/driver/hgc1280/hgc1280driv.c * * derived from: - * hga2/* + * hga2/... * Author: Davor Matic, dmatic@athena.mit.edu * and - * vga256/* + * vga256/... * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * * see mono/COPYRIGHT for copyright and disclaimers. --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c Mon Feb 19 18:56:15 1996 @@ -7,10 +7,10 @@ * mono/driver/sigma/sigmadriv.c * * Parts derived from: - * hga2/* + * hga2/... * Author: Davor Matic, dmatic@athena.mit.edu * and - * vga256/* + * vga256/... * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * * see mono/COPYRIGHT for copyright and disclaimers. --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/mono/mono.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/mono/mono.c Mon Feb 19 18:56:58 1996 @@ -6,10 +6,10 @@ * mono/mono/mono.c * * derived from: - * hga2/* + * hga2/... * Author: Davor Matic, dmatic@athena.mit.edu * and - * vga256/* + * vga256/... * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * * see mono/COPYRIGHT for copyright and disclaimers. @@ -512,7 +512,7 @@ DDXPointRec pixPt; /* Point: upper left corner */ PixmapPtr pspix; /* Pointer to the pixmap of the saved screen */ ScreenPtr pScreen = savepScreen; /* This is the 'old' Screen: - /* real screen on leave, dummy on enter */ + real screen on leave, dummy on enter */ /* Set up pointer to the saved pixmap (pspix) only if not resetting and not exiting */ --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/mono/mono.h Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/mono/mono/mono.h Mon Feb 19 18:57:19 1996 @@ -6,10 +6,10 @@ * mono/mono/mono.h * * derived from: - * hga2/* + * hga2/... * Author: Davor Matic, dmatic@athena.mit.edu * and - * vga256/* + * vga256/... * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * * see mono/COPYRIGHT for copyright and disclaimers. --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c Mon Feb 19 18:57:57 1996 @@ -27,7 +27,7 @@ #include "OScompiler.h" -/* #include "ibmIOArch.h" /* GJA */ +/* #include "ibmIOArch.h" -- GJA */ #include "vgaVideo.h" --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h Fri Feb 9 13:08:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h Mon Feb 19 18:58:43 1996 @@ -679,7 +679,7 @@ #define GEN_TEST_CNT_VALUE 0x3f000000 /* Mach64CT/ET */ #define GEN_TEST_CC_EN 0x40000000 /* Mach64GX/CX */ #define GEN_TEST_CC_STROBE 0x80000000 /* Mach64GX/CX */ -/* ? 0xc0000000 /* Mach64CT/ET */ +/* ? 0xc0000000 */ /* Mach64CT/ET */ #define CONFIG_CNTL 0x6aec #define CFG_MEM_AP_SIZE 0x00000003 #define CFG_MEM_VGA_AP_EN 0x00000004 --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c Fri Feb 9 13:08:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c Mon Feb 19 18:59:33 1996 @@ -126,7 +126,7 @@ /* For the lower byte of the 32-bit color registers, there is no safe * invalid value. We just set them to a specific value (making sure * we don't write to non-existant color registers). - * + */ cirrusBackgroundColorShadow = 0xffffffff; /* Defeat the macros. */ cirrusForegroundColorShadow = 0xffffffff; if (cirrusChip >= CLGD5422 && cirrusChip <= CLGD5430) { --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c Mon Feb 19 19:00:02 1996 @@ -22,7 +22,7 @@ * PERFORMANCE OF THIS SOFTWARE. * * Author: Simon P. Cooper, - * + */ /* $XConsortium: cir_cursor.c /main/8 1995/11/13 08:20:54 kaleb $ */ #define CIRRUS_DEBUG_CURSOR --- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c Mon Feb 5 12:03:00 1996 +++ /build/x11r6/XFree86-current/xc/programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c Mon Feb 19 19:00:52 1996 @@ -1402,7 +1402,7 @@ case OTI37C: default: #ifndef MONOVGA - /* new->std.CRTC[19] = vga256InfoRec.virtualX >> 3; /* 3 in byte mode */ + /* new->std.CRTC[19] = vga256InfoRec.virtualX >> 3; -- 3 in byte mode */ /* much clearer as 0x01 than 0x41, seems odd though... */ new->std.Attribute[16] = 0x01; if ( new->std.NoClock >= 0 ) --- /build/x11r6/XFree86-3.1.2Cf/xc/test/xsuite/xtest/src/bin/mc/files.c Sun Apr 17 21:00:20 1994 +++ /build/x11r6/XFree86-current/xc/test/xsuite/xtest/src/bin/mc/files.c Mon Feb 19 19:02:49 1996 @@ -95,7 +95,7 @@ char buf[BUFSIZ]; /* - * Look for a corresponding file with name lib/mc/*.mc . + * Look for a corresponding file with name lib/mc/{*}.mc . */ (void) sprintf(buf, "mc/%s", file); file = buf; --- /build/x11r6/XFree86-3.1.2Cf/xc/util/patch/malloc.c Wed Aug 15 01:13:33 1990 +++ /build/x11r6/XFree86-current/xc/util/patch/malloc.c Mon Feb 19 19:04:28 1996 @@ -30,10 +30,8 @@ * go in the first int of the block, and the returned pointer will point * to the second. * -#ifdef MSTATS * nmalloc[i] is the difference between the number of mallocs and frees * for a given block size. -#endif /* MSTATS */ */ #define ISALLOC ((char) 0xf7) /* magic byte that implies allocation */ @@ -208,7 +206,7 @@ if (--nblks <= 0) break; CHAIN ((struct mhead *) cp) = (struct mhead *) (cp + siz); cp += siz;} -/* CHAIN ((struct mhead *) cp) = 0; /* since sbrk() returns cleared core, this is already set */ +/* CHAIN ((struct mhead *) cp) = 0; -- since sbrk() returns cleared core, this is already set */ } static @@ -449,10 +447,10 @@ return (1 << (p -> mh_index + 3)) - sizeof *p; /**/ /* if (p -> mh_index >= 13) -/* return (1 << (p -> mh_index + 3)) - sizeof *p; -/* else -/* return p -> mh_size; -/**/ + * return (1 << (p -> mh_index + 3)) - sizeof *p; + * else + * return p -> mh_size; + */ #endif /* rcheck */ } --- /build/x11r6/XFree86-3.1.2Cf/xc/util/patch/pch.c Sat Jan 6 08:11:01 1996 +++ /build/x11r6/XFree86-current/xc/util/patch/pch.c Mon Feb 19 19:05:12 1996 @@ -1,5 +1,5 @@ /* oldHeader: pch.c,v 2.0.1.7 88/06/03 15:13:28 lwall Locked $ -/* $XConsortium: pch.c,v 3.3 94/09/14 21:22:55 gildea Exp $ + * $XConsortium: pch.c,v 3.3 94/09/14 21:22:55 gildea Exp $ * * Revision 2.0.2.0 90/05/01 22:17:51 davison * patch12u: unidiff support added --- /build/x11r6/XFree86-3.1.2Cf/xc/config/cf/Imake.cf Fri Jan 26 11:43:22 1996 +++ /build/x11r6/XFree86-current/xc/config/cf/Imake.cf Mon Feb 19 19:13:58 1996 @@ -19,6 +19,13 @@ * 4. Create a .cf file with the name given by MacroFile. */ +#if defined(clipper) || defined(__clipper__) +# undef clipper +# define MacroIncludeFile +# define MacroFile ingr.cf +# define IngrArchitecture +#endif /* clipper */ + #ifdef ultrix # define MacroIncludeFile # define MacroFile ultrix.cf diffstat-1.68/testing/case33b.ref0000644000000000000000000000010511246713507015352 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case08u.ref0000644000000000000000000000050207530534454015403 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case09u.ref0000644000000000000000000000002107530534455015401 0ustar rootroot 0 files changed diffstat-1.68/testing/README0000644000000000000000000000033510161020111014267 0ustar rootroot-- $Id: README,v 1.1 2004/12/18 12:19:21 tom Exp $ The files in this directory are used for regression-checks of diffstat. The full test-suite is not distributed since some of the test-data is not freely distributable. diffstat-1.68/testing/case05.pat0000644000000000000000000000116106122631736015222 0ustar rootrootdiff -r -c diffstat/config.cache diffstat.orig/config.cache *** 1.1 Fri Mar 15 19:27:13 1996 --- diffstat.orig/config.cache Fri Mar 15 19:51:02 1996 *************** *** 13,28 **** # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} - ac_cv_c_cross=${ac_cv_c_cross='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} --- 13,28 ---- # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} diffstat-1.68/testing/case40.ref0000644000000000000000000000015613777412627015226 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case38l.ref0000644000000000000000000000045612546615551015406 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case36r2.ref0000644000000000000000000000337312133111243015452 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++-----------!!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 ! diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case07k.ref0000644000000000000000000000026607530543207015373 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case08r1.ref0000644000000000000000000000050210277702416015456 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case36b.ref0000644000000000000000000000324512133111320015342 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++------------!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 38 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case42u.ref0000644000000000000000000000047514320561540015401 0ustar rootroot testing2/case39k.ref | 1 + testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing2/full.log |only testing2/full.txt |only testing/short1.log |only testing/short1.txt |only testing/short.log |only testing/short.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case49b.ref0000644000000000000000000000011714714413543015364 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case28.ref0000644000000000000000000000020411163734344015214 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case16R.ref0000644000000000000000000000205111700545537015336 0ustar rootroot Makefile.in | 61 +++----- README | 5 aclocal.m4 | 7 config.h.in | 6 configure | 386 +++++++++++++++++---------------------------------- curses.h | 37 +--- curspriv.h | 12 - demos/testcurs.c | 9 - doc/intro.man | 27 +-- doc/x11.man | 100 +++---------- dos/pdckbd.c | 28 --- dos/wccdos.lrf | 26 --- os2/gccos2.mak | 14 - os2/pdckbd.c | 28 --- os2/pdcurses.def | 8 - pdcurses/Makefile.in | 120 +++++---------- pdcurses/border.c | 168 +--------------------- pdcurses/color.c | 26 --- pdcurses/getch.c | 12 - pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 - x11/README | 15 - x11/ScrollBox.c | 32 +--- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 - 29 files changed, 327 insertions(+), 847 deletions(-) diffstat-1.68/testing/case21Rp0.ref0000644000000000000000000000011611700545541015565 0ustar rootroot diffstat-1.31/diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case24b.ref0000644000000000000000000000056110667374026015365 0ustar rootroot gen/gen.c | 5 ++--- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++++---- samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case10.pat0000644000000000000000000000320406125122227015207 0ustar rootrootIndex: allowev.c *** /build/x11r6/XFree86-960317/xc/programs/Xserver/Xi/allowev.c Sun Mar 17 20:08:01 1996 --- /build/x11r6/XFree86-current/xc/programs/Xserver/Xi/allowev.c Wed Mar 20 20:47:09 1996 *************** *** 63,72 **** #include "extnsionst.h" #include "extinit.h" /* LookupDeviceIntRec */ ! extern int IReqCode; ! extern int BadDevice; ! extern void (* ReplySwapVector[256]) (); /*********************************************************************** * --- 63,71 ---- #include "extnsionst.h" #include "extinit.h" /* LookupDeviceIntRec */ + #include "exglobals.h" ! #include "allowev.h" /*********************************************************************** * *************** *** 99,105 **** { TimeStamp time; DeviceIntPtr thisdev; - void AllowSome (); REQUEST(xAllowDeviceEventsReq); REQUEST_SIZE_MATCH(xAllowDeviceEventsReq); --- 98,103 ---- Index: XIstubs.h *** /dev/null Sun Jul 17 19:46:18 1994 --- /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h Wed Mar 20 22:08:14 1996 *************** *** 0 **** --- 1,105 ---- + /* $XConsortium$ */ + /* $XFree86$ */ + + #ifndef XI_STUBS_H + #define XI_STUBS_H 1 + + int + ChangePointerDevice ( + #if NeedFunctionPrototypes + DeviceIntPtr /* old_dev */, + DeviceIntPtr /* new_dev */, + unsigned char /* x */, + unsigned char /* y */ + #endif + ); + + int + ChangeDeviceControl ( + #if NeedFunctionPrototypes + ClientPtr /* client */, + DeviceIntPtr /* dev */, + xDeviceCtl * /* control */ + #endif + ); + + #endif /* XI_STUBS_H */ diffstat-1.68/testing/case11r2.ref0000644000000000000000000000006410300164551015441 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case46.ref0000644000000000000000000000121614320603177015215 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case43b.ref0000644000000000000000000000121614320603177015354 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case13p9.ref0000644000000000000000000000030310276756034015463 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case01r1.ref0000644000000000000000000000410110277702415015445 0ustar rootroot config/cf/Imake.cf | 7 +++++ config/cf/hp.cf | 7 +++++ config/cf/hpLib.rules | 2 ++ config/imake/imakemdep.h | 13 ++++++++++ config/makedepend/main.c | 2 +- include/Xos.h | 7 +++++- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 +- programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 +- programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 +- programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 +- programs/Xserver/hw/hp/input/hpKeyMap.c | 2 +- programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 +- programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 +- programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 +- programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 ++-- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 ++-- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 +- test/xsuite/xtest/src/bin/mc/files.c | 2 +- util/patch/malloc.c | 12 ++++----- util/patch/pch.c | 2 +- 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case40b.ref0000644000000000000000000000010513777406456015365 0ustar rootroot diffstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case41Rp0.ref0000644000000000000000000000020613777421437015604 0ustar rootroot /dev/null | 6 ------ a/hello.c | 2 +- a/hello.o |binary b/hello.c | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) diffstat-1.68/testing/case14f0.ref0000644000000000000000000000007710300164552015433 0ustar rootroot ncurses.c | 1 1 + 0 - 0 ! 1 file changed, 1 insertion(+) diffstat-1.68/testing/case05p9.ref0000644000000000000000000000006610300164550015452 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case44r1.ref0000644000000000000000000000121614320603177015456 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case15r2.ref0000644000000000000000000000120010277702417015452 0ustar rootroot build/Makefile.in | 38 +++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 + debian/control | 19 +++++++++++ debian/copyright | 40 +++++++++++++++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 + 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case39p1.ref0000644000000000000000000000015613777406456015502 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case38lp9.ref0000644000000000000000000000045612546615551015657 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case45k.ref0000644000000000000000000000121614320603177015367 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case11b.ref0000644000000000000000000000006410667374023015354 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case11R.ref0000644000000000000000000000007011700545536015327 0ustar rootroot ncurses.orig.c | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case31uk.ref0000644000000000000000000000012111240121111015516 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case43r1.ref0000644000000000000000000000121614320603177015455 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case31lb.ref0000644000000000000000000000010011237775205015522 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case49r1.ref0000644000000000000000000000011714714413542015464 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case13R.ref0000644000000000000000000000030311700545536015330 0ustar rootroot UCAux.c | 42 ++++++++!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 18 insertions(+), 1 deletion(-), 141 modifications(!) diffstat-1.68/testing/case22p9.ref0000644000000000000000000000215010226221642015450 0ustar rootroot PATCHES | 1 + ca.po | 10 +++++----- compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- cs.po | 8 ++++---- da.po | 8 ++++---- de.po | 8 ++++---- el.po | 8 ++++---- eo.po | 8 ++++---- es.po | 9 +++++---- et.po | 6 +++--- fr.po | 8 ++++---- gl.po | 8 ++++---- hu.po | 8 ++++---- id.po | 8 ++++---- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- it.po | 8 ++++---- ja.po | 9 +++++---- ko.po | 8 ++++---- lt.po | 13 ++++++------- mutt.h | 4 +++- nl.po | 8 ++++---- pgp.c | 5 ++++- pgplib.h | 1 + pl.po | 8 ++++---- postpone.c | 7 +++++++ pt_BR.po | 12 ++++++------ ru.po | 8 ++++---- send.c | 16 +++++++++++++++- sendlib.c | 2 ++ sk.po | 13 ++++++------- sv.po | 8 ++++---- tr.po | 8 ++++---- uk.po | 8 ++++---- zh_CN.po | 6 +++--- zh_TW.po | 6 +++--- 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case39r2.ref0000644000000000000000000000015613777406456015505 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case46r1.ref0000644000000000000000000000121614320603177015460 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case43u.ref0000644000000000000000000000121614320603177015377 0ustar rootroot configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- NEWS | 9 ++++++++- package/debian/changelog | 4 ++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- VERSION | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case43p9.ref0000644000000000000000000000064014320603177015463 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- changelog | 12 ++++++------ configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- gen-pkgconfig.in | 8 ++++++-- mingw-ncurses.nsi | 4 ++-- mingw-ncurses.spec | 2 +- ncurses.spec | 2 +- ncursest.spec | 2 +- 11 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case36p1.ref0000644000000000000000000000263512133111320015443 0ustar rootroot config.cache | 16 ++--!!!! config.h | 2 + config.log | 76 +++++++++--------------!!!!!!!!!!!!!!!!!!!!!!! config.status | 24 +++----!!!!!! configure.out |only diffstat |binary diffstat.o |binary makefile | 4 - testing/Xlib-1.patch- |only testing/Xlib-1.ref |only testing/Xlib-2.patch- |only testing/Xlib-2.ref |only testing/Xlib-3.patch- |only testing/Xlib-3.ref |only testing/config-1.ref |only testing/nugent.ref |only testing/xserver-1.ref |only testing/xserver-2.patch- |only testing/xserver-2.ref |only testing/xterm-1.patch- |only testing/xterm-1.ref |only testing/xterm-10.patch- |only testing/xterm-10.ref |only testing/xterm-11.patch- |only testing/xterm-11.ref |only testing/xterm-2.patch- |only testing/xterm-2.ref |only testing/xterm-3.patch- |only testing/xterm-3.ref |only testing/xterm-4.patch- |only testing/xterm-4.ref |only testing/xterm-5.patch- |only testing/xterm-5.ref |only testing/xterm-6.patch- |only testing/xterm-6.ref |only testing/xterm-7.ref |only testing/xterm-8.patch- |only testing/xterm-8.ref |only testing/xterm-9.patch- |only testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case07R.ref0000644000000000000000000000016311700545534015335 0ustar rootroot null | 100 ------------------------------------------------------------------- 1 file changed, 100 deletions(-) diffstat-1.68/testing/case47b.ref0000644000000000000000000000062214377643723015375 0ustar rootroot headers-sh.in | 57 ++++++++++++++++++++++++++++--- package/debian/cdialog-dev.install | 11 +++-- package/debian/cdialog.install | 9 ++-- package/debian/cdialog.lintian-overrides | 2 - po/makefile.inn | 14 +++---- samples/inputbox6-utf8 | 4 +- 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case14k.ref0000644000000000000000000000006410300164552015354 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case31.ref0000644000000000000000000000012111234653116015200 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case26p9.ref0000644000000000000000000000227410451755075015477 0ustar rootroot 00list | 8 - 100_double_ampersand.dpatch | 20 ++ 100_fl_filename_name.dpatch | 22 --- 101_visible_focus.dpatch | 20 -- 102_charstruct.dpatch | 46 ------ 103_man_typo.dpatch | 20 -- 104_g++-4.1_warning.dpatch | 61 -------- 105_double_ampersand.dpatch | 49 ------- 200_Debian_menu.dpatch | 14 +- 201_background_color.dpatch | 59 -------- 202_background_color_2.dpatch | 92 ------------- Frame.C | 294 +++++++++++++++++++++++++++++++----------- Frame.H | 21 +-- Hotkeys.C | 32 ++++ Makefile | 2 Menu.C | 70 ++++++---- README | 18 +- Rotated.C | 61 ++++---- changelog | 12 + config.h | 6 flwm.1 | 4 flwm_wmconfig | 4 logo.fl | 19 ++ main.C | 99 ++++++++++---- patch-stamp | 25 --- watch | 3 26 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case03r1.ref0000644000000000000000000000024710277702415015456 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case34k.ref0000644000000000000000000000014411762443774015400 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case41.pat0000644000000000000000000000657013777265015015242 0ustar rootrootcommit 05ca23d0002c378ac5db76b17410183ef50297bc Author: Thomas E. Dickey Date: Tue Jan 12 04:19:41 2021 -0500 Hello world! diff --git a/hello.c b/hello.c index a9f911c..4a42a83 100644 --- a/hello.c +++ b/hello.c @@ -2,6 +2,6 @@ int main(void) { - printf("Hello!\n"); + printf("Hello world!\n"); return 0; } diff --git a/hello.o b/hello.o index 9d2a05c4da9fcefaf858c82ec387095ba477da5a..718ae91813f694202302d3fe812c9ff340dd4743 100644 GIT binary patch delta 28 kcmeyt^MhxCE4xB@eo;<};zpk{%#6Gf4+?MAVew%C0G)vez5oCK delta 28 gcmeyt^MhxCE4v~C7;N-8!_3G&@u2W#9Tp!Z0Cac Date: Tue Jan 12 04:19:08 2021 -0500 Hello! diff --git a/hello.c b/hello.c index 1e562d6..a9f911c 100644 --- a/hello.c +++ b/hello.c @@ -2,5 +2,6 @@ int main(void) { + printf("Hello!\n"); return 0; } diff --git a/hello.o b/hello.o index abce3cfeafc342a523b2930d499d2ce200f3ad5e..9d2a05c4da9fcefaf858c82ec387095ba477da5a 100644 GIT binary patch literal 1656 zcmbVL&ubG=5T0$+uGofH1%)c4CoR}VQbCHMY@6oCVQEXPcw9E=YKqyUWVceiDAa=& z!9T~Npnr@9FWx)|b-wHy^L)F#bl|<2`R1GVW_IVjYx=Dj#~~4ip3u}2l<4=&)b=K( zM`fC)PBa*dmZq`J$xpZQ=`nyG*y>+9C*R#~)NV8$R_|^`-GgvgT~qf}ZRNpoW`IW5 zCp(ezc9)#vinBO3>we}!fZx)w8_=8O%5K@!NM51#3-s$WA0a9gb_U#N&PXhAq)1A9 zLy?r|ViC-z6xUm#%Q=3AoOS+ej$dYE!MJzwjTpPetCC|AEuVo?A3sv{NcoK##o@t_ zg0{cCvF-=kt=7}#Ua+^m;Wq<1JW3NjLn^_SL(P9qGnr!>f)3_+30`Fz0{*3mr8kwl ziPNx4DoMwg?u(U1$0@1(Fbzp{lZ4cG1P9EzshkCCxH|hs3#$ghNiu9Z{|?76Rp-sW z$GJFjm6s`=cI5v`OzsyA9&Ee+9i1R^sNLKwKH>mo#1n$nYZwrgTBhgIc&?Y@0jK`MTVH%#Yf#>yr9~h&qe<@9P7lPxO!X zCHaD*9{X;F=nFQM9bGWqBhIk%ai%>x43Vo3Rd5Wk`@hPuqWt$d|Fw||)6V}3ek*9U delta 329 zcmeytGl6S@hLivk0~|PjSq=<54BQNc2PUS;P3%x%WS-2(tUU2T9U~i%Av$>tqsSy6 z(~nVT@&rZ}Lm>thxOQe3D Date: Tue Jan 12 04:18:36 2021 -0500 fix permissions diff --git a/hello.c b/hello.c old mode 100755 new mode 100644 commit 304b535d7ca93538ca800e6a3a5d7f0b75b3fd00 Author: Thomas E. Dickey Date: Tue Jan 12 04:18:09 2021 -0500 just return diff --git a/hello.c b/hello.c new file mode 100755 index 0000000..1e562d6 --- /dev/null +++ b/hello.c @@ -0,0 +1,6 @@ +#include + +int main(void) +{ + return 0; +} diff --git a/hello.o b/hello.o new file mode 100644 index 0000000000000000000000000000000000000000..abce3cfeafc342a523b2930d499d2ce200f3ad5e GIT binary patch literal 1296 zcmbtT!AiqG5S=t?s}`x^L8wAKsbH6iAku>bs`ert6v3O_)Rh*Sv?LL#7yX2OhMyt$ zL;3|eV|LSZ-Fnc0WM~VgVT1z+UzIgi`rjPwGzIS;HjZoE7{CQ> zX-(*2#bz!}u$c=pHW<6)C*adR@L5EbwEo!!9ntIcSsMc04UtokO4|He7Z%?K3HO1; zNtF7IiV`tQfL-&11M}k;7y-!RQF1o`*6s&^2$2!?6TzCN7ga2^Z-GUk$C>C{-9$VP za_)a!85_{IGEdB#(3rTotz$x1c0RJ`NpCt+zk!4TK7ZA3qn3J3+TZM3LauIgOh{kT zL5v$RUo&vEzw*RWu}*F2i58pOORN!Q-u#x-n0wJ#>2{6@{RN&5Vod)m*-Gkw?lawf wrB}FZHc3YGLVHUc%%P_qrk*hKj7jn&=PyvAnS?WB5hI)aSrYw>nFgl*6QE~3d;kCd literal 0 HcmV?d00001 diffstat-1.68/testing/case48k.ref0000644000000000000000000000010714714413375015376 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case04p9.ref0000644000000000000000000000215010276756033015464 0ustar rootroot Xlib-1.patch- |only Xlib-1.ref |only Xlib-2.patch- |only Xlib-2.ref |only Xlib-3.patch- |only Xlib-3.ref |only config-1.ref |only config.cache | 16 ++---!!!! config.h | 2 + config.log | 76 ++++++++++-----------------!!!!!!!!!!!!!!!!!!!!!!!!!! config.status | 24 ++++----!!!!!!!! configure.out |only diffstat |binary diffstat.o |binary makefile | 4 - nugent.ref |only xserver-1.ref |only xserver-2.patch- |only xserver-2.ref |only xterm-1.patch- |only xterm-1.ref |only xterm-10.patch- |only xterm-10.ref |only xterm-11.patch- |only xterm-11.ref |only xterm-2.patch- |only xterm-2.ref |only xterm-3.patch- |only xterm-3.ref |only xterm-4.patch- |only xterm-4.ref |only xterm-5.patch- |only xterm-5.ref |only xterm-6.patch- |only xterm-6.ref |only xterm-7.ref |only xterm-8.patch- |only xterm-8.ref |only xterm-9.patch- |only xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case17k.ref0000644000000000000000000000027407530543210015365 0ustar rootroot include/linux/sched.h | 11 +++++++++++ kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case38lu.ref0000644000000000000000000000045612546615551015573 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run_atac.sh | 6 ------ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case26.ref0000644000000000000000000000367110451755075015230 0ustar rootroot Frame.C | 294 ++++++++++++++++++++------- Frame.H | 21 + Hotkeys.C | 32 ++ Makefile | 2 Menu.C | 70 +++--- README | 18 - Rotated.C | 61 +++-- config.h | 6 debian/changelog | 12 + debian/patched/100_double_ampersand.dpatch | 1 debian/patched/100_fl_filename_name.dpatch | 2 debian/patched/101_visible_focus.dpatch | 1 debian/patched/102_charstruct.dpatch | 1 debian/patched/103_man_typo.dpatch | 1 debian/patched/104_g++-4.1_warning.dpatch | 3 debian/patched/105_double_ampersand.dpatch | 1 debian/patched/201_background_color.dpatch | 2 debian/patches/00list | 8 debian/patches/100_double_ampersand.dpatch | 19 + debian/patches/100_fl_filename_name.dpatch | 20 - debian/patches/101_visible_focus.dpatch | 19 - debian/patches/102_charstruct.dpatch | 45 ---- debian/patches/103_man_typo.dpatch | 19 - debian/patches/104_g++-4.1_warning.dpatch | 58 ----- debian/patches/105_double_ampersand.dpatch | 48 ---- debian/patches/200_Debian_menu.dpatch | 14 - debian/patches/201_background_color.dpatch | 57 ----- debian/patches/202_background_color_2.dpatch | 92 -------- debian/watch | 3 flwm.1 | 4 flwm_wmconfig | 4 logo.fl | 19 + main.C | 99 ++++++--- patch-stamp | 25 -- 34 files changed, 498 insertions(+), 583 deletions(-) diffstat-1.68/testing/case24k.ref0000644000000000000000000000056110144014205015352 0ustar rootroot gen/gen.c | 5 ++--- gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- gen/terminal_interface-curses.ads.m4 | 10 ++++++---- samples/ncurses2-acs_and_scroll.adb | 15 ++++++++------- samples/ncurses2-acs_display.adb | 21 ++++++++++++--------- 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case31u.pat0000644000000000000000000000461211234652523015407 0ustar rootroot==== //depot/vendor/freebsd/src/sys/dev/usb/usbdevs#353 (text+ko) - //depot/projects/usb/src/sys/dev/usb/usbdevs#72 (text+ko) ==== content @@ -1,4 +1,4 @@ -$FreeBSD: src/sys/dev/usb/usbdevs,v 1.421 2009/07/30 18:53:06 weongyo Exp $ +$FreeBSD: src/sys/dev/usb/usbdevs,v 1.420 2009/07/30 00:15:17 alfred Exp $ /* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */ /*- @@ -861,6 +861,12 @@ /* Apple Computer products */ product APPLE EXT_KBD 0x020c Apple Extended USB Keyboard +product APPLE KBD_TP_ANSI 0x0223 Apple Internal Keyboard/Trackpad (Wellspring/ANSI) +product APPLE KBD_TP_ISO 0x0224 Apple Internal Keyboard/Trackpad (Wellspring/ISO) +product APPLE KBD_TP_JIS 0x0225 Apple Internal Keyboard/Trackpad (Wellspring/JIS) +product APPLE KBD_TP_ANSI2 0x0230 Apple Internal Keyboard/Trackpad (Wellspring2/ANSI) +product APPLE KBD_TP_ISO2 0x0231 Apple Internal Keyboard/Trackpad (Wellspring2/ISO) +product APPLE KBD_TP_JIS2 0x0232 Apple Internal Keyboard/Trackpad (Wellspring2/JIS) product APPLE OPTMOUSE 0x0302 Optical mouse product APPLE MIGHTYMOUSE 0x0304 Mighty Mouse product APPLE EXT_KBD_HUB 0x1003 Hub in Apple Extended USB Keyboard @@ -902,6 +908,7 @@ product ASUS RT2573_2 0x1724 RT2573 product ASUS LCM 0x1726 LCM display product ASUS P535 0x420f ASUS P535 PDA +product ASUS GMSC 0x422f ASUS Generic Mass Storage /* ATen products */ product ATEN UC1284 0x2001 Parallel printer @@ -1177,12 +1184,12 @@ product DLINK DSB650TX3 0x400b 10/100 Ethernet product DLINK DSB650TX2 0x4102 10/100 Ethernet product DLINK DSB650 0xabc1 10/100 Ethernet -product DLINK2 DWA120_NF 0x3a0d DWA-120 (no firmware) -product DLINK2 DWA120 0x3a0e DWA-120 product DLINK2 DWLG122C1 0x3c03 DWL-G122 c1 product DLINK2 WUA1340 0x3c04 WUA-1340 product DLINK2 DWA111 0x3c06 DWA-111 product DLINK2 DWA110 0x3c07 DWA-110 +product DLINK2 DWA120_NF 0x3c0d DWA-120 (no firmware) +product DLINK2 DWA120 0x3c0e DWA-120 /* DMI products */ product DMI CFSM_RW 0xa109 CF/SM Reader/Writer @@ -1971,6 +1978,7 @@ product PHILIPS PCA646VC 0x0303 PCA646VC PC Camera product PHILIPS PCVC680K 0x0308 PCVC680K Vesta Pro PC Camera product PHILIPS DSS150 0x0471 DSS 150 Digital Speaker System +product PHILIPS SPE3030CC 0x083a USB 2.0 External Disk product PHILIPS SNU5600 0x1236 SNU5600 product PHILIPS UM10016 0x1552 ISP 1581 Hi-Speed USB MPEG2 Encoder Reference Kit product PHILIPS DIVAUSB 0x1801 DIVA USB mp3 player diffstat-1.68/testing/case42k.ref0000644000000000000000000000047514320561540015367 0ustar rootroot testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/case39k.ref | 1 + testing2/full.log |only testing2/full.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case12.pat0000644000000000000000000001012306125357300015211 0ustar rootrootIndex: xc/programs/xterm/main.c diff -u xc/programs/xterm/main.c:1.1.1.22 xc/programs/xterm/main.c:1.2 --- xc/programs/xterm/main.c:1.1.1.22 Tue Mar 19 07:36:38 1996 +++ xc/programs/xterm/main.c Sun Mar 24 01:10:29 1996 @@ -182,6 +182,10 @@ #undef CAPS_LOCK #endif +#ifdef CSRG_BASED +#define USE_POSIX_TERMIOS +#endif + #include #include @@ -199,6 +203,9 @@ #endif #endif +#ifdef USE_POSIX_TERMIOS +#include +#else #ifdef USE_TERMIOS #include /* this hacked termios support only works on SYSV */ @@ -3143,11 +3197,11 @@ shname_minus = malloc(strlen(shname) + 2); (void) strcpy(shname_minus, "-"); (void) strcat(shname_minus, shname); -#ifndef USE_SYSV_TERMIO +#if !defined(USE_SYSV_TERMIO) && !defined(USE_POSIX_TERMIOS) ldisc = XStrCmp("csh", shname + strlen(shname) - 3) == 0 ? NTTYDISC : 0; ioctl(0, TIOCSETD, (char *)&ldisc); -#endif /* !USE_SYSV_TERMIO */ +#endif /* !USE_SYSV_TERMIO && !USE_POSIX_TERMIOS */ #ifdef USE_LOGIN_DASH_P if (term->misc.login_shell && pw && added_utmp_entry) Index: xc/programs/xterm/resize.c diff -u xc/programs/xterm/resize.c:1.1.1.9 xc/programs/xterm/resize.c:1.2 --- xc/programs/xterm/resize.c:1.1.1.9 Wed Feb 14 21:58:14 1996 +++ xc/programs/xterm/resize.c Sun Mar 24 01:10:32 1996 @@ -87,19 +87,19 @@ #define USE_TERMINFO #endif -#ifdef MINIX +#if defined(CSRG_BASED) #define USE_TERMIOS #endif #include #ifdef USE_SYSV_TERMIO -#include +# include #else /* else not USE_SYSV_TERMIO */ -#ifdef MINIX -#include -#else /* !MINIX */ -#include -#endif /* MINIX */ +# ifdef USE_TERMIOS +# include +# else /* not USE_TERMIOS */ +# include +# endif /* USE_TERMIOS */ #endif /* USE_SYSV_TERMIO */ #ifdef USE_USG_PTYS @@ -127,8 +127,9 @@ #define bzero(s, n) memset(s, 0, n) #endif /* USE_SYSV_TERMIO */ -#ifdef USE_TERMIOS +#ifdef MINIX #define USE_SYSV_TERMIO +#include #define termio termios #define TCGETA TCGETS #define TCSETAW TCSETSW @@ -190,7 +191,11 @@ #ifdef USE_SYSV_TERMIO struct termio tioorig; #else /* not USE_SYSV_TERMIO */ +# ifdef USE_TERMIOS +struct termios tioorig; +# else /* not USE_TERMIOS */ struct sgttyb sgorig; +# endif /* USE_TERMIOS */ #endif /* USE_SYSV_TERMIO */ char *size[EMULATIONS] = { "\033[%d;%dR", @@ -244,7 +249,11 @@ #ifdef USE_SYSV_TERMIO struct termio tio; #else /* not USE_SYSV_TERMIO */ +#ifdef USE_TERMIOS + struct termios tio; +#else /* not USE_TERMIOS */ struct sgttyb sg; +#endif /* USE_TERMIOS */ #endif /* USE_SYSV_TERMIO */ #ifdef USE_TERMCAP char termcap [1024]; @@ -366,10 +375,20 @@ tio.c_cc[VMIN] = 6; tio.c_cc[VTIME] = 1; #else /* else not USE_SYSV_TERMIO */ +#if defined(USE_TERMIOS) + tcgetattr(tty, &tioorig); + tio = tioorig; + tio.c_iflag &= ~ICRNL; + tio.c_lflag &= ~(ICANON | ECHO); + tio.c_cflag |= CS8; + tio.c_cc[VMIN] = 6; + tio.c_cc[VTIME] = 1; +#else /* not USE_TERMIOS */ ioctl (tty, TIOCGETP, &sgorig); sg = sgorig; sg.sg_flags |= RAW; sg.sg_flags &= ~ECHO; +#endif /* USE_TERMIOS */ #endif /* USE_SYSV_TERMIO */ signal(SIGINT, onintr); signal(SIGQUIT, onintr); @@ -377,7 +396,11 @@ #ifdef USE_SYSV_TERMIO ioctl (tty, TCSETAW, &tio); #else /* not USE_SYSV_TERMIO */ +#ifdef USE_TERMIOS + tcsetattr(tty, TCSADRAIN, &tio); +#else /* not USE_TERMIOS */ ioctl (tty, TIOCSETP, &sg); +#endif /* USE_TERMIOS */ #endif /* USE_SYSV_TERMIO */ if (argc == 2) { @@ -434,7 +457,11 @@ #ifdef USE_SYSV_TERMIO ioctl (tty, TCSETAW, &tioorig); #else /* not USE_SYSV_TERMIO */ +#ifdef USE_TERMIOS + tcsetattr(tty, TCSADRAIN, &tioorig); +#else /* not USE_TERMIOS */ ioctl (tty, TIOCSETP, &sgorig); +#endif /* USE_TERMIOS */ #endif /* USE_SYSV_TERMIO */ signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); @@ -595,7 +622,11 @@ #ifdef USE_SYSV_TERMIO ioctl (tty, TCSETAW, &tioorig); #else /* not USE_SYSV_TERMIO */ +#ifdef USE_TERMIOS + tcsetattr (tty, TCSADRAIN, &tioorig); +#else /* not USE_TERMIOS */ ioctl (tty, TIOCSETP, &sgorig); +#endif /* use TERMIOS */ #endif /* USE_SYSV_TERMIO */ exit(1); } diffstat-1.68/testing/case16r1.ref0000644000000000000000000000206610277702417015465 0ustar rootroot Makefile.in | 61 ++++---- README | 5 aclocal.m4 | 7 + config.h.in | 6 + configure | 386 ++++++++++++++++++++++++++++++++++----------------- curses.h | 37 ++++- curspriv.h | 12 +- demos/testcurs.c | 9 + doc/intro.man | 27 ++- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 ++++ install-sh | 26 +++- os2/gccos2.mak | 14 +- os2/pdckbd.c | 28 ++++ os2/pdcurses.def | 8 + pdcurses/Makefile.in | 120 ++++++++++------ pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 +- pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 +- x11/README | 15 ++ x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 +- 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case05r2.ref0000644000000000000000000000006610300164550015445 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case42b.ref0000644000000000000000000000047514320561540015356 0ustar rootroot testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/case39k.ref | 1 + testing2/full.log |only testing2/full.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case15R.ref0000644000000000000000000000117311700545537015341 0ustar rootroot build/Makefile.in | 38 ++++++++++----------- build/recover | 49 ---------------------------- debian/README.debian | 14 -------- debian/changelog | 53 ------------------------------ debian/conffiles | 1 debian/control | 19 ---------- debian/copyright | 40 ---------------------- debian/postinst | 21 ------------ debian/prerm | 11 ------ debian/rc.boot | 58 --------------------------------- debian/rules | 89 --------------------------------------------------- debian/substvars | 1 12 files changed, 19 insertions(+), 375 deletions(-) diffstat-1.68/testing/case39.pat0000644000000000000000000000115713777263420015243 0ustar rootrootdiff --git a/diffstat b/diffstat index 70d0e90..9d24fbd 100755 Binary files a/diffstat and b/diffstat differ diff --git a/diffstat.c b/diffstat.c index b9cbe0a..26ce142 100644 --- a/diffstat.c +++ b/diffstat.c @@ -20,7 +20,7 @@ ******************************************************************************/ #ifndef NO_IDENT -static const char *Id = "$Id: diffstat.c,v 1.63 2019/11/29 20:39:01 tom Exp $"; +static const char *Id = "$Id: diffstat.c,v 1.64 2019/11/29 20:39:01 tom Exp $"; #endif /* diff --git a/diffstat.o b/diffstat.o index c98d6ff..4368a92 100644 Binary files a/diffstat.o and b/diffstat.o differ diffstat-1.68/testing/case18u.ref0000644000000000000000000000005510300164552015372 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case02.pat0000644000000000000000000002601106122605111015204 0ustar rootroot Prereq: public-patch-25 *** /tmp/da20646 Wed Nov 3 20:04:26 1993 --- mit/bug-report Wed Nov 3 20:04:25 1993 *************** *** 2,8 **** Subject: [area]: [synopsis] [replace with actual area and short description] VERSION: ! R5, public-patch-25 [MIT public patches will edit this line to indicate the patch level] CLIENT MACHINE and OPERATING SYSTEM: --- 2,8 ---- Subject: [area]: [synopsis] [replace with actual area and short description] VERSION: ! R5, public-patch-26 [MIT public patches will edit this line to indicate the patch level] CLIENT MACHINE and OPERATING SYSTEM: *** /tmp/da21897 Thu Nov 4 08:57:24 1993 --- mit/clients/xterm/misc.c Thu Nov 4 08:57:23 1993 *************** *** 1,5 **** /* ! * $XConsortium: misc.c,v 1.92 92/03/13 17:02:08 gildea Exp $ */ /* --- 1,5 ---- /* ! * $XConsortium: misc.c,v 1.95.1.1 93/11/04 08:56:48 gildea Exp $ */ /* *************** *** 444,449 **** --- 444,518 ---- } } + #if defined(ALLOWLOGGING) || defined(DEBUG) + + #ifndef X_NOT_POSIX + #define HAS_WAITPID + #endif + + /* + * create a file only if we could with the permissions of the real user id. + * We could emulate this with careful use of access() and following + * symbolic links, but that is messy and has race conditions. + * Forking is messy, too, but we can't count on setreuid() or saved set-uids + * being available. + */ + void + creat_as(uid, gid, pathname, mode) + int uid; + int gid; + char *pathname; + int mode; + { + int fd; + int waited; + int pid; + #ifndef HAS_WAITPID + int (*chldfunc)(); + + chldfunc = signal(SIGCHLD, SIG_DFL); + #endif + pid = fork(); + switch (pid) + { + case 0: /* child */ + setgid(gid); + setuid(uid); + fd = open(pathname, O_WRONLY|O_CREAT|O_APPEND, mode); + if (fd >= 0) { + close(fd); + _exit(0); + } else + _exit(1); + case -1: /* error */ + return; + default: /* parent */ + #ifdef HAS_WAITPID + waitpid(pid, NULL, 0); + #else + waited = wait(NULL); + signal(SIGCHLD, chldfunc); + /* + Since we had the signal handler uninstalled for a while, + we might have missed the termination of our screen child. + If we can check for this possibility without hanging, do so. + */ + do + if (waited == term->screen.pid) + Cleanup(0); + while ( (waited=nonblocking_wait()) > 0); + #endif + } + } + #endif + + #ifdef ALLOWLOGGING + /* + * logging is a security hole, since it allows a setuid program to + * write arbitrary data to an arbitrary file. So it is disabled + * by default. + */ + StartLog(screen) register TScreen *screen; { *************** *** 530,551 **** return; #endif } else { ! if(access(screen->logfile, F_OK) == 0) { ! if(access(screen->logfile, W_OK) < 0) ! return; ! } else if(cp = rindex(screen->logfile, '/')) { ! *cp = 0; ! i = access(screen->logfile, W_OK); ! *cp = '/'; ! if(i < 0) ! return; ! } else if(access(".", W_OK) < 0) return; ! if((screen->logfd = open(screen->logfile, O_WRONLY | O_APPEND | ! O_CREAT, 0644)) < 0) ! return; ! chown(screen->logfile, screen->uid, screen->gid); } screen->logstart = screen->TekEmu ? Tbptr : bptr; screen->logging = TRUE; --- 599,618 ---- return; #endif } else { ! if(access(screen->logfile, F_OK) != 0) { ! if (errno == ENOENT) ! creat_as(screen->uid, screen->gid, ! screen->logfile, 0644); ! else return; ! } + if(access(screen->logfile, F_OK) != 0 + || access(screen->logfile, W_OK) != 0) + return; + if((screen->logfd = open(screen->logfile, O_WRONLY | O_APPEND, + 0644)) < 0) + return; } screen->logstart = screen->TekEmu ? Tbptr : bptr; screen->logging = TRUE; *************** *** 587,592 **** --- 654,660 ---- CloseLog(screen); } #endif /* ALLOWLOGFILEEXEC */ + #endif /* ALLOWLOGGING */ do_osc(func) *************** *** 626,631 **** --- 694,700 ---- Changetitle(buf); break; + #ifdef ALLOWLOGGING case 46: /* new log file */ #ifdef ALLOWLOGFILECHANGES /* *************** *** 643,648 **** --- 712,718 ---- Bell(); #endif break; + #endif /* ALLOWLOGGING */ case 50: SetVTFont (fontMenu_fontescape, True, buf, NULL); *************** *** 903,912 **** --- 973,984 ---- register TScreen *screen = &term->screen; if (screen->TekEmu) { + #ifdef ALLOWLOGGING if (screen->logging) { FlushLog (screen); screen->logstart = buffer; } + #endif longjmp(Tekend, 1); } return; *************** *** 917,926 **** --- 989,1000 ---- register TScreen *screen = &term->screen; if (!screen->TekEmu) { + #ifdef ALLOWLOGGING if(screen->logging) { FlushLog(screen); screen->logstart = Tbuffer; } + #endif screen->TekEmu = TRUE; longjmp(VTend, 1); } *** /tmp/da17839 Wed Nov 3 18:16:38 1993 --- mit/clients/xterm/Tekproc.c Wed Nov 3 18:16:37 1993 *************** *** 1,5 **** /* ! * $XConsortium: Tekproc.c,v 1.107 91/06/25 19:49:48 gildea Exp $ * * Warning, there be crufty dragons here. */ --- 1,5 ---- /* ! * $XConsortium: Tekproc.c,v 1.112 93/02/25 17:17:40 gildea Exp $ * * Warning, there be crufty dragons here. */ *************** *** 46,51 **** --- 46,52 ---- #include #include #include + #include /* * Check for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX *************** *** 74,80 **** #define TekColormap DefaultColormap( screen->display, \ DefaultScreen(screen->display) ) ! #define DefaultGCID DefaultGC(screen->display, DefaultScreen(screen->display))->gid /* Tek defines */ --- 75,81 ---- #define TekColormap DefaultColormap( screen->display, \ DefaultScreen(screen->display) ) ! #define DefaultGCID XGContextFromGC(DefaultGC(screen->display, DefaultScreen(screen->display))) /* Tek defines */ *************** *** 188,194 **** --- 189,197 ---- /* menu actions */ { "allow-send-events", HandleAllowSends }, { "set-visual-bell", HandleSetVisualBell }, + #ifdef ALLOWLOGGING { "set-logging", HandleLogging }, + #endif { "redraw", HandleRedraw }, { "send-signal", HandleSendSignal }, { "quit", HandleQuit }, *************** *** 335,342 **** register int c, x, y; char ch; ! for( ; ; ) ! switch(Tparsestate[c = input()]) { case CASE_REPORT: /* report address */ if(screen->TekGIN) { --- 338,346 ---- register int c, x, y; char ch; ! for( ; ; ) { ! c = input(); ! switch(Tparsestate[c]) { case CASE_REPORT: /* report address */ if(screen->TekGIN) { *************** *** 356,365 **** --- 360,371 ---- /* special return to vt102 mode */ Tparsestate = curstate; TekRecord->ptr[-1] = NAK; /* remove from recording */ + #ifdef ALLOWLOGGING if(screen->logging) { FlushLog(screen); screen->logstart = buffer; } + #endif return; case CASE_SPT_STATE: *************** *** 626,631 **** --- 632,638 ---- Tparsestate = curstate; break; } + } } static int rcnt; *************** *** 667,675 **** (int *) NULL, &crocktimeout); #endif if(Tselect_mask & pty_mask) { if(screen->logging) FlushLog(screen); ! Tbcnt = read(screen->respond, Tbptr = Tbuffer, BUF_SIZE); if(Tbcnt < 0) { if(errno == EIO) Cleanup (0); --- 674,684 ---- (int *) NULL, &crocktimeout); #endif if(Tselect_mask & pty_mask) { + #ifdef ALLOWLOGGING if(screen->logging) FlushLog(screen); ! #endif ! Tbcnt = read(screen->respond, (char *)(Tbptr = Tbuffer), BUF_SIZE); if(Tbcnt < 0) { if(errno == EIO) Cleanup (0); *************** *** 1150,1157 **** * The following is called the create the tekWidget */ ! static void TekInitialize(request, new) Widget request, new; { /* look for focus related events on the shell, because we need * to care about the shell's border being part of our focus. --- 1159,1168 ---- * The following is called the create the tekWidget */ ! static void TekInitialize(request, new, args, num_args) Widget request, new; + ArgList args; + Cardinal *num_args; { /* look for focus related events on the shell, because we need * to care about the shell's border being part of our focus. *************** *** 1549,1565 **** } /* write copy of screen to a file */ TekCopy() { - register TekLink *Tp; - register int tekcopyfd; register TScreen *screen = &term->screen; register struct tm *tp; long l; char buf[32]; time(&l); tp = localtime(&l); sprintf(buf, "COPY%02d-%02d-%02d.%02d:%02d:%02d", tp->tm_year, --- 1560,1585 ---- } + #ifndef X_NOT_POSIX + #define HAS_WAITPID + #endif + /* write copy of screen to a file */ TekCopy() { register TScreen *screen = &term->screen; register struct tm *tp; long l; char buf[32]; + int waited; + int pid; + #ifndef HAS_WAITPID + int (*chldfunc)(); + chldfunc = signal(SIGCHLD, SIG_DFL); + #endif + time(&l); tp = localtime(&l); sprintf(buf, "COPY%02d-%02d-%02d.%02d:%02d:%02d", tp->tm_year, *************** *** 1573,1593 **** Bell(); return; } ! if((tekcopyfd = open(buf, O_WRONLY | O_CREAT | O_TRUNC, 0644)) < 0) { ! Bell(); ! return; ! } ! chown(buf, screen->uid, screen->gid); ! sprintf(buf, "\033%c\033%c", screen->page.fontsize + '8', ! screen->page.linetype + '`'); ! write(tekcopyfd, buf, 4); ! Tp = &Tek0; ! do { write(tekcopyfd, (char *)Tp->data, Tp->count); Tp = Tp->next; ! } while(Tp); ! close(tekcopyfd); } - - - --- 1593,1645 ---- Bell(); return; } ! ! /* Write the file in an unprivileged child process because ! using access before the open still leaves a small window ! of opportunity. */ ! pid = fork(); ! switch (pid) ! { ! case 0: /* child */ ! { ! register int tekcopyfd; ! char initbuf[5]; ! register TekLink *Tp; ! ! setgid(screen->gid); ! setuid(screen->uid); ! tekcopyfd = open(buf, O_WRONLY | O_CREAT | O_TRUNC, 0666); ! if (tekcopyfd < 0) ! _exit(1); ! sprintf(initbuf, "\033%c\033%c", screen->page.fontsize + '8', ! screen->page.linetype + '`'); ! write(tekcopyfd, initbuf, 4); ! Tp = &Tek0; ! do { write(tekcopyfd, (char *)Tp->data, Tp->count); Tp = Tp->next; ! } while(Tp); ! close(tekcopyfd); ! _exit(0); ! } ! case -1: /* error */ ! Bell(); ! return; ! default: /* parent */ ! #ifdef HAS_WAITPID ! waitpid(pid, NULL, 0); ! #else ! waited = wait(NULL); ! signal(SIGCHLD, chldfunc); ! /* ! Since we had the signal handler uninstalled for a while, ! we might have missed the termination of our screen child. ! If we can check for this possibility without hanging, do so. ! */ ! do ! if (waited == term->screen.pid) ! Cleanup(0); ! while ( (waited=nonblocking_wait()) > 0); ! #endif ! } } diffstat-1.68/testing/case37p9.ref0000644000000000000000000000132312133114345015457 0ustar rootroot LOGS |only bin |only case35.pat |only case35.ref |only case35R.ref |only case35Rp0.ref |only case35b.ref |only case35f0.ref |only case35k.ref |only case35p1.ref |only case35p9.ref |only case35r1.ref |only case35r2.ref |only case35u.ref |only case36.pat |only case36.ref |only case36R.ref |only case36Rp0.ref |only case36b.ref |only case36f0.ref |only case36k.ref |only case36p1.ref |only case36p9.ref |only case36r1.ref |only case36r2.ref |only case36u.ref |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ 33 files changed diffstat-1.68/testing/case01b.ref0000644000000000000000000000405410667374021015354 0ustar rootroot config/cf/Imake.cf | 7 +++++ config/cf/hp.cf | 7 +++++ config/cf/hpLib.rules | 2 + config/imake/imakemdep.h | 13 ++++++++++ config/makedepend/main.c | 2 - include/Xos.h | 7 ++++- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - test/xsuite/xtest/src/bin/mc/files.c | 2 - util/patch/malloc.c | 12 +++------ util/patch/pch.c | 2 - 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case45b.ref0000644000000000000000000000121614320603177015356 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case44Rp0.ref0000644000000000000000000000163714320603177015604 0ustar rootroot --unified=1 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case37r2.ref0000644000000000000000000000173312133114345015457 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case44k.ref0000644000000000000000000000121614320603177015366 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case06r1.ref0000644000000000000000000000046210277702415015460 0ustar rootroot NEWS | 2 + ncurses/lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++------------ ncurses/lib_initscr.c | 4 ++ ncurses/lib_pad.c | 48 ++++++++++++++++++++----- test/ncurses.c | 29 ++++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case06p9.ref0000644000000000000000000000043107073762771015475 0ustar rootroot NEWS | 2 + lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++++++++-------------- lib_initscr.c | 4 ++ lib_pad.c | 48 +++++++++++++++++++++++------- ncurses.c | 29 ++++++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case15p1.ref0000644000000000000000000000117307073762773015473 0ustar rootroot build/Makefile.in | 38 ++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 debian/control | 19 ++++++++++ debian/copyright | 40 ++++++++++++++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case18p9.ref0000644000000000000000000000005510300164552015456 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case31k.ref0000644000000000000000000000012111240121163015340 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case29r1.ref0000644000000000000000000000020311163734345015460 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case48u.ref0000644000000000000000000000010714714413374015407 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case44R.ref0000644000000000000000000000163714320603177015344 0ustar rootroot --unified=1 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case32R.ref0000644000000000000000000000010511700545545015331 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case42.ref0000644000000000000000000000047514320561540015214 0ustar rootroot testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/case39k.ref | 1 + testing2/full.log |only testing2/full.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case24f0.ref0000644000000000000000000000056510144014205015431 0ustar rootroot gen/gen.c | 5 2 + 3 - 0 ! gen/terminal_interface-curses-mouse.ads.m4 | 6 3 + 3 - 0 ! gen/terminal_interface-curses.ads.m4 | 10 6 + 4 - 0 ! samples/ncurses2-acs_and_scroll.adb | 15 8 + 7 - 0 ! samples/ncurses2-acs_display.adb | 21 12 + 9 - 0 ! 5 files changed, 31 insertions(+), 26 deletions(-) diffstat-1.68/testing/case23p9.ref0000644000000000000000000000023407753454053015471 0ustar rootroot README | 1 gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case22f0.ref0000644000000000000000000000234007623304420015431 0ustar rootroot PATCHES | 1 1 + 0 - 0 ! compose.c | 17 13 + 4 - 0 ! crypt.c | 26 11 + 15 - 0 ! init.h | 54 47 + 7 - 0 ! mutt.h | 4 3 + 1 - 0 ! pgp.c | 5 4 + 1 - 0 ! pgplib.h | 1 1 + 0 - 0 ! po/ca.po | 10 5 + 5 - 0 ! po/cs.po | 8 4 + 4 - 0 ! po/da.po | 8 4 + 4 - 0 ! po/de.po | 8 4 + 4 - 0 ! po/el.po | 8 4 + 4 - 0 ! po/eo.po | 8 4 + 4 - 0 ! po/es.po | 9 5 + 4 - 0 ! po/et.po | 6 3 + 3 - 0 ! po/fr.po | 8 4 + 4 - 0 ! po/gl.po | 8 4 + 4 - 0 ! po/hu.po | 8 4 + 4 - 0 ! po/id.po | 8 4 + 4 - 0 ! po/it.po | 8 4 + 4 - 0 ! po/ja.po | 9 5 + 4 - 0 ! po/ko.po | 8 4 + 4 - 0 ! po/lt.po | 13 6 + 7 - 0 ! po/nl.po | 8 4 + 4 - 0 ! po/pl.po | 8 4 + 4 - 0 ! po/pt_BR.po | 12 6 + 6 - 0 ! po/ru.po | 8 4 + 4 - 0 ! po/sk.po | 13 6 + 7 - 0 ! po/sv.po | 8 4 + 4 - 0 ! po/tr.po | 8 4 + 4 - 0 ! po/uk.po | 8 4 + 4 - 0 ! po/zh_CN.po | 6 3 + 3 - 0 ! po/zh_TW.po | 6 3 + 3 - 0 ! postpone.c | 7 7 + 0 - 0 ! send.c | 16 15 + 1 - 0 ! sendlib.c | 2 2 + 0 - 0 ! 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case01p9.ref0000644000000000000000000000253410226221640015451 0ustar rootroot Imake.cf | 7 +++++++ Xos.h | 7 ++++++- accel/i128/i128scrin.c | 2 +- accel/p9000/p9000scrin.c | 2 +- bin/mc/files.c | 2 +- hp.cf | 7 +++++++ hpLib.rules | 2 ++ imakemdep.h | 13 +++++++++++++ import/mijpeg.c | 2 +- input/drivers/hil_driver.c | 2 +- input/hpKeyMap.c | 2 +- main.c | 2 +- malloc.c | 12 +++++------- mono/drivers/apollo/apolloHW.h | 2 +- mono/drivers/apollo/apollodriv.c | 6 +++--- mono/drivers/hgc1280/hgc1280driv.c | 4 ++-- mono/drivers/sigma/sigmadriv.c | 4 ++-- mono/mono/mono.c | 6 +++--- mono/mono/mono.h | 4 ++-- pch.c | 2 +- process/mpgeomaa.c | 2 +- process/mpgeomnn.c | 2 +- vga16/ibm/vgaImages.c | 2 +- vga256/drivers/ati/regati.h | 2 +- vga256/drivers/cirrus/cir_blitter.c | 2 +- vga256/drivers/cirrus/cir_cursor.c | 2 +- vga256/drivers/oak/oak_driver.c | 2 +- 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case18p1.ref0000644000000000000000000000005510300164552015446 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case32r2.ref0000644000000000000000000000010511246713507015453 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case20k.ref0000644000000000000000000000017207605627534015373 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case48.ref0000644000000000000000000000010714714413374015222 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case31p1.ref0000644000000000000000000000016711240121163015440 0ustar rootroot /depot/vendor/freebsd/src/sys/dev/usb/usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case01r2.ref0000644000000000000000000000407210277702415015455 0ustar rootroot config/cf/Imake.cf | 7 +++++ config/cf/hp.cf | 7 +++++ config/cf/hpLib.rules | 2 ++ config/imake/imakemdep.h | 13 ++++++++++ config/makedepend/main.c | 2 +- include/Xos.h | 7 ++++- programs/Xserver/XIE/mixie/import/mijpeg.c | 2 +- programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 +- programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 +- programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 +- programs/Xserver/hw/hp/input/hpKeyMap.c | 2 +- programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 +- programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 +- programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 +- programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +- programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +- programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +- programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 +- programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 +- test/xsuite/xtest/src/bin/mc/files.c | 2 +- util/patch/malloc.c | 12 ++++----- util/patch/pch.c | 2 +- 27 files changed, 68 insertions(+), 36 deletions(-) diffstat-1.68/testing/case40k.ref0000644000000000000000000000015613777432505015376 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case40p1.ref0000644000000000000000000000015613777412636015467 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case38rr2.ref0000644000000000000000000000045612546615551015660 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case41u.ref0000644000000000000000000000016313777421437015411 0ustar rootroot b/hello.c | 8 +++++++- b/hello.o |binary hello.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case04u.ref0000644000000000000000000000337310276756033015410 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++------------!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case09r2.ref0000644000000000000000000000002110277702416015454 0ustar rootroot 0 files changed diffstat-1.68/testing/case08.ref0000644000000000000000000000050207073762771015225 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case13.ref0000644000000000000000000000030310276756034015212 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case33p9.ref0000644000000000000000000000010511246713507015461 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case29R.ref0000644000000000000000000000020411700545544015336 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case18k.ref0000644000000000000000000000005510300164552015360 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case09Rp0.ref0000644000000000000000000000002111700545535015571 0ustar rootroot 0 files changed diffstat-1.68/testing/case31b.ref0000644000000000000000000000012111240121163015327 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case48.pat0000644000000000000000000000044114714413347015233 0ustar rootroot1180,1181d1186 < product DLINK2 DWA120_NF 0x3a0d DWA-120 (no firmware) < product DLINK2 DWA120 0x3a0e DWA-120 1185a1191,1192 > product DLINK2 DWA120_NF 0x3c0d DWA-120 (no firmware) > product DLINK2 DWA120 0x3c0e DWA-120 1973a1981 > product PHILIPS SPE3030CC 0x083a USB 2.0 External Disk diffstat-1.68/testing/case04.pat0000644000000000000000000003572206122413145015223 0ustar rootrootdiff -r -c diffstat/config.cache diffstat.orig/config.cache *** diffstat/config.cache Fri Mar 15 19:27:13 1996 --- diffstat.orig/config.cache Fri Mar 15 19:51:02 1996 *************** *** 13,28 **** # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ! ac_cv_c_cross=${ac_cv_c_cross='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} ! ac_cv_header_stdc=${ac_cv_header_stdc='no'} ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h='yes'} ac_cv_header_string_h=${ac_cv_header_string_h='yes'} ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'} ac_cv_path_install=${ac_cv_path_install='/home/tom/com/install -c'} ! ac_cv_prog_CC=${ac_cv_prog_CC='atacCC'} ! ac_cv_prog_CPP=${ac_cv_prog_CPP='atacCC -E'} ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'} ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'} ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'} --- 13,28 ---- # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ! ac_cv_c_cross=${ac_cv_c_cross='no'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} ! ac_cv_header_stdc=${ac_cv_header_stdc='yes'} ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h='yes'} ac_cv_header_string_h=${ac_cv_header_string_h='yes'} ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'} ac_cv_path_install=${ac_cv_path_install='/home/tom/com/install -c'} ! ac_cv_prog_CC=${ac_cv_prog_CC='gcc'} ! ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'} ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'} ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'} ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'} diff -r -c diffstat/config.h diffstat.orig/config.h *** diffstat/config.h Fri Mar 15 19:27:15 1996 --- diffstat.orig/config.h Fri Mar 15 19:51:04 1996 *************** *** 6,11 **** --- 6,12 ---- */ + #define STDC_HEADERS 1 #define HAVE_STDLIB_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETOPT_H 1 diff -r -c diffstat/config.log diffstat.orig/config.log *** diffstat/config.log Fri Mar 15 19:26:59 1996 --- diffstat.orig/config.log Fri Mar 15 19:50:58 1996 *************** *** 2,27 **** running configure, to aid debugging if configure makes a mistake. configure:607: sgtty.h: No such file or directory ! /usr/tmp/atacCC17934/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' ! /usr/tmp/atacCC17934/conftest.c:66: warning: function declaration isn't a prototype ! /usr/tmp/atacCC17934/conftest.c: In function `main': ! /usr/tmp/atacCC17934/conftest.c:67: warning: implicit declaration of function `aTaC' ! /usr/tmp/atacCC17934/conftest.c: At top level: ! /usr/tmp/atacCC17934/conftest.c:76: warning: function declaration isn't a prototype ! /usr/tmp/atacCC17934/conftest.c: In function `t': ! /usr/tmp/atacCC17934/conftest.c:97: warning: declaration of `t' shadows global declaration ! /usr/tmp/atacCC17934/conftest.c:98: warning: unused variable `s' ! /usr/tmp/atacCC17934/conftest.c:104: warning: declaration of `x' shadows previous local ! /usr/tmp/atacCC17934/conftest.c:111: warning: declaration of `p' shadows previous local ! /usr/tmp/atacCC17934/conftest.c:125: warning: unused variable `foo' ! /usr/tmp/atacCC17934/conftest.c:86: warning: unused variable `zero' ! /usr/tmp/atacCC17934/conftest.c:80: warning: unused variable `x' ! /usr/tmp/atacCC17934/conftest.c: At top level: ! /usr/tmp/atacCC17934/conftest.c:1: warning: `ZIDENT' defined but not used ! /usr/tmp/atacCC17972/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' ! /usr/tmp/atacCC17972/conftest.c:39: warning: return-type defaults to `int' ! /usr/tmp/atacCC17972/conftest.c:39: warning: function declaration isn't a prototype ! /usr/tmp/atacCC17972/conftest.c: In function `main': ! /usr/tmp/atacCC17972/conftest.c:40: warning: implicit declaration of function `aTaC' ! /usr/tmp/atacCC17972/conftest.c: At top level: ! /usr/tmp/atacCC17972/conftest.c:1: warning: `ZIDENT' defined but not used --- 2,19 ---- running configure, to aid debugging if configure makes a mistake. configure:607: sgtty.h: No such file or directory ! configure:659: warning: function declaration isn't a prototype ! configure:660: warning: function declaration isn't a prototype ! configure: In function `t': ! configure:680: warning: declaration of `t' shadows global declaration ! configure:681: warning: unused variable `s' ! configure:686: warning: declaration of `x' shadows previous local ! configure:692: warning: declaration of `p' shadows previous local ! configure:701: warning: unused variable `foo' ! configure:669: warning: unused variable `zero' ! configure:663: warning: unused variable `x' ! configure:680: warning: `t' might be used uninitialized in this function ! configure:698: warning: `b' might be used uninitialized in this function ! configure:735: warning: return-type defaults to `int' ! configure:735: warning: function declaration isn't a prototype ! configure:821: warning: function declaration isn't a prototype diff -r -c diffstat/config.status diffstat.orig/config.status *** diffstat/config.status Fri Mar 15 19:27:14 1996 --- diffstat.orig/config.status Fri Mar 15 19:51:03 1996 *************** *** 4,10 **** # This directory was configured as follows, # on host dickey-ppp: # ! # ./configure # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. --- 4,10 ---- # This directory was configured as follows, # on host dickey-ppp: # ! # ./configure --verbose --disable-echo --enable-warnings --with-warnings # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. *************** *** 14,21 **** do case "$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion" ! exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "./config.status generated by autoconf version 2.3" exit 0 ;; --- 14,21 ---- do case "$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! echo "running ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion" ! exec ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "./config.status generated by autoconf version 2.3" exit 0 ;; *************** *** 38,53 **** s%@CFLAGS@%-O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes%g s%@CPPFLAGS@%%g s%@CXXFLAGS@%%g ! s%@DEFS@% -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g s%@LDFLAGS@%%g s%@LIBS@%%g s%@exec_prefix@%${prefix}%g s%@prefix@%/usr/local%g s%@program_transform_name@%s,x,x,%g ! s%@CC@%atacCC%g s%@INSTALL_PROGRAM@%${INSTALL}%g s%@INSTALL_DATA@%${INSTALL} -m 644%g ! s%@CPP@%atacCC -E%g CEOF --- 38,53 ---- s%@CFLAGS@%-O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes%g s%@CPPFLAGS@%%g s%@CXXFLAGS@%%g ! s%@DEFS@% -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g s%@LDFLAGS@%%g s%@LIBS@%%g s%@exec_prefix@%${prefix}%g s%@prefix@%/usr/local%g s%@program_transform_name@%s,x,x,%g ! s%@CC@%gcc%g s%@INSTALL_PROGRAM@%${INSTALL}%g s%@INSTALL_DATA@%${INSTALL} -m 644%g ! s%@CPP@%gcc -E%g CEOF Only in diffstat.orig: configure.out Binary files diffstat/diffstat and diffstat.orig/diffstat differ Binary files diffstat/diffstat.o and diffstat.orig/diffstat.o differ diff -r -c diffstat/makefile diffstat.orig/makefile *** diffstat/makefile Fri Mar 15 19:27:15 1996 --- diffstat.orig/makefile Fri Mar 15 19:51:04 1996 *************** *** 7,13 **** srcdir = . ! CC = atacCC LINK = $(CC) INSTALL = /home/tom/com/install -c INSTALL_PROGRAM = ${INSTALL} --- 7,13 ---- srcdir = . ! CC = gcc LINK = $(CC) INSTALL = /home/tom/com/install -c INSTALL_PROGRAM = ${INSTALL} Only in diffstat/testing: Xlib-1.patch- Only in diffstat/testing: Xlib-1.ref Only in diffstat/testing: Xlib-2.patch- Only in diffstat/testing: Xlib-2.ref Only in diffstat/testing: Xlib-3.patch- Only in diffstat/testing: Xlib-3.ref Only in diffstat/testing: config-1.ref Only in diffstat/testing: nugent.ref Only in diffstat/testing: xserver-1.ref Only in diffstat/testing: xserver-2.patch- Only in diffstat/testing: xserver-2.ref Only in diffstat/testing: xterm-1.patch- Only in diffstat/testing: xterm-1.ref Only in diffstat/testing: xterm-10.patch- Only in diffstat/testing: xterm-10.ref Only in diffstat/testing: xterm-11.patch- Only in diffstat/testing: xterm-11.ref Only in diffstat/testing: xterm-2.patch- Only in diffstat/testing: xterm-2.ref Only in diffstat/testing: xterm-3.patch- Only in diffstat/testing: xterm-3.ref Only in diffstat/testing: xterm-4.patch- Only in diffstat/testing: xterm-4.ref Only in diffstat/testing: xterm-5.patch- Only in diffstat/testing: xterm-5.ref Only in diffstat/testing: xterm-6.patch- Only in diffstat/testing: xterm-6.ref Only in diffstat/testing: xterm-7.ref Only in diffstat/testing: xterm-8.patch- Only in diffstat/testing: xterm-8.ref Only in diffstat/testing: xterm-9.patch- Only in diffstat/testing: xterm-9.ref diff -r diffstat/config.cache diffstat.orig/config.cache 16c16 < ac_cv_c_cross=${ac_cv_c_cross='yes'} --- > ac_cv_c_cross=${ac_cv_c_cross='no'} 19c19 < ac_cv_header_stdc=${ac_cv_header_stdc='no'} --- > ac_cv_header_stdc=${ac_cv_header_stdc='yes'} 24,25c24,25 < ac_cv_prog_CC=${ac_cv_prog_CC='atacCC'} < ac_cv_prog_CPP=${ac_cv_prog_CPP='atacCC -E'} --- > ac_cv_prog_CC=${ac_cv_prog_CC='gcc'} > ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'} diff -r diffstat/config.h diffstat.orig/config.h 8a9 > #define STDC_HEADERS 1 diff -r diffstat/config.log diffstat.orig/config.log 5,27c5,19 < /usr/tmp/atacCC17934/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' < /usr/tmp/atacCC17934/conftest.c:66: warning: function declaration isn't a prototype < /usr/tmp/atacCC17934/conftest.c: In function `main': < /usr/tmp/atacCC17934/conftest.c:67: warning: implicit declaration of function `aTaC' < /usr/tmp/atacCC17934/conftest.c: At top level: < /usr/tmp/atacCC17934/conftest.c:76: warning: function declaration isn't a prototype < /usr/tmp/atacCC17934/conftest.c: In function `t': < /usr/tmp/atacCC17934/conftest.c:97: warning: declaration of `t' shadows global declaration < /usr/tmp/atacCC17934/conftest.c:98: warning: unused variable `s' < /usr/tmp/atacCC17934/conftest.c:104: warning: declaration of `x' shadows previous local < /usr/tmp/atacCC17934/conftest.c:111: warning: declaration of `p' shadows previous local < /usr/tmp/atacCC17934/conftest.c:125: warning: unused variable `foo' < /usr/tmp/atacCC17934/conftest.c:86: warning: unused variable `zero' < /usr/tmp/atacCC17934/conftest.c:80: warning: unused variable `x' < /usr/tmp/atacCC17934/conftest.c: At top level: < /usr/tmp/atacCC17934/conftest.c:1: warning: `ZIDENT' defined but not used < /usr/tmp/atacCC17972/conftest.c:30: warning: missing braces around initializer for `ZUmain[0]' < /usr/tmp/atacCC17972/conftest.c:39: warning: return-type defaults to `int' < /usr/tmp/atacCC17972/conftest.c:39: warning: function declaration isn't a prototype < /usr/tmp/atacCC17972/conftest.c: In function `main': < /usr/tmp/atacCC17972/conftest.c:40: warning: implicit declaration of function `aTaC' < /usr/tmp/atacCC17972/conftest.c: At top level: < /usr/tmp/atacCC17972/conftest.c:1: warning: `ZIDENT' defined but not used --- > configure:659: warning: function declaration isn't a prototype > configure:660: warning: function declaration isn't a prototype > configure: In function `t': > configure:680: warning: declaration of `t' shadows global declaration > configure:681: warning: unused variable `s' > configure:686: warning: declaration of `x' shadows previous local > configure:692: warning: declaration of `p' shadows previous local > configure:701: warning: unused variable `foo' > configure:669: warning: unused variable `zero' > configure:663: warning: unused variable `x' > configure:680: warning: `t' might be used uninitialized in this function > configure:698: warning: `b' might be used uninitialized in this function > configure:735: warning: return-type defaults to `int' > configure:735: warning: function declaration isn't a prototype > configure:821: warning: function declaration isn't a prototype diff -r diffstat/config.status diffstat.orig/config.status 7c7 < # ./configure --- > # ./configure --verbose --disable-echo --enable-warnings --with-warnings 17,18c17,18 < echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion" < exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;; --- > echo "running ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion" > exec ${CONFIG_SHELL-/bin/sh} ./configure --verbose --disable-echo --enable-warnings --with-warnings --no-create --no-recursion ;; 41c41 < s%@DEFS@% -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g --- > s%@DEFS@% -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STRING_H=1 -DHAVE_MALLOC_H=1 %g 47c47 < s%@CC@%atacCC%g --- > s%@CC@%gcc%g 50c50 < s%@CPP@%atacCC -E%g --- > s%@CPP@%gcc -E%g Only in diffstat.orig: configure.out Binary files diffstat/diffstat and diffstat.orig/diffstat differ Binary files diffstat/diffstat.o and diffstat.orig/diffstat.o differ diff -r diffstat/makefile diffstat.orig/makefile 10c10 < CC = atacCC --- > CC = gcc Only in diffstat/testing: Xlib-1.patch- Only in diffstat/testing: Xlib-1.ref Only in diffstat/testing: Xlib-2.patch- Only in diffstat/testing: Xlib-2.ref Only in diffstat/testing: Xlib-3.patch- Only in diffstat/testing: Xlib-3.ref Only in diffstat/testing: config-1.ref Only in diffstat/testing: nugent.ref Only in diffstat/testing: xserver-1.ref Only in diffstat/testing: xserver-2.patch- Only in diffstat/testing: xserver-2.ref Only in diffstat/testing: xterm-1.patch- Only in diffstat/testing: xterm-1.ref Only in diffstat/testing: xterm-10.patch- Only in diffstat/testing: xterm-10.ref Only in diffstat/testing: xterm-11.patch- Only in diffstat/testing: xterm-11.ref Only in diffstat/testing: xterm-2.patch- Only in diffstat/testing: xterm-2.ref Only in diffstat/testing: xterm-3.patch- Only in diffstat/testing: xterm-3.ref Only in diffstat/testing: xterm-4.patch- Only in diffstat/testing: xterm-4.ref Only in diffstat/testing: xterm-5.patch- Only in diffstat/testing: xterm-5.ref Only in diffstat/testing: xterm-6.patch- Only in diffstat/testing: xterm-6.ref Only in diffstat/testing: xterm-7.ref Only in diffstat/testing: xterm-8.patch- Only in diffstat/testing: xterm-8.ref Only in diffstat/testing: xterm-9.patch- Only in diffstat/testing: xterm-9.ref diffstat-1.68/testing/case37Rp0.ref0000644000000000000000000000265112133114345015575 0ustar rootroot diffstat-1.56+/config.log |differ diffstat-1.56+/configure.out |differ diffstat-1.56+/diffstat |differ diffstat-1.56+/diffstat.c |differ diffstat-1.56+/diffstat.o |differ diffstat-1.56+/makefile |differ diffstat-1.57/LOGS |only diffstat-1.57/bin |only diffstat-1.57/check.out |only diffstat-1.57/testing/case35.pat |only diffstat-1.57/testing/case35.ref |only diffstat-1.57/testing/case35R.ref |only diffstat-1.57/testing/case35Rp0.ref |only diffstat-1.57/testing/case35b.ref |only diffstat-1.57/testing/case35f0.ref |only diffstat-1.57/testing/case35k.ref |only diffstat-1.57/testing/case35p1.ref |only diffstat-1.57/testing/case35p9.ref |only diffstat-1.57/testing/case35r1.ref |only diffstat-1.57/testing/case35r2.ref |only diffstat-1.57/testing/case35u.ref |only diffstat-1.57/testing/case36.pat |only diffstat-1.57/testing/case36.ref |only diffstat-1.57/testing/case36R.ref |only diffstat-1.57/testing/case36Rp0.ref |only diffstat-1.57/testing/case36b.ref |only diffstat-1.57/testing/case36f0.ref |only diffstat-1.57/testing/case36k.ref |only diffstat-1.57/testing/case36p1.ref |only diffstat-1.57/testing/case36p9.ref |only diffstat-1.57/testing/case36r1.ref |only diffstat-1.57/testing/case36r2.ref |only diffstat-1.57/testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case05u.ref0000644000000000000000000000006610300164550015366 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case09r1.ref0000644000000000000000000000002110277702416015453 0ustar rootroot 0 files changed diffstat-1.68/testing/case13.pat0000644000000000000000000001737406457155072015243 0ustar rootrootFrom pauzner.dnttm.rssi.ru!uue@pauzner.dnttm.rssi.ru Wed Jan 14 05:40:34 1998 Received: from allison.clark.net (allison.clark.net [207.97.14.170]) by ice.clark.net (8.8.8/8.8.8) with ESMTP id FAA28956 for ; Wed, 14 Jan 1998 05:40:28 -0500 (EST) Received: from helios.dnttm.ru (dnttm.wave.ras.ru [194.85.104.197]) by allison.clark.net (8.8.8/8.8.8) with ESMTP id NAA05915 for ; Mon, 12 Jan 1998 13:50:43 -0500 (EST) Received: from pauzner.UUCP (uucp@localhost) by helios.dnttm.ru (8.8.5/8.8.5/IP-3) with UUCP id VAA21992 for dickey@clark.net; Mon, 12 Jan 1998 21:46:03 +0300 Received: by pauzner.dnttm.rssi.ru (dMail for DOS v2.06, 14Jul97); Mon, 12 Jan 1998 21:44:21 +0300 To: dickey@shell.clark.net References: Message-Id: From: "Leonid Pauzner" Date: Mon, 12 Jan 1998 21:44:19 +0300 (MSK) X-Mailer: dMail [Demos Mail for DOS v2.06] Subject: Re: please submit a patch NOW Lines: 276 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Status: RO This is for russian Cyrillic chartrans only: koi8-r and other Cyrillics now fall down to def7_uni transliteration if necessary (as should be). No "strip high bit" any more for koi8-r (UCAux.c), which made text completely unreadable for human and come from "before Unicode Era". (Somebody should look in LYCharUtil.c and LYCharSet.c to remove unnecessary staff where) Leonid Pauzner. *** UCAux.c Thu Jan 8 16:53:06 1998 --- UCAux.c.new Sat Jan 10 15:40:48 1998 *************** *** 64,70 **** /* ** CJK mode may be off (i.e., HTCJK == NOCJK) because ** the current document is not CJK, but the check may ! ** be for capability in relation to another document, ** for which CJK mode might be turned on when retrieved. ** Thus, when the from charset is CJK, check if the to ** charset is CJK, and return TQ_NO or TQ_GOOD depending on --- 64,70 ---- /* ** CJK mode may be off (i.e., HTCJK == NOCJK) because ** the current document is not CJK, but the check may ! ** be for campability in relation to another document, ** for which CJK mode might be turned on when retrieved. ** Thus, when the from charset is CJK, check if the to ** charset is CJK, and return TQ_NO or TQ_GOOD depending on *************** *** 84,113 **** **/ return TQ_NO; } ! if (!strcmp(fromname, "koi8-r")) { ! /* ! * Will try to use stripping of high bit... ! */ ! tqmin = TQ_POOR; ! } ! ! if (!strcmp(fromname, "koi8-r") || /* from cyrillic */ ! !strcmp(fromname, "iso-8859-5") || ! !strcmp(fromname, "cp866") || ! !strcmp(fromname, "cp1251") || ! !strcmp(fromname, "koi-8")) { ! if (strcmp(toname, "iso-8859-5") && ! strcmp(toname, "koi8-r") && ! strcmp(toname, "cp866") && ! strcmp(toname, "cp1251")) ! tqmax = TQ_POOR; ! } return ((LYCharSet_UC[from].UChndl >= 0) ? tqmax : tqmin); } } /* ! ** Returns YES if no tranlation necessary (because ** charsets are equal, are equivalent, etc.). */ PUBLIC BOOL UCNeedNotTranslate ARGS2( --- 84,98 ---- **/ return TQ_NO; } ! /* I am not sure with tqmax and tqmin : ! ** does we need them in this procedure et all now? -LP ! */ return ((LYCharSet_UC[from].UChndl >= 0) ? tqmax : tqmin); } } /* ! ** Returns YES if no translation necessary (because ** charsets are equal, are equivalent, etc.). */ PUBLIC BOOL UCNeedNotTranslate ARGS2( *************** *** 274,296 **** ** We set this, presently, for VISCII. - FM */ pT->repl_translated_C0 = (p_out->enc == UCT_ENC_8BIT_C0); - /* - ** This is a flag for whether we are dealing with koi8-r - ** as the input, and could do 8th-bit stripping for other - ** output charsets. Note that this always sets 8th-bit - ** stripping if the input charset is KOI8-R and the output - ** charset needs it, i.e., regardless of the RawMode and - ** consequent HTPassEightBitRaw setting, so you can't look - ** at raw koi8-r without selecting that as the display - ** character set (or transparent). That's just as well, - ** but worth noting for developers - FM - */ - pT->strip_raw_char_in = ((!intm_ucs || - (p_out->enc == UCT_ENC_7BIT) || - (p_out->repertoire & - UCT_REP_SUBSETOF_LAT1)) && - cs_in != cs_out && - !strcmp(p_in->MIMEname, "koi8-r")); /* ** use_ucs should be set TRUE if we have or will create ** Unicode values for input octets or UTF multibytes. - FM --- 259,264 ---- *** def7_uni.tbl Sun Nov 16 20:36:50 1997 --- def7_uni.tbl.new Sat Jan 10 15:14:34 1998 *************** *** 232,237 **** --- 232,238 ---- # IPA symbols, from # Linkname: FAQ: Representing IPA Phonetics in ASCII # URL: http://www.hpl.hp.com/personal/Evan_Kirshenbaum/IPA/faq.html + # (corrected in Russian Cyrillic area). # 0x41 U+0251 # LATIN SMALL LETTER SCRIPT A -> A U+0252:A. *************** *** 418,424 **** U+03f4:'% U+03f5:j3 # Cyrillic capital letters - 0x65 U+0401 U+0402:D% U+0403:G% U+0404:IE --- 419,424 ---- *************** *** 432,481 **** U+040c:KJ U+040e:V% U+040f:DZ ! 0x61-0x62 U+0410-U+0411 ! 0x77 U+0412 ! 0x67 U+0413 ! 0x64-0x65 U+0414-U+0415 ! 0x76 U+0416 ! 0x7a U+0417 ! 0x69-0x70 U+0418-U+041f ! 0x72-0x75 U+0420-U+0423 ! 0x66 U+0424 ! 0x68 U+0425 ! 0x63 U+0426 ! 0x7e U+0427 ! 0x7b U+0428 ! 0x7d U+0429 ! 0x27 U+042a ! 0x79 U+042b ! 0x78 U+042c ! 0x7c U+042d ! 0x60 U+042e ! 0x71 U+042f ! ! # Cyrillic small letters ! 0x41-0x42 U+0430-U+0431 ! 0x57 U+0432 ! 0x47 U+0433 ! 0x44-0x45 U+0434-U+0435 ! 0x56 U+0436 ! 0x5a U+0437 ! 0x49-0x50 U+0438-U+043f ! 0x52-0x55 U+0440-U+0443 ! 0x46 U+0444 ! 0x48 U+0445 ! 0x43 U+0446 ! 0x5e U+0447 ! 0x5b U+0448 ! 0x5d U+0449 ! 0x27 U+044a ! 0x59 U+044b ! 0x58 U+044c ! 0x5c U+044d ! 0x40 U+044e ! 0x51 U+044f ! ! 0x65 U+0451 #:io U+0452:d% U+0453:g% U+0454:ie --- 432,506 ---- U+040c:KJ U+040e:V% U+040f:DZ ! # Russian Cyrillic letters, transliterated ! U+0401:IO ! U+0410:A ! U+0411:B ! U+0412:V ! U+0413:G ! U+0414:D ! U+0415:E ! U+0416:ZH ! U+0417:Z ! U+0418:I ! U+0419:J ! U+041a:K ! U+041b:L ! U+041c:M ! U+041d:N ! U+041e:O ! U+041f:P ! U+0420:R ! U+0421:S ! U+0422:T ! U+0423:U ! U+0424:F ! U+0425:H ! U+0426:C ! U+0427:CH ! U+0428:SH ! U+0429:SCH ! U+042a:" ! U+042b:Y ! U+042c:' ! U+042d:`E ! U+042e:JU ! U+042f:JA ! U+0430:a ! U+0431:b ! U+0432:v ! U+0433:g ! U+0434:d ! U+0435:e ! U+0436:zh ! U+0437:z ! U+0438:i ! U+0439:j ! U+043a:k ! U+043b:l ! U+043c:m ! U+043d:n ! U+043e:o ! U+043f:p ! U+0440:r ! U+0441:s ! U+0442:t ! U+0443:u ! U+0444:f ! U+0445:h ! U+0446:c ! U+0447:ch ! U+0448:sh ! U+0449:sch ! U+044a:" ! U+044b:y ! U+044c:' ! U+044d:`e ! U+044e:ju ! U+044f:ja ! U+0451:io ! # end of Russian Cyrillic letters. ! # Cyrillic small letters (and some archaic) U+0452:d% U+0453:g% U+0454:ie *************** *** 1432,1438 **** U+223e:CG U+2243:?- U+2245:?= ! U+2248:?2 U+224c:=? U+2253:HI U+2260:!= --- 1457,1464 ---- U+223e:CG U+2243:?- U+2245:?= ! # ALMOST EQUAL TO: ! U+2248:~= U+224c:=? U+2253:HI U+2260:!= diffstat-1.68/testing/case31f0.ref0000644000000000000000000000012011240121163015412 0ustar rootroot usbdevs | 14 11 + 3 - 0 ! 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case18.pat0000644000000000000000000000026707605442451015235 0ustar rootrootdiff -urN tst/foo tst.new/foo --- tst/foo 2002-11-27 17:21:54.000000000 +0200 +++ tst.new/foo 2002-11-27 17:22:00.000000000 +0200 @@ -1,3 +1,2 @@ lalala --- ALWAYS!: foobar diffstat-1.68/testing/case44u.ref0000644000000000000000000000121614320603177015400 0ustar rootroot configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- NEWS | 9 ++++++++- package/debian/changelog | 4 ++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- VERSION | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case11p1.ref0000644000000000000000000000006410300164551015436 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case31uR.ref0000644000000000000000000000012111700545545015513 0ustar rootroot usbdevs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diffstat-1.68/testing/case23r1.ref0000644000000000000000000000023510277702417015457 0ustar rootroot README | 1 - gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case21r1.ref0000644000000000000000000000010010300164553015432 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case07b.ref0000644000000000000000000000026610667374022015364 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case01Rp0.ref0000644000000000000000000000561411700545532015573 0ustar rootroot /build/x11r6/XFree86-3.1.2Cf/xc/config/cf/Imake.cf | 7 ----- /build/x11r6/XFree86-3.1.2Cf/xc/config/cf/hp.cf | 7 ----- /build/x11r6/XFree86-3.1.2Cf/xc/config/cf/hpLib.rules | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/config/imake/imakemdep.h | 13 ---------- /build/x11r6/XFree86-3.1.2Cf/xc/config/makedepend/main.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/include/Xos.h | 7 ----- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/XIE/mixie/import/mijpeg.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/XIE/mixie/process/mpgeomaa.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/XIE/mixie/process/mpgeomnn.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/hp/input/drivers/hil_driver.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/hp/input/hpKeyMap.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/accel/i128/i128scrin.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/accel/p9000/p9000scrin.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloHW.h | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apollodriv.c | 6 ++-- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/hgc1280/hgc1280driv.c | 4 +-- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/drivers/sigma/sigmadriv.c | 4 +-- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/mono/mono.c | 6 ++-- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/mono/mono/mono.h | 4 +-- /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga16/ibm/vgaImages.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/ati/regati.h | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_blitter.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_cursor.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/programs/Xserver/hw/xfree86/vga256/drivers/oak/oak_driver.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/test/xsuite/xtest/src/bin/mc/files.c | 2 - /build/x11r6/XFree86-3.1.2Cf/xc/util/patch/malloc.c | 12 +++++---- /build/x11r6/XFree86-3.1.2Cf/xc/util/patch/pch.c | 2 - 27 files changed, 36 insertions(+), 68 deletions(-) diffstat-1.68/testing/case12f0.ref0000644000000000000000000000016107530543242015433 0ustar rootroot main.c | 11 9 + 2 - 0 ! resize.c | 47 39 + 8 - 0 ! 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case46f0.ref0000644000000000000000000000136314320603177015446 0ustar rootroot NEWS | 9 8 + 1 - 0 ! VERSION | 2 1 + 1 - 0 ! configure | 4 2 + 2 - 0 ! configure.in | 6 3 + 3 - 0 ! dist.mk | 4 2 + 2 - 0 ! misc/gen-pkgconfig.in | 8 6 + 2 - 0 ! package/debian-mingw/changelog | 4 2 + 2 - 0 ! package/debian-mingw64/changelog | 4 2 + 2 - 0 ! package/debian/changelog | 4 2 + 2 - 0 ! package/mingw-ncurses.nsi | 4 2 + 2 - 0 ! package/mingw-ncurses.spec | 2 1 + 1 - 0 ! package/ncurses.spec | 2 1 + 1 - 0 ! package/ncursest.spec | 2 1 + 1 - 0 ! 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case12Rp0.ref0000644000000000000000000000026311700545536015574 0ustar rootroot xc/programs/xterm/main.c | 11 +--------- xc/programs/xterm/resize.c | 47 +++++++-------------------------------------- 2 files changed, 10 insertions(+), 48 deletions(-) diffstat-1.68/testing/case10R.ref0000644000000000000000000000021411700545535015325 0ustar rootroot XIstubs.h | 26 -------------------------- allowev.c | 6 +-!!!! 2 files changed, 1 insertion(+), 27 deletions(-), 4 modifications(!) diffstat-1.68/testing/case40r1.ref0000644000000000000000000000015613777412637015472 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case47.pat0000644000000000000000000001575514377643447015263 0ustar rootrootdiff --git a/install.sh b/install-sh similarity index 100% rename from install.sh rename to install-sh diff --git a/package/debian/cdialog-dev.install b/package/debian/cdialog-dev.install index a186c7f..ffbd246 100755 --- a/package/debian/cdialog-dev.install +++ b/package/debian/cdialog-dev.install @@ -1,7 +1,8 @@ #! /usr/bin/dh-exec -/usr/bin/*-config /usr/bin -/usr/include/*.h /usr/include -/usr/include/*/*.h /usr/include/cdialog -*.so /lib/${DEB_HOST_MULTIARCH} -/usr/share/man/man3/*.3 /usr/share/man/man3 +/usr/bin/*-config /usr/bin +/usr/include/*.h /usr/include +/usr/include/*/*.h /usr/include/cdialog +*.so /lib/${DEB_HOST_MULTIARCH} +*.so.[1-9].[0-9] /lib/${DEB_HOST_MULTIARCH} +/usr/share/man/man3/*.3 /usr/share/man/man3 diff --git a/package/debian/cdialog.links b/package/debian/cdialog-dev.links similarity index 100% rename from package/debian/cdialog.links rename to package/debian/cdialog-dev.links diff --git a/package/debian/cdialog.install b/package/debian/cdialog.install index ebceeb9..739d761 100755 --- a/package/debian/cdialog.install +++ b/package/debian/cdialog.install @@ -1,6 +1,7 @@ #! /usr/bin/dh-exec -/usr/bin/cdialog /usr/bin -/usr/lib/*/*.so.* /lib/${DEB_HOST_MULTIARCH} -/usr/share/locale/*/*/cdialog.mo -/usr/share/man/man1/*.1 /usr/share/man/man1 +/usr/bin/*dialog /usr/bin +*.so.[1-9][0-9].[0-9].[0-9] /lib/${DEB_HOST_MULTIARCH} +/usr/share/man/man1/*.1 /usr/share/man/man1 +/usr/share/locale/* /usr/share/locale + diff --git a/package/debian/cdialog.lintian-overrides b/package/debian/cdialog.lintian-overrides index 7ba1edc..6d0a4a4 100644 --- a/package/debian/cdialog.lintian-overrides +++ b/package/debian/cdialog.lintian-overrides @@ -1,5 +1,5 @@ # the source filename was misspelled in the original version -cdialog: spelling-error-in-binary usr/bin/cdialog guage gauge +# cdialog: spelling-error-in-binary usr/bin/cdialog guage gauge # the soname name is for the shared library used by cdialog-dev cdialog: package-name-doesnt-match-sonames libcdialog15.0.0 diff --git a/headers.sh b/headers-sh.in similarity index 75% rename from headers.sh rename to headers-sh.in index ec2839a..930f420 100755 --- a/headers.sh +++ b/headers-sh.in @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: case47.pat,v 1.1 2023/03/01 12:37:59 tom Exp $ +# $Id: case47.pat,v 1.1 2023/03/01 12:37:59 tom Exp $ ############################################################################## # Copyright (c) 2004,2007 Thomas E. Dickey # # # @@ -40,17 +40,27 @@ # $3 is the source directory # $4 is the file to install, editing source/target/etc. -PACKAGE=DIALOG -PKGNAME=DLG -CONFIGH=dlg_config.h +PACKAGE=@PACKAGE@ +PKGNAME=@PACKAGE_PREFIX@ +CONFIGH=@PACKAGE_CONFIG@ TMPSED=headers.sed +DIGIT=0123456789 +alpha=abcdefghijklmnopqrstuvwxyz +ALPHA=ABCDEFGHIJKLMNOPQRSTUVWXYZ + +alnum=_${DIGIT}${alpha} +ALNUM=_${DIGIT}${ALPHA} +MIXED=_${DIGIT}${ALPHA}${alpha} + if test $# = 2 ; then rm -f $TMPSED DST=$1 REF=$2 LEAF=`basename $DST` + + # map the include-directory, if needed, to the subdirectory case $DST in /*/include/$LEAF) END=`basename $DST` @@ -64,8 +74,41 @@ if test $# = 2 ; then echo "" >> $TMPSED ;; esac + + # cannot do _this_ in -e options: + cat >headers.tmp </'${PKGNAME}'_\1/g%' >>$TMPSED + done + rm -f headers.tmp + + # pick up autoconf-defined symbols in the config.h file for name in ` - egrep '^#define[ ][ ]*[_ABCDEFGHIJKLMNOPQRSTUVWXYZ]' $REF/$CONFIGH \ + egrep '^#define[ ][ ]*['$ALNUM']' $REF/$CONFIGH \ | sed -e 's/^#define[ ][ ]*//' \ -e 's/[ ].*//' \ | egrep -v "^${PACKAGE}_" \ @@ -74,6 +117,10 @@ if test $# = 2 ; then do echo "s/\\<$name\\>/${PKGNAME}_$name/g" >>$TMPSED done + + # reduce the count if possible, since some old sed's limit is 100 lines + sort -u $TMPSED >headers.tmp + mv headers.tmp $TMPSED else PRG="" while test $# != 3 diff --git a/samples/inputbox6 b/samples/inputbox6-utf8 similarity index 89% rename from samples/inputbox6 rename to samples/inputbox6-utf8 index 4c09317..a78232e 100755 --- a/samples/inputbox6 +++ b/samples/inputbox6-utf8 @@ -1,5 +1,7 @@ #!/bin/sh -DIALOG=${DIALOG=dialog} +# $Id: case47.pat,v 1.1 2023/03/01 12:37:59 tom Exp $ +: ${DIALOG=dialog} + tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$ trap "rm -f $tempfile" 0 1 2 5 15 diff --git a/po/Makefile.inn b/po/makefile.inn similarity index 95% rename from po/Makefile.inn rename to po/makefile.inn index 4cd91d8..59b5097 100644 --- a/po/Makefile.inn +++ b/po/makefile.inn @@ -47,7 +47,7 @@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) SOURCES = cat-id-tbl.c POFILES = @POFILES@ GMOFILES = @GMOFILES@ -DISTFILES = ChangeLog Makefile.inn POTFILES.in $(PACKAGE).pot \ +DISTFILES = ChangeLog makefile.inn POTFILES.in $(PACKAGE).pot \ stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) POTFILES = \ @@ -158,8 +158,8 @@ install-data-yes: all else \ $(SHELL) $(top_srcdir)/mkdirs.sh $(DESTDIR)$(gettextsrcdir); \ fi; \ - $(INSTALL_DATA) $(srcdir)/Makefile.inn \ - $(DESTDIR)$(gettextsrcdir)/Makefile.inn; \ + $(INSTALL_DATA) $(srcdir)/makefile.inn \ + $(DESTDIR)$(gettextsrcdir)/makefile.inn; \ else \ : ; \ fi @@ -177,7 +177,7 @@ uninstall: rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ done - rm -f $(gettextsrcdir)/po-Makefile.inn + rm -f $(gettextsrcdir)/po-makefile.inn check: all @@ -193,7 +193,7 @@ clean: mostlyclean distclean: clean rm -f cat-id-tbl.c stamp-cat-id *.gmo - rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m + rm -f makefile makefile.in POTFILES *.mo *.msg *.cat *.cat.m maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @@ -208,7 +208,7 @@ dist distdir: update-po $(DISTFILES) || cp -p $(srcdir)/$$file $(distdir); \ done -update-po: Makefile +update-po: makefile $(MAKE) $(PACKAGE).pot PATH=`pwd`/../src:$$PATH; \ cd $(srcdir); \ @@ -240,7 +240,7 @@ POTFILES: POTFILES.in && chmod a-w $@-t \ && mv $@-t $@ ) -Makefile: Makefile.inn ../config.status POTFILES +makefile: makefile.inn ../config.status POTFILES cd .. \ && CONFIG_FILES=$(subdir)/$@.in:$(subdir)/$@.inn CONFIG_HEADERS= \ $(SHELL) ./config.status diffstat-1.68/testing/case19.ref0000644000000000000000000000011410300164552015202 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case34R.ref0000644000000000000000000000014411762443774015347 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case21.ref0000644000000000000000000000010010300164552015166 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case10p1.ref0000644000000000000000000000034707073762772015467 0ustar rootroot build/x11r6/XFree86-current/xc/programs/Xserver/Xi/allowev.c | 6 ! build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case23r2.ref0000644000000000000000000000023510277702420015452 0ustar rootroot README | 1 - gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case44f0.ref0000644000000000000000000000136314320603177015444 0ustar rootroot NEWS | 9 8 + 1 - 0 ! VERSION | 2 1 + 1 - 0 ! configure | 4 2 + 2 - 0 ! configure.in | 6 3 + 3 - 0 ! dist.mk | 4 2 + 2 - 0 ! misc/gen-pkgconfig.in | 8 6 + 2 - 0 ! package/debian-mingw/changelog | 4 2 + 2 - 0 ! package/debian-mingw64/changelog | 4 2 + 2 - 0 ! package/debian/changelog | 4 2 + 2 - 0 ! package/mingw-ncurses.nsi | 4 2 + 2 - 0 ! package/mingw-ncurses.spec | 2 1 + 1 - 0 ! package/ncurses.spec | 2 1 + 1 - 0 ! package/ncursest.spec | 2 1 + 1 - 0 ! 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case20R.ref0000644000000000000000000000017111700545541015325 0ustar rootroot README | 22 -------!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 deletions(-), 22 modifications(!) diffstat-1.68/testing/case14p1.ref0000644000000000000000000000006410300164552015442 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case14R.ref0000644000000000000000000000005711700545537015340 0ustar rootroot xx010 | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case27r1.ref0000644000000000000000000000067310664325751015473 0ustar rootroot Makefile | 4 ++++ b/Documentation/parport-lowlevel.txt | 29 +++-------------------------- b/drivers/cpuidle/governors/menu.c | 2 +- b/drivers/parport/daisy.c | 29 ----------------------------- b/fs/select.c | 2 +- b/include/linux/parport.h | 1 - scripts/export_report.pl | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case48p9.ref0000644000000000000000000000010714714413374015473 0ustar rootroot unknown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diffstat-1.68/testing/case09.pat0000644000000000000000000000021306122630275015220 0ustar rootrootOther testing Bad data Index!!! Index::: diff!!! +++++++++++++ --------------- Only in ? Binary files XXX and YYY are the same << -- ++ !! diffstat-1.68/testing/case02f0.ref0000644000000000000000000000032407530543241015432 0ustar rootroot bug-report | 2 0 + 0 - 2 ! clients/xterm/Tekproc.c | 98 20 + 5 - 73 ! clients/xterm/misc.c | 104 82 + 0 - 22 ! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case19r2.ref0000644000000000000000000000011410300164552015446 0ustar rootroot data.new | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case07p9.ref0000644000000000000000000000026607073762771015504 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case08R.ref0000644000000000000000000000050211700545535015334 0ustar rootroot Imakefile | 15 --------------- Tekproc.c | 7 ------- charproc.c | 22 ---------------------- data.c | 4 ---- main.c | 20 ++------!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ------ scrollbar.c | 2 !! 8 files changed, 2 insertions(+), 60 deletions(-), 20 modifications(!) diffstat-1.68/testing/case32p9.ref0000644000000000000000000000010511246713507015460 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case21.pat0000644000000000000000000000427707605627154015241 0ustar rootroot# remove duplicated files when reading applypatch input # # To apply this patch: # STEP 1: Chdir to the source directory. # STEP 2: Run the 'applypatch' program with this patch file as input. # # If you do not have 'applypatch', it is part of the 'makepatch' package # that you can fetch from the Comprehensive Perl Archive Network: # http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz # In the above URL, 'x' should be 2 or higher. # # To apply this patch without the use of 'applypatch': # STEP 1: Chdir to the source directory. # STEP 2: Run the 'patch' program with this file as input. # #### End of Preamble #### #### Patch data follows #### diff -c 'diffstat-1.31/diffstat.c' 'diffstat-1.31_applypatch/diffstat.c' Index: ./diffstat.c Prereq: 1.31 *** ./diffstat.c Tue Aug 20 19:38:52 2002 --- ./diffstat.c Sat Nov 9 22:54:12 2002 *************** *** 483,489 **** if (match(buffer, "Index: ")) { s = strrchr(buffer, BLANK); /* last token is name */ blip('.'); ! that = new_data(s + 1); ok = begin_data(that); } break; --- 483,491 ---- if (match(buffer, "Index: ")) { s = strrchr(buffer, BLANK); /* last token is name */ blip('.'); ! if (strlen(that->name) != 0) ! s = do_merging(that, s + 1); ! that = new_data(s); ok = begin_data(that); } break; *************** *** 493,499 **** && *(s = skip_options(buffer + 5)) != '\0') { s = strrchr(buffer, BLANK); blip('.'); ! that = new_data(s + 1); ok = begin_data(that); } break; --- 495,503 ---- && *(s = skip_options(buffer + 5)) != '\0') { s = strrchr(buffer, BLANK); blip('.'); ! if (strlen(that->name) != 0) ! s = do_merging(that, s + 1); ! that = new_data(s); ok = begin_data(that); } break; #### End of Patch data #### #### ApplyPatch data follows #### # Data version : 1.0 # Date generated : Sat Nov 9 22:55:16 2002 # Generated by : makepatch 2.00_05 # Recurse directories : Yes # p 'diffstat.c' 21017 1036900452 0100644 #### End of ApplyPatch data #### #### End of Patch kit [created: Sat Nov 9 22:55:16 2002] #### #### Patch checksum: 55 1528 36697 #### #### Checksum: 73 2205 27936 #### diffstat-1.68/testing/case37b.ref0000644000000000000000000000173312133114345015355 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case07r1.ref0000644000000000000000000000026610277702416015464 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case20r2.ref0000644000000000000000000000017210277702417015455 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case49R.ref0000644000000000000000000000011714714413543015344 0ustar rootroot unknown | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diffstat-1.68/testing/case06R.ref0000644000000000000000000000046111700545534015335 0ustar rootroot NEWS | 2 - ncurses/lib_doupdate.c | 91 +++++++++++-------------------------------------- ncurses/lib_initscr.c | 4 -- ncurses/lib_pad.c | 48 +++++-------------------- test/ncurses.c | 29 --------------- 5 files changed, 32 insertions(+), 142 deletions(-) diffstat-1.68/testing/case31l.pat0000644000000000000000000000047311234653207015377 0ustar rootroot==== //depot/user/ed/newcons/sys/kern/tty.c#2 - /home/ed/p4/newcons/sys/kern/tty.c ==== @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2008 Ed Schouten + * Copyright (c) 2009 Ed Schouten * All rights reserved. * * Portions of this software were developed under sponsorship from Snow diffstat-1.68/testing/case41b.ref0000644000000000000000000000014013777406456015365 0ustar rootroot b/hello.c | 8 +++++++- hello.c | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case10r2.ref0000644000000000000000000000035210277702416015453 0ustar rootroot /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ xc/programs/Xserver/Xi/allowev.c | 6 !! 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case38lR.ref0000644000000000000000000000045612546615551015530 0ustar rootroot READ ME! | 5 ----- README ? | 5 +++++ run atac.sh | 6 ------ run test.sh | 51 --------------------------------------------------- run_atac.sh | 6 ++++++ run_test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case12p1.ref0000644000000000000000000000026007073762772015463 0ustar rootroot programs/xterm/main.c | 11 +++++++++-- programs/xterm/resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case40f0.ref0000644000000000000000000000017013777412634015446 0ustar rootroot diffstat |binary diffstat.c | 2 1 + 1 - 0 ! diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case16b.ref0000644000000000000000000000205110667374024015360 0ustar rootroot Makefile.in | 61 ++++---- README | 5 aclocal.m4 | 7 config.h.in | 6 configure | 386 +++++++++++++++++++++++++++++++++------------------ curses.h | 37 +++- curspriv.h | 12 - demos/testcurs.c | 9 - doc/intro.man | 27 ++- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 +++ install-sh | 26 ++- os2/gccos2.mak | 14 - os2/pdckbd.c | 28 +++ os2/pdcurses.def | 8 - pdcurses/Makefile.in | 120 ++++++++++----- pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 + pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 - x11/README | 15 + x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 - 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case05b.ref0000644000000000000000000000006610667374021015357 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case18r1.ref0000644000000000000000000000005510300164552015450 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case17u.ref0000644000000000000000000000027407530534455015412 0ustar rootroot kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ include/linux/sched.h | 11 +++++++++++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case36Rp0.ref0000644000000000000000000000337312133111320015564 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 16 ++--!!!! diffstat/config.h | 2 - diffstat/config.log | 76 +++++++++++--------!!!!!!!!!!!!!!!!!! diffstat/config.status | 24 +++---!!!!!! diffstat/diffstat |binary diffstat/diffstat.o |binary diffstat/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 34 insertions(+), 28 deletions(-), 60 modifications(!) diffstat-1.68/testing/case12r2.ref0000644000000000000000000000022210277702416015451 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case31ub.ref0000644000000000000000000000012111240121111015505 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case29u.ref0000644000000000000000000000020411163734345015403 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case24Rp0.ref0000644000000000000000000000061711700545542015577 0ustar rootroot Ada95/gen/gen.c | 5 +++-- Ada95/gen/terminal_interface-curses-mouse.ads.m4 | 6 +++--- Ada95/gen/terminal_interface-curses.ads.m4 | 10 ++++------ Ada95/samples/ncurses2-acs_and_scroll.adb | 15 +++++++-------- Ada95/samples/ncurses2-acs_display.adb | 21 +++++++++------------ 5 files changed, 26 insertions(+), 31 deletions(-) diffstat-1.68/testing/case23.ref0000644000000000000000000000023407753454053015220 0ustar rootroot README | 1 gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case38rR.ref0000644000000000000000000000045612546615551015536 0ustar rootroot READ ME! | 5 +++++ README ? | 5 ----- run atac.sh | 6 ++++++ run test.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ run_atac.sh | 6 ------ run_test.sh | 51 --------------------------------------------------- 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case27p9.ref0000644000000000000000000000051310664325751015472 0ustar rootroot Makefile | 4 ++++ daisy.c | 29 ----------------------------- export_report.pl | 2 +- menu.c | 2 +- parport-lowlevel.txt | 29 +++-------------------------- parport.h | 1 - select.c | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case31p9.ref0000644000000000000000000000012111240121163015436 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case31lp9.ref0000644000000000000000000000010011237775205015631 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case11u.ref0000644000000000000000000000006410300164551015362 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case18r2.ref0000644000000000000000000000005510300164552015451 0ustar rootroot foo | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case47f0.ref0000644000000000000000000000065114377643723015463 0ustar rootroot headers-sh.in | 57 52 + 5 - 0 ! package/debian/cdialog-dev.install | 11 6 + 5 - 0 ! package/debian/cdialog.install | 9 5 + 4 - 0 ! package/debian/cdialog.lintian-overrides | 2 1 + 1 - 0 ! po/makefile.inn | 14 7 + 7 - 0 ! samples/inputbox6-utf8 | 4 3 + 1 - 0 ! 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case44p9.ref0000644000000000000000000000064014320603177015464 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- changelog | 12 ++++++------ configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- gen-pkgconfig.in | 8 ++++++-- mingw-ncurses.nsi | 4 ++-- mingw-ncurses.spec | 2 +- ncurses.spec | 2 +- ncursest.spec | 2 +- 11 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case35f0.ref0000644000000000000000000000027512133111243015431 0ustar rootroot config.cache | 1 0 + 0 - 1 ! config.h | 1 1 + 0 - 0 ! configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case43r2.ref0000644000000000000000000000121614320603177015456 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case04r2.ref0000644000000000000000000000337310277702415015463 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++-----------!!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 ! diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case08p9.ref0000644000000000000000000000050207073762771015476 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case25r2.ref0000644000000000000000000000055610277702420015462 0ustar rootroot CHANGES | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ MANIFEST | 3 ++- cmdtbl | 15 ++++++++++--- configure.in | 16 ++++++++++--- doc/filters.doc | 36 ++++++++++++++++++++++++++++-- doc/macros.doc | 67 ++++++++++++++++++++++++++++++++++---------------------- 6 files changed, 159 insertions(+), 36 deletions(-) diffstat-1.68/testing/case43.pat0000644000000000000000000001365514320570414015231 0ustar rootrootdiff '--unified=0' -r ncurses-6.3-20221001/configure ncurses-6.3-20221008/configure --- ncurses-6.3-20221001/configure 2022-10-01 09:25:01.000000000 -0400 +++ ncurses-6.3-20221008/configure 2022-10-08 12:55:47.000000000 -0400 @@ -2 +2 @@ -# From configure.in Revision: 1.749 . +# From configure.in Revision: 1.750 . @@ -15412 +15412 @@ -(789) +([789]) diff '--unified=0' -r ncurses-6.3-20221001/configure.in ncurses-6.3-20221008/configure.in --- ncurses-6.3-20221001/configure.in 2022-10-01 09:16:18.000000000 -0400 +++ ncurses-6.3-20221008/configure.in 2022-10-08 11:54:35.000000000 -0400 @@ -32 +32 @@ -dnl $Id: configure.in,v 1.749 2022/10/01 13:16:18 tom Exp $ +dnl $Id: configure.in,v 1.750 2022/10/08 15:54:35 tom Exp $ @@ -41 +41 @@ -AC_REVISION($Revision: 1.749 $) +AC_REVISION($Revision: 1.750 $) @@ -1275 +1275 @@ -([789]) +([[789]]) diff '--unified=0' -r ncurses-6.3-20221001/dist.mk ncurses-6.3-20221008/dist.mk --- ncurses-6.3-20221001/dist.mk 2022-10-01 09:15:31.000000000 -0400 +++ ncurses-6.3-20221008/dist.mk 2022-10-08 06:25:44.000000000 -0400 @@ -29 +29 @@ -# $Id: dist.mk,v 1.1505 2022/10/01 13:15:31 tom Exp $ +# $Id: dist.mk,v 1.1506 2022/10/08 10:25:44 tom Exp $ @@ -41 +41 @@ -NCURSES_PATCH = 20221001 +NCURSES_PATCH = 20221008 diff '--unified=0' -r ncurses-6.3-20221001/misc/gen-pkgconfig.in ncurses-6.3-20221008/misc/gen-pkgconfig.in --- ncurses-6.3-20221001/misc/gen-pkgconfig.in 2022-08-27 15:07:03.000000000 -0400 +++ ncurses-6.3-20221008/misc/gen-pkgconfig.in 2022-10-08 12:45:20.000000000 -0400 @@ -2 +2 @@ -# $Id: gen-pkgconfig.in,v 1.55 2022/08/27 19:07:03 tom Exp $ +# $Id: gen-pkgconfig.in,v 1.56 2022/10/08 16:45:20 tom Exp $ @@ -106 +106,5 @@ - [ -d "$lib_check" ] || continue + # on a new/nonstandard install, $libdir may not yet exist at this point + if [ "$libdir" != "$lib_check" ] + then + [ -d "$lib_check" ] || continue + fi diff '--unified=0' -r ncurses-6.3-20221001/NEWS ncurses-6.3-20221008/NEWS --- ncurses-6.3-20221001/NEWS 2022-10-01 18:20:28.000000000 -0400 +++ ncurses-6.3-20221008/NEWS 2022-10-08 12:50:03.000000000 -0400 @@ -29 +29 @@ --- $Id: NEWS,v 1.3862 2022/10/01 22:20:28 tom Exp $ +-- $Id: NEWS,v 1.3864 2022/10/08 16:50:03 tom Exp $ @@ -47,0 +48,7 @@ + +20221008 + + correct a switch-statement case in configure script to allow for test + builds with ABI=7. + + modify misc/gen-pkgconfig.in to allow for the case where the library + directory does not yet exist, since this is processed before doing an + install (report by Michal Liszcz). diff '--unified=0' -r ncurses-6.3-20221001/package/debian/changelog ncurses-6.3-20221008/package/debian/changelog --- ncurses-6.3-20221001/package/debian/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low @@ -5 +5 @@ - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 diff '--unified=0' -r ncurses-6.3-20221001/package/debian-mingw/changelog ncurses-6.3-20221008/package/debian-mingw/changelog --- ncurses-6.3-20221001/package/debian-mingw/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low @@ -5 +5 @@ - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 diff '--unified=0' -r ncurses-6.3-20221001/package/debian-mingw64/changelog ncurses-6.3-20221008/package/debian-mingw64/changelog --- ncurses-6.3-20221001/package/debian-mingw64/changelog 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/debian-mingw64/changelog 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -ncurses6 (6.3+20221001) unstable; urgency=low +ncurses6 (6.3+20221008) unstable; urgency=low @@ -5 +5 @@ - -- Thomas E. Dickey Fri, 30 Sep 2022 20:16:53 -0400 + -- Thomas E. Dickey Sat, 08 Oct 2022 06:25:44 -0400 diff '--unified=0' -r ncurses-6.3-20221001/package/mingw-ncurses.nsi ncurses-6.3-20221008/package/mingw-ncurses.nsi --- ncurses-6.3-20221001/package/mingw-ncurses.nsi 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.nsi 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -; $Id: mingw-ncurses.nsi,v 1.544 2022/10/01 09:34:57 tom Exp $ +; $Id: mingw-ncurses.nsi,v 1.545 2022/10/08 10:25:44 tom Exp $ @@ -13 +13 @@ -!define VERSION_MMDD "1001" +!define VERSION_MMDD "1008" diff '--unified=0' -r ncurses-6.3-20221001/package/mingw-ncurses.spec ncurses-6.3-20221008/package/mingw-ncurses.spec --- ncurses-6.3-20221001/package/mingw-ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/mingw-ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -6 +6 @@ -Release: 20221001 +Release: 20221008 diff '--unified=0' -r ncurses-6.3-20221001/package/ncurses.spec ncurses-6.3-20221008/package/ncurses.spec --- ncurses-6.3-20221001/package/ncurses.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncurses.spec 2022-10-08 06:25:44.000000000 -0400 @@ -4 +4 @@ -Release: 20221001 +Release: 20221008 diff '--unified=0' -r ncurses-6.3-20221001/package/ncursest.spec ncurses-6.3-20221008/package/ncursest.spec --- ncurses-6.3-20221001/package/ncursest.spec 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/package/ncursest.spec 2022-10-08 06:25:44.000000000 -0400 @@ -4 +4 @@ -Release: 20221001 +Release: 20221008 diff '--unified=0' -r ncurses-6.3-20221001/VERSION ncurses-6.3-20221008/VERSION --- ncurses-6.3-20221001/VERSION 2022-10-01 05:34:57.000000000 -0400 +++ ncurses-6.3-20221008/VERSION 2022-10-08 06:25:44.000000000 -0400 @@ -1 +1 @@ -5:0:10 6.3 20221001 +5:0:10 6.3 20221008 diffstat-1.68/testing/case13u.ref0000644000000000000000000000030310276756034015377 0ustar rootroot UCAux.c | 42 --------!!!!!!!!!!!!! def7_uni.tbl | 118 -!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2 files changed, 1 insertion(+), 18 deletions(-), 141 modifications(!) diffstat-1.68/testing/case42R.ref0000644000000000000000000000046214320561540015332 0ustar rootroot testing/case39k.ref | 1 - testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/full.log |only testing2/full.txt |only 10 files changed, 1 deletion(-) diffstat-1.68/testing/case47p1.ref0000644000000000000000000000062214377643723015474 0ustar rootroot headers-sh.in | 57 ++++++++++++++++++++++++++++--- package/debian/cdialog-dev.install | 11 +++-- package/debian/cdialog.install | 9 ++-- package/debian/cdialog.lintian-overrides | 2 - po/makefile.inn | 14 +++---- samples/inputbox6-utf8 | 4 +- 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case49Rp0.ref0000644000000000000000000000011714714413543015604 0ustar rootroot unknown | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diffstat-1.68/testing/case46R.ref0000644000000000000000000000163714320603177015346 0ustar rootroot --unified=3 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case10u.ref0000644000000000000000000000035107530534455015377 0ustar rootroot xc/programs/Xserver/Xi/allowev.c | 6 ! /build/x11r6/XFree86-current/xc/programs/Xserver/include/XIstubs.h | 26 ++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-), 4 modifications(!) diffstat-1.68/testing/case29Rp0.ref0000644000000000000000000000020411700545544015576 0ustar rootroot ./testing/case29.pat | 70 +++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case31r1.ref0000644000000000000000000000012111240121163015430 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case19f0.ref0000644000000000000000000000011710300164552015433 0ustar rootroot data.new | 9 6 + 3 - 0 ! 1 file changed, 6 insertions(+), 3 deletions(-) diffstat-1.68/testing/case28R.ref0000644000000000000000000000020411700545543015334 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case07.ref0000644000000000000000000000026607073762771015233 0ustar rootroot resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case03k.ref0000644000000000000000000000024707530543207015366 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case20Rp0.ref0000644000000000000000000000021511700545541015564 0ustar rootroot vile-9.3+/README | 22 -------!!!!!!!!!!!!!!! vile-9.3+/README.PC | 7 !!!!!!! 2 files changed, 7 deletions(-), 22 modifications(!) diffstat-1.68/testing/case18R.ref0000644000000000000000000000005611700545540015335 0ustar rootroot foo | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case22.ref0000644000000000000000000000221407623304420015203 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case49k.ref0000644000000000000000000000011714714413542015374 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case22k.ref0000644000000000000000000000221407623304420015356 0ustar rootroot PATCHES | 1 + compose.c | 17 +++++++++++++---- crypt.c | 26 +++++++++++--------------- init.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++------- mutt.h | 4 +++- pgp.c | 5 ++++- pgplib.h | 1 + po/ca.po | 10 +++++----- po/cs.po | 8 ++++---- po/da.po | 8 ++++---- po/de.po | 8 ++++---- po/el.po | 8 ++++---- po/eo.po | 8 ++++---- po/es.po | 9 +++++---- po/et.po | 6 +++--- po/fr.po | 8 ++++---- po/gl.po | 8 ++++---- po/hu.po | 8 ++++---- po/id.po | 8 ++++---- po/it.po | 8 ++++---- po/ja.po | 9 +++++---- po/ko.po | 8 ++++---- po/lt.po | 13 ++++++------- po/nl.po | 8 ++++---- po/pl.po | 8 ++++---- po/pt_BR.po | 12 ++++++------ po/ru.po | 8 ++++---- po/sk.po | 13 ++++++------- po/sv.po | 8 ++++---- po/tr.po | 8 ++++---- po/uk.po | 8 ++++---- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- postpone.c | 7 +++++++ send.c | 16 +++++++++++++++- sendlib.c | 2 ++ 36 files changed, 214 insertions(+), 139 deletions(-) diffstat-1.68/testing/case05p1.ref0000644000000000000000000000006610300164550015442 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case21R.ref0000644000000000000000000000010011700545541015316 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case02p9.ref0000644000000000000000000000037310276756033015467 0ustar rootroot Tekproc.c | 98 +++++++++++---!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! bug-report | 2 ! misc.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++++!!!!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case28k.ref0000644000000000000000000000020411163734344015367 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case08r2.ref0000644000000000000000000000050210277702416015457 0ustar rootroot Imakefile | 15 +++++++++++++++ Tekproc.c | 7 +++++++ charproc.c | 22 ++++++++++++++++++++++ data.c | 4 ++++ main.c | 20 ++++++--!!!!!!!!!!!! menu.c | 6 !!!!!! misc.c | 6 ++++++ scrollbar.c | 2 !! 8 files changed, 60 insertions(+), 2 deletions(-), 20 modifications(!) diffstat-1.68/testing/case04Rp0.ref0000644000000000000000000000337311700545533015577 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 16 ++--!!!! diffstat/config.h | 2 - diffstat/config.log | 76 +++++++++++--------!!!!!!!!!!!!!!!!!! diffstat/config.status | 24 +++---!!!!!! diffstat/diffstat |binary diffstat/diffstat.o |binary diffstat/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 34 insertions(+), 28 deletions(-), 60 modifications(!) diffstat-1.68/testing/case37.pat0000644000000000000000000000300012133114113015201 0ustar rootrootOnly in diffstat-1.57: LOGS Only in diffstat-1.57: bin Only in diffstat-1.57: check.out Files diffstat-1.56+/config.log and diffstat-1.57/config.log differ Files diffstat-1.56+/configure.out and diffstat-1.57/configure.out differ Files diffstat-1.56+/diffstat and diffstat-1.57/diffstat differ Files diffstat-1.56+/diffstat.c and diffstat-1.57/diffstat.c differ Files diffstat-1.56+/diffstat.o and diffstat-1.57/diffstat.o differ Files diffstat-1.56+/makefile and diffstat-1.57/makefile differ Only in diffstat-1.57/testing: case35.pat Only in diffstat-1.57/testing: case35.ref Only in diffstat-1.57/testing: case35R.ref Only in diffstat-1.57/testing: case35Rp0.ref Only in diffstat-1.57/testing: case35b.ref Only in diffstat-1.57/testing: case35f0.ref Only in diffstat-1.57/testing: case35k.ref Only in diffstat-1.57/testing: case35p1.ref Only in diffstat-1.57/testing: case35p9.ref Only in diffstat-1.57/testing: case35r1.ref Only in diffstat-1.57/testing: case35r2.ref Only in diffstat-1.57/testing: case35u.ref Only in diffstat-1.57/testing: case36.pat Only in diffstat-1.57/testing: case36.ref Only in diffstat-1.57/testing: case36R.ref Only in diffstat-1.57/testing: case36Rp0.ref Only in diffstat-1.57/testing: case36b.ref Only in diffstat-1.57/testing: case36f0.ref Only in diffstat-1.57/testing: case36k.ref Only in diffstat-1.57/testing: case36p1.ref Only in diffstat-1.57/testing: case36p9.ref Only in diffstat-1.57/testing: case36r1.ref Only in diffstat-1.57/testing: case36r2.ref Only in diffstat-1.57/testing: case36u.ref diffstat-1.68/testing/case35k.ref0000644000000000000000000000024712133111243015355 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case06Rp0.ref0000644000000000000000000000046111700545534015575 0ustar rootroot NEWS | 2 - ncurses/lib_doupdate.c | 91 +++++++++++-------------------------------------- ncurses/lib_initscr.c | 4 -- ncurses/lib_pad.c | 48 +++++-------------------- test/ncurses.c | 29 --------------- 5 files changed, 32 insertions(+), 142 deletions(-) diffstat-1.68/testing/case31lp1.ref0000644000000000000000000000014011237775205015625 0ustar rootroot /depot/user/ed/newcons/sys/kern/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case44p1.ref0000644000000000000000000000121614320603177015454 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case31R.ref0000644000000000000000000000012111700545544015325 0ustar rootroot usbdevs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diffstat-1.68/testing/case25.pat0000644000000000000000000004404310160405152015216 0ustar rootroot# vile 9.4m - patch 2004/12/15 - Thomas Dickey # ------------------------------------------------------------------------------ # $Header: | 1 # CHANGES | 58 # MANIFEST | 3 # buffer.c | 208 ++- # buglist | 7 # builtflt.c | 68 + # cmdtbl | 15 # configure | 2652 ++++++++++++++++++++--------------------- # configure.in | 16 # display.c | 80 - # doc/filters.doc | 34 # doc/macros.doc | 67 - # edef.h | 5 # estruct.h | 13 # eval.c | 196 ++- # filters/as-filt.l | 6 # filters/asm-filt.l | 8 # filters/au3-filt.l | 8 # filters/bat-filt.l | 6 # filters/c-filt.c | 20 # filters/filterio.c | 33 # filters/filters.c | 3 # filters/filters.h | 7 # filters/filters.rc | 40 # filters/htmlfilt.l | 9 # filters/imakeflt.l | 19 # filters/key-filt.c | 11 # filters/m4-filt.c | 3 # filters/makefilt.l | 19 # filters/pl-filt.c | 24 # filters/pot-filt.l | 5 # filters/ps-filt.l | 5 # filters/rb-filt.l | 3 # filters/rpm-filt.l | 16 # filters/rubyfilt.c | 30 # filters/sccsfilt.l | 5 # filters/sed-filt.c | 3 # filters/sh-filt.l | 16 # filters/spell.rc | 36 # filters/spellflt.l | 8 # filters/sql-filt.l | 9 # filters/tc-filt.l | 12 # filters/tcl-filt.l | 4 # filters/vilefilt.l | 10 # filters/vl-filt.l | 20 # filters/xml-filt.l | 50 # filters/xresfilt.l | 11 # input.c | 4 # macros/gnugpg.rc | 8 # macros/which.rc | 107 + # main.c | 5 # makefile.in | 17 # makefile.wnt | 3 # modes.c | 358 +++-- # modetbl | 22 # ntconio.c | 51 # ntwinio.c | 53 # patchlev.h | 2 # proto.h | 19 # revlist | 129 + # statevar.c | 8 # tbuff.c | 14 # tcap.c | 3 # vile-9.4.spec | 9 # vile-9.4m/macros/showeach.rc | 78 + # vile.hlp | 16 # x11.c | 370 ++--- # 67 files changed, 3017 insertions(+), 2141 deletions(-) # ------------------------------------------------------------------------------ Index: CHANGES --- vile-9.4l+/CHANGES 2004-12-08 01:01:53.000000000 +0000 +++ vile-9.4m/CHANGES 2004-12-15 23:56:47.000000000 +0000 @@ -1,5 +1,63 @@ Changes for vile 9.5 (released ??? ??? ?? ????) + 20041215 (m) + > Tom Dickey: + + modify x11.c, ntconio.c and ntwinio.c to make modifiers work with tab + key, e.g., to add shift-key as a back-tab key. + + add macro show-each-buffer (file showeach.rc), which splits up the + screen into equal chunks to display as many of the non-scratch + buffers as possible. + + modify macro parameter evaluation so it does not attempt to compute + a value for function tokens or goto-labels. Otherwise pathnames such + as "~\foo" look like macro directives and produce an error. + + correct slash/backslash translation (win32, etc) for some of the + built-in functions; the translated result was not actually the return + value: &path and &pcat. + + correct flags in modetbl used to annotate trace of &seq and a few + other operators. + + correct length computed for $bflags variable; an empty string was + returned. + + add a section on command-line options to doc/filters.doc + + add macro which-filter to show which locations would be checked for + an external filter. If the filter happens to be built-in, this is + also noted, in the message line. + + improve 'eval' command, provide for mixture of functions and other + tokens which are passed to the script interpreter. + + modify SpellFilter macro to use the results from [Filter Messages] + with the error-finder to step through the misspellings. + + add macro show-filtermsgs to show syntax filter messages, setting the + list to the error-buffer to provide simple stepping through the + errors which are found. + + add commands popup-buffer and popdown-buffer, which open/close + windows for the given buffer rather than changing the current window + to show a different buffer. The popup-buffer command is a wrapper + for the existing logic used for help and similar commands. The + popdown-buffer command differs from delete-window by closing all + windows for the given buffer. + + remove the pre-9.4e workarounds for set-highlighting and + which-keywords macros. + + modify kdb_reply() to shift the minibuffer left/right as needed after + doing the initial tab of a name-completion, in case that left the + cursor position past the end of the line (report by Paul Fox). + + add new operators to make it simpler for macros to check for + features: &isa, &classof and &mclass. + + modify historical-buffer to allow tab/back-tab to cycle through the + first 9 buffers, solves the problem of seeing more than the first + few possibilities on the message line. Toggling with the repeated + '_' selects the first buffer shown. + + add back-tab to termcap/terminfo driver as a bindable key. + + modify configure script to make builtflt.h part of $(BUILTHDRS) to + simplify "make sources" rule. + + modify htmlfilt.l to match in the middle of a line to + accommodate pages where the script is given by a "src=". + + add filtermsgs mode, for built-in filters to report syntax errors + into [Filter Messages] buffer so that one may use the error finder to + locate these (motivated by a 200,000 line xml file). + + correct state manipulation in xml-filt.l, which was confused by + CDATA pattern. + + correct $CPPFLAGS for linting configurations with built-in filters. + + correct typo in configure script from 9.4k fixes for iconv_open(). + 20041207 (l) > Clark Morgan: + modify special treatment of "#" which prevents it from being shifted Index: MANIFEST --- vile-9.4l+/MANIFEST 2004-12-08 01:48:52.000000000 +0000 +++ vile-9.4m/MANIFEST 2004-12-16 00:53:14.000000000 +0000 @@ -1,4 +1,4 @@ -MANIFEST for vile, version v9_4l +MANIFEST for vile, version v9_4m -------------------------------------------------------------------------------- MANIFEST this file CHANGES Change-log for VILE @@ -332,6 +332,7 @@ macros/pictmode.rc macros to support "picture-mode" editing macros/search.rc find a file in one of several locations macros/shifts.rc macros to shift words left/right +macros/showeach.rc show-each-buffer macros/vile-pager use vile as a pager macros/vileinit.rc sample initialization file macros/vilemenu.rc sample menu for xvile Index: cmdtbl Prereq: 1.230 --- vile-9.4l+/cmdtbl 2004-12-07 01:28:55.000000000 +0000 +++ vile-9.4m/cmdtbl 2004-12-14 20:18:42.000000000 +0000 @@ -97,7 +97,7 @@ # in '!' listed, then the flag does nothing, and should be # viewed simply as documentation. # -# @Header: /usr/build/vile/vile/RCS/cmdtbl,v 1.230 2004/12/07 01:28:55 tom Exp @ +# @Header: /usr/build/vile/vile/RCS/cmdtbl,v 1.233 2004/12/14 20:18:42 tom Exp @ # # @@ -625,7 +625,7 @@ firstbuffer NONE "rewind" "rew!" - + firstnonwhite MOTION|MINIBUF "first-nonwhite" !FEWNAMES '^' @@ -1686,13 +1686,22 @@ edit_buffer NONE "B" "edit-buffer" !FEWNAMES - + +popup_buffer NONE !SMALLER + "popup-buffer" + "open-window" !FEWNAMES + +popdown_buffer NONE !SMALLER + "popdown-buffer" + "close-windows" !FEWNAMES + usekreg REDO "use-register" !FEWNAMES '"' userbeep NONE !SMALLER "beep" + 'FN-b' KEY_BackTab visual NONE "visual" Index: configure.in Prereq: 1.211 --- vile-9.4l+/configure.in 2004-12-04 00:42:49.000000000 +0000 +++ vile-9.4m/configure.in 2004-12-10 22:52:59.000000000 +0000 @@ -1,12 +1,12 @@ dnl Process this file with autoconf to produce a configure script. -AC_REVISION(@Revision: 1.211 @) +AC_REVISION(@Revision: 1.214 @) AC_PREREQ(2.13.20030927) rm -f config.cache ### Use "configure -with-screen" to override the default configuration, which is ### termcap-based on unix systems. -dnl @Header: /usr/build/vile/vile/RCS/configure.in,v 1.211 2004/12/04 00:42:49 tom Exp @ +dnl @Header: /usr/build/vile/vile/RCS/configure.in,v 1.214 2004/12/10 22:52:59 tom Exp @ define(MAKELIST, sh $srcdir/filters/makelist.sh $srcdir/filters/genmake.mak) @@ -52,6 +52,10 @@ CF_LIB_PREFIX ### options to control how much we build +BUILTHDRS="nebind.h neproto.h neexec.h nefunc.h nemode.h nename.h nevars.h nefkeys.h nefsms.h" +BUILTLIBS= +BUILTSRCS= + AC_MSG_CHECKING(if you wish to build only core functions) CF_ARG_DISABLE(extensions, [ --disable-extensions test: build only core functions], @@ -287,6 +291,7 @@ perl_lib_path=`$PERL -MConfig -e 'print $Config{privlib}'` AC_DEFINE(OPT_PERL) EXTRAOBJS="$EXTRAOBJS perl.o" + BUILTSRCS="$BUILTSRCS perl.c" LINK_PREFIX=`$PERL -MConfig -e 'print $Config{shrpenv}'` ac_link="$LINK_PREFIX $ac_link" CF_CHECK_CFLAGS(`$PERL -MExtUtils::Embed -e ccopts`) @@ -672,7 +677,7 @@ [cf_func_iconv="$withval"], [cf_func_iconv=yes]) AC_MSG_RESULT($cf_func_iconv) -if test "$cf_func_iconv" == yes ; then +if test "$cf_func_iconv" = yes ; then AC_DEFINE(OPT_ICONV_FUNCS) test "$cf_cv_func_iconv" != yes && LIBS="$cf_cv_func_iconv $LIBS" fi # test $cf_func_iconv" = yes @@ -834,9 +839,10 @@ if test "$cf_filter_libs" = yes ; then EXTRAOBJS="$EXTRAOBJS builtflt.o" - CFLAGS="-I\$(srcdir)/filters $CFLAGS" + CPPFLAGS="-I\$(srcdir)/filters $CPPFLAGS" FILTER_LIBS="-Lfilters -lvlflt" LIBBUILTFLT="${LIB_PREFIX}vlflt.a" + BUILTHDRS="$BUILTHDRS builtflt.h" BUILTLIBS="$BUILTLIBS filters/$LIBBUILTFLT" AC_DEFINE(OPT_FILTER) else @@ -846,7 +852,9 @@ fi AC_SUBST(EXTRAOBJS) +AC_SUBST(BUILTHDRS) AC_SUBST(BUILTLIBS) +AC_SUBST(BUILTSRCS) AC_SUBST(FILTER_LIBS) AC_SUBST(LIBBUILTFLT) Index: doc/filters.doc Prereq: 1.32 --- vile-9.4l+/doc/filters.doc 2004-11-11 00:47:06.000000000 +0000 +++ vile-9.4m/doc/filters.doc 2004-12-14 00:47:49.000000000 +0000 @@ -33,7 +33,7 @@ [ If $VILE_STARTUP_PATH is not defined, the filter checks the "prefix" directory specified when all filters were compiled - (default path is /usr/local/share/vile/vile.keyords). ] + (default path is /usr/local/share/vile/vile.keywords). ] and then here: @@ -146,6 +146,38 @@ language keywords, if any. +OPTIONS +------- + +A few options are common to all filters: + + -d is recognized when the filters have been compiled with "DEBUG" defined. + This is used in the more complicated filters such as perl and ruby to + show the parsing. + + -k FILE + + -q exits the filter before writing the marked-up output. This happens + after processing the class definitions, so it is useful in combination + with the -v option to simply obtain the class information. + + -t holds the tabstop setting, which can be used in a filter for column + computations. + + -v verbose, turns on extra output which can be used for troubleshooting + configuration problems. + +The C syntax filter recognizes additional options to customize it for Java and +JavaScript: + + -j Extend name- and literal-syntax to include Java. + + -p Disallow preprocessor lines. + + -s for JavaScript (to support jsmode). This controls whether to allow + regular expressions in certain cases. + + PROGRAMS -------- @@ -230,4 +262,4 @@ The lex filters have been well tested only with flex, which treats newlines differently. Older versions of lex may not support the %x states. --- @Header: /usr/build/vile/vile/doc/RCS/filters.doc,v 1.32 2004/11/11 00:47:06 tom Exp @ +-- @Header: /usr/build/vile/vile/doc/RCS/filters.doc,v 1.33 2004/12/14 00:47:49 tom Exp @ Index: doc/macros.doc Prereq: 1.93 --- vile-9.4l+/doc/macros.doc 2004-10-20 22:47:38.000000000 +0000 +++ vile-9.4m/doc/macros.doc 2004-12-12 20:29:24.000000000 +0000 @@ -774,7 +774,7 @@ &mod "N1" "N2" Divide the "N1" by "N2", return remainder. &negate "N" Return -(N). &ascii "S" Return the ASCII code of the first - character in "S" + character in "S" &random "N" &rnd "N" Random number between 1 and N &abs "N" Absolute value of "N" @@ -791,12 +791,12 @@ The rest return strings: &bind "S" Return the function name bound to the - key sequence "S". + key sequence "S". &cat "S1" "S2" Concatenate S1 and string "S". &chr "N" Converts numeric "N" to an ASCII character. &cclass "S" Character class (see "show-printable") &env "S" Return the value of the user's environment - variable named "S". + variable named "S". >key Get a single raw keystroke from the user. >sequence Get a complete vile key sequence from user. &left "S" "N" Extract first "N" characters from "S" @@ -805,8 +805,8 @@ &middle "S" "N1" "N2" Extract "N2" chars at position "N1". &upper "S" Return uppercase version of "S". &trim "S" Remove whitespace at either end of "S", - reduce multiple spaces within "S" - to just one space each. + reduce multiple spaces within "S" + to just one space each. Boolean/logical functions -- @@ -820,6 +820,9 @@ &geq "N1" "N2" Is "N1" numerically not less than "N2"? &greater "N1" "N2" Is "N1" numerically greater than "N2"? > "N1" "N2" (same as &greater) + &isa "C" "N" Is "N" a member of class "C". Classes + include: buffer, color, mode, submode, + Majormode. &leq "N1" "N2" Is "N1" numerically not greater than "N2"? &lessthan "N1" "N2" Is "N1" numerically less than "N2"? < "N1" "N2" (same as &lessthan) @@ -860,19 +863,26 @@ These all return string values: + &classof "N" Retrieves the class(es) to which the given + name may return. Usually this is a single + name, e.g., one of those checked by &isa. + If multiple matches are found, the result + contains each classname separated by a + space. + &default "MODENAME" Retrieves initial/default value for the - given mode or state variable. + given mode or state variable. &global "MODENAME" Retrieves universal/global mode setting. - &indirect "S" Evaluate value of "S" as a - macro language variable itself. - Thus if %foo has value "HOME", - then &env &indirect %foo will - return the home directory pathname. + &indirect "S" Evaluate value of "S" as a macro language + variable itself. Thus if %foo has value + "HOME", then + &env &indirect %foo + will return the home directory pathname. &local "MODENAME" Retrieves local mode setting (for - current buffer). + current buffer). &lookup "N" "P" The "N" keyword tells which field to use looking for the file "P": @@ -890,25 +900,31 @@ bin, startup, path, libdir. Note that the directory lists may overlap. + &mclass "M" Retrieve the class to which the given + mode belongs. This is different from + &mclass since it distinguishes the modes + Return values include: universal buffer + window submode Majormode. + &qpasswd "S" Present "S" to the user and return their - response. Each typed character is - echoed as '*'. The response is not - recallable via the editor's history - mechanism. + response. Each typed character is + echoed as '*'. The response is not + recallable via the editor's history + mechanism. &query "S" Present "S" to the user, and return - their typed response. + their typed response. &date "F" "T" If strftime() is found, format the time "T" - using the "F" format. Otherwise, use - ctime() to format the time. Times are - numbers (see &ftime and &stime). + using the "F" format. Otherwise, use + ctime() to format the time. Times are + numbers (see &ftime and &stime). &dquery "S" "D" Present "S" to the user, and return - their typed response. If "D" is given, - use that as the default response. - Otherwise use the previous response - as the default. + their typed response. If "D" is given, + use that as the default response. + Otherwise use the previous response + as the default. &path "N" "P" The "N" keyword tells which field to extract from the pathname "P": @@ -1056,7 +1072,6 @@ The ~break directive allows early termination of an enclosing while-loop. Extending the above example: - ; count the occurrences of a pattern in all buffers set nowrapscan set noautobuffer @@ -1465,6 +1480,6 @@ ========================= end vile.rc ======================= ----------------------------------- - @Header: /usr/build/vile/vile/doc/RCS/macros.doc,v 1.93 2004/10/20 22:47:38 tom Exp @ + @Header: /usr/build/vile/vile/doc/RCS/macros.doc,v 1.94 2004/12/12 20:29:24 tom Exp @ ----------------------------------- diffstat-1.68/testing/case33R.ref0000644000000000000000000000011111700545545015327 0ustar rootroot README.new | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case20b.ref0000644000000000000000000000017210667374025015356 0ustar rootroot README | 22 +++++++!!!!!!!!!!!!!!! README.PC | 7 !!!!!!! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case22Rp0.ref0000644000000000000000000000341011700545541015566 0ustar rootroot pgp-menu-traditional/PATCHES | 1 pgp-menu-traditional/compose.c | 17 ++---------- pgp-menu-traditional/crypt.c | 26 ++++++++++-------- pgp-menu-traditional/init.h | 54 +++++---------------------------------- pgp-menu-traditional/mutt.h | 4 -- pgp-menu-traditional/pgp.c | 5 --- pgp-menu-traditional/pgplib.h | 1 pgp-menu-traditional/po/ca.po | 10 +++---- pgp-menu-traditional/po/cs.po | 8 ++--- pgp-menu-traditional/po/da.po | 8 ++--- pgp-menu-traditional/po/de.po | 8 ++--- pgp-menu-traditional/po/el.po | 8 ++--- pgp-menu-traditional/po/eo.po | 8 ++--- pgp-menu-traditional/po/es.po | 9 ++---- pgp-menu-traditional/po/et.po | 6 ++-- pgp-menu-traditional/po/fr.po | 8 ++--- pgp-menu-traditional/po/gl.po | 8 ++--- pgp-menu-traditional/po/hu.po | 8 ++--- pgp-menu-traditional/po/id.po | 8 ++--- pgp-menu-traditional/po/it.po | 8 ++--- pgp-menu-traditional/po/ja.po | 9 ++---- pgp-menu-traditional/po/ko.po | 8 ++--- pgp-menu-traditional/po/lt.po | 13 +++++---- pgp-menu-traditional/po/nl.po | 8 ++--- pgp-menu-traditional/po/pl.po | 8 ++--- pgp-menu-traditional/po/pt_BR.po | 12 ++++---- pgp-menu-traditional/po/ru.po | 8 ++--- pgp-menu-traditional/po/sk.po | 13 +++++---- pgp-menu-traditional/po/sv.po | 8 ++--- pgp-menu-traditional/po/tr.po | 8 ++--- pgp-menu-traditional/po/uk.po | 8 ++--- pgp-menu-traditional/po/zh_CN.po | 6 ++-- pgp-menu-traditional/po/zh_TW.po | 6 ++-- pgp-menu-traditional/postpone.c | 7 ----- pgp-menu-traditional/send.c | 16 ----------- pgp-menu-traditional/sendlib.c | 2 - 36 files changed, 139 insertions(+), 214 deletions(-) diffstat-1.68/testing/case31uu.ref0000644000000000000000000000012111240121111015530 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case40Rp0.ref0000644000000000000000000000016413777412633015604 0ustar rootroot a/diffstat |binary a/diffstat.c | 2 +- a/diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case45Rp0.ref0000644000000000000000000000163714320603177015605 0ustar rootroot --unified=2 | 4 ++-- ncurses-6.3-20221001/NEWS | 9 +-------- ncurses-6.3-20221001/VERSION | 2 +- ncurses-6.3-20221001/configure.in | 6 +++--- ncurses-6.3-20221001/dist.mk | 4 ++-- ncurses-6.3-20221001/misc/gen-pkgconfig.in | 8 ++------ ncurses-6.3-20221001/package/debian-mingw/changelog | 4 ++-- ncurses-6.3-20221001/package/debian-mingw64/changelog | 4 ++-- ncurses-6.3-20221001/package/debian/changelog | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.nsi | 4 ++-- ncurses-6.3-20221001/package/mingw-ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncurses.spec | 2 +- ncurses-6.3-20221001/package/ncursest.spec | 2 +- 13 files changed, 22 insertions(+), 33 deletions(-) diffstat-1.68/testing/case31lu.ref0000644000000000000000000000010011237775205015545 0ustar rootroot tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case42f0.ref0000644000000000000000000000051014320561540015430 0ustar rootroot testing/case42.pat |only testing/full1.log |only testing/full1.txt |only testing/short.log |only testing/short.txt |only testing/short1.log |only testing/short1.txt |only testing2/case39k.ref | 1 1 + 0 - 0 ! testing2/full.log |only testing2/full.txt |only 10 files changed, 1 insertion(+) diffstat-1.68/testing/case06.pat0000644000000000000000000002355106076060115015225 0ustar rootrootFrom esr@locke.ccil.org Sat Jan 13 18:02 EST 1996 Received: from locke.ccil.org (esr@locke.ccil.org [205.164.136.88]) by mail.Clark.Net (8.7.3/8.6.5) with SMTP id SAA07403 for ; Sat, 13 Jan 1996 18:02:54 -0500 (EST) Received: (esr@localhost) by locke.ccil.org (8.6.9/8.6.10) id SAA23481; Sat, 13 Jan 1996 18:28:57 -0500 From: "Eric S. Raymond" Message-Id: <199601132328.SAA23481@locke.ccil.org> Subject: patch #283 -- change line-breakout optimization logic To: zmbenhal@netcom.com, dickey@clark.net, ncurses-list@netcom.com Date: Sat, 13 Jan 1996 18:28:56 -0500 (EST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 9395 Status: RO This patch (#283) changes the logic for line-breakout optimization. Daniel Barlow complained: >According to curs_inopts(3), curses periodically looks at the keyboard >while refreshing, and stops immediately if there is input pending. > >This works too well! I was playing with emacs to see if it would like >to use real ncurses routines to output to the screen instead of just >using it as a glorified termcap library, and found that if I held down >the `page down' key (which autorepeats), nothing displayed at all >until I let go of it again. This patch addresses the problem. See the comment leading the lib_doupdate.c patch band for details. This patch also makes a minor change in lib_initscr() to allow the maximum escape delay to be set from the environment. Finally, it includes a workaround for the ncurses 'p' test bug. A real fix is next on my agenda. Diffs between last version checked in and current workfile(s): --- NEWS 1996/01/11 19:47:02 1.3 +++ NEWS 1996/01/12 17:10:09 @@ -6,6 +6,8 @@ * fixed broken wsyncup()/wysncdown(), as a result wnoutrefresh() now has copy-changed-lines behavior. * added and documented wresize() code. +* changed the line-breakout optimization code to allow some lines to be + emitted before the first check. ### ncurses-1.9.7 -> 1.9.8a --- ncurses/lib_doupdate.c 1996/01/12 16:09:44 1.6 +++ ncurses/lib_doupdate.c 1996/01/12 16:50:21 @@ -43,6 +43,17 @@ #include "term.h" /* + * This define controls the line-breakout optimization. Every once in a + * while during screen refresh, we want to check for input and abort the + * update if there's some waiting. CHECK_INTERVAL controls the number of + * changed lines to be emitted between input checks. + * + * Note: Input-check-and-abort is no longer done if the screen is being + * updated from scratch. This is a feature, not a bug. + */ +#define CHECK_INTERVAL 6 + +/* * Enable checking to see if doupdate and friends are tracking the true * cursor position correctly. NOTE: this is a debugging hack which will * work ONLY on ANSI-compatible terminals! @@ -146,6 +157,26 @@ } } +static bool check_pending(void) +/* check for pending input */ +{ + if (SP->_checkfd >= 0) { + fd_set fdset; + struct timeval ktimeout; + + ktimeout.tv_sec = + ktimeout.tv_usec = 0; + + FD_ZERO(&fdset); + FD_SET(SP->_checkfd, &fdset); + if (select(SP->_checkfd+1, &fdset, NULL, NULL, &ktimeout) != 0) + { + fflush(SP->_ofp); + return OK; + } + } +} + /* * No one supports recursive inline functions. However, gcc is quieter if we * instantiate the recursive part separately. @@ -278,22 +309,6 @@ SP->_endwin = FALSE; } - /* check for pending input */ - if (SP->_checkfd >= 0) { - fd_set fdset; - struct timeval ktimeout; - - ktimeout.tv_sec = - ktimeout.tv_usec = 0; - - FD_ZERO(&fdset); - FD_SET(SP->_checkfd, &fdset); - if (select(SP->_checkfd+1, &fdset, NULL, NULL, &ktimeout) != 0) { - fflush(SP->_ofp); - return OK; - } - } - /* * FIXME: Full support for magic-cookie terminals could go in here. * The theory: we scan the virtual screen looking for attribute @@ -315,10 +330,15 @@ ClrUpdate(newscr); newscr->_clear = FALSE; } else { + int changedlines; + _nc_scroll_optimize(); T(("Transforming lines")); - for (i = 0; i < min(screen_lines, newscr->_maxy + 1); i++) { + for (i = changedlines = 0; + i < min(screen_lines,newscr->_maxy+1); + i++) + { /* * newscr->line[i].firstchar is normally set * by wnoutrefresh. curscr->line[i].firstchar @@ -327,17 +347,43 @@ */ if (newscr->_line[i].firstchar != _NOCHANGE || curscr->_line[i].firstchar != _NOCHANGE) + { TransformLine(i); + changedlines++; + } + + /* mark line changed successfully */ + if (i <= newscr->_maxy) + { + newscr->_line[i].firstchar = _NOCHANGE; + newscr->_line[i].lastchar = _NOCHANGE; + newscr->_line[i].oldindex = i; + } + if (i <= curscr->_maxy) + { + curscr->_line[i].firstchar = _NOCHANGE; + curscr->_line[i].lastchar = _NOCHANGE; + curscr->_line[i].oldindex = i; + } + + /* + * Here is our line-breakout optimization. + */ + if ((changedlines % CHECK_INTERVAL) == changedlines-1 && check_pending()) + goto cleanup; } } } - T(("marking screen as updated")); - for (i = 0; i <= newscr->_maxy; i++) { + + /* this code won't be executed often */ + for (i = screen_lines; i <= newscr->_maxy; i++) + { newscr->_line[i].firstchar = _NOCHANGE; newscr->_line[i].lastchar = _NOCHANGE; newscr->_line[i].oldindex = i; } - for (i = 0; i <= curscr->_maxy; i++) { + for (i = screen_lines; i <= curscr->_maxy; i++) + { curscr->_line[i].firstchar = _NOCHANGE; curscr->_line[i].lastchar = _NOCHANGE; curscr->_line[i].oldindex = i; @@ -346,10 +392,11 @@ curscr->_curx = newscr->_curx; curscr->_cury = newscr->_cury; + GoTo(curscr->_cury, curscr->_curx); + + cleanup: if (curscr->_attrs != A_NORMAL) vidattr(curscr->_attrs = A_NORMAL); - - GoTo(curscr->_cury, curscr->_curx); fflush(SP->_ofp); --- ncurses/lib_initscr.c 1996/01/12 20:11:34 1.1 +++ ncurses/lib_initscr.c 1996/01/12 20:17:54 @@ -41,6 +41,10 @@ exit(1); } + /* allow user to set maximum escape delay from the environment */ + if ((name = getenv("ESCDELAY"))) + ESCDELAY = atoi(getenv("ESCDELAY")); + def_shell_mode(); /* follow the XPG4 requirement to turn echo off at this point */ --- ncurses/lib_pad.c 1995/12/29 15:34:11 1.2 +++ ncurses/lib_pad.c 1996/01/13 17:56:24 @@ -107,6 +107,7 @@ short m, n; short pmaxrow; short pmaxcol; +bool wide; T(("pnoutrefresh(%p, %d, %d, %d, %d, %d, %d) called", win, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)); @@ -140,20 +141,46 @@ T(("pad being refreshed")); + /* + * For pure efficiency, we'd want to transfer scrolling information + * from the pad to newscr whenever the window is wide enough that + * its update will dominate the cost of the update for the horizontal + * band of newscr that it occupies. Unfortunately, this threshold + * tends to be complex to estimate, and in any case scrolling the + * whole band and rewriting the parts outside win's image would look + * really ugly. So. What we do is consider the pad "wide" if it + * either (a) occupies the whole width of newscr, or (b) occupies + * all but at most one column on either vertical edge of the screen + * (this caters to fussy people who put boxes around full-screen + * windows). Note that changing this formula will not break any code, + * merely change the costs of various update cases. + */ + wide = (sminrow <= 1 && win->_maxx >= (newscr->_maxx - 1)); + for (i = pminrow, m = sminrow; i <= pmaxrow; i++, m++) { + register struct ldat *nline = &newscr->_line[m]; + register struct ldat *oline = &win->_line[i]; + for (j = pmincol, n = smincol; j <= pmaxcol; j++, n++) { - if (win->_line[i].text[j] != newscr->_line[m].text[n]) { - newscr->_line[m].text[n] = win->_line[i].text[j]; + if (oline->text[j] != nline->text[n]) { + nline->text[n] = oline->text[j]; + + if (nline->firstchar == _NOCHANGE) + nline->firstchar = nline->lastchar = n; + else if (n < nline->firstchar) + nline->firstchar = n; + else if (n > nline->lastchar) + nline->lastchar = n; + } + } + + if (wide) { + int oind = oline->oldindex; - if (newscr->_line[m].firstchar == _NOCHANGE) - newscr->_line[m].firstchar = newscr->_line[m].lastchar = n; - else if (n < newscr->_line[m].firstchar) - newscr->_line[m].firstchar = n; - else if (n > newscr->_line[m].lastchar) - newscr->_line[m].lastchar = n; - } + nline->oldindex = (oind == _NEWINDEX) ? _NEWINDEX : sminrow + oind; } - win->_line[i].firstchar = win->_line[i].lastchar = _NOCHANGE; + oline->firstchar = oline->lastchar = _NOCHANGE; + oline->oldindex = i; } win->_begx = smincol; @@ -176,6 +203,7 @@ newscr->_cury = win->_cury - pminrow + win->_begy; newscr->_curx = win->_curx - pmincol + win->_begx; } + win->_flags &= ~_HASMOVED; return OK; } --- test/ncurses.c 1996/01/11 19:49:39 1.4 +++ test/ncurses.c 1996/01/13 23:00:26 @@ -1368,6 +1368,35 @@ } mvaddch(porty - 1, portx - 1, ACS_LRCORNER); + + /* + * FIXME: this touchwin should not be necessary! + * There is something not quite right with the pad code + * Thomas Dickey writes: + * + * In the ncurses 'p' test, if I (now) press '<', '>', '<', then the + * right boundary of the box that outlines the pad is blanked. That's + * because + * + * + the value that marks the right boundary (porty) is incremented, + * + * + a new vertical line is written to stdscr + * + * + stdscr is flushed with wnoutrefresh, clearing its firstchar & + * lastchar markers. This writes the change (the new vertical line) + * to newscr. + * + * => previously stdscr was written to newscr entirely + * + * + the pad is written using prefresh, which writes directly to + * newscr, bypassing stdscr entirely. + * + * When I've pressed '>' (see above), this means that stdscr contains + * two columns of ACS_VLINE characters. The left one (column 79) is + * shadowed by the pad that's written to newscr. + */ + touchwin(stdscr); + wnoutrefresh(stdscr); prefresh(pad, End of diffs. diffstat-1.68/testing/case42.pat0000644000000000000000000000105614320556551015226 0ustar rootrootdiff -ur testing/case39k.ref testing2/case39k.ref --- testing/case39k.ref 2021-01-12 18:52:54.000000000 -0500 +++ testing2/case39k.ref 2022-10-09 08:55:13.555920276 -0400 @@ -1,4 +1,5 @@ diffstat |binary + diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) Only in testing/: case42.pat Only in testing/: full1.log Only in testing/: full1.txt Only in testing2/: full.log Only in testing2/: full.txt Only in testing/: short1.log Only in testing/: short1.txt Only in testing/: short.log Only in testing/: short.txt diffstat-1.68/testing/case37r1.ref0000644000000000000000000000173312133114345015456 0ustar rootroot LOGS |only bin |only check.out |only config.log |differ configure.out |differ diffstat |differ diffstat.c |differ diffstat.o |differ makefile |differ testing/case35.pat |only testing/case35.ref |only testing/case35R.ref |only testing/case35Rp0.ref |only testing/case35b.ref |only testing/case35f0.ref |only testing/case35k.ref |only testing/case35p1.ref |only testing/case35p9.ref |only testing/case35r1.ref |only testing/case35r2.ref |only testing/case35u.ref |only testing/case36.pat |only testing/case36.ref |only testing/case36R.ref |only testing/case36Rp0.ref |only testing/case36b.ref |only testing/case36f0.ref |only testing/case36k.ref |only testing/case36p1.ref |only testing/case36p9.ref |only testing/case36r1.ref |only testing/case36r2.ref |only testing/case36u.ref |only 33 files changed diffstat-1.68/testing/case27p1.ref0000644000000000000000000000065510664325751015471 0ustar rootroot Documentation/parport-lowlevel.txt | 29 +++-------------------------- Makefile | 4 ++++ drivers/cpuidle/governors/menu.c | 2 +- drivers/parport/daisy.c | 29 ----------------------------- fs/select.c | 2 +- include/linux/parport.h | 1 - scripts/export_report.pl | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case03R.ref0000644000000000000000000000035411700545533015332 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 1 ! diffstat/config.h | 1 - diffstat/diffstat |binary diffstat/diffstat.o |binary 5 files changed, 1 deletion(-), 1 modification(!) diffstat-1.68/testing/case35Rp0.ref0000644000000000000000000000035412133111243015563 0ustar rootroot diffstat.orig/configure.out |only diffstat/config.cache | 1 ! diffstat/config.h | 1 - diffstat/diffstat |binary diffstat/diffstat.o |binary 5 files changed, 1 deletion(-), 1 modification(!) diffstat-1.68/testing/case06p1.ref0000644000000000000000000000043107073762771015465 0ustar rootroot NEWS | 2 + lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++++++++-------------- lib_initscr.c | 4 ++ lib_pad.c | 48 +++++++++++++++++++++++------- ncurses.c | 29 ++++++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case29.ref0000644000000000000000000000020411163734345015216 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case45.ref0000644000000000000000000000121614320603177015214 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case29p9.ref0000644000000000000000000000020411163734345015467 0ustar rootroot case29.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case21k.ref0000644000000000000000000000010010300164553015342 0ustar rootroot diffstat.c | 8 !!!!!!!! 1 file changed, 8 modifications(!) diffstat-1.68/testing/case27.ref0000644000000000000000000000067310664325751015230 0ustar rootroot Makefile | 4 ++++ b/Documentation/parport-lowlevel.txt | 29 +++-------------------------- b/drivers/cpuidle/governors/menu.c | 2 +- b/drivers/parport/daisy.c | 29 ----------------------------- b/fs/select.c | 2 +- b/include/linux/parport.h | 1 - scripts/export_report.pl | 2 +- 7 files changed, 10 insertions(+), 59 deletions(-) diffstat-1.68/testing/case07p1.ref0000644000000000000000000000027607073762771015475 0ustar rootroot man/resizeterm.3x | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ man/wresize.3x | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diffstat-1.68/testing/case31r2.ref0000644000000000000000000000012111240121163015431 0ustar rootroot usbdevs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diffstat-1.68/testing/case33k.ref0000644000000000000000000000010511246713507015363 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case35.pat0000644000000000000000000000213612133111006015206 0ustar rootrootdiff -r -c diffstat/config.cache diffstat.orig/config.cache *** 1.1 Fri Mar 15 19:27:13 1996 --- diffstat.orig/config.cache Fri Mar 15 19:51:02 1996 *************** *** 13,28 **** # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ! ac_cv_c_cross=${ac_cv_c_cross='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} --- 13,28 ---- # --recheck option to rerun configure. # ac_cv_c_const=${ac_cv_c_const='yes'} ac_cv_header_getopt_h=${ac_cv_header_getopt_h='yes'} ac_cv_header_malloc_h=${ac_cv_header_malloc_h='yes'} diff -r -c diffstat/config.h diffstat.orig/config.h *** diffstat/config.h Fri Mar 15 19:27:15 1996 --- diffstat.orig/config.h Fri Mar 15 19:51:04 1996 *************** *** 6,11 **** --- 6,12 ---- */ + #define STDC_HEADERS 1 #define HAVE_STDLIB_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETOPT_H 1 Only in diffstat.orig: configure.out Files diffstat/diffstat and diffstat.orig/diffstat differ < nothing > nothing again Files diffstat/diffstat.o and diffstat.orig/diffstat.o differ diffstat-1.68/testing/case28r2.ref0000644000000000000000000000020311163734345015460 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case41p9.ref0000644000000000000000000000013413777421437015473 0ustar rootroot hello.c | 9 ++++++++- hello.o |binary 2 files changed, 8 insertions(+), 1 deletion(-) diffstat-1.68/testing/case03b.ref0000644000000000000000000000017110667374021015352 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only 3 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/run_test.sh0000755000000000000000000000213211700552746015636 0ustar rootroot#!/bin/sh # $Id: run_test.sh,v 1.15 2012/01/03 10:18:14 tom Exp $ # Test-script for DIFFSTAT # change this for ad hoc testing of compression #TYPE=.pat.Z #TYPE=.pat.gz #TYPE=.pat.bz2 TYPE=.pat if [ $# = 0 ] then eval '"$0" *${TYPE}' exit fi PATH=`cd ..;pwd`:$PATH; export PATH # Sanity check, remembering that not every system has `which'. (which diffstat) >/dev/null 2>/dev/null && echo "Checking `which diffstat`" for item in $* do echo "testing `basename $item $TYPE`" for OPTS in "" "-p1" "-p9" "-f0" "-u" "-k" "-r1" "-r2" "-b" "-R" "-Rp0" do NAME=`echo $item | sed -e 's/'$TYPE'$//'` DATA=${NAME}${TYPE} if [ ".$OPTS" != "." ] ; then NAME=$NAME`echo ./$OPTS|sed -e 's@./-@@'` fi TEST=`basename $NAME` diffstat -e $TEST.err -o $TEST.out $OPTS $DATA if [ -f $NAME.ref ] then diff -b $NAME.ref $TEST.out >check.out if test -s check.out then echo "?? fail: $TEST" ls -l check.out cat check.out else echo "** ok: $TEST" rm -f $TEST.out rm -f $TEST.err fi else echo "** save: $TEST" mv $TEST.out $NAME.ref rm -f $TEST.err fi done done diffstat-1.68/testing/case09f0.ref0000644000000000000000000000002107530543242015434 0ustar rootroot 0 files changed diffstat-1.68/testing/case32u.ref0000644000000000000000000000010511246713507015374 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case06b.ref0000644000000000000000000000046110667374022015360 0ustar rootroot NEWS | 2 + ncurses/lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++------------ ncurses/lib_initscr.c | 4 ++ ncurses/lib_pad.c | 48 ++++++++++++++++++++----- test/ncurses.c | 29 +++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case05R.ref0000644000000000000000000000006711700545534015336 0ustar rootroot config.cache | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case34r1.ref0000644000000000000000000000014411762443774015470 0ustar rootroot quux bar baz | 2 +- quux bar baz2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case36.ref0000644000000000000000000000337312133111320015202 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++------------!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case47Rp0.ref0000644000000000000000000000063414377643724015621 0ustar rootroot a/headers.sh | 57 ++--------------------------- a/install.sh | 11 ++--- a/package/debian/cdialog.links | 9 ++-- a/package/debian/cdialog.lintian-overrides | 2 - a/po/Makefile.inn | 14 +++---- a/samples/inputbox6 | 4 -- 6 files changed, 23 insertions(+), 74 deletions(-) diffstat-1.68/testing/case43k.ref0000644000000000000000000000121614320603177015365 0ustar rootroot NEWS | 9 ++++++++- VERSION | 2 +- configure | 4 ++-- configure.in | 6 +++--- dist.mk | 4 ++-- misc/gen-pkgconfig.in | 8 ++++++-- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 2 +- package/ncurses.spec | 2 +- package/ncursest.spec | 2 +- 13 files changed, 33 insertions(+), 22 deletions(-) diffstat-1.68/testing/case16p1.ref0000644000000000000000000000205107605676572015472 0ustar rootroot Makefile.in | 61 ++++---- README | 5 aclocal.m4 | 7 config.h.in | 6 configure | 386 +++++++++++++++++++++++++++++++++------------------ curses.h | 37 +++- curspriv.h | 12 - demos/testcurs.c | 9 - doc/intro.man | 27 ++- doc/x11.man | 100 +++++++++---- dos/pdckbd.c | 28 +++ install-sh | 26 ++- os2/gccos2.mak | 14 - os2/pdckbd.c | 28 +++ os2/pdcurses.def | 8 - pdcurses/Makefile.in | 120 ++++++++++----- pdcurses/border.c | 168 +++++++++++++++++++++- pdcurses/color.c | 26 +++ pdcurses/getch.c | 12 + pdcurses/initscr.c | 6 pdcurses/util.c | 6 win32/curses.def | 3 win32/pdckbd.c | 10 - x11/README | 15 + x11/ScrollBox.c | 32 ++-- x11/pdcdisp.c | 4 x11/pdckbd.c | 4 x11/pdcscrn.c | 3 x11/pdcsetsc.c | 11 - 29 files changed, 847 insertions(+), 327 deletions(-) diffstat-1.68/testing/case36r1.ref0000644000000000000000000000337312133111243015451 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++-----------!!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 ! diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case04f0.ref0000644000000000000000000000340007530543241015432 0ustar rootroot diffstat.orig/config.cache | 16 4 + 4 - 8 ! diffstat.orig/config.h | 2 2 + 0 - 0 ! diffstat.orig/config.log | 76 15 + 23 - 38 ! diffstat.orig/config.status | 24 6 + 6 - 12 ! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 1 + 1 - 2 ! diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case29f0.ref0000644000000000000000000000012511163734345015446 0ustar rootroot case29.pat | 70 35 + 35 - 0 ! 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case32b.ref0000644000000000000000000000010511246713507015351 0ustar rootroot README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diffstat-1.68/testing/case17f0.ref0000644000000000000000000000024607530543243015445 0ustar rootroot include/linux/sched.h | 11 11 + 0 - 0 ! kernel/sched.c | 47 47 + 0 - 0 ! kernel/user.c | 2 2 + 0 - 0 ! 3 files changed, 60 insertions(+) diffstat-1.68/testing/case03u.ref0000644000000000000000000000024707530534454015404 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case07f0.ref0000644000000000000000000000015407530543242015441 0ustar rootroot resizeterm.3x | 53 53 + 0 - 0 ! wresize.3x | 47 47 + 0 - 0 ! 2 files changed, 100 insertions(+) diffstat-1.68/testing/case39f0.ref0000644000000000000000000000017013777406456015463 0ustar rootroot diffstat |binary diffstat.c | 2 1 + 1 - 0 ! diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case04b.ref0000644000000000000000000000324510667374021015360 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++------------!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/makefile | 4 - diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 38 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case20f0.ref0000644000000000000000000000016607605627533015450 0ustar rootroot README | 22 7 + 0 - 15 ! README.PC | 7 0 + 0 - 7 ! 2 files changed, 7 insertions(+), 22 modifications(!) diffstat-1.68/testing/case38lf0.ref0000644000000000000000000000037412546615551015633 0ustar rootroot READ ME! | 5 5 + 0 - 0 ! README ? | 5 0 + 5 - 0 ! run atac.sh | 6 6 + 0 - 0 ! run test.sh | 51 51 + 0 - 0 ! run_atac.sh | 6 0 + 6 - 0 ! run_test.sh | 51 0 + 51 - 0 ! 6 files changed, 62 insertions(+), 62 deletions(-) diffstat-1.68/testing/case12r1.ref0000644000000000000000000000022210277702416015450 0ustar rootroot main.c | 11 +++++++++-- resize.c | 47 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 10 deletions(-) diffstat-1.68/testing/case05f0.ref0000644000000000000000000000010110300164550015415 0ustar rootroot config.cache | 1 0 + 1 - 0 ! 1 file changed, 1 deletion(-) diffstat-1.68/testing/case35u.ref0000644000000000000000000000024712133111320015363 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case19.pat0000644000000000000000000000112307605623647015236 0ustar rootroot--- data.old Sat Jan 4 13:26:04 2003 +++ data.new Sat Jan 4 13:27:20 2003 @@ -1,5 +1,8 @@ -Readme file for DiffStat. - --This program is a simple filter that reads the output of the 'diff' program, --- and produces a histogram of the total number of lines that were changed. It is -useful for scanning a patch file to see which files were changed. +-This program is +- a simple filter that reads the output of the 'diff' program, +++ and produces a histogram +- of the total number of lines that were changed. It is +++ useful ++ for scanning a patch file to see which files were changed. diffstat-1.68/testing/case11p9.ref0000644000000000000000000000006410300164551015446 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case15.ref0000644000000000000000000000117307073762773015232 0ustar rootroot build/Makefile.in | 38 ++++++++++----------- build/recover | 49 ++++++++++++++++++++++++++++ debian/README.debian | 14 ++++++++ debian/changelog | 53 ++++++++++++++++++++++++++++++ debian/conffiles | 1 debian/control | 19 ++++++++++ debian/copyright | 40 ++++++++++++++++++++++ debian/postinst | 21 ++++++++++++ debian/prerm | 11 ++++++ debian/rc.boot | 58 +++++++++++++++++++++++++++++++++ debian/rules | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/substvars | 1 12 files changed, 375 insertions(+), 19 deletions(-) diffstat-1.68/testing/case28b.ref0000644000000000000000000000020411163734345015357 0ustar rootroot case28.pat | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diffstat-1.68/testing/case17p1.ref0000644000000000000000000000027407524717237015472 0ustar rootroot include/linux/sched.h | 11 +++++++++++ kernel/sched.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ kernel/user.c | 2 ++ 3 files changed, 60 insertions(+) diffstat-1.68/testing/case39r1.ref0000644000000000000000000000015613777406456015504 0ustar rootroot diffstat |binary diffstat.c | 2 +- diffstat.o |binary 3 files changed, 1 insertion(+), 1 deletion(-) diffstat-1.68/testing/case14p9.ref0000644000000000000000000000006410300164552015452 0ustar rootroot ncurses.c | 1 + 1 file changed, 1 insertion(+) diffstat-1.68/testing/case35r2.ref0000644000000000000000000000024712133111320015442 0ustar rootroot config.cache | 1 ! config.h | 1 + configure.out |only diffstat |binary diffstat.o |binary 5 files changed, 1 insertion(+), 1 modification(!) diffstat-1.68/testing/case23u.ref0000644000000000000000000000023407753454053015405 0ustar rootroot README | 1 gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case47.ref0000644000000000000000000000062214377643723015233 0ustar rootroot headers-sh.in | 57 ++++++++++++++++++++++++++++--- package/debian/cdialog-dev.install | 11 +++-- package/debian/cdialog.install | 9 ++-- package/debian/cdialog.lintian-overrides | 2 - po/makefile.inn | 14 +++---- samples/inputbox6-utf8 | 4 +- 6 files changed, 74 insertions(+), 23 deletions(-) diffstat-1.68/testing/case08.pat0000644000000000000000000002143506122640427015230 0ustar rootrootIndex: Imakefile *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/Imakefile Fri Jan 26 11:43:22 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/Imakefile Sun Jan 28 20:45:35 1996 *************** *** 10,15 **** --- 10,30 ---- XCOMM /* + * Fixes to allow compile with X11R5 + */ + #ifndef XkbClientDefines + #define XkbClientDefines /**/ + #endif + + #ifndef XkbClientDepLibs + #define XkbClientDepLibs /**/ + #endif + + #ifndef XkbClientLibs + #define XkbClientLibs /**/ + #endif + + /* * add -DWTMP and -DLASTLOG if you want them; make sure that bcopy can * handle overlapping copies before using it. */ Index: Tekproc.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/Tekproc.c Tue Jan 16 15:43:01 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/Tekproc.c Sun Jan 28 20:45:35 1996 *************** *** 64,70 **** --- 64,77 ---- #include #include #include + + #if XtSpecificationRelease >= 6 #include + #else + #define Select(n,r,w,e,t) select(0,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval *)t) + #define XFD_COPYSET(src,dst) bcopy((src)->fds_bits, (dst)->fds_bits, sizeof(fd_set)) + #endif + #include #include #include Index: charproc.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/charproc.c Fri Jan 26 11:43:22 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/charproc.c Sun Jan 28 20:45:35 1996 *************** *** 63,70 **** --- 63,77 ---- #include #include #include + + #if XtSpecificationRelease >= 6 #include #include + #else + #define Select(n,r,w,e,t) select(0,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval *)t) + #define XFD_COPYSET(src,dst) bcopy((src)->fds_bits, (dst)->fds_bits, sizeof(fd_set)) + #endif + #include #include #include *************** *** 572,577 **** --- 579,585 ---- {"font6", "Font6", XtRString, sizeof(String), XtOffsetOf(XtermWidgetRec, screen.menu_font_names[fontMenu_font6]), XtRString, (XtPointer) NULL}, + #if XtSpecificationRelease >= 6 {XtNinputMethod, XtCInputMethod, XtRString, sizeof(char*), XtOffsetOf(XtermWidgetRec, misc.input_method), XtRString, (XtPointer)NULL}, *************** *** 581,586 **** --- 589,595 ---- {XtNopenIm, XtCOpenIm, XtRBoolean, sizeof(Boolean), XtOffsetOf(XtermWidgetRec, misc.open_im), XtRImmediate, (XtPointer)TRUE}, + #endif {XtNcolor0, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.colors[COLOR_0]), XtRString, "XtDefaultForeground"}, *************** *** 1153,1158 **** --- 1162,1172 ---- ? 8 : 0)); } break; + case 39: + if( screen->colorMode ) { + SGR_Foreground(-1); + } + break; case 40: case 41: case 42: *************** *** 1165,1170 **** --- 1179,1189 ---- SGR_Background(param[row] - 40); } break; + case 49: + if( screen->colorMode ) { + SGR_Background(-1); + } + break; case 100: if( screen->colorMode ) { if (term->flags & FG_COLOR) *************** *** 2639,2644 **** --- 2658,2666 ---- for (i = 0; i < MAXCOLORS; i++) { new->screen.colors[i] = request->screen.colors[i]; } + + new->cur_foreground = 0; + new->cur_background = 0; /* * The definition of -rv now is that it changes the definition of Index: data.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/data.c Sat Jan 6 08:11:01 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/data.c Sun Jan 28 20:45:35 1996 *************** *** 26,32 **** --- 26,36 ---- */ #include "ptyx.h" /* gets Xt stuff, too */ + + #if XtSpecificationRelease >= 6 #include + #endif + #include "data.h" #include Index: main.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/main.c Thu Jan 11 14:01:01 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/main.c Sun Jan 28 20:45:35 1996 *************** *** 75,82 **** --- 75,87 ---- #include #include #include + + #if XtSpecificationRelease >= 6 #include + #endif + #include + #include #include #include "data.h" *************** *** 127,132 **** --- 132,138 ---- #endif #ifdef SVR4 + #undef SYSV /* predefined on Solaris 2.4 */ #define SYSV /* SVR4 is (approx) superset of SVR3 */ #define ATT #define USE_SYSV_UTMP *************** *** 453,459 **** #endif #ifdef SYSV ! extern char *ptsname(); #endif #include "xterm.h" --- 459,465 ---- #endif #ifdef SYSV ! extern char *ptsname PROTO((int)); #endif #include "xterm.h" *************** *** 1293,1303 **** if (setegid(rgid) == -1) (void) fprintf(stderr, "setegid(%d): %s\n", ! rgid, strerror(errno)); if (seteuid(ruid) == -1) (void) fprintf(stderr, "seteuid(%d): %s\n", ! ruid, strerror(errno)); #endif XtSetErrorHandler(xt_error); --- 1299,1309 ---- if (setegid(rgid) == -1) (void) fprintf(stderr, "setegid(%d): %s\n", ! (int) rgid, strerror(errno)); if (seteuid(ruid) == -1) (void) fprintf(stderr, "seteuid(%d): %s\n", ! (int) ruid, strerror(errno)); #endif XtSetErrorHandler(xt_error); *************** *** 1317,1327 **** #ifdef HAS_POSIX_SAVED_IDS if (seteuid(euid) == -1) (void) fprintf(stderr, "seteuid(%d): %s\n", ! euid, strerror(errno)); if (setegid(egid) == -1) (void) fprintf(stderr, "setegid(%d): %s\n", ! egid, strerror(errno)); #endif } --- 1323,1333 ---- #ifdef HAS_POSIX_SAVED_IDS if (seteuid(euid) == -1) (void) fprintf(stderr, "seteuid(%d): %s\n", ! (int) euid, strerror(errno)); if (setegid(egid) == -1) (void) fprintf(stderr, "setegid(%d): %s\n", ! (int) egid, strerror(errno)); #endif } *************** *** 1985,1992 **** register TScreen *screen = &term->screen; #ifdef USE_HANDSHAKE handshake_t handshake; - #else - int fds[2]; #endif int tty = -1; int done; --- 1991,1996 ---- *************** *** 2458,2464 **** { #include struct group *ttygrp; ! if (ttygrp = getgrnam("tty")) { /* change ownership of tty to real uid, "tty" gid */ chown (ttydev, screen->uid, ttygrp->gr_gid); chmod (ttydev, 0620); --- 2462,2468 ---- { #include struct group *ttygrp; ! if ((ttygrp = getgrnam("tty")) != 0) { /* change ownership of tty to real uid, "tty" gid */ chown (ttydev, screen->uid, ttygrp->gr_gid); chmod (ttydev, 0620); Index: menu.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/menu.c Tue Jan 16 15:43:01 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/menu.c Sun Jan 28 20:45:35 1996 *************** *** 397,411 **** XtPointer closure, data; { register TScreen *screen = &term->screen; ! Time time = CurrentTime; /* XXX - wrong */ if (screen->grabbedKbd) { ! XUngrabKeyboard (screen->display, time); ReverseVideo (term); screen->grabbedKbd = FALSE; } else { if (XGrabKeyboard (screen->display, term->core.window, ! True, GrabModeAsync, GrabModeAsync, time) != GrabSuccess) { Bell(XkbBI_MinorError, 100); } else { --- 397,411 ---- XtPointer closure, data; { register TScreen *screen = &term->screen; ! Time now = CurrentTime; /* XXX - wrong */ if (screen->grabbedKbd) { ! XUngrabKeyboard (screen->display, now); ReverseVideo (term); screen->grabbedKbd = FALSE; } else { if (XGrabKeyboard (screen->display, term->core.window, ! True, GrabModeAsync, GrabModeAsync, now) != GrabSuccess) { Bell(XkbBI_MinorError, 100); } else { Index: misc.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/misc.c Fri Jan 26 11:43:22 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/misc.c Sun Jan 28 20:45:35 1996 *************** *** 50,55 **** --- 50,61 ---- #include "xterm.h" + #if XtSpecificationRelease < 6 + #ifndef X_GETTIMEOFDAY + #define X_GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *)0) + #endif + #endif + #ifdef AMOEBA #include "amoeba.h" #include "module/proc.h" Index: scrollbar.c *** /build/x11r6/XFree86-3.1.2Bn/xc/programs/xterm/scrollbar.c Tue Jan 16 15:43:01 1996 --- /build/x11r6/XFree86-current/xc/programs/xterm/scrollbar.c Sun Jan 28 20:45:35 1996 *************** *** 221,227 **** register Widget scrollWidget; { Arg args[4]; ! int nargs = XtNumber(args); unsigned long bg, fg, bdr; Pixmap bdpix; --- 221,227 ---- register Widget scrollWidget; { Arg args[4]; ! Cardinal nargs = XtNumber(args); unsigned long bg, fg, bdr; Pixmap bdpix; diffstat-1.68/testing/case31uRp0.ref0000644000000000000000000000017011700545545015757 0ustar rootroot //depot/vendor/freebsd/src/sys/dev/usb/usbdevs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diffstat-1.68/testing/case17.pat0000644000000000000000000000707007524714616015240 0ustar rootroot--- linux/kernel/sched.c.user 2002-08-08 11:52:55.000000000 -0300 +++ linux/kernel/sched.c 2002-08-08 20:44:01.000000000 -0300 @@ -124,6 +124,9 @@ # define finish_arch_switch(rq) spin_unlock_irq(&(rq)->lock) #endif +/* Per-user fair scheduler on/off switch. */ +int fairsched_enabled; + /* * task_rq_lock - lock the runqueue a given task resides on and disable * interrupts. Note the ordering: we can safely lookup the task_rq without @@ -167,6 +170,44 @@ p->array = array; } +/* + * Modify the per task bonus with a bonus based on the CPU usage + * of all the user's tasks combined. This won't just redistribute + * the CPU more fairly between the users, it will also make the + * interactive tasks of a CPU-hogging user "feel slower", giving + * that user a good reason to not hog the system ;) + */ +static inline int peruser_bonus(int bonus, struct user_struct * user) +{ + int userbonus, i, max_cpu; + + /* + * Decay the per-user cpu usage once for every STARVATION_LIMIT + * interval. We round up the number of intervals so we won't + * have to recalculate again immediately and always increment + * user->cpu_lastcalc with a multiple of STARVATION_LIMIT so + * we don't have different decay rates for users with different + * wakeup patterns. + */ + if (time_after(jiffies, user->cpu_lastcalc + STARVATION_LIMIT)) { + i = ((jiffies - user->cpu_lastcalc) / STARVATION_LIMIT) + 1; + user->cpu_lastcalc += i * STARVATION_LIMIT; + user->cpu_time >>= i; + } + + /* + * 0% cpu usage -> + BONUS + * 50% cpu usage -> 0 + * 100% cpu usage -> - BONUS + */ + max_cpu = smp_num_cpus * STARVATION_LIMIT * 3 / 4; + + /**** FIXME ****/ + userbonus = max_cpu - (user->cpu_time + 1) + + return (bonus + userbonus) / 2; +} + static inline int effective_prio(task_t *p) { int bonus, prio; @@ -185,6 +226,9 @@ bonus = MAX_USER_PRIO*PRIO_BONUS_RATIO*p->sleep_avg/MAX_SLEEP_AVG/100 - MAX_USER_PRIO*PRIO_BONUS_RATIO/100/2; + if (fairsched_enabled) + bonus = peruser_bonus(bonus, p->user); + prio = p->static_prio - bonus; if (prio < MAX_RT_PRIO) prio = MAX_RT_PRIO; @@ -673,6 +717,9 @@ kstat.per_cpu_user[cpu] += user_tick; kstat.per_cpu_system[cpu] += system; + if (fairsched_enabled && p->user) + p->user->cpu_time++; + /* Task might have expired already, but not scheduled off yet */ if (p->array != rq->active) { set_tsk_need_resched(p); --- linux/kernel/user.c.user 2002-08-08 19:30:05.000000000 -0300 +++ linux/kernel/user.c 2002-08-08 19:40:43.000000000 -0300 @@ -101,6 +101,8 @@ atomic_set(&new->__count, 1); atomic_set(&new->processes, 0); atomic_set(&new->files, 0); + new->cpu_time = 0; + new->cpu_lastcalc = jiffies; /* * Before adding this, check whether we raced --- linux/include/linux/sched.h.user 2002-08-08 11:53:28.000000000 -0300 +++ linux/include/linux/sched.h 2002-08-08 20:25:13.000000000 -0300 @@ -80,6 +80,9 @@ extern unsigned long nr_running(void); extern unsigned long nr_uninterruptible(void); +/* Per-user fair scheduler on/off switch */ +extern int fairsched_enabled; + //#include #include #include @@ -288,6 +291,14 @@ atomic_t processes; /* How many processes does this user have? */ atomic_t files; /* How many open files does this user have? */ + /* + * Fair scheduler CPU usage counting. If the per-user fair scheduler + * is enabled, we keep track of how much CPU time this user is using, + * using a floating average. + */ + unsigned long cpu_time; + unsigned long cpu_lastcalc; + /* Hash table maintenance information */ struct user_struct *next, **pprev; uid_t uid; diffstat-1.68/testing/case23k.ref0000644000000000000000000000023407753454053015373 0ustar rootroot README | 1 gkrellm-bfm.c | 99 +++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 23 deletions(-) diffstat-1.68/testing/case49f0.ref0000644000000000000000000000012014714413542015441 0ustar rootroot unknown | 12 10 + 2 - 0 ! 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case49r2.ref0000644000000000000000000000011714714413543015466 0ustar rootroot unknown | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diffstat-1.68/testing/case06k.ref0000644000000000000000000000046107530543207015367 0ustar rootroot NEWS | 2 + ncurses/lib_doupdate.c | 91 +++++++++++++++++++++++++++++++++++++------------ ncurses/lib_initscr.c | 4 ++ ncurses/lib_pad.c | 48 ++++++++++++++++++++----- test/ncurses.c | 29 +++++++++++++++ 5 files changed, 142 insertions(+), 32 deletions(-) diffstat-1.68/testing/case02Rp0.ref0000644000000000000000000000037411700545533015573 0ustar rootroot /tmp/da17839 | 98 ++------------!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /tmp/da20646 | 2 ! /tmp/da21897 | 104 ----------------------------------------------!!!!!!!!!!!!! 3 files changed, 5 insertions(+), 102 deletions(-), 97 modifications(!) diffstat-1.68/testing/case23.pat0000644000000000000000000001412707753446420015235 0ustar rootrootdiff -ur bfm-0.6.1.orig/README bfm-0.6.1/README --- bfm-0.6.1.orig/README 2003-10-11 03:29:08.000000000 -0500 +++ bfm-0.6.1/README 2003-11-01 20:59:22.000000000 -0600 @@ -7,7 +7,6 @@ TODO -- Any way to fix the update speed? Gkrellm maximum update is 10 per second. - Someone tests/does the FreeBSD and SunOS platform? - Possible/Make more sense, to make a gkrellm swallow plugin? (Quick search on google: diff -ur bfm-0.6.1.orig/gkrellm-bfm.c bfm-0.6.1/gkrellm-bfm.c --- bfm-0.6.1.orig/gkrellm-bfm.c 2003-11-01 10:44:15.000000000 -0600 +++ bfm-0.6.1/gkrellm-bfm.c 2003-11-01 20:58:57.000000000 -0600 @@ -68,6 +68,8 @@ static Chart *chart = NULL; static ChartConfig *chart_config = NULL; +static gint timeout_id, + update_interval; /* From the actual bfm */ @@ -92,13 +94,13 @@ GtkWidget *clock_check = NULL; GtkWidget *fish_traffic_check = NULL; -static void +static gboolean update_plugin(void) { GdkEventExpose event; gint ret_val; gtk_signal_emit_by_name(GTK_OBJECT(chart->drawing_area), "expose_event", &event, &ret_val); - + return TRUE; /* restart timer */ } @@ -154,6 +156,15 @@ return TRUE; } + +static void +disable_plugin(void) + { + if (timeout_id) + gtk_timeout_remove(timeout_id); + timeout_id = 0; + } + static void create_plugin(GtkWidget *vbox, gint first_create) { @@ -182,7 +193,10 @@ "leave_notify_event", GTK_SIGNAL_FUNC(leave_notify_event), NULL); } - + if (!timeout_id) + timeout_id = gtk_timeout_add(1000 / update_interval, + (GtkFunction) update_plugin, NULL); + gkrellm_disable_plugin_connect(mon, disable_plugin); } @@ -240,6 +254,44 @@ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fish_traffic_check), fish_traffic); } + +static void +cb_interval_modified(GtkWidget *widget, GtkSpinButton *spin) + { + update_interval = gtk_spin_button_get_value_as_int(spin); + if (timeout_id) + gtk_timeout_remove(timeout_id); + timeout_id = gtk_timeout_add(1000 / update_interval, + (GtkFunction) update_plugin, NULL); + } + +static gchar *pending_prog; + +static void +cb_prog_entry(GtkWidget *widget, gpointer data) +{ + gboolean activate_sig = GPOINTER_TO_INT(data); + gchar *s = gkrellm_gtk_entry_get_text(&prog_entry); + + if (activate_sig) + { + gkrellm_dup_string(&prog, s); + g_free(pending_prog); + pending_prog = NULL; + } + else /* "changed" sig, entry is pending on "activate" or config close */ + gkrellm_dup_string(&pending_prog, s); +} + +static void +config_destroyed(void) + { + if (pending_prog) + gkrellm_dup_string(&prog, pending_prog); + g_free(pending_prog); + pending_prog = NULL; + } + static void create_plugin_tab(GtkWidget *tab_vbox) { @@ -287,10 +339,7 @@ " fish swiming from right to left represents incoming traffic)\n", "- Cute little duck swimming...\n", "- Clock hands representing time (obviously)...\n", - "- Click and it will run a command for you (requested by Nick =)\n\n", - "Notes\n\n", - "- Currently Gkrellm updates at most 10 times a second, and so\n", - " BFM updates is a bit jerky still.\n", + "- Click and it will run a command for you (requested by Nick =)\n", "\n\n", }; @@ -307,6 +356,8 @@ tabs = gtk_notebook_new(); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(tabs), GTK_POS_TOP); gtk_box_pack_start(GTK_BOX(tab_vbox), tabs, TRUE, TRUE, 0); + g_signal_connect(G_OBJECT(tabs),"destroy", + G_CALLBACK(config_destroyed), NULL); /* Options tab */ options_tab = gkrellm_create_tab(tabs, _("Options")); @@ -346,6 +397,10 @@ (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (prog_entry); gtk_box_pack_start (GTK_BOX (prog_box), prog_entry, TRUE, TRUE, 0); + g_signal_connect(G_OBJECT(prog_entry), "activate", + G_CALLBACK(cb_prog_entry), GINT_TO_POINTER(1)); + g_signal_connect(G_OBJECT(prog_entry), "changed", + G_CALLBACK(cb_prog_entry), GINT_TO_POINTER(0)); row1 = gtk_hbox_new (FALSE, 0); gtk_widget_set_name (row1, "row1"); @@ -470,6 +525,11 @@ gtk_widget_show (fish_traffic_check); gtk_box_pack_start (GTK_BOX (fish_traffic_box), fish_traffic_check, TRUE, TRUE, 0); + gkrellm_gtk_spin_button(main_box, NULL, update_interval, + 10.0, 50.0, 1.0, 5.0, 0, 60, + cb_interval_modified, NULL, FALSE, + _("Updates per second")); + setup_toggle_buttons(); gtk_signal_connect(GTK_OBJECT(cpu_check), "toggled", GTK_SIGNAL_FUNC(option_toggled_cb), NULL); @@ -494,15 +554,6 @@ } -static void -apply_plugin_config(void) -{ - if(prog) - { - g_free(prog); - } - prog = g_strdup(gtk_editable_get_chars(GTK_EDITABLE(prog_entry), 0, -1)); -} static void save_plugin_config(FILE *f) @@ -511,13 +562,15 @@ { fprintf(f, "%s prog %s\n", PLUGIN_KEYWORD, prog); } - fprintf(f, "%s options %d.%d.%d.%d.%d.%d\n", PLUGIN_KEYWORD, + fprintf(f, "%s options %d.%d.%d.%d.%d.%d.%d\n", PLUGIN_KEYWORD, cpu_enabled, duck_enabled, memscreen_enabled, fish_enabled, fish_traffic, - time_enabled); + time_enabled, + update_interval); + } static void @@ -539,13 +592,14 @@ } else if(!strcmp(config_item, "options")) { - sscanf(value, "%d.%d.%d.%d.%d.%d", + sscanf(value, "%d.%d.%d.%d.%d.%d.%d", &cpu_enabled, &duck_enabled, &memscreen_enabled, &fish_enabled, &fish_traffic, - &time_enabled); + &time_enabled, + &update_interval); } } @@ -556,9 +610,9 @@ PLUGIN_NAME, /* Name, for config tab. */ 0, /* Id, 0 if a plugin */ create_plugin, /* The create_plugin() function */ - update_plugin, /* The update_plugin() function */ + NULL, /* The update_plugin() function */ create_plugin_tab, /* The create_plugin_tab() config function */ - apply_plugin_config, /* The apply_plugin_config() function */ + NULL, /* The apply_plugin_config() function */ save_plugin_config, /* The save_plugin_config() function */ load_plugin_config, /* The load_plugin_config() function */ @@ -577,6 +631,7 @@ Monitor * init_plugin(void) { + update_interval = 20; style_id = gkrellm_add_meter_style(&bfm_mon, PLUGIN_STYLE); return (mon = &bfm_mon); } diffstat-1.68/testing/case04r1.ref0000644000000000000000000000337310300177114015447 0ustar rootroot diffstat.orig/config.cache | 16 ++--!!!! diffstat.orig/config.h | 2 + diffstat.orig/config.log | 76 +++++++-----------!!!!!!!!!!!!!!!!!!! diffstat.orig/config.status | 24 +++---!!!!!! diffstat.orig/configure.out |only diffstat.orig/diffstat |binary diffstat.orig/diffstat.o |binary diffstat.orig/makefile | 4 ! diffstat/testing/Xlib-1.patch- |only diffstat/testing/Xlib-1.ref |only diffstat/testing/Xlib-2.patch- |only diffstat/testing/Xlib-2.ref |only diffstat/testing/Xlib-3.patch- |only diffstat/testing/Xlib-3.ref |only diffstat/testing/config-1.ref |only diffstat/testing/nugent.ref |only diffstat/testing/xserver-1.ref |only diffstat/testing/xserver-2.patch- |only diffstat/testing/xserver-2.ref |only diffstat/testing/xterm-1.patch- |only diffstat/testing/xterm-1.ref |only diffstat/testing/xterm-10.patch- |only diffstat/testing/xterm-10.ref |only diffstat/testing/xterm-11.patch- |only diffstat/testing/xterm-11.ref |only diffstat/testing/xterm-2.patch- |only diffstat/testing/xterm-2.ref |only diffstat/testing/xterm-3.patch- |only diffstat/testing/xterm-3.ref |only diffstat/testing/xterm-4.patch- |only diffstat/testing/xterm-4.ref |only diffstat/testing/xterm-5.patch- |only diffstat/testing/xterm-5.ref |only diffstat/testing/xterm-6.patch- |only diffstat/testing/xterm-6.ref |only diffstat/testing/xterm-7.ref |only diffstat/testing/xterm-8.patch- |only diffstat/testing/xterm-8.ref |only diffstat/testing/xterm-9.patch- |only diffstat/testing/xterm-9.ref |only 40 files changed, 28 insertions(+), 34 deletions(-), 60 modifications(!) diffstat-1.68/testing/case07Rp0.ref0000644000000000000000000000016311700545534015575 0ustar rootroot /dev/null | 100 -------------------------------------------------------------- 1 file changed, 100 deletions(-) diffstat-1.68/testing/case02u.ref0000644000000000000000000000041007530534454015373 0ustar rootroot bug-report | 2 clients/xterm/misc.c | 104 +++++++++++++++++++++++++++++++++++++!!!!!!!!!!! clients/xterm/Tekproc.c | 98 +++++++++--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 3 files changed, 102 insertions(+), 5 deletions(-), 97 modifications(!) diffstat-1.68/testing/case05k.ref0000644000000000000000000000006610300164550015354 0ustar rootroot config.cache | 1 - 1 file changed, 1 deletion(-) diffstat-1.68/testing/case10Rp0.ref0000644000000000000000000000021411700545535015565 0ustar rootroot XIstubs.h | 26 -------------------------- allowev.c | 6 +-!!!! 2 files changed, 1 insertion(+), 27 deletions(-), 4 modifications(!) diffstat-1.68/porting/0002755000000000000000000000000012232565721013443 5ustar rootrootdiffstat-1.68/porting/wildcard.c0000644000000000000000000000451310045442452015374 0ustar rootroot#ifndef NO_IDENT static char *Id = "$Id: wildcard.c,v 1.1 2004/05/03 13:12:10 tom Exp $"; #endif /* * wildcard.c - perform wildcard expansion for non-UNIX configurations */ #include "system.h" #if HAVE_STDLIB_H # include #endif #if HAVE_STRING_H # include #endif #if SYS_MSDOS || SYS_OS2 # if SYS_MSDOS # include # include /* defines MAXPATH */ # define FILENAME_MAX MAXPATH # endif # define DeclareFind(p) struct find_t p # define DirEntryStr(p) p.name # define DirFindFirst(path,p) (!_dos_findfirst(path, 0, &p)) # define DirFindNext(p) (!_dos_findnext(&p)) #endif #if SYS_VMS #include /* DEC-C (e.g., sys$parse) */ #include /* perror */ #include #include #endif /* SYS_VMS */ int has_wildcard(char *path) { #if SYS_VMS return (strstr(path, "...") != 0 || strchr(path, '*') != 0 || strchr(path, '?') != 0); #else /* SYS_MSDOS, SYS_OS2 */ return (strchr(path, '*') != 0 || strchr(path, '?') != 0); #endif } int expand_wildcard(char *path, int initiate) { #if SYS_MSDOS || SYS_OS2 static DeclareFind(p); static char temp[FILENAME_MAX + 1]; register char *leaf; if ((leaf = strchr(path, '/')) == 0 && (leaf = strchr(path, '\\')) == 0) leaf = path; else leaf++; if ((initiate && DirFindFirst(strcpy(temp, path), p)) || DirFindNext(p)) { (void) strcpy(leaf, DirEntryStr(p)); return TRUE; } #endif /* SYS_MSDOS || SYS_OS2 */ #if SYS_VMS static struct FAB zfab; static struct NAM znam; static char my_esa[NAM$C_MAXRSS]; /* expanded: SYS$PARSE */ static char my_rsa[NAM$C_MAXRSS]; /* expanded: SYS$SEARCH */ if (initiate) { zfab = cc$rms_fab; zfab.fab$l_fop = FAB$M_NAM; zfab.fab$l_nam = &znam; /* FAB => NAM block */ zfab.fab$l_dna = "*.*;"; /* Default-selection */ zfab.fab$b_dns = strlen(zfab.fab$l_dna); zfab.fab$l_fna = path; zfab.fab$b_fns = strlen(path); znam = cc$rms_nam; znam.nam$b_ess = sizeof(my_esa); znam.nam$l_esa = my_esa; znam.nam$b_rss = sizeof(my_rsa); znam.nam$l_rsa = my_rsa; if (sys$parse(&zfab) != RMS$_NORMAL) { perror(path); exit(EXIT_FAILURE); } } if (sys$search(&zfab) == RMS$_NORMAL) { strncpy(path, my_rsa, znam.nam$b_rsl)[znam.nam$b_rsl] = '\0'; return (TRUE); } #endif /* SYS_VMS */ #if SYS_MSDOS #endif return FALSE; } diffstat-1.68/porting/getopt.c0000644000000000000000000000473612232565710015117 0ustar rootroot/* $Id: getopt.c,v 4.2 2013/10/25 22:08:08 tom Exp $ */ /* ::[[ @(#) getopt.c 1.5 89/03/11 05:40:23 ]]:: */ /* #ifndef LINT static char sccsid[]="::[[ @(#) getopt.c 1.5 89/03/11 05:40:23 ]]::"; #endif */ /* * Here's something you've all been waiting for: the AT&T public domain * source for getopt(3). It is the code which was given out at the 1985 * UNIFORUM conference in Dallas. I obtained it by electronic mail * directly from AT&T. The people there assure me that it is indeed * in the public domain. * * There is no manual page. That is because the one they gave out at * UNIFORUM was slightly different from the current System V Release 2 * manual page. The difference apparently involved a note about the * famous rules 5 and 6, recommending using white space between an option * and its first argument, and not grouping options that have arguments. * Getopt itself is currently lenient about both of these things White * space is allowed, but not mandatory, and the last option in a group can * have an argument. That particular version of the man page evidently * has no official existence, and my source at AT&T did not send a copy. * The current SVR2 man page reflects the actual behavor of this getopt. * However, I am not about to post a copy of anything licensed by AT&T. */ #include #include #include #define ERR(szz,czz) if(opterr){fprintf(stderr,"%s%s%c\n",argv[0],szz,czz);} int opterr = 1; int optind = 1; int optopt; char *optarg; int getopt(int argc, char **argv, const char *opts) { static int sp = 1; register int c; register char *cp; if(sp == 1) { if(optind >= argc || argv[optind][0] != '-' || argv[optind][1] == '\0') return(EOF); else if(strcmp(argv[optind], "--") == 0) { optind++; return(EOF); } } optopt = (c = argv[optind][sp]); if(c == ':' || (cp=strchr(opts, c)) == NULL) { ERR(": illegal option -- ", c); if(argv[optind][++sp] == '\0') { optind++; sp = 1; } return('?'); } if(*++cp == ':') { if(argv[optind][sp+1] != '\0') optarg = &argv[optind++][sp+1]; else if(++optind >= argc) { ERR(": option requires an argument -- ", c); sp = 1; return('?'); } else optarg = argv[optind++]; sp = 1; } else { if(argv[optind][++sp] == '\0') { sp = 1; optind++; } optarg = NULL; } return(c); } diffstat-1.68/porting/system.h0000644000000000000000000000272107567530610015144 0ustar rootroot/* $Id: system.h,v 1.1 2002/11/22 22:36:56 tom Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" # define SYS_UNIX 1 #else /* provide values for non-UNIX systems */ # if defined(vms) # include # define SYS_VMS 1 # define EXIT_SUCCESS (STS$M_INHIB_MSG | STS$K_SUCCESS) # define EXIT_FAILURE (STS$M_INHIB_MSG | STS$K_ERROR) # endif # if defined(MSDOS) || defined(__MSDOS__) # define SYS_MSDOS 1 # endif # if !defined(SYS_VMS) || !defined(SYS_MSDOS) || defined(WIN32) # define SYS_UNIX 1 /* assume we're autoconfiguring */ # endif #define HAVE_STRCHR 1 #endif /* HAVE_CONFIG_H */ #ifndef HAVE_GETOPT_H #define HAVE_GETOPT_H 0 #endif #ifndef HAVE_MALLOC_H #define HAVE_MALLOC_H 0 #endif #ifndef HAVE_STDLIB_H #define HAVE_STDLIB_H 1 #endif #ifndef HAVE_STRING_H #define HAVE_STRING_H 1 #endif #ifndef SYS_MSDOS #define SYS_MSDOS 0 #endif #ifndef SYS_UNIX #define SYS_UNIX 0 #endif #ifndef SYS_VMS #define SYS_VMS 0 #endif #ifndef HAVE_GETOPT_HEADER #define HAVE_GETOPT_HEADER 0 #endif #ifndef PRINT_ROUNDS_DOWN #define PRINT_ROUNDS_DOWN 0 #endif #ifdef lint #define typeCalloc(type,elts) (type *)(elts) #else #define typeCalloc(type,elts) (type *)calloc(elts,sizeof(type)) #endif #ifndef TRUE #define TRUE (1) #define FALSE (0) #endif #undef EOS #define EOS '\0' /* On VMS and MSDOS we can fake wildcards by embedding a directory * scanning loop... */ #if !SYS_UNIX extern int has_wildcard(char *); extern int expand_wildcard(char *, int); #endif diffstat-1.68/porting/getopt.h0000644000000000000000000000036112232565721015114 0ustar rootroot/* $Id: getopt.h,v 4.3 2013/10/25 22:08:17 tom Exp $ */ #ifndef OLD_GETOPT_H #define OLD_GETOPT_H 1 extern char *optarg; extern int optind, opterr; extern int getopt (int argc, char **argv, const char *options); #endif /* OLD_GETOPT_H */ diffstat-1.68/COPYING.asc0000644000000000000000000000133115002510231013535 0ustar rootroot-----BEGIN PGP SIGNATURE----- Comment: See https://invisible-island.net/public/public.html for info iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmgKkJYACgkQzCr0RyFn vgN/TAwAhNH1n3agdenLrgysd+sWSgNwKhDIQlhYup/w2lgyXkx+fLghM1e9JgTW cAhQmDKftsiXhW0pUBth8pJw+EBajZgaOO7Ic5zwAbrU+M+6C7tbKUGt+Pn5xayX VUD4UZa6YdOWAYNh8ZTzMaSAqkw7+QasVm4qWYznJPE5Mq9M05aDLn+c98dA+3vl CV4Gw9SiP9v7EnIOvBaWpSRyrqCs1sq0+9zBCIBnX5WyF50IUijvAJec2BAR0z0C rkiz2M1WnUmdMJrb3eI4j87CwccuEBLcRSuRX4in1jbXsembiTshZJ3jFs94g6eJ iwLU/5aPOsbl+91eLTlqOdTuovLnKTH7f4q9nwsnqVHU9153iweJpiZSi2qnuLFG B3shI9Ie7C72UdwPGb1QpUSwnJhDQkW0UWutj0RMlBIME2QE33Oj/0aAbBuA9AZX vCuOR9aHWW5WCrmK5y6Yu4Wmd/PmYwEPx74MwzSKQLn9wJOieZKlvR/V0C0KISSP CV7ROj5Z =10gP -----END PGP SIGNATURE----- diffstat-1.68/COPYING0000644000000000000000000000241115002510176013000 0ustar rootrootCopyright 1994-2024,2025 by Thomas E. Dickey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization. diffstat-1.68/aclocal.m40000644000000000000000000021316114731543054013624 0ustar rootrootdnl $Id: aclocal.m4,v 1.48 2024/12/21 13:44:12 tom Exp $ dnl autoconf macros for 'diffstat' dnl --------------------------------------------------------------------------- dnl Copyright 2003-2023,2024 Thomas E. Dickey dnl dnl Permission is hereby granted, free of charge, to any person obtaining a dnl copy of this software and associated documentation files (the "Software"), dnl to deal in the Software without restriction, including without limitation dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, dnl and/or sell copies of the Software, and to permit persons to whom the dnl Software is furnished to do so, subject to the following conditions: dnl dnl The above copyright notice and this permission notice shall be included in dnl all copies or substantial portions of the Software. dnl dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL dnl THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER dnl DEALINGS IN THE SOFTWARE. dnl dnl Except as contained in this notice, the name(s) of the above copyright dnl holders shall not be used in advertising or otherwise to promote the sale, dnl use or other dealings in this Software without prior written dnl authorization. dnl --------------------------------------------------------------------------- dnl See dnl https://invisible-island.net/autoconf/autoconf.html dnl https://invisible-island.net/autoconf/my-autoconf.html dnl --------------------------------------------------------------------------- dnl --------------------------------------------------------------------------- dnl CF_ACVERSION_CHECK version: 5 updated: 2014/06/04 19:11:49 dnl ------------------ dnl Conditionally generate script according to whether we're using a given autoconf. dnl dnl $1 = version to compare against dnl $2 = code to use if AC_ACVERSION is at least as high as $1. dnl $3 = code to use if AC_ACVERSION is older than $1. define([CF_ACVERSION_CHECK], [ ifdef([AC_ACVERSION], ,[ifdef([AC_AUTOCONF_VERSION],[m4_copy([AC_AUTOCONF_VERSION],[AC_ACVERSION])],[m4_copy([m4_PACKAGE_VERSION],[AC_ACVERSION])])])dnl ifdef([m4_version_compare], [m4_if(m4_version_compare(m4_defn([AC_ACVERSION]), [$1]), -1, [$3], [$2])], [CF_ACVERSION_COMPARE( AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])), AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)), AC_ACVERSION, [$2], [$3])])])dnl dnl --------------------------------------------------------------------------- dnl CF_ACVERSION_COMPARE version: 3 updated: 2012/10/03 18:39:53 dnl -------------------- dnl CF_ACVERSION_COMPARE(MAJOR1, MINOR1, TERNARY1, dnl MAJOR2, MINOR2, TERNARY2, dnl PRINTABLE2, not FOUND, FOUND) define([CF_ACVERSION_COMPARE], [ifelse(builtin([eval], [$2 < $5]), 1, [ifelse([$8], , ,[$8])], [ifelse([$9], , ,[$9])])])dnl dnl --------------------------------------------------------------------------- dnl CF_ADD_CFLAGS version: 15 updated: 2020/12/31 10:54:15 dnl ------------- dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS dnl $1 = flags to add dnl $2 = if given makes this macro verbose. dnl dnl Put any preprocessor definitions that use quoted strings in $EXTRA_CPPFLAGS, dnl to simplify use of $CPPFLAGS in compiler checks, etc., that are easily dnl confused by the quotes (which require backslashes to keep them usable). AC_DEFUN([CF_ADD_CFLAGS], [ cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $1 do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[[^=]]*='\''\"[[^"]]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then CF_APPEND_TEXT(cf_new_extra_cppflags,$cf_add_cflags) continue elif test "${cf_tst_cflags}" = "\"'" ; then CF_APPEND_TEXT(cf_new_extra_cppflags,$cf_add_cflags) continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-D*) cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,$cf_tst_cppflags) ;; esac CF_APPEND_TEXT(cf_new_cppflags,$cf_add_cflags) ;; esac ;; (*) CF_APPEND_TEXT(cf_new_cflags,$cf_add_cflags) ;; esac ;; (yes) CF_APPEND_TEXT(cf_new_extra_cppflags,$cf_add_cflags) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[[^"]]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then ifelse([$2],,,[CF_VERBOSE(add to \$CFLAGS $cf_new_cflags)]) CF_APPEND_TEXT(CFLAGS,$cf_new_cflags) fi if test -n "$cf_new_cppflags" ; then ifelse([$2],,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)]) CF_APPEND_TEXT(CPPFLAGS,$cf_new_cppflags) fi if test -n "$cf_new_extra_cppflags" ; then ifelse([$2],,,[CF_VERBOSE(add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags)]) CF_APPEND_TEXT(EXTRA_CPPFLAGS,$cf_new_extra_cppflags) fi AC_SUBST(EXTRA_CPPFLAGS) ])dnl dnl --------------------------------------------------------------------------- dnl CF_ANSI_CC_CHECK version: 15 updated: 2024/05/01 15:00:19 dnl ---------------- dnl This was originally adapted from the macros 'fp_PROG_CC_STDC' and dnl 'fp_C_PROTOTYPES' in the sharutils 4.2 distribution. AC_DEFUN([CF_ANSI_CC_CHECK], [ CF_CC_ENV_FLAGS AC_CACHE_CHECK(for ${CC:-cc} option to accept ANSI C, cf_cv_ansi_cc,[ cf_cv_ansi_cc=no cf_save_CFLAGS="$CFLAGS" cf_save_CPPFLAGS="$CPPFLAGS" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes) for cf_arg in "-DCC_HAS_PROTOS" \ "" \ -qlanglvl=ansi \ -std1 \ -Ae \ "-Aa -D_HPUX_SOURCE" \ -Xc do CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" CF_ADD_CFLAGS($cf_arg) AC_TRY_COMPILE( [ #ifndef CC_HAS_PROTOS #if !defined(__STDC__) || (__STDC__ != 1) choke me #endif #endif extern int test (int i, double x); ],[ struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);};], [cf_cv_ansi_cc="$cf_arg"; break]) done CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" ]) if test "$cf_cv_ansi_cc" != "no"; then if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then CF_ADD_CFLAGS($cf_cv_ansi_cc) else AC_DEFINE(CC_HAS_PROTOS,1,[Define to 1 if C compiler supports prototypes]) fi fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_ANSI_CC_REQD version: 4 updated: 2008/03/23 14:48:54 dnl --------------- dnl For programs that must use an ANSI compiler, obtain compiler options that dnl will make it recognize prototypes. We'll do preprocessor checks in other dnl macros, since tools such as unproto can fake prototypes, but only part of dnl the preprocessor. AC_DEFUN([CF_ANSI_CC_REQD], [AC_REQUIRE([CF_ANSI_CC_CHECK]) if test "$cf_cv_ansi_cc" = "no"; then AC_MSG_ERROR( [Your compiler does not appear to recognize prototypes. You have the following choices: a. adjust your compiler options b. get an up-to-date compiler c. use a wrapper such as unproto]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_APPEND_CFLAGS version: 3 updated: 2021/09/05 17:25:40 dnl ---------------- dnl Use CF_ADD_CFLAGS after first checking for potential redefinitions. dnl $1 = flags to add dnl $2 = if given makes this macro verbose. define([CF_APPEND_CFLAGS], [ for cf_add_cflags in $1 do case "x$cf_add_cflags" in (x-[[DU]]*) CF_REMOVE_CFLAGS($cf_add_cflags,CFLAGS,[$2]) CF_REMOVE_CFLAGS($cf_add_cflags,CPPFLAGS,[$2]) ;; esac CF_ADD_CFLAGS([$cf_add_cflags],[$2]) done ])dnl dnl --------------------------------------------------------------------------- dnl CF_APPEND_TEXT version: 1 updated: 2017/02/25 18:58:55 dnl -------------- dnl use this macro for appending text without introducing an extra blank at dnl the beginning define([CF_APPEND_TEXT], [ test -n "[$]$1" && $1="[$]$1 " $1="[$]{$1}$2" ])dnl dnl --------------------------------------------------------------------------- dnl CF_ARG_DISABLE version: 3 updated: 1999/03/30 17:24:31 dnl -------------- dnl Allow user to disable a normally-on option. AC_DEFUN([CF_ARG_DISABLE], [CF_ARG_OPTION($1,[$2],[$3],[$4],yes)])dnl dnl --------------------------------------------------------------------------- dnl CF_ARG_ENABLE version: 3 updated: 1999/03/30 17:24:31 dnl ------------- dnl Allow user to enable a normally-off option. AC_DEFUN([CF_ARG_ENABLE], [CF_ARG_OPTION($1,[$2],[$3],[$4],no)])dnl dnl --------------------------------------------------------------------------- dnl CF_ARG_OPTION version: 5 updated: 2015/05/10 19:52:14 dnl ------------- dnl Restricted form of AC_ARG_ENABLE that ensures user doesn't give bogus dnl values. dnl dnl Parameters: dnl $1 = option name dnl $2 = help-string dnl $3 = action to perform if option is not default dnl $4 = action if perform if option is default dnl $5 = default option value (either 'yes' or 'no') AC_DEFUN([CF_ARG_OPTION], [AC_ARG_ENABLE([$1],[$2],[test "$enableval" != ifelse([$5],no,yes,no) && enableval=ifelse([$5],no,no,yes) if test "$enableval" != "$5" ; then ifelse([$3],,[ :]dnl ,[ $3]) ifelse([$4],,,[ else $4]) fi],[enableval=$5 ifelse([$4],,,[ $4 ])dnl ])])dnl dnl --------------------------------------------------------------------------- dnl CF_C11_NORETURN version: 4 updated: 2023/02/18 17:41:25 dnl --------------- AC_DEFUN([CF_C11_NORETURN], [ AC_MSG_CHECKING(if you want to use C11 _Noreturn feature) CF_ARG_ENABLE(stdnoreturn, [ --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics], [enable_stdnoreturn=yes], [enable_stdnoreturn=no]) AC_MSG_RESULT($enable_stdnoreturn) if test $enable_stdnoreturn = yes; then AC_CACHE_CHECK([for C11 _Noreturn feature], cf_cv_c11_noreturn, [AC_TRY_COMPILE([ $ac_includes_default #include static _Noreturn void giveup(void) { exit(0); } ], [if (feof(stdin)) giveup()], cf_cv_c11_noreturn=yes, cf_cv_c11_noreturn=no) ]) else cf_cv_c11_noreturn=no, fi if test "$cf_cv_c11_noreturn" = yes; then AC_DEFINE(HAVE_STDNORETURN_H, 1,[Define if header is available and working]) AC_DEFINE_UNQUOTED(STDC_NORETURN,_Noreturn,[Define if C11 _Noreturn keyword is supported]) HAVE_STDNORETURN_H=1 else HAVE_STDNORETURN_H=0 fi AC_SUBST(HAVE_STDNORETURN_H) AC_SUBST(STDC_NORETURN) ])dnl dnl --------------------------------------------------------------------------- dnl CF_CC_ENV_FLAGS version: 11 updated: 2023/02/20 11:15:46 dnl --------------- dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content dnl into CC. This will not help with broken scripts that wrap the compiler dnl with options, but eliminates a more common category of user confusion. dnl dnl In particular, it addresses the problem of being able to run the C dnl preprocessor in a consistent manner. dnl dnl Caveat: this also disallows blanks in the pathname for the compiler, but dnl the nuisance of having inconsistent settings for compiler and preprocessor dnl outweighs that limitation. AC_DEFUN([CF_CC_ENV_FLAGS], [ # This should have been defined by AC_PROG_CC : "${CC:=cc}" AC_MSG_CHECKING(\$CFLAGS variable) case "x$CFLAGS" in (*-[[IUD]]*) AC_MSG_RESULT(broken) AC_MSG_WARN(your environment uses the CFLAGS variable to hold CPPFLAGS options) cf_flags="$CFLAGS" CFLAGS= for cf_arg in $cf_flags do CF_ADD_CFLAGS($cf_arg) done ;; (*) AC_MSG_RESULT(ok) ;; esac AC_MSG_CHECKING(\$CC variable) case "$CC" in (*[[\ \ ]]-*) AC_MSG_RESULT(broken) AC_MSG_WARN(your environment uses the CC variable to hold CFLAGS/CPPFLAGS options) # humor him... cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[[ ]]* / /g' -e 's/[[ ]]*[[ ]]-[[^ ]].*//'` cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"` CC="$cf_prog" for cf_arg in $cf_flags do case "x$cf_arg" in (x-[[IUDfgOW]]*) CF_ADD_CFLAGS($cf_arg) ;; (*) CC="$CC $cf_arg" ;; esac done CF_VERBOSE(resulting CC: '$CC') CF_VERBOSE(resulting CFLAGS: '$CFLAGS') CF_VERBOSE(resulting CPPFLAGS: '$CPPFLAGS') ;; (*) AC_MSG_RESULT(ok) ;; esac ])dnl dnl --------------------------------------------------------------------------- dnl CF_CHECK_CACHE version: 13 updated: 2020/12/31 10:54:15 dnl -------------- dnl Check if we're accidentally using a cache from a different machine. dnl Derive the system name, as a check for reusing the autoconf cache. dnl dnl If we've packaged config.guess and config.sub, run that (since it does a dnl better job than uname). Normally we'll use AC_CANONICAL_HOST, but allow dnl an extra parameter that we may override, e.g., for AC_CANONICAL_SYSTEM dnl which is useful in cross-compiles. dnl dnl Note: we would use $ac_config_sub, but that is one of the places where dnl autoconf 2.5x broke compatibility with autoconf 2.13 AC_DEFUN([CF_CHECK_CACHE], [ if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then ifelse([$1],,[AC_CANONICAL_HOST],[$1]) system_name="$host_os" else system_name="`(uname -s -r) 2>/dev/null`" if test -z "$system_name" ; then system_name="`(hostname) 2>/dev/null`" fi fi test -n "$system_name" && AC_DEFINE_UNQUOTED(SYSTEM_NAME,"$system_name",[Define to the system name.]) AC_CACHE_VAL(cf_cv_system_name,[cf_cv_system_name="$system_name"]) test -z "$system_name" && system_name="$cf_cv_system_name" test -n "$cf_cv_system_name" && AC_MSG_RESULT(Configuring for $cf_cv_system_name) if test ".$system_name" != ".$cf_cv_system_name" ; then AC_MSG_RESULT(Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)) AC_MSG_ERROR("Please remove config.cache and try again.") fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_CLANG_COMPILER version: 9 updated: 2023/02/18 17:41:25 dnl ----------------- dnl Check if the given compiler is really clang. clang's C driver defines dnl __GNUC__ (fooling the configure script into setting $GCC to yes) but does dnl not ignore some gcc options. dnl dnl This macro should be run "soon" after AC_PROG_CC or AC_PROG_CPLUSPLUS, to dnl ensure that it is not mistaken for gcc/g++. It is normally invoked from dnl the wrappers for gcc and g++ warnings. dnl dnl $1 = GCC (default) or GXX dnl $2 = CLANG_COMPILER (default) dnl $3 = CFLAGS (default) or CXXFLAGS AC_DEFUN([CF_CLANG_COMPILER],[ ifelse([$2],,CLANG_COMPILER,[$2])=no if test "$ifelse([$1],,[$1],GCC)" = yes ; then AC_MSG_CHECKING(if this is really Clang ifelse([$1],GXX,C++,C) compiler) cf_save_CFLAGS="$ifelse([$3],,CFLAGS,[$3])" AC_TRY_COMPILE([],[ #ifdef __clang__ #else #error __clang__ is not defined #endif ],[ifelse([$2],,CLANG_COMPILER,[$2])=yes ],[]) ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS" AC_MSG_RESULT($ifelse([$2],,CLANG_COMPILER,[$2])) fi CLANG_VERSION=none if test "x$ifelse([$2],,CLANG_COMPILER,[$2])" = "xyes" ; then case "$CC" in (c[[1-9]][[0-9]]|*/c[[1-9]][[0-9]]) AC_MSG_WARN(replacing broken compiler alias $CC) CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" CC=clang ;; esac AC_MSG_CHECKING(version of $CC) CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[[^)]]*) //' -e 's/^.*(Debian[[^)]]*) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`" test -z "$CLANG_VERSION" && CLANG_VERSION=unknown AC_MSG_RESULT($CLANG_VERSION) for cf_clang_opt in \ -Qunused-arguments \ -Wno-error=implicit-function-declaration do AC_MSG_CHECKING(if option $cf_clang_opt works) cf_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $cf_clang_opt" AC_TRY_LINK([ #include ],[ printf("hello!\\n");],[ cf_clang_optok=yes],[ cf_clang_optok=no]) AC_MSG_RESULT($cf_clang_optok) CFLAGS="$cf_save_CFLAGS" if test "$cf_clang_optok" = yes; then CF_VERBOSE(adding option $cf_clang_opt) CF_APPEND_TEXT(CFLAGS,$cf_clang_opt) fi done fi ]) dnl --------------------------------------------------------------------------- dnl CF_CONST_X_STRING version: 9 updated: 2024/12/04 03:49:57 dnl ----------------- dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most dnl character-strings. dnl dnl It is ambiguous because the specification accommodated the pre-ANSI dnl compilers bundled by more than one vendor in lieu of providing a standard C dnl compiler other than by costly add-ons. Because of this, the specification dnl did not take into account the use of const for telling the compiler that dnl string literals would be in readonly memory. dnl dnl As a workaround, one could (starting with X11R5) define XTSTRINGDEFINES, to dnl let the compiler decide how to represent Xt's strings which were #define'd. dnl That does not solve the problem of using the block of Xt's strings which dnl are compiled into the library (and is less efficient than one might want). dnl dnl Xt specification 7 introduces the _CONST_X_STRING symbol which is used both dnl when compiling the library and compiling using the library, to tell the dnl compiler that String is const. AC_DEFUN([CF_CONST_X_STRING], [ AC_REQUIRE([AC_PATH_XTRA]) CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING]) AC_TRY_COMPILE( [ $ac_includes_default #include ], [String foo = malloc(1); free((void*)foo)],[ AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[ AC_TRY_COMPILE( [ #undef _CONST_X_STRING #define _CONST_X_STRING /* X11R7.8 (perhaps) */ #undef XTSTRINGDEFINES /* X11R5 and later */ $ac_includes_default #include ],[String foo = malloc(1); *foo = 0],[ cf_cv_const_x_string=no ],[ cf_cv_const_x_string=yes ]) ]) CF_RESTORE_XTRA_FLAGS([CF_CONST_X_STRING]) case "$cf_cv_const_x_string" in (no) CF_APPEND_TEXT(CPPFLAGS,-DXTSTRINGDEFINES) ;; (*) CF_APPEND_TEXT(CPPFLAGS,-D_CONST_X_STRING) ;; esac ]) ])dnl dnl --------------------------------------------------------------------------- dnl CF_DISABLE_ECHO version: 14 updated: 2021/09/04 06:35:04 dnl --------------- dnl You can always use "make -n" to see the actual options, but it is hard to dnl pick out/analyze warning messages when the compile-line is long. dnl dnl Sets: dnl ECHO_LT - symbol to control if libtool is verbose dnl ECHO_LD - symbol to prefix "cc -o" lines dnl RULE_CC - symbol to put before implicit "cc -c" lines (e.g., .c.o) dnl SHOW_CC - symbol to put before explicit "cc -c" lines dnl ECHO_CC - symbol to put before any "cc" line dnl AC_DEFUN([CF_DISABLE_ECHO],[ AC_MSG_CHECKING(if you want to see long compiling messages) CF_ARG_DISABLE(echo, [ --disable-echo do not display "compiling" commands], [ ECHO_LT='--silent' ECHO_LD='@echo linking [$]@;' RULE_CC='@echo compiling [$]<' SHOW_CC='@echo compiling [$]@' ECHO_CC='@' ],[ ECHO_LT='' ECHO_LD='' RULE_CC='' SHOW_CC='' ECHO_CC='' ]) AC_MSG_RESULT($enableval) AC_SUBST(ECHO_LT) AC_SUBST(ECHO_LD) AC_SUBST(RULE_CC) AC_SUBST(SHOW_CC) AC_SUBST(ECHO_CC) ])dnl dnl --------------------------------------------------------------------------- dnl CF_DISABLE_LEAKS version: 9 updated: 2021/04/03 16:41:50 dnl ---------------- dnl Combine no-leak checks with the libraries or tools that are used for the dnl checks. AC_DEFUN([CF_DISABLE_LEAKS],[ AC_REQUIRE([CF_WITH_DMALLOC]) AC_REQUIRE([CF_WITH_DBMALLOC]) AC_REQUIRE([CF_WITH_VALGRIND]) AC_MSG_CHECKING(if you want to perform memory-leak testing) AC_ARG_ENABLE(leaks, [ --disable-leaks test: free permanent memory, analyze leaks], [enable_leaks=$enableval], [enable_leaks=yes]) dnl with_no_leaks is more readable... if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi AC_MSG_RESULT($with_no_leaks) if test "$enable_leaks" = no ; then AC_DEFINE(NO_LEAKS,1,[Define to 1 if you want to perform memory-leak testing.]) AC_DEFINE(YY_NO_LEAKS,1,[Define to 1 if you want to perform memory-leak testing.]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_FUNC_GETOPT version: 1 updated: 2013/10/28 19:42:35 dnl -------------- dnl Check for getopt, and optionally provide our own. AC_DEFUN([CF_FUNC_GETOPT],[ CF_GETOPT_HEADER AC_HAVE_FUNCS(getopt) if test "x$ac_cv_func_getopt" = xno then ifelse([$1],,:,[ ifelse([$2],,,[CPPFLAGS="$CPPFLAGS -I$2"]) EXTRA_OBJS="$EXTRA_OBJS $1.o" ]) fi AC_SUBST(EXTRA_OBJS) ]) dnl --------------------------------------------------------------------------- dnl CF_FUNC_LSTAT version: 6 updated: 2023/01/11 04:05:23 dnl ------------- dnl A conventional existence-check for 'lstat' won't work with the Linux dnl version of gcc 2.7.0, since the symbol is defined only within dnl as an inline function. dnl dnl So much for portability. AC_DEFUN([CF_FUNC_LSTAT], [ AC_MSG_CHECKING(for lstat) AC_CACHE_VAL(ac_cv_func_lstat,[ AC_TRY_LINK([$ac_includes_default], [struct stat sb; lstat(".", &sb); (void) sb], [ac_cv_func_lstat=yes], [ac_cv_func_lstat=no]) ]) AC_MSG_RESULT($ac_cv_func_lstat ) if test "$ac_cv_func_lstat" = yes; then AC_DEFINE(HAVE_LSTAT,1,[Define to 1 if we have lstat]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_FUNC_MBSTOWCWIDTH version: 1 updated: 2019/11/28 14:10:37 dnl -------------------- dnl Check if mbsrtowcs() is available, along with the datatype needed to dnl use it, and wcwidth(). Using those, we can compute the number of columns dnl to use for a multibyte character string. AC_DEFUN(CF_FUNC_MBSTOWCWIDTH,[ AC_REQUIRE([CF_LOCALE]) AC_CACHE_CHECK(for mbsrtowcs and wcwidth,cf_cv_func_mbstowcwidth,[ if test "$cf_cv_locale" = yes then AC_TRY_LINK([ #include #include #include #include ],[ mbstate_t state; const char *source = "Hello\nWorld!\n"; size_t n; size_t needed = strlen(source); wchar_t *target = calloc(1 + needed, sizeof(wchar_t)); memset(&state, 0, sizeof(state)); (void) mbsrtowcs(target, &source, needed, &state); for (n = 0; n < needed; ++n) { if (wcwidth(target[n]) < 0) return 1; } ],[cf_cv_func_mbstowcwidth=yes],[cf_cv_func_mbstowcwidth=no]) fi ]) test "$cf_cv_func_mbstowcwidth" = yes && AC_DEFINE(HAVE_MBSTOWCWIDTH,1,[Define to 1 if mbsrtowsc and wcwidth exist]) ]) dnl --------------------------------------------------------------------------- dnl CF_FUNC_POPEN version: 1 updated: 2013/10/28 19:42:35 dnl ------------- dnl Check for popen, and optionally provide our own. AC_DEFUN([CF_FUNC_POPEN],[ AC_HAVE_FUNCS(popen) if test "x$ac_cv_func_popen" = xno then ifelse([$1],,:,[ ifelse([$2],,,[CPPFLAGS="$CPPFLAGS -I$2"]) EXTRA_OBJS="$EXTRA_OBJS $1.o" ]) else CF_POPEN_TEST fi AC_SUBST(EXTRA_OBJS) ]) dnl --------------------------------------------------------------------------- dnl CF_GCC_ATTRIBUTES version: 24 updated: 2021/03/20 12:00:25 dnl ----------------- dnl Test for availability of useful gcc __attribute__ directives to quiet dnl compiler warnings. Though useful, not all are supported -- and contrary dnl to documentation, unrecognized directives cause older compilers to barf. AC_DEFUN([CF_GCC_ATTRIBUTES], [AC_REQUIRE([AC_PROG_FGREP])dnl AC_REQUIRE([CF_C11_NORETURN])dnl if test "$GCC" = yes || test "$GXX" = yes then cat > conftest.i < "conftest.$ac_ext" < #include "confdefs.h" #include "conftest.h" #include "conftest.i" #if GCC_PRINTF #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) #else #define GCC_PRINTFLIKE(fmt,var) /*nothing*/ #endif #if GCC_SCANF #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) #else #define GCC_SCANFLIKE(fmt,var) /*nothing*/ #endif extern void wow(char *,...) GCC_SCANFLIKE(1,2); extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); extern GCC_NORETURN void foo(void); int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { (void)argc; (void)argv; return 0; } EOF cf_printf_attribute=no cf_scanf_attribute=no for cf_attribute in scanf printf unused noreturn do CF_UPPER(cf_ATTRIBUTE,$cf_attribute) cf_directive="__attribute__(($cf_attribute))" echo "checking for $CC $cf_directive" 1>&AC_FD_CC case "$cf_attribute" in (printf) cf_printf_attribute=yes cat >conftest.h <conftest.h <conftest.h <>confdefs.h case "$cf_attribute" in (noreturn) AC_DEFINE_UNQUOTED(GCC_NORETURN,$cf_directive,[Define to noreturn-attribute for gcc]) ;; (printf) cf_value='/* nothing */' if test "$cf_printf_attribute" != no ; then cf_value='__attribute__((format(printf,fmt,var)))' AC_DEFINE(GCC_PRINTF,1,[Define to 1 if the compiler supports gcc-like printf attribute.]) fi AC_DEFINE_UNQUOTED(GCC_PRINTFLIKE(fmt,var),$cf_value,[Define to printf-attribute for gcc]) ;; (scanf) cf_value='/* nothing */' if test "$cf_scanf_attribute" != no ; then cf_value='__attribute__((format(scanf,fmt,var)))' AC_DEFINE(GCC_SCANF,1,[Define to 1 if the compiler supports gcc-like scanf attribute.]) fi AC_DEFINE_UNQUOTED(GCC_SCANFLIKE(fmt,var),$cf_value,[Define to sscanf-attribute for gcc]) ;; (unused) AC_DEFINE_UNQUOTED(GCC_UNUSED,$cf_directive,[Define to unused-attribute for gcc]) ;; esac fi done else ${FGREP-fgrep} define conftest.i >>confdefs.h fi rm -rf ./conftest* fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_GCC_VERSION version: 9 updated: 2023/03/05 14:30:13 dnl -------------- dnl Find version of gcc, and (because icc/clang pretend to be gcc without being dnl compatible), attempt to determine if icc/clang is actually used. AC_DEFUN([CF_GCC_VERSION],[ AC_REQUIRE([AC_PROG_CC]) GCC_VERSION=none if test "$GCC" = yes ; then AC_MSG_CHECKING(version of $CC) GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[[^(]]*([[^)]][[^)]]*) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`" test -z "$GCC_VERSION" && GCC_VERSION=unknown AC_MSG_RESULT($GCC_VERSION) fi CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS) CF_CLANG_COMPILER(GCC,CLANG_COMPILER,CFLAGS) ])dnl dnl --------------------------------------------------------------------------- dnl CF_GCC_WARNINGS version: 43 updated: 2024/12/21 08:44:12 dnl --------------- dnl Check if the compiler supports useful warning options. There's a few that dnl we don't use, simply because they're too noisy: dnl dnl -Wconversion (useful in older versions of gcc, but not in gcc 2.7.x) dnl -Winline (usually not worthwhile) dnl -Wredundant-decls (system headers make this too noisy) dnl -Wtraditional (combines too many unrelated messages, only a few useful) dnl -Wwrite-strings (too noisy, but should review occasionally). This dnl is enabled for ncurses using "--enable-const". dnl -pedantic dnl dnl Parameter: dnl $1 is an optional list of gcc warning flags that a particular dnl application might want to use, e.g., "no-unused" for dnl -Wno-unused dnl Special: dnl If $with_ext_const is "yes", add a check for -Wwrite-strings dnl AC_DEFUN([CF_GCC_WARNINGS], [ AC_REQUIRE([CF_GCC_VERSION]) if test "x$have_x" = xyes; then CF_CONST_X_STRING fi cat > "conftest.$ac_ext" <], [int x = optind; char *y = optarg; (void)x; (void)y], [cf_cv_getopt_header=$cf_header break]) done ]) if test "$cf_cv_getopt_header" != none ; then AC_DEFINE(HAVE_GETOPT_HEADER,1,[Define to 1 if getopt variables are declared in header]) fi if test "$cf_cv_getopt_header" = getopt.h ; then AC_DEFINE(NEED_GETOPT_H,1,[Define to 1 if we must include getopt.h]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_GLOB_FULLPATH version: 2 updated: 2024/08/03 12:34:02 dnl ---------------- dnl Use this in case-statements to check for pathname syntax, i.e., absolute dnl pathnames. The "x" is assumed since we provide an alternate form for DOS. AC_DEFUN([CF_GLOB_FULLPATH],[ AC_REQUIRE([CF_WITH_SYSTYPE])dnl case "$cf_cv_system_name" in (cygwin*|msys*|mingw32*|mingw64|os2*) GLOB_FULLPATH_POSIX='/*' GLOB_FULLPATH_OTHER='[[a-zA-Z]]:[[\\/]]*' ;; (*) GLOB_FULLPATH_POSIX='/*' GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX ;; esac AC_SUBST(GLOB_FULLPATH_POSIX) AC_SUBST(GLOB_FULLPATH_OTHER) ])dnl dnl --------------------------------------------------------------------------- dnl CF_GNU_SOURCE version: 10 updated: 2018/12/10 20:09:41 dnl ------------- dnl Check if we must define _GNU_SOURCE to get a reasonable value for dnl _XOPEN_SOURCE, upon which many POSIX definitions depend. This is a defect dnl (or misfeature) of glibc2, which breaks portability of many applications, dnl since it is interwoven with GNU extensions. dnl dnl Well, yes we could work around it... dnl dnl Parameters: dnl $1 is the nominal value for _XOPEN_SOURCE AC_DEFUN([CF_GNU_SOURCE], [ cf_gnu_xopen_source=ifelse($1,,500,$1) AC_CACHE_CHECK(if this is the GNU C library,cf_cv_gnu_library,[ AC_TRY_COMPILE([#include ],[ #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 return 0; #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 return 0; #else # error not GNU C library #endif], [cf_cv_gnu_library=yes], [cf_cv_gnu_library=no]) ]) if test x$cf_cv_gnu_library = xyes; then # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE # was changed to help a little. newlib incorporated the change about 4 # years later. AC_CACHE_CHECK(if _DEFAULT_SOURCE can be used as a basis,cf_cv_gnu_library_219,[ cf_save="$CPPFLAGS" CF_APPEND_TEXT(CPPFLAGS,-D_DEFAULT_SOURCE) AC_TRY_COMPILE([#include ],[ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) return 0; #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) return 0; #else # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old #endif], [cf_cv_gnu_library_219=yes], [cf_cv_gnu_library_219=no]) CPPFLAGS="$cf_save" ]) if test "x$cf_cv_gnu_library_219" = xyes; then cf_save="$CPPFLAGS" AC_CACHE_CHECK(if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE,cf_cv_gnu_dftsrc_219,[ CF_ADD_CFLAGS(-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source) AC_TRY_COMPILE([ #include #include ],[ #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) return 0; #else # error GNU C library is too old #endif], [cf_cv_gnu_dftsrc_219=yes], [cf_cv_gnu_dftsrc_219=no]) ]) test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" else cf_cv_gnu_dftsrc_219=maybe fi if test "x$cf_cv_gnu_dftsrc_219" != xyes; then AC_CACHE_CHECK(if we must define _GNU_SOURCE,cf_cv_gnu_source,[ AC_TRY_COMPILE([#include ],[ #ifndef _XOPEN_SOURCE #error expected _XOPEN_SOURCE to be defined #endif], [cf_cv_gnu_source=no], [cf_save="$CPPFLAGS" CF_ADD_CFLAGS(-D_GNU_SOURCE) AC_TRY_COMPILE([#include ],[ #ifdef _XOPEN_SOURCE #error expected _XOPEN_SOURCE to be undefined #endif], [cf_cv_gnu_source=no], [cf_cv_gnu_source=yes]) CPPFLAGS="$cf_save" ]) ]) if test "$cf_cv_gnu_source" = yes then AC_CACHE_CHECK(if we should also define _DEFAULT_SOURCE,cf_cv_default_source,[ CF_APPEND_TEXT(CPPFLAGS,-D_GNU_SOURCE) AC_TRY_COMPILE([#include ],[ #ifdef _DEFAULT_SOURCE #error expected _DEFAULT_SOURCE to be undefined #endif], [cf_cv_default_source=no], [cf_cv_default_source=yes]) ]) if test "$cf_cv_default_source" = yes then CF_APPEND_TEXT(CPPFLAGS,-D_DEFAULT_SOURCE) fi fi fi fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_INTEL_COMPILER version: 9 updated: 2023/02/18 17:41:25 dnl ----------------- dnl Check if the given compiler is really the Intel compiler for Linux. It dnl tries to imitate gcc, but does not return an error when it finds a mismatch dnl between prototypes, e.g., as exercised by CF_MISSING_CHECK. dnl dnl This macro should be run "soon" after AC_PROG_CC or AC_PROG_CPLUSPLUS, to dnl ensure that it is not mistaken for gcc/g++. It is normally invoked from dnl the wrappers for gcc and g++ warnings. dnl dnl $1 = GCC (default) or GXX dnl $2 = INTEL_COMPILER (default) or INTEL_CPLUSPLUS dnl $3 = CFLAGS (default) or CXXFLAGS AC_DEFUN([CF_INTEL_COMPILER],[ AC_REQUIRE([AC_CANONICAL_HOST]) ifelse([$2],,INTEL_COMPILER,[$2])=no if test "$ifelse([$1],,[$1],GCC)" = yes ; then case "$host_os" in (linux*|gnu*) AC_MSG_CHECKING(if this is really Intel ifelse([$1],GXX,C++,C) compiler) cf_save_CFLAGS="$ifelse([$3],,CFLAGS,[$3])" ifelse([$3],,CFLAGS,[$3])="$ifelse([$3],,CFLAGS,[$3]) -no-gcc" AC_TRY_COMPILE([],[ #ifdef __INTEL_COMPILER #else #error __INTEL_COMPILER is not defined #endif ],[ifelse([$2],,INTEL_COMPILER,[$2])=yes cf_save_CFLAGS="$cf_save_CFLAGS -we147" ],[]) ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS" AC_MSG_RESULT($ifelse([$2],,INTEL_COMPILER,[$2])) ;; esac fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_LOCALE version: 7 updated: 2023/01/11 04:05:23 dnl --------- dnl Check if we have setlocale() and its header, dnl The optional parameter $1 tells what to do if we do have locale support. AC_DEFUN([CF_LOCALE], [ AC_MSG_CHECKING(for setlocale()) AC_CACHE_VAL(cf_cv_locale,[ AC_TRY_LINK([ $ac_includes_default #include ], [setlocale(LC_ALL, "")], [cf_cv_locale=yes], [cf_cv_locale=no]) ]) AC_MSG_RESULT($cf_cv_locale) test "$cf_cv_locale" = yes && { ifelse($1,,AC_DEFINE(LOCALE,1,[Define to 1 if we have locale support]),[$1]) } ])dnl dnl --------------------------------------------------------------------------- dnl CF_MAKE_DOCS version: 5 updated: 2021/01/10 16:05:11 dnl ------------ dnl $1 = name(s) to generate rules for dnl $2 = suffix of corresponding manpages used as input. dnl dnl This works best if called at the end of configure.in, following CF_WITH_MAN2HTML define([CF_MAKE_DOCS],[ test -z "$cf_make_docs" && cf_make_docs=0 cf_output=makefile test -f "$cf_output" || cf_output=Makefile if test "$cf_make_docs" = 0 then cat >>$cf_output <[\$]@ ${GROFF_NOTE}.ps.pdf : ${GROFF_NOTE} ps2pdf [\$]*.ps ${GROFF_NOTE} ${GROFF_NOTE}.$2.ps : ${GROFF_NOTE} [\$](SHELL) -c "tbl [\$]*.$2 | groff -man" >[\$]@ ${GROFF_NOTE} ${GROFF_NOTE}.$2.txt : ${GROFF_NOTE} GROFF_NO_SGR=stupid [\$](SHELL) -c "tbl [\$]*.$2 | nroff -rHY=0 -Tascii -man | col -bx" >[\$]@ ${MAN2HTML_NOTE}.$2.html : ${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} [\$]* $2 man >[\$]@ CF_EOF cf_make_docs=1 fi for cf_name in $1 do cat >>$cf_output <conftest if test -f CONFTEST ; then cf_cv_mixedcase=no else cf_cv_mixedcase=yes fi rm -f conftest CONFTEST fi ]) test "$cf_cv_mixedcase" = yes && AC_DEFINE(MIXEDCASE_FILENAMES,1,[Define to 1 if filesystem supports mixed-case filenames.]) ])dnl dnl --------------------------------------------------------------------------- dnl CF_MSG_LOG version: 5 updated: 2010/10/23 15:52:32 dnl ---------- dnl Write a debug message to config.log, along with the line number in the dnl configure script. AC_DEFUN([CF_MSG_LOG],[ echo "${as_me:-configure}:__oline__: testing $* ..." 1>&AC_FD_CC ])dnl dnl --------------------------------------------------------------------------- dnl CF_NO_LEAKS_OPTION version: 9 updated: 2021/06/13 19:45:41 dnl ------------------ dnl see CF_WITH_NO_LEAKS dnl dnl $1 = option/name dnl $2 = help-text dnl $3 = symbol to define if the option is set dnl $4 = additional actions to take if the option is set AC_DEFUN([CF_NO_LEAKS_OPTION],[ AC_MSG_CHECKING(if you want to use $1 for testing) AC_ARG_WITH($1, [$2], [case "x$withval" in (x|xno) ;; (*) : "${with_cflags:=-g}" : "${enable_leaks:=no}" with_$1=yes AC_DEFINE_UNQUOTED($3,1,"Define to 1 if you want to use $1 for testing.")ifelse([$4],,[ $4 ]) ;; esac], [with_$1=]) AC_MSG_RESULT(${with_$1:-no}) case ".$with_cflags" in (.*-g*) case .$CFLAGS in (.*-g*) ;; (*) CF_ADD_CFLAGS([-g]) ;; esac ;; esac ])dnl dnl --------------------------------------------------------------------------- dnl CF_PATHSEP version: 8 updated: 2021/01/01 13:31:04 dnl ---------- dnl Provide a value for the $PATH and similar separator (or amend the value dnl as provided in autoconf 2.5x). AC_DEFUN([CF_PATHSEP], [ AC_MSG_CHECKING(for PATH separator) case "$cf_cv_system_name" in (os2*) PATH_SEPARATOR=';' ;; (*) ${PATH_SEPARATOR:=':'} ;; esac ifelse([$1],,,[$1=$PATH_SEPARATOR]) AC_SUBST(PATH_SEPARATOR) AC_MSG_RESULT($PATH_SEPARATOR) ])dnl dnl --------------------------------------------------------------------------- dnl CF_PATH_PROG version: 12 updated: 2021/01/02 09:31:20 dnl ------------ dnl Check for a given program, defining corresponding symbol. dnl $1 = environment variable, which is suffixed by "_PATH" in the #define. dnl $2 = program name to find. dnl $3 = optional list of additional program names to test. dnl $4 = $PATH dnl dnl If there is more than one token in the result, #define the remaining tokens dnl to $1_ARGS. We need this for 'install' in particular. dnl dnl FIXME: we should allow this to be overridden by environment variables dnl AC_DEFUN([CF_PATH_PROG],[ AC_REQUIRE([CF_PATHSEP]) test -z "[$]$1" && $1="$2" AC_PATH_PROGS($1,[$]$1 $2 ifelse($3,,,$3),[$]$1, ifelse($4,,,$4)) cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_$1 do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then CF_PATH_SYNTAX(cf_temp,break) cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then CF_MSG_LOG(defining path for ${cf_path_prog}) AC_DEFINE_UNQUOTED($1_PATH,"$cf_path_prog",Define to pathname $1) test -n "$cf_path_args" && AC_DEFINE_UNQUOTED($1_ARGS,"$cf_path_args",Define to provide args for $1) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_PATH_SYNTAX version: 19 updated: 2024/08/03 13:08:58 dnl -------------- dnl Check the argument to see that it looks like a pathname. Rewrite it if it dnl begins with one of the prefix/exec_prefix variables, and then again if the dnl result begins with 'NONE'. This is necessary to work around autoconf's dnl delayed evaluation of those symbols. AC_DEFUN([CF_PATH_SYNTAX],[ AC_REQUIRE([CF_GLOB_FULLPATH])dnl if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x[$]$1" in (x\[$]\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\[$]\{*prefix\}*|x\[$]\{*dir\}*) eval $1="[$]$1" case "x[$]$1" in (xNONE/*) $1=`echo "[$]$1" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) $1=`echo "[$]$1" | sed -e s%NONE%$cf_path_syntax%` ;; (*) ifelse([$2],,[AC_MSG_ERROR([expected a pathname, not \"[$]$1\"])],$2) ;; esac ])dnl dnl --------------------------------------------------------------------------- dnl CF_POPEN_TEST version: 5 updated: 2014/06/04 18:37:28 dnl ------------- dnl Check to ensure that our prototype for 'popen()' doesn't conflict dnl with the system's (this is a problem on AIX and CLIX). dnl AC_DEFUN([CF_POPEN_TEST], [AC_MSG_CHECKING(for conflicting prototype for popen) AC_CACHE_VAL(ac_cv_td_popen, AC_TRY_LINK([ #include #include "system.h" #if defined(popen) || defined(pclose) make an error #else extern int pclose (FILE *p); extern FILE *popen (const char *c, const char *m); #endif ],, ac_cv_td_popen=no, ac_cv_td_popen=yes)) AC_MSG_RESULT($ac_cv_td_popen) if test $ac_cv_td_popen = yes; then AC_DEFINE(HAVE_POPEN_PROTOTYPE,[1],[Conflicting popen prototype]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_POSIX_C_SOURCE version: 12 updated: 2023/02/18 17:41:25 dnl ----------------- dnl Define _POSIX_C_SOURCE to the given level, and _POSIX_SOURCE if needed. dnl dnl POSIX.1-1990 _POSIX_SOURCE dnl POSIX.1-1990 and _POSIX_SOURCE and dnl POSIX.2-1992 C-Language _POSIX_C_SOURCE=2 dnl Bindings Option dnl POSIX.1b-1993 _POSIX_C_SOURCE=199309L dnl POSIX.1c-1996 _POSIX_C_SOURCE=199506L dnl X/Open 2000 _POSIX_C_SOURCE=200112L dnl dnl Parameters: dnl $1 is the nominal value for _POSIX_C_SOURCE AC_DEFUN([CF_POSIX_C_SOURCE], [AC_REQUIRE([CF_POSIX_VISIBLE])dnl if test "$cf_cv_posix_visible" = no; then cf_POSIX_C_SOURCE=ifelse([$1],,199506L,[$1]) cf_save_CFLAGS="$CFLAGS" cf_save_CPPFLAGS="$CPPFLAGS" CF_REMOVE_DEFINE(cf_trim_CFLAGS,$cf_save_CFLAGS,_POSIX_C_SOURCE) CF_REMOVE_DEFINE(cf_trim_CPPFLAGS,$cf_save_CPPFLAGS,_POSIX_C_SOURCE) AC_CACHE_CHECK(if we should define _POSIX_C_SOURCE,cf_cv_posix_c_source,[ CF_MSG_LOG(if the symbol is already defined go no further) AC_TRY_COMPILE([#include ],[ #ifndef _POSIX_C_SOURCE #error _POSIX_C_SOURCE is not defined #endif], [cf_cv_posix_c_source=no], [cf_want_posix_source=no case .$cf_POSIX_C_SOURCE in (.[[12]]??*) cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" ;; (.2) cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_want_posix_source=yes ;; (.*) cf_want_posix_source=yes ;; esac if test "$cf_want_posix_source" = yes ; then AC_TRY_COMPILE([#include ],[ #ifdef _POSIX_SOURCE #error _POSIX_SOURCE is defined #endif],[], cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE") fi CF_MSG_LOG(ifdef from value $cf_POSIX_C_SOURCE) CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" CF_APPEND_TEXT(CPPFLAGS,$cf_cv_posix_c_source) CF_MSG_LOG(if the second compile does not leave our definition intact error) AC_TRY_COMPILE([#include ],[ #ifndef _POSIX_C_SOURCE #error _POSIX_C_SOURCE is not defined #endif],, [cf_cv_posix_c_source=no]) CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" ]) ]) if test "$cf_cv_posix_c_source" != no ; then CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" CF_ADD_CFLAGS($cf_cv_posix_c_source) fi fi # cf_cv_posix_visible ])dnl dnl --------------------------------------------------------------------------- dnl CF_POSIX_VISIBLE version: 1 updated: 2018/12/31 20:46:17 dnl ---------------- dnl POSIX documents test-macros which an application may set before any system dnl headers are included to make features available. dnl dnl Some BSD platforms (originally FreeBSD, but copied by a few others) dnl diverged from POSIX in 2002 by setting symbols which make all of the most dnl recent features visible in the system header files unless the application dnl overrides the corresponding test-macros. Doing that introduces portability dnl problems. dnl dnl This macro makes a special check for the symbols used for this, to avoid a dnl conflicting definition. AC_DEFUN([CF_POSIX_VISIBLE], [ AC_CACHE_CHECK(if the POSIX test-macros are already defined,cf_cv_posix_visible,[ AC_TRY_COMPILE([#include ],[ #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) #error conflicting symbols found #endif ],[cf_cv_posix_visible=no],[cf_cv_posix_visible=yes]) ]) ])dnl dnl --------------------------------------------------------------------------- dnl CF_PROG_CC version: 5 updated: 2019/12/31 08:53:54 dnl ---------- dnl standard check for CC, plus followup sanity checks dnl $1 = optional parameter to pass to AC_PROG_CC to specify compiler name AC_DEFUN([CF_PROG_CC],[ CF_ACVERSION_CHECK(2.53, [AC_MSG_WARN(this will incorrectly handle gnatgcc choice) AC_REQUIRE([AC_PROG_CC])], []) ifelse($1,,[AC_PROG_CC],[AC_PROG_CC($1)]) CF_GCC_VERSION CF_ACVERSION_CHECK(2.52, [AC_PROG_CC_STDC], [CF_ANSI_CC_REQD]) CF_CC_ENV_FLAGS ])dnl dnl --------------------------------------------------------------------------- dnl CF_PROG_GROFF version: 3 updated: 2018/01/07 13:16:19 dnl ------------- dnl Check if groff is available, for cases (such as html output) where nroff dnl is not enough. AC_DEFUN([CF_PROG_GROFF],[ AC_PATH_PROG(GROFF_PATH,groff,no) AC_PATH_PROGS(NROFF_PATH,nroff mandoc,no) AC_PATH_PROG(TBL_PATH,tbl,cat) if test "x$GROFF_PATH" = xno then NROFF_NOTE= GROFF_NOTE="#" else NROFF_NOTE="#" GROFF_NOTE= fi AC_SUBST(GROFF_NOTE) AC_SUBST(NROFF_NOTE) ])dnl dnl --------------------------------------------------------------------------- dnl CF_PROG_LINT version: 7 updated: 2024/11/30 14:37:45 dnl ------------ AC_DEFUN([CF_PROG_LINT], [ AC_CHECK_PROGS(LINT, lint cppcheck splint) case "x$LINT" in (xlint|x*/lint) # NetBSD 10 test -z "$LINT_OPTS" && LINT_OPTS="-chapbrxzgFS -v -Ac11" ;; (xcppcheck|x*/cppcheck) test -z "$LINT_OPTS" && LINT_OPTS="--enable=all -D__CPPCHECK__" ;; esac AC_SUBST(LINT_OPTS) AC_SUBST(LINT_LIBS) ])dnl dnl --------------------------------------------------------------------------- dnl CF_REMOVE_CFLAGS version: 3 updated: 2021/09/05 17:25:40 dnl ---------------- dnl Remove a given option from CFLAGS/CPPFLAGS dnl $1 = option to remove dnl $2 = variable to update dnl $3 = nonempty to allow verbose message define([CF_REMOVE_CFLAGS], [ cf_tmp_cflag=`echo "x$1" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x[$]$2" | sed -e 's/^.//' -e 's/[[ ]][[ ]]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[[^ ]][[^ ]]*\\)\?%%" -e 's/^[[ ]]*//' -e 's%[[ ]][[ ]]*-D% -D%g' -e 's%[[ ]][[ ]]*-I% -I%g'` test "[$]$2" != "$cf_old_cflag" || break ifelse([$3],,,[CF_VERBOSE(removing old option $1 from $2)]) $2="$cf_old_cflag" done ])dnl dnl --------------------------------------------------------------------------- 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 dnl compilers process -U and -D options from left-to-right, so a -U option dnl cannot be used to cancel the effect of a preceding -D option. dnl dnl $1 = target (which could be the same as the source variable) dnl $2 = source (including '$') dnl $3 = symbol to remove define([CF_REMOVE_DEFINE], [ $1=`echo "$2" | \ sed -e 's/-[[UD]]'"$3"'\(=[[^ ]]*\)\?[[ ]]/ /g' \ -e 's/-[[UD]]'"$3"'\(=[[^ ]]*\)\?[$]//g'` ])dnl dnl --------------------------------------------------------------------------- dnl CF_STDIO_UNLOCKED version: 7 updated: 2023/12/13 18:02:34 dnl ----------------- dnl The four functions getc_unlocked(), getchar_unlocked(), putc_unlocked(), dnl putchar_unlocked() are in POSIX.1-2001. dnl dnl Test for one or more of the "unlocked" stdio getc/putc functions, and (if dnl the system requires it to declare the prototype) define _REENTRANT dnl dnl $1 = one or more stdio functions to check for existence and prototype. AC_DEFUN([CF_STDIO_UNLOCKED], [ cf_stdio_unlocked=no AC_CHECK_FUNCS(ifelse([$1],,[getc_unlocked putc_unlocked],[$1]), [cf_stdio_unlocked="$ac_func"]) if test "$cf_stdio_unlocked" != no ; then case "$CPPFLAGS" in (*-D_REENTRANT*) ;; (*) AC_CACHE_CHECK(if we should define _REENTRANT,cf_cv_stdio_unlocked,[ AC_TRY_COMPILE([#include ],[ extern void *$cf_stdio_unlocked(void *); void *dummy = $cf_stdio_unlocked(0); (void)dummy], [cf_cv_stdio_unlocked=yes], [cf_cv_stdio_unlocked=no])]) if test "$cf_cv_stdio_unlocked" = yes ; then AC_DEFINE(_REENTRANT,1,[Define to 1 if we should define _REENTRANT]) fi ;; esac fi ]) dnl --------------------------------------------------------------------------- dnl CF_TERMIOS version: 3 updated: 2019/12/31 20:39:42 dnl ---------- dnl See if we can link with the termios functions tcsetattr/tcgetattr AC_DEFUN([CF_TERMIOS], [ AC_MSG_CHECKING([for nonconflicting termios.h]) AC_CACHE_VAL(cf_cv_use_termios_h,[ AC_TRY_LINK([ #ifdef HAVE_IOCTL_H # include #else # ifdef HAVE_SYS_IOCTL_H # include # endif #endif #if !defined(sun) || !defined(NL0) #include #endif ],[ struct termios save_tty; (void) tcsetattr (0, TCSANOW, &save_tty); (void) tcgetattr (0, &save_tty)], [cf_cv_use_termios_h=yes], [cf_cv_use_termios_h=no]) ]) AC_MSG_RESULT($cf_cv_use_termios_h) if test $cf_cv_use_termios_h = yes; then AC_DEFINE(HAVE_TERMIOS_H,1,[Define this to 1 if we have header termios.h]) AC_DEFINE(HAVE_TCGETATTR,1,[Define this to 1 if we have function tcgetattr]) AC_DEFINE(HAVE_TCSETATTR,1,[Define this to 1 if we have function tcsetattr]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_TRY_XOPEN_SOURCE version: 4 updated: 2022/09/10 15:16:16 dnl ------------------- dnl If _XOPEN_SOURCE is not defined in the compile environment, check if we dnl can define it successfully. AC_DEFUN([CF_TRY_XOPEN_SOURCE],[ AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[ AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY, [cf_cv_xopen_source=no], [cf_save="$CPPFLAGS" CF_APPEND_TEXT(CPPFLAGS,-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE) AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY, [cf_cv_xopen_source=no], [cf_cv_xopen_source=$cf_XOPEN_SOURCE]) CPPFLAGS="$cf_save" ]) ]) if test "$cf_cv_xopen_source" != no ; then CF_REMOVE_DEFINE(CFLAGS,$CFLAGS,_XOPEN_SOURCE) CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,_XOPEN_SOURCE) cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" CF_APPEND_CFLAGS($cf_temp_xopen_source) fi ]) dnl --------------------------------------------------------------------------- dnl CF_UPPER version: 5 updated: 2001/01/29 23:40:59 dnl -------- dnl Make an uppercase version of a variable dnl $1=uppercase($2) AC_DEFUN([CF_UPPER], [ $1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` ])dnl dnl --------------------------------------------------------------------------- dnl CF_VERBOSE version: 3 updated: 2007/07/29 09:55:12 dnl ---------- dnl Use AC_VERBOSE w/o the warnings AC_DEFUN([CF_VERBOSE], [test -n "$verbose" && echo " $1" 1>&AC_FD_MSG CF_MSG_LOG([$1]) ])dnl dnl --------------------------------------------------------------------------- dnl CF_WITHOUT_X version: 3 updated: 2021/01/13 16:51:52 dnl ------------ dnl Use this to cancel the check for X headers/libraries which would be pulled dnl in via CF_GCC_WARNINGS. define([CF_WITHOUT_X], AC_DEFUN([AC_PATH_XTRA],[]) AC_DEFUN([CF_SAVE_XTRA_FLAGS],[]) AC_DEFUN([CF_RESTORE_XTRA_FLAGS],[]) AC_DEFUN([CF_CONST_X_STRING],[echo "skipping X-const check";])dnl AC_SUBST(X_CFLAGS) AC_SUBST(X_LIBS) [])dnl dnl --------------------------------------------------------------------------- dnl CF_WITH_DBMALLOC version: 7 updated: 2010/06/21 17:26:47 dnl ---------------- dnl Configure-option for dbmalloc. The optional parameter is used to override dnl the updating of $LIBS, e.g., to avoid conflict with subsequent tests. AC_DEFUN([CF_WITH_DBMALLOC],[ CF_NO_LEAKS_OPTION(dbmalloc, [ --with-dbmalloc test: use Conor Cahill's dbmalloc library], [USE_DBMALLOC]) if test "$with_dbmalloc" = yes ; then AC_CHECK_HEADER(dbmalloc.h, [AC_CHECK_LIB(dbmalloc,[debug_malloc]ifelse([$1],,[],[,$1]))]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_WITH_DMALLOC version: 7 updated: 2010/06/21 17:26:47 dnl --------------- dnl Configure-option for dmalloc. The optional parameter is used to override dnl the updating of $LIBS, e.g., to avoid conflict with subsequent tests. AC_DEFUN([CF_WITH_DMALLOC],[ CF_NO_LEAKS_OPTION(dmalloc, [ --with-dmalloc test: use Gray Watson's dmalloc library], [USE_DMALLOC]) if test "$with_dmalloc" = yes ; then AC_CHECK_HEADER(dmalloc.h, [AC_CHECK_LIB(dmalloc,[dmalloc_debug]ifelse([$1],,[],[,$1]))]) fi ])dnl dnl --------------------------------------------------------------------------- dnl CF_WITH_INSTALL_PREFIX version: 4 updated: 2010/10/23 15:52:32 dnl ---------------------- dnl Configure-script option to give a default value for the poorly-chosen name dnl $(DESTDIR). AC_DEFUN([CF_WITH_INSTALL_PREFIX], [ AC_MSG_CHECKING(for install-prefix) AC_ARG_WITH(install-prefix, [ --with-install-prefix=XXX sets DESTDIR, useful for packaging], [cf_opt_with_install_prefix=$withval], [cf_opt_with_install_prefix=${DESTDIR:-no}]) AC_MSG_RESULT($cf_opt_with_install_prefix) if test "$cf_opt_with_install_prefix" != no ; then CF_PATH_SYNTAX(cf_opt_with_install_prefix) DESTDIR=$cf_opt_with_install_prefix fi AC_SUBST(DESTDIR) ])dnl dnl --------------------------------------------------------------------------- dnl CF_WITH_MAN2HTML version: 14 updated: 2024/09/09 17:17:46 dnl ---------------- dnl Check for man2html and groff. Prefer man2html over groff, but use groff dnl as a fallback. See dnl dnl https://invisible-island.net/scripts/man2html.html dnl dnl Generate a shell script which hides the differences between the two. dnl dnl We name that "man2html.tmp". dnl dnl The shell script can be removed later, e.g., using "make distclean". AC_DEFUN([CF_WITH_MAN2HTML],[ AC_REQUIRE([CF_PROG_GROFF])dnl AC_REQUIRE([AC_PROG_FGREP])dnl case "x${with_man2html}" in (xno) cf_man2html=no ;; (x|xyes) AC_PATH_PROG(cf_man2html,man2html,no) case "x$cf_man2html" in (x/*) AC_MSG_CHECKING(for the modified Earl Hood script) if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) then cf_man2html_ok=yes else cf_man2html=no cf_man2html_ok=no fi AC_MSG_RESULT($cf_man2html_ok) ;; (*) cf_man2html=no ;; esac esac AC_MSG_CHECKING(for program to convert manpage to html) AC_ARG_WITH(man2html, [[ --with-man2html[=XXX] use XXX rather than groff]], [cf_man2html=$withval], [cf_man2html=$cf_man2html]) cf_with_groff=no case $cf_man2html in (yes) AC_MSG_RESULT(man2html) AC_PATH_PROG(cf_man2html,man2html,no) ;; (no|groff|*/groff*) cf_with_groff=yes cf_man2html=$GROFF_PATH AC_MSG_RESULT($cf_man2html) ;; (*) AC_MSG_RESULT($cf_man2html) ;; esac MAN2HTML_TEMP="man2html.tmp" cat >$MAN2HTML_TEMP <>$MAN2HTML_TEMP <conftest.in <conftest.out cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[[^0-9]]*://' -e 's/:.*//'`" cf_man2html_top=`expr "$cf_man2html_1st" - 2` cf_man2html_bot="`wc -l conftest.out |sed -e 's/[[^0-9]]//g'`" cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" AC_MSG_RESULT($cf_man2html_top_bot) AC_MSG_CHECKING(for pagesize to use) for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 do cat >>conftest.in <conftest.out cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[[^0-9]]*://' -e 's/:.*//'`" test -z "$cf_man2html_page" && cf_man2html_page=99999 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 rm -rf conftest* AC_MSG_RESULT($cf_man2html_page) cat >>$MAN2HTML_TEMP < and other headers which use u_int / u_short types cf_XOPEN_SOURCE= CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE) ;; (netbsd*) cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw ;; (openbsd[[6-9]]*) # OpenBSD 6.x has broken locale support, both compile-time and runtime. # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html # Abusing the conformance level is a workaround. AC_MSG_WARN(this system does not provide usable locale support) cf_xopen_source="-D_BSD_SOURCE" cf_XOPEN_SOURCE=700 ;; (openbsd[[4-5]]*) # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw cf_xopen_source="-D_BSD_SOURCE" cf_XOPEN_SOURCE=600 ;; (openbsd*) # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw ;; (osf[[45]]*) cf_xopen_source="-D_OSF_SOURCE" ;; (nto-qnx*) cf_xopen_source="-D_QNX_SOURCE" ;; (sco*) # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer ;; (solaris2.*) cf_xopen_source="-D__EXTENSIONS__" cf_cv_xopen_source=broken ;; (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) cf_XOPEN_SOURCE= cf_POSIX_C_SOURCE= ;; (*) CF_TRY_XOPEN_SOURCE cf_save_xopen_cppflags="$CPPFLAGS" CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE) # Some of these niche implementations use copy/paste, double-check... if test "$cf_cv_xopen_source" = no ; then CF_VERBOSE(checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE) AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,,[ AC_MSG_WARN(_POSIX_C_SOURCE definition is not usable) CPPFLAGS="$cf_save_xopen_cppflags"]) fi ;; esac if test -n "$cf_xopen_source" ; then CF_APPEND_CFLAGS($cf_xopen_source,true) fi dnl In anything but the default case, we may have system-specific setting dnl which is still not guaranteed to provide all of the entrypoints that dnl _XOPEN_SOURCE would yield. if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then AC_MSG_CHECKING(if _XOPEN_SOURCE really is set) AC_TRY_COMPILE([#include ],[ #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif], [cf_XOPEN_SOURCE_set=yes], [cf_XOPEN_SOURCE_set=no]) AC_MSG_RESULT($cf_XOPEN_SOURCE_set) if test "$cf_XOPEN_SOURCE_set" = yes then AC_TRY_COMPILE([#include ],[ #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE #endif], [cf_XOPEN_SOURCE_set_ok=yes], [cf_XOPEN_SOURCE_set_ok=no]) if test "$cf_XOPEN_SOURCE_set_ok" = no then AC_MSG_WARN(_XOPEN_SOURCE is lower than requested) fi else CF_TRY_XOPEN_SOURCE fi fi fi # cf_cv_posix_visible ]) dnl --------------------------------------------------------------------------- dnl CF__XOPEN_SOURCE_BODY version: 2 updated: 2023/02/18 17:41:25 dnl --------------------- dnl body of test when test-compiling for _XOPEN_SOURCE check define([CF__XOPEN_SOURCE_BODY], [ #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ]) dnl --------------------------------------------------------------------------- dnl CF__XOPEN_SOURCE_HEAD version: 2 updated: 2023/02/18 17:41:25 dnl --------------------- dnl headers to include when test-compiling for _XOPEN_SOURCE check define([CF__XOPEN_SOURCE_HEAD], [ $ac_includes_default ]) diffstat-1.68/configure0000755000000000000000000077240115002510011013655 0ustar rootroot#! /bin/sh # From configure.in Revision: 1.35 . # Guess values for system-dependent variables and create Makefiles. # Generated by Autoconf 2.52.20250126. # # Copyright 2003-2022,2023 Thomas E. Dickey # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Sed expression to map a string onto a valid variable name. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Name of the executable. as_me=`echo "$0" |sed 's,.*[\\/],,'` if expr a : '\(a\)' >/dev/null 2>&1; then as_expr="expr" else as_expr="false" fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln' else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file as_executable_p="test -f" # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset="unset" else as_unset="false" fi # NLS nuisances. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : "${ac_max_here_lines=38}" ac_unique_file="diffstat.c" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif" # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${datarootdir}/info' mandir='${datarootdir}/man' # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` case "$ac_option" in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst \ | --runs | --run | --ru) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* \ | --runs=* | --run=* | --ru=*) runstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo "$ac_package" | sed 's/-/_/g'` case "$ac_option" in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo "$ac_package" | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*dir | -dvi* | -doc* | -html* | -local* | -pdf* | -ps* ) echo "$as_me: WARNING: unsupported option: $ac_option" >&2 ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export "$ac_envvar" ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo "$ac_var"` case "$ac_val" in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo "$ac_var"` case "$ac_val" in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. build=$build_alias host=$host_alias target=$target_alias # FIXME: should be removed in autoconf 3.0. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat < if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. EOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue cd "$ac_subdir" # A "../" for each directory in /$ac_subdir. ac_dots=`echo "$ac_subdir" | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` case "$srcdir" in .) # No --srcdir option. We are building in place. ac_sub_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_sub_srcdir="$srcdir/$ac_subdir" ;; *) # Relative path. ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; esac # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_sub_srcdir/configure.gnu"; then echo $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive elif test -f "$ac_sub_srcdir/configure"; then echo $SHELL "$ac_sub_srcdir/configure" --help=recursive elif test -f "$ac_sub_srcdir/configure.ac" || test -f "$ac_sub_srcdir/configure.in"; then echo "$ac_configure" --help else echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 fi cd "$ac_popdir" done fi test -n "$ac_init_help" && exit 0 if "$ac_init_version"; then cat <<\EOF Copyright 2003-2022,2023 Thomas E. Dickey Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. EOF exit 0 fi exec 5>config.log cat >&5 </dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` PATH = $PATH _ASUNAME } >&5 cat >&5 <\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" ac_sep=" " ;; *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" ac_sep=" " ;; esac # Get rid of the leading space. done # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. trap 'exit_status=$? # Save into config.log some information that might help in debugging. echo >&5 echo "## ----------------- ##" >&5 echo "## Cache variables. ##" >&5 echo "## ----------------- ##" >&5 echo >&5 # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } >&5 sed "/^$/d" confdefs.h >conftest.log if test -s conftest.log; then echo >&5 echo "## ------------ ##" >&5 echo "## confdefs.h. ##" >&5 echo "## ------------ ##" >&5 echo >&5 cat conftest.log >&5 fi (echo; echo) >&5 test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" >&5 echo "$as_me: exit $exit_status" >&5 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:907: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} cat "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:918: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:926: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case "$ac_old_set,$ac_new_set" in set,) { echo "$as_me:942: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:946: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:952: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:954: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:956: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. It doesn't matter if # we pass some twice (in addition to the command line arguments). if test "$ac_new_set" = set; then case "$ac_new_val" in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" ;; esac fi done if "$ac_cache_corrupted"; then { echo "$as_me:975: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:977: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_main_return="return" case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac echo "#! $SHELL" >conftest.sh echo "exit 0" >>conftest.sh chmod +x conftest.sh if { (echo "$as_me:1006: PATH=\".;.\"; conftest.sh") >&5 (PATH=".;."; conftest.sh) 2>&5 ac_status=$? echo "$as_me:1009: \$? = $ac_status" >&5 (exit "$ac_status"); }; then ac_path_separator=';' else ac_path_separator=: fi PATH_SEPARATOR="$ac_path_separator" rm -f conftest.sh ac_config_headers="$ac_config_headers config.h:config_h.in" ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:1037: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Make sure we can run config.sub. $ac_config_sub sun4 >/dev/null 2>&1 || { { echo "$as_me:1047: error: cannot run $ac_config_sub" >&5 echo "$as_me: error: cannot run $ac_config_sub" >&2;} { (exit 1); exit 1; }; } echo "$as_me:1051: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6 if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_build_alias=$build_alias test -z "$ac_cv_build_alias" && ac_cv_build_alias=`$ac_config_guess` test -z "$ac_cv_build_alias" && { { echo "$as_me:1060: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || { { echo "$as_me:1064: error: $ac_config_sub $ac_cv_build_alias failed." >&5 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:1069: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6 build=$ac_cv_build build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then echo "$as_me:1077: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6 if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_host_alias=$host_alias test -z "$ac_cv_host_alias" && ac_cv_host_alias=$ac_cv_build_alias ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || { { echo "$as_me:1086: error: $ac_config_sub $ac_cv_host_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:1091: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6 host=$ac_cv_host host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` system_name="$host_os" else system_name="`(uname -s -r) 2>/dev/null`" if test -z "$system_name" ; then system_name="`(hostname) 2>/dev/null`" fi fi test -n "$system_name" && cat >>confdefs.h <&6 else cf_cv_system_name="$system_name" fi test -z "$system_name" && system_name="$cf_cv_system_name" test -n "$cf_cv_system_name" && echo "$as_me:1117: result: Configuring for $cf_cv_system_name" >&5 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 if test ".$system_name" != ".$cf_cv_system_name" ; then echo "$as_me:1121: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 { { echo "$as_me:1123: error: \"Please remove config.cache and try again.\"" >&5 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_main_return="return" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:1137: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:1152: found $ac_dir/$ac_word" >&5 break done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:1160: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:1163: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:1172: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:1187: found $ac_dir/$ac_word" >&5 break done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:1195: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:1198: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:1211: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:1226: found $ac_dir/$ac_word" >&5 break done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:1234: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:1237: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:1246: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="cc" echo "$as_me:1261: found $ac_dir/$ac_word" >&5 break done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:1269: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:1272: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:1285: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:1305: found $ac_dir/$ac_word" >&5 break done if test "$ac_prog_rejected" = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" ${1+"$@"} shift ac_cv_prog_CC="$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:1327: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:1330: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:1341: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:1356: found $ac_dir/$ac_word" >&5 break done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:1364: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:1367: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:1380: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:1395: found $ac_dir/$ac_word" >&5 break done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:1403: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:1406: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:1418: error: no acceptable cc found in \$PATH" >&5 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:1423:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo "$2"` { (eval echo "$as_me:1426: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:1429: \$? = $ac_status" >&5 (exit "$ac_status"); } { (eval echo "$as_me:1431: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:1434: \$? = $ac_status" >&5 (exit "$ac_status"); } { (eval echo "$as_me:1436: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:1439: \$? = $ac_status" >&5 (exit "$ac_status"); } cat >"conftest.$ac_ext" <<_ACEOF #line 1443 "configure" #include "confdefs.h" int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:1459: checking for C compiler default output" >&5 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` if { (eval echo "$as_me:1462: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:1465: \$? = $ac_status" >&5 (exit "$ac_status"); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. for ac_file in `ls a.exe conftest.exe 2>/dev/null; ls a.out conftest 2>/dev/null; ls a.* conftest.* 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; a.out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 { { echo "$as_me:1488: error: C compiler cannot create executables" >&5 echo "$as_me: error: C compiler cannot create executables" >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:1494: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:1499: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:1505: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1508: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:1515: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:1523: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe "conftest$ac_cv_exeext" ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:1530: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:1532: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:1535: checking for executable suffix" >&5 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 if { (eval echo "$as_me:1537: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1540: \$? = $ac_status" >&5 (exit "$ac_status"); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:1556: error: cannot compute EXEEXT: cannot compile and link" >&5 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} { (exit 1); exit 1; }; } fi rm -f "conftest$ac_cv_exeext" echo "$as_me:1562: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f "conftest.$ac_ext" EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:1568: checking for object suffix" >&5 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 1574 "configure" #include "confdefs.h" int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:1586: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1589: \$? = $ac_status" >&5 (exit "$ac_status"); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 { { echo "$as_me:1601: error: cannot compute OBJEXT: cannot compile" >&5 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} { (exit 1); exit 1; }; } fi rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" fi echo "$as_me:1608: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:1612: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 1618 "configure" #include "confdefs.h" int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1633: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1636: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1639: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1642: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_compiler_gnu=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:1654: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:1660: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 1666 "configure" #include "confdefs.h" int main (void) { ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1678: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1681: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1684: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1687: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_prog_cc_g=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:1697: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >"conftest.$ac_ext" <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1727: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1730: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1733: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then for ac_declaration in \ ''\ '#include ' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >"conftest.$ac_ext" <<_ACEOF #line 1745 "configure" #include "confdefs.h" #include $ac_declaration int main (void) { exit (42); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1761: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1764: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1767: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 continue fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" cat >"conftest.$ac_ext" <<_ACEOF #line 1777 "configure" #include "confdefs.h" $ac_declaration int main (void) { exit (42); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1789: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1792: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1795: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1798: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then break else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" done rm -rf conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo "$ac_declaration" >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_main_return="return" GCC_VERSION=none if test "$GCC" = yes ; then echo "$as_me:1828: checking version of $CC" >&5 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" test -z "$GCC_VERSION" && GCC_VERSION=unknown echo "$as_me:1832: result: $GCC_VERSION" >&5 echo "${ECHO_T}$GCC_VERSION" >&6 fi INTEL_COMPILER=no if test "$GCC" = yes ; then case "$host_os" in (linux*|gnu*) echo "$as_me:1841: checking if this is really Intel C compiler" >&5 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 cf_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -no-gcc" cat >"conftest.$ac_ext" <<_ACEOF #line 1846 "configure" #include "confdefs.h" int main (void) { #ifdef __INTEL_COMPILER #else #error __INTEL_COMPILER is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1866: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1869: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1872: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then INTEL_COMPILER=yes cf_save_CFLAGS="$cf_save_CFLAGS -we147" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CFLAGS="$cf_save_CFLAGS" echo "$as_me:1883: result: $INTEL_COMPILER" >&5 echo "${ECHO_T}$INTEL_COMPILER" >&6 ;; esac fi CLANG_COMPILER=no if test "$GCC" = yes ; then echo "$as_me:1892: checking if this is really Clang C compiler" >&5 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 cf_save_CFLAGS="$CFLAGS" cat >"conftest.$ac_ext" <<_ACEOF #line 1896 "configure" #include "confdefs.h" int main (void) { #ifdef __clang__ #else #error __clang__ is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1916: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:1919: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1922: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then CLANG_COMPILER=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CFLAGS="$cf_save_CFLAGS" echo "$as_me:1932: result: $CLANG_COMPILER" >&5 echo "${ECHO_T}$CLANG_COMPILER" >&6 fi CLANG_VERSION=none if test "x$CLANG_COMPILER" = "xyes" ; then case "$CC" in (c[1-9][0-9]|*/c[1-9][0-9]) { echo "$as_me:1941: WARNING: replacing broken compiler alias $CC" >&5 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" CC=clang ;; esac echo "$as_me:1948: checking version of $CC" >&5 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" test -z "$CLANG_VERSION" && CLANG_VERSION=unknown echo "$as_me:1952: result: $CLANG_VERSION" >&5 echo "${ECHO_T}$CLANG_VERSION" >&6 for cf_clang_opt in \ -Qunused-arguments \ -Wno-error=implicit-function-declaration do echo "$as_me:1959: checking if option $cf_clang_opt works" >&5 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 cf_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $cf_clang_opt" cat >"conftest.$ac_ext" <<_ACEOF #line 1964 "configure" #include "confdefs.h" #include int main (void) { printf("hello!\\n"); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:1978: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1981: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:1984: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1987: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_clang_optok=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_clang_optok=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" echo "$as_me:1998: result: $cf_clang_optok" >&5 echo "${ECHO_T}$cf_clang_optok" >&6 CFLAGS="$cf_save_CFLAGS" if test "$cf_clang_optok" = yes; then test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 echo "${as_me:-configure}:2004: testing adding option $cf_clang_opt ..." 1>&5 test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_clang_opt" fi done fi echo "$as_me:2013: 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 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >"conftest.$ac_ext" <<_ACEOF #line 2021 "configure" #include "confdefs.h" #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (char **p, int i) { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main (void) { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f "conftest.$ac_objext" if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:2071: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:2074: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2077: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 fi rm -f "conftest.$ac_objext" done rm -f "conftest.$ac_ext" "conftest.$ac_objext" CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:2094: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:2097: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # This should have been defined by AC_PROG_CC : "${CC:=cc}" echo "$as_me:2105: checking \$CFLAGS variable" >&5 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 case "x$CFLAGS" in (*-[IUD]*) echo "$as_me:2109: result: broken" >&5 echo "${ECHO_T}broken" >&6 { echo "$as_me:2111: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} cf_flags="$CFLAGS" CFLAGS= for cf_arg in $cf_flags do cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_arg do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi done ;; (*) echo "$as_me:2219: result: ok" >&5 echo "${ECHO_T}ok" >&6 ;; esac echo "$as_me:2224: checking \$CC variable" >&5 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 case "$CC" in (*[\ \ ]-*) echo "$as_me:2228: result: broken" >&5 echo "${ECHO_T}broken" >&6 { echo "$as_me:2230: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} # humor him... cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"` CC="$cf_prog" for cf_arg in $cf_flags do case "x$cf_arg" in (x-[IUDfgOW]*) cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_arg do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi ;; (*) CC="$CC $cf_arg" ;; esac done test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 echo "${as_me:-configure}:2347: testing resulting CC: '$CC' ..." 1>&5 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 echo "${as_me:-configure}:2351: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 echo "${as_me:-configure}:2355: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 ;; (*) echo "$as_me:2359: result: ok" >&5 echo "${ECHO_T}ok" >&6 ;; esac # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:2376: checking for a BSD compatible install" >&5 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_IFS=$IFS; IFS=$ac_path_separator for ac_dir in $PATH; do IFS=$ac_save_IFS # Account for people who put trailing slashes in PATH elements. case $ac_dir/ in / | ./ | .// | /cC/* \ | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if $as_executable_p "$ac_dir/$ac_prog"; then if test $ac_prog = install && grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:2425: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' for ac_prog in lint cppcheck splint do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:2440: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_LINT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$LINT"; then ac_cv_prog_LINT="$LINT" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_LINT="$ac_prog" echo "$as_me:2455: found $ac_dir/$ac_word" >&5 break done fi fi LINT=$ac_cv_prog_LINT if test -n "$LINT"; then echo "$as_me:2463: result: $LINT" >&5 echo "${ECHO_T}$LINT" >&6 else echo "$as_me:2466: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$LINT" && break done case "x$LINT" in (xlint|x*/lint) # NetBSD 10 test -z "$LINT_OPTS" && LINT_OPTS="-chapbrxzgFS -v -Ac11" ;; (xcppcheck|x*/cppcheck) test -z "$LINT_OPTS" && LINT_OPTS="--enable=all -D__CPPCHECK__" ;; esac echo "$as_me:2482: checking if filesystem supports mixed-case filenames" >&5 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 if test "${cf_cv_mixedcase+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes ; then case "$target_alias" in (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) cf_cv_mixedcase=no ;; (*) cf_cv_mixedcase=yes ;; esac else rm -f conftest CONFTEST echo test >conftest if test -f CONFTEST ; then cf_cv_mixedcase=no else cf_cv_mixedcase=yes fi rm -f conftest CONFTEST fi fi echo "$as_me:2509: result: $cf_cv_mixedcase" >&5 echo "${ECHO_T}$cf_cv_mixedcase" >&6 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF #define MIXEDCASE_FILENAMES 1 EOF for ac_prog in exctags ctags do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:2520: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CTAGS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CTAGS"; then ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_CTAGS="$ac_prog" echo "$as_me:2535: found $ac_dir/$ac_word" >&5 break done fi fi CTAGS=$ac_cv_prog_CTAGS if test -n "$CTAGS"; then echo "$as_me:2543: result: $CTAGS" >&5 echo "${ECHO_T}$CTAGS" >&6 else echo "$as_me:2546: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CTAGS" && break done for ac_prog in exetags etags do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:2557: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ETAGS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ETAGS"; then ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_ETAGS="$ac_prog" echo "$as_me:2572: found $ac_dir/$ac_word" >&5 break done fi fi ETAGS=$ac_cv_prog_ETAGS if test -n "$ETAGS"; then echo "$as_me:2580: result: $ETAGS" >&5 echo "${ECHO_T}$ETAGS" >&6 else echo "$as_me:2583: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ETAGS" && break done # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. set dummy ${CTAGS:-ctags}; ac_word=$2 echo "$as_me:2592: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$MAKE_LOWER_TAGS"; then ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_MAKE_LOWER_TAGS="yes" echo "$as_me:2607: found $ac_dir/$ac_word" >&5 break done test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" fi fi MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS if test -n "$MAKE_LOWER_TAGS"; then echo "$as_me:2616: result: $MAKE_LOWER_TAGS" >&5 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 else echo "$as_me:2619: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$cf_cv_mixedcase" = yes ; then # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. set dummy ${ETAGS:-etags}; ac_word=$2 echo "$as_me:2626: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$MAKE_UPPER_TAGS"; then ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_MAKE_UPPER_TAGS="yes" echo "$as_me:2641: found $ac_dir/$ac_word" >&5 break done test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" fi fi MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS if test -n "$MAKE_UPPER_TAGS"; then echo "$as_me:2650: result: $MAKE_UPPER_TAGS" >&5 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 else echo "$as_me:2653: result: no" >&5 echo "${ECHO_T}no" >&6 fi else MAKE_UPPER_TAGS=no fi if test "$MAKE_UPPER_TAGS" = yes ; then MAKE_UPPER_TAGS= else MAKE_UPPER_TAGS="#" fi if test "$MAKE_LOWER_TAGS" = yes ; then MAKE_LOWER_TAGS= else MAKE_LOWER_TAGS="#" fi echo "$as_me:2673: checking if you want to see long compiling messages" >&5 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 # Check whether --enable-echo or --disable-echo was given. if test "${enable_echo+set}" = set; then enableval="$enable_echo" test "$enableval" != no && enableval=yes if test "$enableval" != "yes" ; then ECHO_LT='--silent' ECHO_LD='@echo linking $@;' RULE_CC='@echo compiling $<' SHOW_CC='@echo compiling $@' ECHO_CC='@' else ECHO_LT='' ECHO_LD='' RULE_CC='' SHOW_CC='' ECHO_CC='' fi else enableval=yes ECHO_LT='' ECHO_LD='' RULE_CC='' SHOW_CC='' ECHO_CC='' fi; echo "$as_me:2707: result: $enableval" >&5 echo "${ECHO_T}$enableval" >&6 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then echo "$as_me:2711: checking target system type" >&5 echo $ECHO_N "checking target system type... $ECHO_C" >&6 if test "${ac_cv_target+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_target_alias=$target_alias test "x$ac_cv_target_alias" = "x" && ac_cv_target_alias=$ac_cv_host_alias ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` || { { echo "$as_me:2720: error: $ac_config_sub $ac_cv_target_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:2725: result: $ac_cv_target" >&5 echo "${ECHO_T}$ac_cv_target" >&6 target=$ac_cv_target target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- system_name="$host_os" else system_name="`(uname -s -r) 2>/dev/null`" if test -z "$system_name" ; then system_name="`(hostname) 2>/dev/null`" fi fi test -n "$system_name" && cat >>confdefs.h <&6 else cf_cv_system_name="$system_name" fi test -z "$system_name" && system_name="$cf_cv_system_name" test -n "$cf_cv_system_name" && echo "$as_me:2757: result: Configuring for $cf_cv_system_name" >&5 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 if test ".$system_name" != ".$cf_cv_system_name" ; then echo "$as_me:2761: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 { { echo "$as_me:2763: error: \"Please remove config.cache and try again.\"" >&5 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} { (exit 1); exit 1; }; } fi # Check whether --with-system-type or --without-system-type was given. if test "${with_system_type+set}" = set; then withval="$with_system_type" { echo "$as_me:2771: WARNING: overriding system type to $withval" >&5 echo "$as_me: WARNING: overriding system type to $withval" >&2;} cf_cv_system_name=$withval host_os=$withval fi; case "$cf_cv_system_name" in (cygwin*|msys*|mingw32*|mingw64|os2*) GLOB_FULLPATH_POSIX='/*' GLOB_FULLPATH_OTHER='[a-zA-Z]:[\\/]*' ;; (*) GLOB_FULLPATH_POSIX='/*' GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX ;; esac echo "$as_me:2789: checking for install-prefix" >&5 echo $ECHO_N "checking for install-prefix... $ECHO_C" >&6 # Check whether --with-install-prefix or --without-install-prefix was given. if test "${with_install_prefix+set}" = set; then withval="$with_install_prefix" cf_opt_with_install_prefix=$withval else cf_opt_with_install_prefix=${DESTDIR:-no} fi; echo "$as_me:2799: result: $cf_opt_with_install_prefix" >&5 echo "${ECHO_T}$cf_opt_with_install_prefix" >&6 if test "$cf_opt_with_install_prefix" != no ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_opt_with_install_prefix" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_opt_with_install_prefix="$cf_opt_with_install_prefix" case "x$cf_opt_with_install_prefix" in (xNONE/*) cf_opt_with_install_prefix=`echo "$cf_opt_with_install_prefix" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_opt_with_install_prefix=`echo "$cf_opt_with_install_prefix" | sed -e s%NONE%$cf_path_syntax%` ;; (*) { { echo "$as_me:2826: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&5 echo "$as_me: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&2;} { (exit 1); exit 1; }; } ;; esac DESTDIR=$cf_opt_with_install_prefix fi with_full_paths=no echo "$as_me:2837: checking for PATH separator" >&5 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 case "$cf_cv_system_name" in (os2*) PATH_SEPARATOR=';' ;; (*) ${PATH_SEPARATOR:=':'} ;; esac echo "$as_me:2844: result: $PATH_SEPARATOR" >&5 echo "${ECHO_T}$PATH_SEPARATOR" >&6 test -z "$BZCAT" && BZCAT="bzcat" for ac_prog in $BZCAT bzcat do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:2852: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_BZCAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $BZCAT in [\\/]* | ?:[\\/]*) ac_cv_path_BZCAT="$BZCAT" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_BZCAT="$ac_dir/$ac_word" echo "$as_me:2869: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi BZCAT=$ac_cv_path_BZCAT if test -n "$BZCAT"; then echo "$as_me:2880: result: $BZCAT" >&5 echo "${ECHO_T}$BZCAT" >&6 else echo "$as_me:2883: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$BZCAT" && break done test -n "$BZCAT" || BZCAT="$BZCAT" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_BZCAT do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:2940: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_BZIP2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $BZIP2 in [\\/]* | ?:[\\/]*) ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_BZIP2="$ac_dir/$ac_word" echo "$as_me:2975: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi BZIP2=$ac_cv_path_BZIP2 if test -n "$BZIP2"; then echo "$as_me:2986: result: $BZIP2" >&5 echo "${ECHO_T}$BZIP2" >&6 else echo "$as_me:2989: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$BZIP2" && break done test -n "$BZIP2" || BZIP2="$BZIP2" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_BZIP2 do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3046: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_COMPRESS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $COMPRESS in [\\/]* | ?:[\\/]*) ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_COMPRESS="$ac_dir/$ac_word" echo "$as_me:3081: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi COMPRESS=$ac_cv_path_COMPRESS if test -n "$COMPRESS"; then echo "$as_me:3092: result: $COMPRESS" >&5 echo "${ECHO_T}$COMPRESS" >&6 else echo "$as_me:3095: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$COMPRESS" && break done test -n "$COMPRESS" || COMPRESS="$COMPRESS" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_COMPRESS do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3152: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GZIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GZIP in [\\/]* | ?:[\\/]*) ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_GZIP="$ac_dir/$ac_word" echo "$as_me:3187: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi GZIP=$ac_cv_path_GZIP if test -n "$GZIP"; then echo "$as_me:3198: result: $GZIP" >&5 echo "${ECHO_T}$GZIP" >&6 else echo "$as_me:3201: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$GZIP" && break done test -n "$GZIP" || GZIP="$GZIP" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_GZIP do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3258: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_LZCAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $LZCAT in [\\/]* | ?:[\\/]*) ac_cv_path_LZCAT="$LZCAT" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_LZCAT="$ac_dir/$ac_word" echo "$as_me:3293: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi LZCAT=$ac_cv_path_LZCAT if test -n "$LZCAT"; then echo "$as_me:3304: result: $LZCAT" >&5 echo "${ECHO_T}$LZCAT" >&6 else echo "$as_me:3307: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$LZCAT" && break done test -n "$LZCAT" || LZCAT="$LZCAT" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_LZCAT do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3364: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PCAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PCAT in [\\/]* | ?:[\\/]*) ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_PCAT="$ac_dir/$ac_word" echo "$as_me:3399: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi PCAT=$ac_cv_path_PCAT if test -n "$PCAT"; then echo "$as_me:3410: result: $PCAT" >&5 echo "${ECHO_T}$PCAT" >&6 else echo "$as_me:3413: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$PCAT" && break done test -n "$PCAT" || PCAT="$PCAT" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_PCAT do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3470: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_UNCOMPRESS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $UNCOMPRESS in [\\/]* | ?:[\\/]*) ac_cv_path_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_UNCOMPRESS="$ac_dir/$ac_word" echo "$as_me:3505: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi UNCOMPRESS=$ac_cv_path_UNCOMPRESS if test -n "$UNCOMPRESS"; then echo "$as_me:3516: result: $UNCOMPRESS" >&5 echo "${ECHO_T}$UNCOMPRESS" >&6 else echo "$as_me:3519: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$UNCOMPRESS" && break done test -n "$UNCOMPRESS" || UNCOMPRESS="$UNCOMPRESS" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_UNCOMPRESS do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3576: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_XZ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $XZ in [\\/]* | ?:[\\/]*) ac_cv_path_XZ="$XZ" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_XZ="$ac_dir/$ac_word" echo "$as_me:3611: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi XZ=$ac_cv_path_XZ if test -n "$XZ"; then echo "$as_me:3622: result: $XZ" >&5 echo "${ECHO_T}$XZ" >&6 else echo "$as_me:3625: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$XZ" && break done test -n "$XZ" || XZ="$XZ" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_XZ do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3682: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_ZCAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ZCAT in [\\/]* | ?:[\\/]*) ac_cv_path_ZCAT="$ZCAT" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_ZCAT="$ac_dir/$ac_word" echo "$as_me:3717: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi ZCAT=$ac_cv_path_ZCAT if test -n "$ZCAT"; then echo "$as_me:3728: result: $ZCAT" >&5 echo "${ECHO_T}$ZCAT" >&6 else echo "$as_me:3731: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ZCAT" && break done test -n "$ZCAT" || ZCAT="$ZCAT" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_ZCAT do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3788: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_ZSTD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ZSTD in [\\/]* | ?:[\\/]*) ac_cv_path_ZSTD="$ZSTD" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_ZSTD="$ac_dir/$ac_word" echo "$as_me:3823: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi ZSTD=$ac_cv_path_ZSTD if test -n "$ZSTD"; then echo "$as_me:3834: result: $ZSTD" >&5 echo "${ECHO_T}$ZSTD" >&6 else echo "$as_me:3837: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ZSTD" && break done test -n "$ZSTD" || ZSTD="$ZSTD" cf_path_prog="" cf_path_args="" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" for cf_temp in $ac_cv_path_ZSTD do if test -z "$cf_path_prog" ; then if test "$with_full_paths" = yes ; then if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_temp" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_temp="$cf_temp" case "x$cf_temp" in (xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` ;; (*) break ;; esac cf_path_prog="$cf_temp" else cf_path_prog="`basename "$cf_temp"`" fi elif test -z "$cf_path_args" ; then cf_path_args="$cf_temp" else cf_path_args="$cf_path_args $cf_temp" fi done IFS="$cf_save_ifs" if test -n "$cf_path_prog" ; then echo "${as_me:-configure}:3894: testing defining path for ${cf_path_prog} ..." 1>&5 cat >>confdefs.h <>confdefs.h <&5 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 if test "${cf_cv_posix_visible+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 3914 "configure" #include "confdefs.h" #include int main (void) { #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) #error conflicting symbols found #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:3933: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:3936: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:3939: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:3942: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_posix_visible=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_posix_visible=yes fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:3953: result: $cf_cv_posix_visible" >&5 echo "${ECHO_T}$cf_cv_posix_visible" >&6 if test "$cf_cv_posix_visible" = no; then cf_XOPEN_SOURCE=500 cf_POSIX_C_SOURCE=199506L cf_xopen_source= case "$host_os" in (aix[4-7]*) cf_xopen_source="-D_ALL_SOURCE" ;; (darwin[0-8].*) cf_xopen_source="-D_APPLE_C_SOURCE" ;; (darwin*) cf_xopen_source="-D_DARWIN_C_SOURCE" cf_XOPEN_SOURCE= ;; (freebsd*|dragonfly*|midnightbsd*) # 5.x headers associate # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L cf_POSIX_C_SOURCE=200112L cf_XOPEN_SOURCE=600 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" ;; (hpux11*) cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" ;; (hpux*) cf_xopen_source="-D_HPUX_SOURCE" ;; (irix[56].*) cf_xopen_source="-D_SGI_SOURCE" cf_XOPEN_SOURCE= ;; (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc) cf_gnu_xopen_source=$cf_XOPEN_SOURCE echo "$as_me:3995: checking if this is the GNU C library" >&5 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 if test "${cf_cv_gnu_library+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 4002 "configure" #include "confdefs.h" #include int main (void) { #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 return 0; #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 return 0; #else # error not GNU C library #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4021: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4024: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4027: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4030: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_gnu_library=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_gnu_library=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:4041: result: $cf_cv_gnu_library" >&5 echo "${ECHO_T}$cf_cv_gnu_library" >&6 if test x$cf_cv_gnu_library = xyes; then # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE # was changed to help a little. newlib incorporated the change about 4 # years later. echo "$as_me:4049: checking if _DEFAULT_SOURCE can be used as a basis" >&5 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 if test "${cf_cv_gnu_library_219+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cf_save="$CPPFLAGS" test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" cat >"conftest.$ac_ext" <<_ACEOF #line 4061 "configure" #include "confdefs.h" #include int main (void) { #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) return 0; #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) return 0; #else # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4080: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4083: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4086: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4089: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_gnu_library_219=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_gnu_library_219=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CPPFLAGS="$cf_save" fi echo "$as_me:4101: result: $cf_cv_gnu_library_219" >&5 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 if test "x$cf_cv_gnu_library_219" = xyes; then cf_save="$CPPFLAGS" echo "$as_me:4106: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi cat >"conftest.$ac_ext" <<_ACEOF #line 4211 "configure" #include "confdefs.h" #include #include int main (void) { #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) return 0; #else # error GNU C library is too old #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4231: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4234: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4237: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4240: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_gnu_dftsrc_219=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_gnu_dftsrc_219=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:4251: result: $cf_cv_gnu_dftsrc_219" >&5 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" else cf_cv_gnu_dftsrc_219=maybe fi if test "x$cf_cv_gnu_dftsrc_219" != xyes; then echo "$as_me:4260: 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 4267 "configure" #include "confdefs.h" #include int main (void) { #ifndef _XOPEN_SOURCE #error expected _XOPEN_SOURCE to be defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4282: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4285: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4288: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4291: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_gnu_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_save="$CPPFLAGS" cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in -D_GNU_SOURCE do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi cat >"conftest.$ac_ext" <<_ACEOF #line 4398 "configure" #include "confdefs.h" #include int main (void) { #ifdef _XOPEN_SOURCE #error expected _XOPEN_SOURCE to be undefined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4413: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4416: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4419: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4422: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_gnu_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_gnu_source=yes fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CPPFLAGS="$cf_save" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:4437: result: $cf_cv_gnu_source" >&5 echo "${ECHO_T}$cf_cv_gnu_source" >&6 if test "$cf_cv_gnu_source" = yes then echo "$as_me:4442: checking if we should also define _DEFAULT_SOURCE" >&5 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 if test "${cf_cv_default_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" cat >"conftest.$ac_ext" <<_ACEOF #line 4452 "configure" #include "confdefs.h" #include int main (void) { #ifdef _DEFAULT_SOURCE #error expected _DEFAULT_SOURCE to be undefined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4467: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4470: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4473: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4476: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_default_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_default_source=yes fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:4487: result: $cf_cv_default_source" >&5 echo "${ECHO_T}$cf_cv_default_source" >&6 if test "$cf_cv_default_source" = yes then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" fi fi fi fi ;; linux*musl) cf_xopen_source="-D_BSD_SOURCE" ;; (minix*) cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... ;; (mirbsd*) # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks and other headers which use u_int / u_short types cf_XOPEN_SOURCE= if test "$cf_cv_posix_visible" = no; then cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE cf_save_CFLAGS="$CFLAGS" cf_save_CPPFLAGS="$CPPFLAGS" cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` echo "$as_me:4527: checking if we should define _POSIX_C_SOURCE" >&5 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 if test "${cf_cv_posix_c_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo "${as_me:-configure}:4533: testing if the symbol is already defined go no further ..." 1>&5 cat >"conftest.$ac_ext" <<_ACEOF #line 4536 "configure" #include "confdefs.h" #include int main (void) { #ifndef _POSIX_C_SOURCE #error _POSIX_C_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4551: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4554: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4557: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4560: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_posix_c_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_want_posix_source=no case .$cf_POSIX_C_SOURCE in (.[12]??*) cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" ;; (.2) cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_want_posix_source=yes ;; (.*) cf_want_posix_source=yes ;; esac if test "$cf_want_posix_source" = yes ; then cat >"conftest.$ac_ext" <<_ACEOF #line 4581 "configure" #include "confdefs.h" #include int main (void) { #ifdef _POSIX_SOURCE #error _POSIX_SOURCE is defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4596: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4599: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4602: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4605: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "${as_me:-configure}:4616: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" echo "${as_me:-configure}:4624: testing if the second compile does not leave our definition intact error ..." 1>&5 cat >"conftest.$ac_ext" <<_ACEOF #line 4627 "configure" #include "confdefs.h" #include int main (void) { #ifndef _POSIX_C_SOURCE #error _POSIX_C_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4642: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4645: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4648: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4651: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_posix_c_source=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:4667: result: $cf_cv_posix_c_source" >&5 echo "${ECHO_T}$cf_cv_posix_c_source" >&6 if test "$cf_cv_posix_c_source" != no ; then CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_cv_posix_c_source do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi fi fi # cf_cv_posix_visible ;; (netbsd*) cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw ;; (openbsd[6-9]*) # OpenBSD 6.x has broken locale support, both compile-time and runtime. # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html # Abusing the conformance level is a workaround. { echo "$as_me:4784: WARNING: this system does not provide usable locale support" >&5 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;} cf_xopen_source="-D_BSD_SOURCE" cf_XOPEN_SOURCE=700 ;; (openbsd[4-5]*) # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw cf_xopen_source="-D_BSD_SOURCE" cf_XOPEN_SOURCE=600 ;; (openbsd*) # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw ;; (osf[45]*) cf_xopen_source="-D_OSF_SOURCE" ;; (nto-qnx*) cf_xopen_source="-D_QNX_SOURCE" ;; (sco*) # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer ;; (solaris2.*) cf_xopen_source="-D__EXTENSIONS__" cf_cv_xopen_source=broken ;; (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) cf_XOPEN_SOURCE= cf_POSIX_C_SOURCE= ;; (*) echo "$as_me:4816: 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 4823 "configure" #include "confdefs.h" $ac_includes_default int main (void) { #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4841: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4844: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4847: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4850: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_xopen_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_save="$CPPFLAGS" test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" cat >"conftest.$ac_ext" <<_ACEOF #line 4862 "configure" #include "confdefs.h" $ac_includes_default int main (void) { #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:4880: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:4883: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:4886: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:4889: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_xopen_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_xopen_source=$cf_XOPEN_SOURCE fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CPPFLAGS="$cf_save" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:4904: result: $cf_cv_xopen_source" >&5 echo "${ECHO_T}$cf_cv_xopen_source" >&6 if test "$cf_cv_xopen_source" != no ; then CFLAGS=`echo "$CFLAGS" | \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` CPPFLAGS=`echo "$CPPFLAGS" | \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" for cf_add_cflags in $cf_temp_xopen_source do case "x$cf_add_cflags" in (x-[DU]*) cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` test "$CFLAGS" != "$cf_old_cflag" || break CFLAGS="$cf_old_cflag" done cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` test "$CPPFLAGS" != "$cf_old_cflag" || break CPPFLAGS="$cf_old_cflag" done ;; esac cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_add_cflags do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi done fi cf_save_xopen_cppflags="$CPPFLAGS" if test "$cf_cv_posix_visible" = no; then cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE cf_save_CFLAGS="$CFLAGS" cf_save_CPPFLAGS="$CPPFLAGS" cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` echo "$as_me:5064: checking if we should define _POSIX_C_SOURCE" >&5 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 if test "${cf_cv_posix_c_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else echo "${as_me:-configure}:5070: testing if the symbol is already defined go no further ..." 1>&5 cat >"conftest.$ac_ext" <<_ACEOF #line 5073 "configure" #include "confdefs.h" #include int main (void) { #ifndef _POSIX_C_SOURCE #error _POSIX_C_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5088: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5091: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5094: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5097: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_posix_c_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_want_posix_source=no case .$cf_POSIX_C_SOURCE in (.[12]??*) cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" ;; (.2) cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_want_posix_source=yes ;; (.*) cf_want_posix_source=yes ;; esac if test "$cf_want_posix_source" = yes ; then cat >"conftest.$ac_ext" <<_ACEOF #line 5118 "configure" #include "confdefs.h" #include int main (void) { #ifdef _POSIX_SOURCE #error _POSIX_SOURCE is defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5133: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5136: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5139: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5142: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "${as_me:-configure}:5153: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" echo "${as_me:-configure}:5161: testing if the second compile does not leave our definition intact error ..." 1>&5 cat >"conftest.$ac_ext" <<_ACEOF #line 5164 "configure" #include "confdefs.h" #include int main (void) { #ifndef _POSIX_C_SOURCE #error _POSIX_C_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5179: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5182: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5185: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5188: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_posix_c_source=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:5204: result: $cf_cv_posix_c_source" >&5 echo "${ECHO_T}$cf_cv_posix_c_source" >&6 if test "$cf_cv_posix_c_source" != no ; then CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS" cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_cv_posix_c_source do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi fi fi # cf_cv_posix_visible # Some of these niche implementations use copy/paste, double-check... if test "$cf_cv_xopen_source" = no ; then test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6 echo "${as_me:-configure}:5317: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5 cat >"conftest.$ac_ext" <<_ACEOF #line 5320 "configure" #include "confdefs.h" $ac_includes_default int main (void) { #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5338: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5341: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5344: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5347: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 { echo "$as_me:5354: WARNING: _POSIX_C_SOURCE definition is not usable" >&5 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;} CPPFLAGS="$cf_save_xopen_cppflags" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi ;; esac if test -n "$cf_xopen_source" ; then for cf_add_cflags in $cf_xopen_source do case "x$cf_add_cflags" in (x-[DU]*) cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` test "$CFLAGS" != "$cf_old_cflag" || break test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6 echo "${as_me:-configure}:5377: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5 CFLAGS="$cf_old_cflag" done cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` test "$CPPFLAGS" != "$cf_old_cflag" || break test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6 echo "${as_me:-configure}:5389: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5 CPPFLAGS="$cf_old_cflag" done ;; esac cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_add_cflags do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 echo "${as_me:-configure}:5477: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 echo "${as_me:-configure}:5487: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 echo "${as_me:-configure}:5497: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi done fi if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then echo "$as_me:5509: checking if _XOPEN_SOURCE really is set" >&5 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 cat >"conftest.$ac_ext" <<_ACEOF #line 5512 "configure" #include "confdefs.h" #include int main (void) { #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5527: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5530: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5533: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5536: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_XOPEN_SOURCE_set=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_XOPEN_SOURCE_set=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" echo "$as_me:5545: result: $cf_XOPEN_SOURCE_set" >&5 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 if test "$cf_XOPEN_SOURCE_set" = yes then cat >"conftest.$ac_ext" <<_ACEOF #line 5550 "configure" #include "confdefs.h" #include int main (void) { #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5565: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5568: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5571: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5574: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_XOPEN_SOURCE_set_ok=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_XOPEN_SOURCE_set_ok=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" if test "$cf_XOPEN_SOURCE_set_ok" = no then { echo "$as_me:5585: WARNING: _XOPEN_SOURCE is lower than requested" >&5 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} fi else echo "$as_me:5590: 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 5597 "configure" #include "confdefs.h" $ac_includes_default int main (void) { #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5615: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5618: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5621: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5624: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_xopen_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_save="$CPPFLAGS" test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" cat >"conftest.$ac_ext" <<_ACEOF #line 5636 "configure" #include "confdefs.h" $ac_includes_default int main (void) { #ifndef _XOPEN_SOURCE #error _XOPEN_SOURCE is not defined #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5654: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5657: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5660: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5663: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_xopen_source=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_xopen_source=$cf_XOPEN_SOURCE fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" CPPFLAGS="$cf_save" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:5678: result: $cf_cv_xopen_source" >&5 echo "${ECHO_T}$cf_cv_xopen_source" >&6 if test "$cf_cv_xopen_source" != no ; then CFLAGS=`echo "$CFLAGS" | \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` CPPFLAGS=`echo "$CPPFLAGS" | \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" for cf_add_cflags in $cf_temp_xopen_source do case "x$cf_add_cflags" in (x-[DU]*) cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` test "$CFLAGS" != "$cf_old_cflag" || break CFLAGS="$cf_old_cflag" done cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` while true do cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` test "$CPPFLAGS" != "$cf_old_cflag" || break CPPFLAGS="$cf_old_cflag" done ;; esac cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in $cf_add_cflags do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi done fi fi fi fi # cf_cv_posix_visible for ac_prog in ggrep grep do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:5829: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$GREP"; then ac_cv_prog_GREP="$GREP" # Let the user override the test. else ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_GREP="$ac_prog" echo "$as_me:5844: found $ac_dir/$ac_word" >&5 break done fi fi GREP=$ac_cv_prog_GREP if test -n "$GREP"; then echo "$as_me:5852: result: $GREP" >&5 echo "${ECHO_T}$GREP" >&6 else echo "$as_me:5855: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$GREP" && break done test -n "$GREP" || GREP=": " echo "$as_me:5863: checking for fgrep" >&5 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 if test "${ac_cv_path_FGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else for ac_prog in gfgrep fgrep do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:5875: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_FGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $FGREP in [\\/]* | ?:[\\/]*) ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_FGREP="$ac_dir/$ac_word" echo "$as_me:5892: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi FGREP=$ac_cv_path_FGREP if test -n "$FGREP"; then echo "$as_me:5903: result: $FGREP" >&5 echo "${ECHO_T}$FGREP" >&6 else echo "$as_me:5906: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$FGREP" && break done test -n "$FGREP" || FGREP=": " test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:5914: error: cannot find workable fgrep" >&5 echo "$as_me: error: cannot find workable fgrep" >&2;} { (exit 1); exit 1; }; } fi fi echo "$as_me:5919: result: $ac_cv_path_FGREP" >&5 echo "${ECHO_T}$ac_cv_path_FGREP" >&6 FGREP="$ac_cv_path_FGREP" echo "$as_me:5923: checking if you want to use C11 _Noreturn feature" >&5 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given. if test "${enable_stdnoreturn+set}" = set; then enableval="$enable_stdnoreturn" test "$enableval" != yes && enableval=no if test "$enableval" != "no" ; then enable_stdnoreturn=yes else enable_stdnoreturn=no fi else enableval=no enable_stdnoreturn=no fi; echo "$as_me:5940: result: $enable_stdnoreturn" >&5 echo "${ECHO_T}$enable_stdnoreturn" >&6 if test $enable_stdnoreturn = yes; then echo "$as_me:5944: checking for C11 _Noreturn feature" >&5 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6 if test "${cf_cv_c11_noreturn+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 5950 "configure" #include "confdefs.h" $ac_includes_default #include static _Noreturn void giveup(void) { exit(0); } int main (void) { if (feof(stdin)) giveup() ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:5966: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:5969: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:5972: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:5975: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_c11_noreturn=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_c11_noreturn=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:5986: result: $cf_cv_c11_noreturn" >&5 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6 else cf_cv_c11_noreturn=no, fi if test "$cf_cv_c11_noreturn" = yes; then cat >>confdefs.h <<\EOF #define HAVE_STDNORETURN_H 1 EOF cat >>confdefs.h <&5 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 # Check whether --with-warnings or --without-warnings was given. if test "${with_warnings+set}" = set; then withval="$with_warnings" cf_opt_with_warnings=$withval else cf_opt_with_warnings=no fi; echo "$as_me:6019: result: $cf_opt_with_warnings" >&5 echo "${ECHO_T}$cf_opt_with_warnings" >&6 if test "$cf_opt_with_warnings" != no ; then if test "$GCC" = yes || test "$GXX" = yes then cat > conftest.i <&5 echo "$as_me: checking for $CC __attribute__ directives..." >&6;} cat > "conftest.$ac_ext" < #include "confdefs.h" #include "conftest.h" #include "conftest.i" #if GCC_PRINTF #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) #else #define GCC_PRINTFLIKE(fmt,var) /*nothing*/ #endif #if GCC_SCANF #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) #else #define GCC_SCANFLIKE(fmt,var) /*nothing*/ #endif extern void wow(char *,...) GCC_SCANFLIKE(1,2); extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); extern GCC_NORETURN void foo(void); int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } EOF cf_printf_attribute=no cf_scanf_attribute=no for cf_attribute in scanf printf unused noreturn do cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` cf_directive="__attribute__(($cf_attribute))" echo "checking for $CC $cf_directive" 1>&5 case "$cf_attribute" in (printf) cf_printf_attribute=yes cat >conftest.h <conftest.h <conftest.h <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6097: \$? = $ac_status" >&5 (exit "$ac_status"); }; then test -n "$verbose" && echo "$as_me:6099: result: ... $cf_attribute" >&5 echo "${ECHO_T}... $cf_attribute" >&6 cat conftest.h >>confdefs.h case "$cf_attribute" in (noreturn) cat >>confdefs.h <>confdefs.h <<\EOF #define GCC_PRINTF 1 EOF fi cat >>confdefs.h <>confdefs.h <<\EOF #define GCC_SCANF 1 EOF fi cat >>confdefs.h <>confdefs.h <>confdefs.h fi rm -rf ./conftest* fi if test "x$have_x" = xyes; then echo "skipping X-const check"; fi cat > "conftest.$ac_ext" <&5 echo "$as_me: checking for $CC warning options..." >&6;} cf_save_CFLAGS="$CFLAGS" EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" for cf_opt in \ wd1419 \ wd1683 \ wd1684 \ wd193 \ wd593 \ wd279 \ wd810 \ wd869 \ wd981 do CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" if { (eval echo "$as_me:6192: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6195: \$? = $ac_status" >&5 (exit "$ac_status"); }; then test -n "$verbose" && echo "$as_me:6197: result: ... -$cf_opt" >&5 echo "${ECHO_T}... -$cf_opt" >&6 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" fi done CFLAGS="$cf_save_CFLAGS" elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" then { echo "$as_me:6205: checking for $CC warning options..." >&5 echo "$as_me: checking for $CC warning options..." >&6;} cf_save_CFLAGS="$CFLAGS" cf_warn_CONST="" test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= for cf_opt in W Wall \ Wbad-function-cast \ Wcast-align \ Wcast-qual \ Wdeclaration-after-statement \ Wextra \ Winline \ Wmissing-declarations \ Wmissing-prototypes \ Wnested-externs \ Wpointer-arith \ Wshadow \ Wstrict-prototypes \ Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST do CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" if { (eval echo "$as_me:6228: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6231: \$? = $ac_status" >&5 (exit "$ac_status"); }; then test -n "$verbose" && echo "$as_me:6233: result: ... -$cf_opt" >&5 echo "${ECHO_T}... -$cf_opt" >&6 case "$cf_opt" in (Winline) case "$GCC_VERSION" in ([34].*) test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 echo "${as_me:-configure}:6241: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 continue;; esac ;; (Wpointer-arith) case "$GCC_VERSION" in ([12].*) test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 echo "${as_me:-configure}:6251: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 continue;; esac ;; esac EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" fi done CFLAGS="$cf_save_CFLAGS" fi rm -rf ./conftest* fi fi echo "$as_me:6267: 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 6273 "configure" #include "confdefs.h" int main (void) { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++ccp; p = (char**) ccp; ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; (void)s; (void)x; (void)zero; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; (void)foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; (void)p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; (void)foo; } #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:6335: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6338: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:6341: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:6344: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_c_const=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:6354: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then cat >>confdefs.h <<\EOF #define const EOF fi echo "$as_me:6364: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else for ac_prog in gegrep egrep do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:6376: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $EGREP in [\\/]* | ?:[\\/]*) ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_EGREP="$ac_dir/$ac_word" echo "$as_me:6393: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi EGREP=$ac_cv_path_EGREP if test -n "$EGREP"; then echo "$as_me:6404: result: $EGREP" >&5 echo "${ECHO_T}$EGREP" >&6 else echo "$as_me:6407: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$EGREP" && break done test -n "$EGREP" || EGREP=": " test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:6415: error: cannot find workable egrep" >&5 echo "$as_me: error: cannot find workable egrep" >&2;} { (exit 1); exit 1; }; } fi fi echo "$as_me:6420: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6 EGREP="$ac_cv_path_EGREP" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_main_return="return" echo "$as_me:6430: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >"conftest.$ac_ext" <<_ACEOF #line 6451 "configure" #include "confdefs.h" #include Syntax error _ACEOF if { (eval echo "$as_me:6456: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:6462: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 # Broken: fails on valid input. continue fi rm -f conftest.err "conftest.$ac_ext" # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >"conftest.$ac_ext" <<_ACEOF #line 6485 "configure" #include "confdefs.h" #include _ACEOF if { (eval echo "$as_me:6489: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:6495: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err "conftest.$ac_ext" done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err "conftest.$ac_ext" if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi echo "$as_me:6532: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >"conftest.$ac_ext" <<_ACEOF #line 6542 "configure" #include "confdefs.h" #include Syntax error _ACEOF if { (eval echo "$as_me:6547: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:6553: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 # Broken: fails on valid input. continue fi rm -f conftest.err "conftest.$ac_ext" # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >"conftest.$ac_ext" <<_ACEOF #line 6576 "configure" #include "confdefs.h" #include _ACEOF if { (eval echo "$as_me:6580: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:6586: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err "conftest.$ac_ext" done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err "conftest.$ac_ext" if $ac_preproc_ok; then : else { { echo "$as_me:6614: error: C preprocessor \"$CPP\" fails sanity check" >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_main_return="return" echo "$as_me:6626: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 6632 "configure" #include "confdefs.h" #include #include #include #include _ACEOF if { (eval echo "$as_me:6640: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:6646: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_header_stdc=no fi rm -f conftest.err "conftest.$ac_ext" if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >"conftest.$ac_ext" <<_ACEOF #line 6668 "configure" #include "confdefs.h" #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -rf conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >"conftest.$ac_ext" <<_ACEOF #line 6686 "configure" #include "confdefs.h" #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -rf conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >"conftest.$ac_ext" <<_ACEOF #line 6707 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main (void) { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) $ac_main_return(2); $ac_main_return (0); } _ACEOF rm -f "conftest$ac_exeext" if { (eval echo "$as_me:6733: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:6736: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' { (eval echo "$as_me:6738: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:6741: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_header_stdc=no fi rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" fi fi fi echo "$as_me:6754: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:6770: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 6776 "configure" #include "confdefs.h" $ac_includes_default #include <$ac_header> _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:6782: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6785: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:6788: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:6791: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_Header=no" fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:6801: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_exit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 6817 "configure" #include "confdefs.h" $ac_includes_default int main (void) { #ifndef exit (void) exit; #endif ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:6832: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6835: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:6838: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:6841: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_have_decl_exit=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_have_decl_exit=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:6851: result: $ac_cv_have_decl_exit" >&5 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6 for ac_header in ioctl.h search.h sys/ioctl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:6857: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 6863 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF if { (eval echo "$as_me:6867: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:6873: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_Header=no" fi rm -f conftest.err "conftest.$ac_ext" fi echo "$as_me:6892: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 6908 "configure" #include "confdefs.h" $ac_includes_default int main (void) { if ((size_t *) 0) return 0; if (sizeof (size_t)) return 0; ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:6923: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:6926: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:6929: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:6932: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_type_size_t=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:6942: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6 if test "$ac_cv_type_size_t" = yes; then : else cat >>confdefs.h <&5 echo $ECHO_N "checking for setlocale()... $ECHO_C" >&6 if test "${cf_cv_locale+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 6961 "configure" #include "confdefs.h" $ac_includes_default #include int main (void) { setlocale(LC_ALL, "") ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:6975: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:6978: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:6981: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:6984: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_locale=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_locale=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:6996: result: $cf_cv_locale" >&5 echo "${ECHO_T}$cf_cv_locale" >&6 test "$cf_cv_locale" = yes && { cat >>confdefs.h <<\EOF #define LOCALE 1 EOF } for ac_func in \ mkdtemp \ opendir \ strdup \ tsearch \ do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:7012: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7018 "configure" #include "confdefs.h" #define $ac_func autoconf_temporary #include /* least-intrusive standard header which defines gcc2 __stub macros */ #undef $ac_func #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (void); int main (void) { /* The GNU C library defines stubs for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) #error found stub for $ac_func #endif return $ac_func (); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7049: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7052: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7055: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7058: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_var=no" fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7068: result: `eval echo '${'"$as_ac_var"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for lstat... $ECHO_C" >&6 if test "${ac_cv_func_lstat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7085 "configure" #include "confdefs.h" $ac_includes_default int main (void) { struct stat sb; lstat(".", &sb); (void) sb ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7097: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7100: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7103: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7106: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_func_lstat=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_func_lstat=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7118: result: $ac_cv_func_lstat " >&5 echo "${ECHO_T}$ac_cv_func_lstat " >&6 if test "$ac_cv_func_lstat" = yes; then cat >>confdefs.h <<\EOF #define HAVE_LSTAT 1 EOF fi for ac_header in getopt.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:7131: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7137 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF if { (eval echo "$as_me:7141: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:7147: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_Header=no" fi rm -f conftest.err "conftest.$ac_ext" fi echo "$as_me:7166: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6 if test "${cf_cv_getopt_header+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cf_cv_getopt_header=none for cf_header in stdio.h stdlib.h unistd.h getopt.h do cat >"conftest.$ac_ext" <<_ACEOF #line 7186 "configure" #include "confdefs.h" #include <$cf_header> int main (void) { int x = optind; char *y = optarg; (void)x; (void)y ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:7199: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:7202: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:7205: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7208: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_getopt_header=$cf_header break else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" done fi echo "$as_me:7220: result: $cf_cv_getopt_header" >&5 echo "${ECHO_T}$cf_cv_getopt_header" >&6 if test "$cf_cv_getopt_header" != none ; then cat >>confdefs.h <<\EOF #define HAVE_GETOPT_HEADER 1 EOF fi if test "$cf_cv_getopt_header" = getopt.h ; then cat >>confdefs.h <<\EOF #define NEED_GETOPT_H 1 EOF fi for ac_func in getopt do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:7240: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7246 "configure" #include "confdefs.h" #define $ac_func autoconf_temporary #include /* least-intrusive standard header which defines gcc2 __stub macros */ #undef $ac_func #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (void); int main (void) { /* The GNU C library defines stubs for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) #error found stub for $ac_func #endif return $ac_func (); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7277: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7280: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7283: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7286: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_var=no" fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7296: result: `eval echo '${'"$as_ac_var"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7323 "configure" #include "confdefs.h" #define $ac_func autoconf_temporary #include /* least-intrusive standard header which defines gcc2 __stub macros */ #undef $ac_func #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (void); int main (void) { /* The GNU C library defines stubs for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) #error found stub for $ac_func #endif return $ac_func (); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7354: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7357: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7360: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7363: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_var=no" fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7373: result: `eval echo '${'"$as_ac_var"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking for conflicting prototype for popen... $ECHO_C" >&6 if test "${ac_cv_td_popen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7396 "configure" #include "confdefs.h" #include #include "system.h" #if defined(popen) || defined(pclose) make an error #else extern int pclose (FILE *p); extern FILE *popen (const char *c, const char *m); #endif int main (void) { ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7417: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7420: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7423: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7426: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_td_popen=no else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_td_popen=yes fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7437: result: $ac_cv_td_popen" >&5 echo "${ECHO_T}$ac_cv_td_popen" >&6 if test $ac_cv_td_popen = yes; then cat >>confdefs.h <<\EOF #define HAVE_POPEN_PROTOTYPE 1 EOF fi fi echo "$as_me:7449: checking for mbsrtowcs and wcwidth" >&5 echo $ECHO_N "checking for mbsrtowcs and wcwidth... $ECHO_C" >&6 if test "${cf_cv_func_mbstowcwidth+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cf_cv_locale" = yes then cat >"conftest.$ac_ext" <<_ACEOF #line 7458 "configure" #include "confdefs.h" #include #include #include #include int main (void) { mbstate_t state; const char *source = "Hello\nWorld!\n"; size_t n; size_t needed = strlen(source); wchar_t *target = calloc(1 + needed, sizeof(wchar_t)); memset(&state, 0, sizeof(state)); (void) mbsrtowcs(target, &source, needed, &state); for (n = 0; n < needed; ++n) { if (wcwidth(target[n]) < 0) return 1; } ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7488: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7491: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7494: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7497: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_func_mbstowcwidth=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_func_mbstowcwidth=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi fi echo "$as_me:7509: result: $cf_cv_func_mbstowcwidth" >&5 echo "${ECHO_T}$cf_cv_func_mbstowcwidth" >&6 test "$cf_cv_func_mbstowcwidth" = yes && cat >>confdefs.h <<\EOF #define HAVE_MBSTOWCWIDTH 1 EOF cf_stdio_unlocked=no for ac_func in getc_unlocked do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:7521: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7527 "configure" #include "confdefs.h" #define $ac_func autoconf_temporary #include /* least-intrusive standard header which defines gcc2 __stub macros */ #undef $ac_func #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (void); int main (void) { /* The GNU C library defines stubs for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) #error found stub for $ac_func #endif return $ac_func (); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7558: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7561: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7564: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7567: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 eval "$as_ac_var=no" fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7577: result: `eval echo '${'"$as_ac_var"'}'`" >&5 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking if we should define _REENTRANT... $ECHO_C" >&6 if test "${cf_cv_stdio_unlocked+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7599 "configure" #include "confdefs.h" #include int main (void) { extern void *$cf_stdio_unlocked(void *); void *dummy = $cf_stdio_unlocked(0); (void)dummy ; return 0; } _ACEOF rm -f "conftest.$ac_objext" if { (eval echo "$as_me:7613: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:7616: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest.$ac_objext"' { (eval echo "$as_me:7619: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7622: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_stdio_unlocked=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_stdio_unlocked=no fi rm -f "conftest.$ac_objext" "conftest.$ac_ext" fi echo "$as_me:7632: result: $cf_cv_stdio_unlocked" >&5 echo "${ECHO_T}$cf_cv_stdio_unlocked" >&6 if test "$cf_cv_stdio_unlocked" = yes ; then cat >>confdefs.h <<\EOF #define _REENTRANT 1 EOF fi ;; esac fi echo "$as_me:7645: checking for nonconflicting termios.h" >&5 echo $ECHO_N "checking for nonconflicting termios.h... $ECHO_C" >&6 if test "${cf_cv_use_termios_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 7652 "configure" #include "confdefs.h" #ifdef HAVE_IOCTL_H # include #else # ifdef HAVE_SYS_IOCTL_H # include # endif #endif #if !defined(sun) || !defined(NL0) #include #endif int main (void) { struct termios save_tty; (void) tcsetattr (0, TCSANOW, &save_tty); (void) tcgetattr (0, &save_tty) ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:7679: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:7682: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:7685: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:7688: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then cf_cv_use_termios_h=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 cf_cv_use_termios_h=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" fi echo "$as_me:7700: result: $cf_cv_use_termios_h" >&5 echo "${ECHO_T}$cf_cv_use_termios_h" >&6 if test $cf_cv_use_termios_h = yes; then cat >>confdefs.h <<\EOF #define HAVE_TERMIOS_H 1 EOF cat >>confdefs.h <<\EOF #define HAVE_TCGETATTR 1 EOF cat >>confdefs.h <<\EOF #define HAVE_TCSETATTR 1 EOF fi # Extract the first word of "groff", so it can be a program name with args. set dummy groff; ac_word=$2 echo "$as_me:7720: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GROFF_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GROFF_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" echo "$as_me:7737: found $ac_dir/$ac_word" >&5 break fi done test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" ;; esac fi GROFF_PATH=$ac_cv_path_GROFF_PATH if test -n "$GROFF_PATH"; then echo "$as_me:7749: result: $GROFF_PATH" >&5 echo "${ECHO_T}$GROFF_PATH" >&6 else echo "$as_me:7752: result: no" >&5 echo "${ECHO_T}no" >&6 fi for ac_prog in nroff mandoc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:7760: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_NROFF_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $NROFF_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" echo "$as_me:7777: found $ac_dir/$ac_word" >&5 break fi done ;; esac fi NROFF_PATH=$ac_cv_path_NROFF_PATH if test -n "$NROFF_PATH"; then echo "$as_me:7788: result: $NROFF_PATH" >&5 echo "${ECHO_T}$NROFF_PATH" >&6 else echo "$as_me:7791: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$NROFF_PATH" && break done test -n "$NROFF_PATH" || NROFF_PATH="no" # Extract the first word of "tbl", so it can be a program name with args. set dummy tbl; ac_word=$2 echo "$as_me:7801: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_TBL_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $TBL_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_TBL_PATH="$ac_dir/$ac_word" echo "$as_me:7818: found $ac_dir/$ac_word" >&5 break fi done test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" ;; esac fi TBL_PATH=$ac_cv_path_TBL_PATH if test -n "$TBL_PATH"; then echo "$as_me:7830: result: $TBL_PATH" >&5 echo "${ECHO_T}$TBL_PATH" >&6 else echo "$as_me:7833: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "x$GROFF_PATH" = xno then NROFF_NOTE= GROFF_NOTE="#" else NROFF_NOTE="#" GROFF_NOTE= fi case "x${with_man2html}" in (xno) cf_man2html=no ;; (x|xyes) # Extract the first word of "man2html", so it can be a program name with args. set dummy man2html; ac_word=$2 echo "$as_me:7853: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_cf_man2html+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $cf_man2html in [\\/]* | ?:[\\/]*) ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_cf_man2html="$ac_dir/$ac_word" echo "$as_me:7870: found $ac_dir/$ac_word" >&5 break fi done test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" ;; esac fi cf_man2html=$ac_cv_path_cf_man2html if test -n "$cf_man2html"; then echo "$as_me:7882: result: $cf_man2html" >&5 echo "${ECHO_T}$cf_man2html" >&6 else echo "$as_me:7885: result: no" >&5 echo "${ECHO_T}no" >&6 fi case "x$cf_man2html" in (x/*) echo "$as_me:7891: checking for the modified Earl Hood script" >&5 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) then cf_man2html_ok=yes else cf_man2html=no cf_man2html_ok=no fi echo "$as_me:7900: result: $cf_man2html_ok" >&5 echo "${ECHO_T}$cf_man2html_ok" >&6 ;; (*) cf_man2html=no ;; esac esac echo "$as_me:7909: checking for program to convert manpage to html" >&5 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 # Check whether --with-man2html or --without-man2html was given. if test "${with_man2html+set}" = set; then withval="$with_man2html" cf_man2html=$withval else cf_man2html=$cf_man2html fi; cf_with_groff=no case $cf_man2html in (yes) echo "$as_me:7924: result: man2html" >&5 echo "${ECHO_T}man2html" >&6 # Extract the first word of "man2html", so it can be a program name with args. set dummy man2html; ac_word=$2 echo "$as_me:7928: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_cf_man2html+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $cf_man2html in [\\/]* | ?:[\\/]*) ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. ;; *) ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. if $as_executable_p "$ac_dir/$ac_word"; then ac_cv_path_cf_man2html="$ac_dir/$ac_word" echo "$as_me:7945: found $ac_dir/$ac_word" >&5 break fi done test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" ;; esac fi cf_man2html=$ac_cv_path_cf_man2html if test -n "$cf_man2html"; then echo "$as_me:7957: result: $cf_man2html" >&5 echo "${ECHO_T}$cf_man2html" >&6 else echo "$as_me:7960: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; (no|groff|*/groff*) cf_with_groff=yes cf_man2html=$GROFF_PATH echo "$as_me:7968: result: $cf_man2html" >&5 echo "${ECHO_T}$cf_man2html" >&6 ;; (*) echo "$as_me:7972: result: $cf_man2html" >&5 echo "${ECHO_T}$cf_man2html" >&6 ;; esac MAN2HTML_TEMP="man2html.tmp" cat >$MAN2HTML_TEMP <>$MAN2HTML_TEMP <&5 echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`" test -n "$cf_check_groff" && cf_check_groff=yes test -n "$cf_check_groff" || cf_check_groff=no echo "$as_me:8018: result: $cf_check_groff" >&5 echo "${ECHO_T}$cf_check_groff" >&6 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0" fi MAN2HTML_NOTE="" if test "x$prefix" != xNONE; then cf_path_syntax="$prefix" else cf_path_syntax="$ac_default_prefix" fi case "x$cf_man2html" in (x\$\(*\)*|x\'*\'*) ;; (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) ;; (x\$\{*prefix\}*|x\$\{*dir\}*) eval cf_man2html="$cf_man2html" case "x$cf_man2html" in (xNONE/*) cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` ;; esac ;; (xno|xNONE/*) cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` ;; (*) { { echo "$as_me:8047: error: expected a pathname, not \"$cf_man2html\"" >&5 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} { (exit 1); exit 1; }; } ;; esac MAN2HTML_PATH="$cf_man2html" echo "$as_me:8054: checking for $cf_man2html top/bottom margins" >&5 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 # for this example, expect 3 lines of content, the remainder is head/foot cat >conftest.in <conftest.out cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" cf_man2html_top=`expr "$cf_man2html_1st" - 2` cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`" cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" echo "$as_me:8072: result: $cf_man2html_top_bot" >&5 echo "${ECHO_T}$cf_man2html_top_bot" >&6 echo "$as_me:8075: checking for pagesize to use" >&5 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 do cat >>conftest.in <conftest.out cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" test -z "$cf_man2html_page" && cf_man2html_page=99999 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 rm -rf conftest* echo "$as_me:8100: result: $cf_man2html_page" >&5 echo "${ECHO_T}$cf_man2html_page" >&6 cat >>$MAN2HTML_TEMP <&5 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 # Check whether --with-dmalloc or --without-dmalloc was given. if test "${with_dmalloc+set}" = set; then withval="$with_dmalloc" case "x$withval" in (x|xno) ;; (*) : "${with_cflags:=-g}" : "${enable_leaks:=no}" with_dmalloc=yes cat >>confdefs.h <&5 echo "${ECHO_T}${with_dmalloc:-no}" >&6 case ".$with_cflags" in (.*-g*) case .$CFLAGS in (.*-g*) ;; (*) cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in -g do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi ;; esac ;; esac if test "$with_dmalloc" = yes ; then echo "$as_me:8255: checking for dmalloc.h" >&5 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 if test "${ac_cv_header_dmalloc_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 8261 "configure" #include "confdefs.h" #include _ACEOF if { (eval echo "$as_me:8265: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:8271: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_cv_header_dmalloc_h=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_header_dmalloc_h=no fi rm -f conftest.err "conftest.$ac_ext" fi echo "$as_me:8290: result: $ac_cv_header_dmalloc_h" >&5 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 if test "$ac_cv_header_dmalloc_h" = yes; then echo "$as_me:8294: checking for dmalloc_debug in -ldmalloc" >&5 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldmalloc $LIBS" cat >"conftest.$ac_ext" <<_ACEOF #line 8302 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dmalloc_debug (void); int main (void) { dmalloc_debug (); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:8321: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:8324: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:8327: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:8330: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_lib_dmalloc_dmalloc_debug=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_lib_dmalloc_dmalloc_debug=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:8341: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 # Check whether --with-dbmalloc or --without-dbmalloc was given. if test "${with_dbmalloc+set}" = set; then withval="$with_dbmalloc" case "x$withval" in (x|xno) ;; (*) : "${with_cflags:=-g}" : "${enable_leaks:=no}" with_dbmalloc=yes cat >>confdefs.h <&5 echo "${ECHO_T}${with_dbmalloc:-no}" >&6 case ".$with_cflags" in (.*-g*) case .$CFLAGS in (.*-g*) ;; (*) cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in -g do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi ;; esac ;; esac if test "$with_dbmalloc" = yes ; then echo "$as_me:8492: checking for dbmalloc.h" >&5 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 if test "${ac_cv_header_dbmalloc_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >"conftest.$ac_ext" <<_ACEOF #line 8498 "configure" #include "confdefs.h" #include _ACEOF if { (eval echo "$as_me:8502: \"$ac_cpp "conftest.$ac_ext"\"") >&5 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 ac_status=$? $EGREP -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:8508: \$? = $ac_status" >&5 (exit "$ac_status"); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_cv_header_dbmalloc_h=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_header_dbmalloc_h=no fi rm -f conftest.err "conftest.$ac_ext" fi echo "$as_me:8527: result: $ac_cv_header_dbmalloc_h" >&5 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 if test "$ac_cv_header_dbmalloc_h" = yes; then echo "$as_me:8531: checking for debug_malloc in -ldbmalloc" >&5 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldbmalloc $LIBS" cat >"conftest.$ac_ext" <<_ACEOF #line 8539 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char debug_malloc (void); int main (void) { debug_malloc (); ; return 0; } _ACEOF rm -f "conftest.$ac_objext" "conftest$ac_exeext" if { (eval echo "$as_me:8558: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:8561: \$? = $ac_status" >&5 (exit "$ac_status"); } && { ac_try='test -s "conftest$ac_exeext"' { (eval echo "$as_me:8564: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:8567: \$? = $ac_status" >&5 (exit "$ac_status"); }; }; then ac_cv_lib_dbmalloc_debug_malloc=yes else echo "$as_me: failed program was:" >&5 cat "conftest.$ac_ext" >&5 ac_cv_lib_dbmalloc_debug_malloc=no fi rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:8578: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then cat >>confdefs.h <&5 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 # Check whether --with-valgrind or --without-valgrind was given. if test "${with_valgrind+set}" = set; then withval="$with_valgrind" case "x$withval" in (x|xno) ;; (*) : "${with_cflags:=-g}" : "${enable_leaks:=no}" with_valgrind=yes cat >>confdefs.h <&5 echo "${ECHO_T}${with_valgrind:-no}" >&6 case ".$with_cflags" in (.*-g*) case .$CFLAGS in (.*-g*) ;; (*) cf_fix_cppflags=no cf_new_cflags= cf_new_cppflags= cf_new_extra_cppflags= for cf_add_cflags in -g do case "$cf_fix_cppflags" in (no) case "$cf_add_cflags" in (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) case "$cf_add_cflags" in (-D*) cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=yes if test "$cf_fix_cppflags" = yes ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue elif test "${cf_tst_cflags}" = "\"'" ; then test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" continue fi ;; esac case "$CPPFLAGS" in (*$cf_add_cflags) ;; (*) case "$cf_add_cflags" in (-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 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" ;; esac ;; (*) test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " cf_new_cflags="${cf_new_cflags}$cf_add_cflags" ;; esac ;; (yes) test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \ && cf_fix_cppflags=no ;; esac done if test -n "$cf_new_cflags" ; then test -n "$CFLAGS" && CFLAGS="$CFLAGS " CFLAGS="${CFLAGS}$cf_new_cflags" fi if test -n "$cf_new_cppflags" ; then test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" fi if test -n "$cf_new_extra_cppflags" ; then test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" fi ;; esac ;; esac echo "$as_me:8728: checking if you want to perform memory-leak testing" >&5 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 # Check whether --enable-leaks or --disable-leaks was given. if test "${enable_leaks+set}" = set; then enableval="$enable_leaks" enable_leaks=$enableval else enable_leaks=yes fi; if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi echo "$as_me:8739: result: $with_no_leaks" >&5 echo "${ECHO_T}$with_no_leaks" >&6 if test "$enable_leaks" = no ; then cat >>confdefs.h <<\EOF #define NO_LEAKS 1 EOF cat >>confdefs.h <<\EOF #define YY_NO_LEAKS 1 EOF fi ### output makefile and config.h ac_config_files="$ac_config_files makefile" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H : "${CONFIG_STATUS=./config.status}" ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:8836: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >"$CONFIG_STATUS" <<_ACEOF #! $SHELL # Generated automatically by configure. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. me=\`echo "\$0" | sed -e 's,.*\\/,,'\` debug=false SHELL=\${CONFIG_SHELL-$SHELL} ac_cs_invocation="\$0 \$@" CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS _ACEOF cat >>"$CONFIG_STATUS" <<\_ACEOF # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Name of the executable. as_me=`echo "$0" |sed 's,.*[\\/],,'` if expr a : '\(a\)' >/dev/null 2>&1; then as_expr="expr" else as_expr="false" fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln' else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file as_executable_p="test -f" # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset="unset" else as_unset="false" fi # NLS nuisances. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } exec 6>&1 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" fi cat >>"$CONFIG_STATUS" <<\EOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." EOF cat >>"$CONFIG_STATUS" <>"$CONFIG_STATUS" <<\EOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` shift set dummy "$ac_option" "$ac_optarg" ${1+"$@"} shift ;; -*);; *) # This is not an option, so the user has probably given explicit # arguments. ac_need_defaults=false;; esac case $1 in # Handling of the options. EOF cat >>"$CONFIG_STATUS" <>"$CONFIG_STATUS" <<\EOF --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:9017: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) shift CONFIG_FILES="$CONFIG_FILES $1" ac_need_defaults=false;; --header | --heade | --head | --hea ) shift CONFIG_HEADERS="$CONFIG_HEADERS $1" ac_need_defaults=false;; # This is an error. -*) { { echo "$as_me:9036: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done exec 5>>config.log cat >&5 << _ACEOF ## ----------------------- ## ## Running config.status. ## ## ----------------------- ## This file was extended by $as_me 2.52.20250126, executed with CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS > "$ac_cs_invocation" on `(hostname || uname -n) 2>/dev/null | sed 1q` _ACEOF EOF cat >>"$CONFIG_STATUS" <<\EOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; *) { { echo "$as_me:9074: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if "$ac_need_defaults"; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. : "${TMPDIR=/tmp}" { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=$TMPDIR/cs$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 { (exit 1); exit 1; } } EOF cat >>"$CONFIG_STATUS" <"\$tmp"/subs.sed <<\\CEOF s,@X_CFLAGS@,$X_CFLAGS,;t t s,@X_LIBS@,$X_LIBS,;t t s,@SHELL@,$SHELL,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datarootdir@,$datarootdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@runstatedir@,$runstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@DEFS@,$DEFS,;t t s,@LIBS@,$LIBS,;t t s,@build@,$build,;t t s,@build_cpu@,$build_cpu,;t t s,@build_vendor@,$build_vendor,;t t s,@build_os@,$build_os,;t t s,@host@,$host,;t t s,@host_cpu@,$host_cpu,;t t s,@host_vendor@,$host_vendor,;t t s,@host_os@,$host_os,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@LINT@,$LINT,;t t s,@LINT_OPTS@,$LINT_OPTS,;t t s,@LINT_LIBS@,$LINT_LIBS,;t t s,@CTAGS@,$CTAGS,;t t s,@ETAGS@,$ETAGS,;t t s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t s,@ECHO_LT@,$ECHO_LT,;t t s,@ECHO_LD@,$ECHO_LD,;t t s,@RULE_CC@,$RULE_CC,;t t s,@SHOW_CC@,$SHOW_CC,;t t s,@ECHO_CC@,$ECHO_CC,;t t s,@target@,$target,;t t s,@target_cpu@,$target_cpu,;t t s,@target_vendor@,$target_vendor,;t t s,@target_os@,$target_os,;t t s,@GLOB_FULLPATH_POSIX@,$GLOB_FULLPATH_POSIX,;t t s,@GLOB_FULLPATH_OTHER@,$GLOB_FULLPATH_OTHER,;t t s,@DESTDIR@,$DESTDIR,;t t s,@BZCAT@,$BZCAT,;t t s,@BZIP2@,$BZIP2,;t t s,@COMPRESS@,$COMPRESS,;t t s,@GZIP@,$GZIP,;t t s,@LZCAT@,$LZCAT,;t t s,@PCAT@,$PCAT,;t t s,@UNCOMPRESS@,$UNCOMPRESS,;t t s,@XZ@,$XZ,;t t s,@ZCAT@,$ZCAT,;t t s,@ZSTD@,$ZSTD,;t t s,@GREP@,$GREP,;t t s,@FGREP@,$FGREP,;t t s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t s,@STDC_NORETURN@,$STDC_NORETURN,;t t s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t s,@CPP@,$CPP,;t t s,@EGREP@,$EGREP,;t t s,@EXTRA_OBJS@,$EXTRA_OBJS,;t t s,@GROFF_PATH@,$GROFF_PATH,;t t s,@NROFF_PATH@,$NROFF_PATH,;t t s,@TBL_PATH@,$TBL_PATH,;t t s,@GROFF_NOTE@,$GROFF_NOTE,;t t s,@NROFF_NOTE@,$NROFF_NOTE,;t t s,@cf_man2html@,$cf_man2html,;t t s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t CEOF EOF cat >>"$CONFIG_STATUS" <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while "$ac_more_lines"; do if test "$ac_beg" -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag else sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag fi if test ! -s "$tmp"/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && sed -e 's/\\\\*$//g' -e 's/$/\\/' -e 's/;t t\\/;t t/' -e 't' -e '3,'$ac_max_sed_lines's/$/\\/' "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed # It is possible to make a multiline substitution using escaped newlines. # Ensure that we do not split the substitution between script fragments. ac_BEG=$ac_end ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next if test -s "$tmp"/subs.next; then grep '^s,@[^@,][^@,]*@,.*$' "$tmp"/subs.next | grep -v '^s,@.*;t t$' >"$tmp"/subs.edit if test ! -s "$tmp"/subs.edit; then grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit if test ! -s "$tmp"/subs.edit; then if test "$ac_beg" -gt 1; then ac_end=`expr "$ac_end" - 1` continue fi fi fi fi if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr "$ac_sed_frag" + 1` ac_beg=$ac_end ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds="cat" fi fi # test -n "$CONFIG_FILES" EOF cat >>"$CONFIG_STATUS" <<\EOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in - | *:- | *:-:* ) # input from stdin cat >"$tmp"/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then { case "$ac_dir" in [\\/]* | ?:[\\/]* ) as_incr_dir=;; *) as_incr_dir=.;; esac as_dummy="$ac_dir" for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do case $as_mkdir_dir in # Skip DOS drivespec ?:) as_incr_dir=$as_mkdir_dir ;; *) as_incr_dir=$as_incr_dir/$as_mkdir_dir test -d "$as_incr_dir" || mkdir "$as_incr_dir" ;; esac done; } ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` else ac_dir_suffix= ac_dots= fi case "$srcdir" in .) ac_srcdir=. if test -z "$ac_dots"; then ac_top_srcdir=. else ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) ac_srcdir="$srcdir$ac_dir_suffix"; ac_top_srcdir="$srcdir" ;; *) # Relative path. ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" ac_top_srcdir="$ac_dots$srcdir" ;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_dots$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:9357: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated automatically by config.status. */ configure_input="Generated automatically from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo "$tmp"/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:9375: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:9388: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } EOF cat >>"$CONFIG_STATUS" <<\EOF ac_warn_datarootdir=no if test x"$ac_file" != x-; then for ac_item in $ac_file_inputs do ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` if test -n "$ac_seen"; then ac_used=`grep '@datarootdir@' "$ac_item"` if test -z "$ac_used"; then { echo "$as_me:9404: WARNING: datarootdir was used implicitly but not set: $ac_seen" >&5 echo "$as_me: WARNING: datarootdir was used implicitly but not set: $ac_seen" >&2;} ac_warn_datarootdir=yes fi fi ac_seen=`grep '${datarootdir}' "$ac_item"` if test -n "$ac_seen"; then { echo "$as_me:9413: WARNING: datarootdir was used explicitly but not set: $ac_seen" >&5 echo "$as_me: WARNING: datarootdir was used explicitly but not set: $ac_seen" >&2;} ac_warn_datarootdir=yes fi done fi if test "x$ac_warn_datarootdir" = xyes; then ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" fi EOF cat >>"$CONFIG_STATUS" <>"$CONFIG_STATUS" <<\EOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out rm -f "$tmp"/stdin EOF test -n "${FGREP}" || FGREP="grep -F" test -n "${EGREP}" || EGREP="grep -E" cat >>"$CONFIG_STATUS" <>"$CONFIG_STATUS" <<\EOF if test x"$ac_file" != x-; then cp "$tmp/out" "$ac_file" for ac_name in prefix exec_prefix datarootdir do ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"` if test -n "$ac_seen"; then ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"` if test -z "$ac_init"; then ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'` { echo "$as_me:9458: WARNING: Variable $ac_name is used but was not set: $ac_seen" >&5 echo "$as_me: WARNING: Variable $ac_name is used but was not set: $ac_seen" >&2;} fi fi done $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out if test -s "$tmp"/out; then ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out` { echo "$as_me:9469: WARNING: Some variables may not be substituted: $ac_seen" >&5 echo "$as_me: WARNING: Some variables may not be substituted: $ac_seen" >&2;} fi else cat "$tmp"/out fi rm -f "$tmp"/out done EOF cat >>"$CONFIG_STATUS" <<\EOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_iB='\([ ]\),\1#\2define\3' ac_iC=' ' ac_iD='\4,;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in - | *:- | *:-:* ) # input from stdin cat >"$tmp"/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:9518: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo "$tmp"/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:9529: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:9542: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in EOF # Transform confdefs.h into a list of #define's. We won't use it as a sed # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to # be either 'cat' or 'sort'. cat confdefs.h | uniq >conftest.vals # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail echo ' rm -f conftest.frag' >> "$CONFIG_STATUS" while grep . conftest.vals >/dev/null do # Write chunks of a limited-size here document to conftest.frag. echo ' cat >> conftest.frag <> "$CONFIG_STATUS" sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS" echo 'CEOF' >> "$CONFIG_STATUS" sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals # Run sed to substitute the contents of conftest.frag into $tmp/in at the # marker @DEFS@. echo ' cat >> conftest.edit < "$tmp"/out rm -f "$tmp"/in mv "$tmp"/out "$tmp"/in rm -f conftest.edit conftest.frag ' >> "$CONFIG_STATUS" cat >>"$CONFIG_STATUS" <<\EOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated automatically by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated automatically by configure. */" >"$tmp"/config.h else echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h fi cat "$tmp"/in >>"$tmp"/config.h rm -f "$tmp"/in if test x"$ac_file" != x-; then if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then { echo "$as_me:9600: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then { case "$ac_dir" in [\\/]* | ?:[\\/]* ) as_incr_dir=;; *) as_incr_dir=.;; esac as_dummy="$ac_dir" for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do case $as_mkdir_dir in # Skip DOS drivespec ?:) as_incr_dir=$as_mkdir_dir ;; *) as_incr_dir=$as_incr_dir/$as_mkdir_dir test -d "$as_incr_dir" || mkdir "$as_incr_dir" ;; esac done; } fi rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" fi else cat "$tmp"/config.h rm -f "$tmp"/config.h fi done EOF cat >>"$CONFIG_STATUS" <<\EOF { (exit 0); exit 0; } EOF chmod +x "$CONFIG_STATUS" ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: exec 5>/dev/null $SHELL "$CONFIG_STATUS" || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. "$ac_cs_success" || { (exit 1); exit 1; } fi test -z "$cf_make_docs" && cf_make_docs=0 cf_output=makefile test -f "$cf_output" || cf_output=Makefile if test "$cf_make_docs" = 0 then cat >>$cf_output <\$@ ${GROFF_NOTE}.ps.pdf : ${GROFF_NOTE} ps2pdf \$*.ps ${GROFF_NOTE} ${GROFF_NOTE}.1.ps : ${GROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@ ${GROFF_NOTE} ${GROFF_NOTE}.1.txt : ${GROFF_NOTE} GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -rHY=0 -Tascii -man | col -bx" >\$@ ${MAN2HTML_NOTE}.1.html : ${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} \$* 1 man >\$@ CF_EOF cf_make_docs=1 fi for cf_name in diffstat do cat >>$cf_output <