Changeset 4


Ignore:
Timestamp:
Nov 6, 2005, 11:39:38 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • debian patches
Location:
abuse/trunk
Files:
46 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/config.guess

    r2 r4  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    4 #   Free Software Foundation, Inc.
    5 
    6 timestamp='2001-10-05'
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2004-03-12'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    2525# the same distribution terms that you use for the rest of that program.
    2626
    27 # Originally written by Per Bothner <bothner@cygnus.com>.
     27# Originally written by Per Bothner <per@bothner.com>.
    2828# Please send patches to <config-patches@gnu.org>.  Submit a context
    2929# diff and a properly formatted ChangeLog entry.
     
    8989fi
    9090
    91 
    92 dummy=dummy-$$
    93 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
    94 
    95 # CC_FOR_BUILD -- compiler used by this script.
     91trap 'exit 1' 1 2 15
     92
     93# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
     94# compiler to aid in system detection is discouraged as it requires
     95# temporary files to be created and, as you can see below, it is a
     96# headache to deal with in a portable fashion.
     97
    9698# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9799# use `HOST_CC' if defined, but it is deprecated.
    98100
    99 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
    100  ,,)    echo "int dummy(){}" > $dummy.c ;
    101         for c in cc gcc c89 ; do
    102           ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
    103           if test $? = 0 ; then
     101# Portable tmp directory creation inspired by the Autoconf team.
     102
     103set_cc_for_build='
     104trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
     105trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
     106: ${TMPDIR=/tmp} ;
     107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
     109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
     110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
     111dummy=$tmp/dummy ;
     112tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
     113case $CC_FOR_BUILD,$HOST_CC,$CC in
     114 ,,)    echo "int x;" > $dummy.c ;
     115        for c in cc gcc c89 c99 ; do
     116          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
    104117             CC_FOR_BUILD="$c"; break ;
    105118          fi ;
    106119        done ;
    107         rm -f $dummy.c $dummy.o $dummy.rel ;
    108120        if test x"$CC_FOR_BUILD" = x ; then
    109121          CC_FOR_BUILD=no_compiler_found ;
     
    112124 ,,*)   CC_FOR_BUILD=$CC ;;
    113125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    114 esac'
     126esac ;'
    115127
    116128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    136148        # compatibility and a consistent mechanism for selecting the
    137149        # object file format.
    138         # Determine the machine/vendor (is the vendor relevant).
    139         case "${UNAME_MACHINE}" in
    140             amiga) machine=m68k-unknown ;;
    141             arm32) machine=arm-unknown ;;
    142             atari*) machine=m68k-atari ;;
    143             sun3*) machine=m68k-sun ;;
    144             mac68k) machine=m68k-apple ;;
    145             macppc) machine=powerpc-apple ;;
    146             hp3[0-9][05]) machine=m68k-hp ;;
    147             ibmrt|romp-ibm) machine=romp-ibm ;;
    148             sparc*) machine=`uname -p`-unknown ;;
    149             *) machine=${UNAME_MACHINE}-unknown ;;
     150        #
     151        # Note: NetBSD doesn't particularly care about the vendor
     152        # portion of the name.  We always set it to "unknown".
     153        sysctl="sysctl -n hw.machine_arch"
     154        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
     155            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
     156        case "${UNAME_MACHINE_ARCH}" in
     157            armeb) machine=armeb-unknown ;;
     158            arm*) machine=arm-unknown ;;
     159            sh3el) machine=shl-unknown ;;
     160            sh3eb) machine=sh-unknown ;;
     161            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    150162        esac
    151163        # The Operating System including object format, if it has switched
    152164        # to ELF recently, or will in the future.
    153         case "${UNAME_MACHINE}" in
    154             i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
     165        case "${UNAME_MACHINE_ARCH}" in
     166            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
    155167                eval $set_cc_for_build
    156168                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
     
    169181        esac
    170182        # The OS release
    171         release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     183        # Debian GNU/NetBSD machines have a different userland, and
     184        # thus, need a distinct triplet. However, they do not need
     185        # kernel version information, so it can be replaced with a
     186        # suitable tag, in the style of linux-gnu.
     187        case "${UNAME_VERSION}" in
     188            Debian*)
     189                release='-gnu'
     190                ;;
     191            *)
     192                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     193                ;;
     194        esac
    172195        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    173196        # contains redundant information, the shorter form:
     
    175198        echo "${machine}-${os}${release}"
    176199        exit 0 ;;
     200    amd64:OpenBSD:*:*)
     201        echo x86_64-unknown-openbsd${UNAME_RELEASE}
     202        exit 0 ;;
    177203    amiga:OpenBSD:*:*)
    178204        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    181207        echo mipsel-unknown-openbsd${UNAME_RELEASE}
    182208        exit 0 ;;
     209    cats:OpenBSD:*:*)
     210        echo arm-unknown-openbsd${UNAME_RELEASE}
     211        exit 0 ;;
    183212    hp300:OpenBSD:*:*)
    184213        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    199228        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    200229        exit 0 ;;
     230    pegasos:OpenBSD:*:*)
     231        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     232        exit 0 ;;
    201233    pmax:OpenBSD:*:*)
    202234        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     
    214246        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    215247        exit 0 ;;
     248    *:ekkoBSD:*:*)
     249        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     250        exit 0 ;;
     251    macppc:MirBSD:*:*)
     252        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
     253        exit 0 ;;
     254    *:MirBSD:*:*)
     255        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     256        exit 0 ;;
    216257    alpha:OSF1:*:*)
    217         if test $UNAME_RELEASE = "V4.0"; then
     258        case $UNAME_RELEASE in
     259        *4.0)
    218260                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    219         fi
     261                ;;
     262        *5.*)
     263                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     264                ;;
     265        esac
     266        # According to Compaq, /usr/sbin/psrinfo has been available on
     267        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     268        # covers most systems running today.  This code pipes the CPU
     269        # types through head -n 1, so we only detect the type of CPU 0.
     270        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
     271        case "$ALPHA_CPU_TYPE" in
     272            "EV4 (21064)")
     273                UNAME_MACHINE="alpha" ;;
     274            "EV4.5 (21064)")
     275                UNAME_MACHINE="alpha" ;;
     276            "LCA4 (21066/21068)")
     277                UNAME_MACHINE="alpha" ;;
     278            "EV5 (21164)")
     279                UNAME_MACHINE="alphaev5" ;;
     280            "EV5.6 (21164A)")
     281                UNAME_MACHINE="alphaev56" ;;
     282            "EV5.6 (21164PC)")
     283                UNAME_MACHINE="alphapca56" ;;
     284            "EV5.7 (21164PC)")
     285                UNAME_MACHINE="alphapca57" ;;
     286            "EV6 (21264)")
     287                UNAME_MACHINE="alphaev6" ;;
     288            "EV6.7 (21264A)")
     289                UNAME_MACHINE="alphaev67" ;;
     290            "EV6.8CB (21264C)")
     291                UNAME_MACHINE="alphaev68" ;;
     292            "EV6.8AL (21264B)")
     293                UNAME_MACHINE="alphaev68" ;;
     294            "EV6.8CX (21264D)")
     295                UNAME_MACHINE="alphaev68" ;;
     296            "EV6.9A (21264/EV69A)")
     297                UNAME_MACHINE="alphaev69" ;;
     298            "EV7 (21364)")
     299                UNAME_MACHINE="alphaev7" ;;
     300            "EV7.9 (21364A)")
     301                UNAME_MACHINE="alphaev79" ;;
     302        esac
     303        # A Pn.n version is a patched version.
    220304        # A Vn.n version is a released version.
    221305        # A Tn.n version is a released field test version.
    222306        # A Xn.n version is an unreleased experimental baselevel.
    223307        # 1.2 uses "1.2" for uname -r.
    224         cat <<EOF >$dummy.s
    225         .data
    226 \$Lformat:
    227         .byte 37,100,45,37,120,10,0     # "%d-%x\n"
    228 
    229         .text
    230         .globl main
    231         .align 4
    232         .ent main
    233 main:
    234         .frame \$30,16,\$26,0
    235         ldgp \$29,0(\$27)
    236         .prologue 1
    237         .long 0x47e03d80 # implver \$0
    238         lda \$2,-1
    239         .long 0x47e20c21 # amask \$2,\$1
    240         lda \$16,\$Lformat
    241         mov \$0,\$17
    242         not \$1,\$18
    243         jsr \$26,printf
    244         ldgp \$29,0(\$26)
    245         mov 0,\$16
    246         jsr \$26,exit
    247         .end main
    248 EOF
    249         eval $set_cc_for_build
    250         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    251         if test "$?" = 0 ; then
    252                 case `./$dummy` in
    253                         0-0)
    254                                 UNAME_MACHINE="alpha"
    255                                 ;;
    256                         1-0)
    257                                 UNAME_MACHINE="alphaev5"
    258                                 ;;
    259                         1-1)
    260                                 UNAME_MACHINE="alphaev56"
    261                                 ;;
    262                         1-101)
    263                                 UNAME_MACHINE="alphapca56"
    264                                 ;;
    265                         2-303)
    266                                 UNAME_MACHINE="alphaev6"
    267                                 ;;
    268                         2-307)
    269                                 UNAME_MACHINE="alphaev67"
    270                                 ;;
    271                         2-1307)
    272                                 UNAME_MACHINE="alphaev68"
    273                                 ;;
    274                 esac
    275         fi
    276         rm -f $dummy.s $dummy
    277         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     308        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     309        exit 0 ;;
     310    Alpha*:OpenVMS:*:*)
     311        echo alpha-hp-vms
    278312        exit 0 ;;
    279313    Alpha\ *:Windows_NT*:*)
     
    292326        echo ${UNAME_MACHINE}-unknown-amigaos
    293327        exit 0 ;;
     328    *:[Mm]orph[Oo][Ss]:*:*)
     329        echo ${UNAME_MACHINE}-unknown-morphos
     330        exit 0 ;;
    294331    *:OS/390:*:*)
    295332        echo i370-ibm-openedition
     333        exit 0 ;;
     334    *:OS400:*:*)
     335        echo powerpc-ibm-os400
    296336        exit 0 ;;
    297337    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    312352        echo pyramid-pyramid-svr4
    313353        exit 0 ;;
     354    DRS?6000:unix:4.0:6*)
     355        echo sparc-icl-nx6
     356        exit 0 ;;
     357    DRS?6000:UNIX_SV:4.2*:7*)
     358        case `/usr/bin/uname -p` in
     359            sparc) echo sparc-icl-nx7 && exit 0 ;;
     360        esac ;;
    314361    sun4H:SunOS:5.*:*)
    315362        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     
    340387        exit 0 ;;
    341388    sun*:*:4.2BSD:*)
    342         UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     389        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    343390        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
    344391        case "`/bin/arch`" in
     
    380427        echo m68k-unknown-mint${UNAME_RELEASE}
    381428        exit 0 ;;
     429    m68k:machten:*:*)
     430        echo m68k-apple-machten${UNAME_RELEASE}
     431        exit 0 ;;
    382432    powerpc:machten:*:*)
    383433        echo powerpc-apple-machten${UNAME_RELEASE}
     
    418468        }
    419469EOF
    420         $CC_FOR_BUILD $dummy.c -o $dummy \
    421           && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    422           && rm -f $dummy.c $dummy && exit 0
    423         rm -f $dummy.c $dummy
     470        $CC_FOR_BUILD -o $dummy $dummy.c \
     471          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     472          && exit 0
    424473        echo mips-mips-riscos${UNAME_RELEASE}
    425474        exit 0 ;;
    426475    Motorola:PowerMAX_OS:*:*)
    427476        echo powerpc-motorola-powermax
     477        exit 0 ;;
     478    Motorola:*:4.3:PL8-*)
     479        echo powerpc-harris-powermax
     480        exit 0 ;;
     481    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
     482        echo powerpc-harris-powermax
    428483        exit 0 ;;
    429484    Night_Hawk:Power_UNIX:*:*)
     
    499554                        }
    500555EOF
    501                 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    502                 rm -f $dummy.c $dummy
     556                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    503557                echo rs6000-ibm-aix3.2.5
    504558        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
     
    509563        exit 0 ;;
    510564    *:AIX:*:[45])
    511         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
     565        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    512566        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    513567                IBM_ARCH=rs6000
     
    598652              }
    599653EOF
    600                     (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
    601                     if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    602                     rm -f $dummy.c $dummy
     654                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     655                    test -z "$HP_ARCH" && HP_ARCH=hppa
    603656                fi ;;
    604657        esac
     658        if [ ${HP_ARCH} = "hppa2.0w" ]
     659        then
     660            # avoid double evaluation of $set_cc_for_build
     661            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
     662            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     663            then
     664                HP_ARCH="hppa2.0w"
     665            else
     666                HP_ARCH="hppa64"
     667            fi
     668        fi
    605669        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    606670        exit 0 ;;
     
    636700        }
    637701EOF
    638         $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    639         rm -f $dummy.c $dummy
     702        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    640703        echo unknown-hitachi-hiuxwe2
    641704        exit 0 ;;
     
    683746        echo c4-convex-bsd
    684747        exit 0 ;;
    685     CRAY*X-MP:*:*:*)
    686         echo xmp-cray-unicos
    687         exit 0 ;;
    688748    CRAY*Y-MP:*:*:*)
    689749        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     
    698758        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    699759        exit 0 ;;
    700     CRAY*T3D:*:*:*)
    701         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    702         exit 0 ;;
    703760    CRAY*T3E:*:*:*)
    704761        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     
    707764        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    708765        exit 0 ;;
    709     CRAY-2:*:*:*)
    710         echo cray2-cray-unicos
    711         exit 0 ;;
     766    *:UNICOS/mp:*:*)
     767        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     768        exit 0 ;;
    712769    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    713770        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    716773        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    717774        exit 0 ;;
     775    5000:UNIX_System_V:4.*:*)
     776        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     777        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     778        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     779        exit 0 ;;
    718780    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    719781        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    726788        exit 0 ;;
    727789    *:FreeBSD:*:*)
    728         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     790        # Determine whether the default compiler uses glibc.
     791        eval $set_cc_for_build
     792        sed 's/^        //' << EOF >$dummy.c
     793        #include <features.h>
     794        #if __GLIBC__ >= 2
     795        LIBC=gnu
     796        #else
     797        LIBC=
     798        #endif
     799EOF
     800        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     801        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
     802        # FreeBSD's kernel, but not the complete OS.
     803        case ${LIBC} in gnu) kernel_only='k' ;; esac
     804        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    729805        exit 0 ;;
    730806    i*:CYGWIN*:*)
     
    736812    i*:PW*:*)
    737813        echo ${UNAME_MACHINE}-pc-pw32
     814        exit 0 ;;
     815    x86:Interix*:[34]*)
     816        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     817        exit 0 ;;
     818    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     819        echo i${UNAME_MACHINE}-pc-mks
    738820        exit 0 ;;
    739821    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     
    741823        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    742824        # UNAME_MACHINE based on the output of uname instead of i386?
    743         echo i386-pc-interix
     825        echo i586-pc-interix
    744826        exit 0 ;;
    745827    i*:UWIN*:*)
     
    753835        exit 0 ;;
    754836    *:GNU:*:*)
     837        # the GNU system
    755838        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     839        exit 0 ;;
     840    *:GNU/*:*:*)
     841        # other systems with GNU libc and userland
     842        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    756843        exit 0 ;;
    757844    i*86:Minix:*:*)
     
    761848        echo ${UNAME_MACHINE}-unknown-linux-gnu
    762849        exit 0 ;;
     850    cris:Linux:*:*)
     851        echo cris-axis-linux-gnu
     852        exit 0 ;;
    763853    ia64:Linux:*:*)
    764         echo ${UNAME_MACHINE}-unknown-linux
     854        echo ${UNAME_MACHINE}-unknown-linux-gnu
     855        exit 0 ;;
     856    m32r*:Linux:*:*)
     857        echo ${UNAME_MACHINE}-unknown-linux-gnu
    765858        exit 0 ;;
    766859    m68*:Linux:*:*)
     
    768861        exit 0 ;;
    769862    mips:Linux:*:*)
    770         case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
    771           big)    echo mips-unknown-linux-gnu && exit 0 ;;
    772           little) echo mipsel-unknown-linux-gnu && exit 0 ;;
    773         esac
     863        eval $set_cc_for_build
     864        sed 's/^        //' << EOF >$dummy.c
     865        #undef CPU
     866        #undef mips
     867        #undef mipsel
     868        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     869        CPU=mipsel
     870        #else
     871        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     872        CPU=mips
     873        #else
     874        CPU=
     875        #endif
     876        #endif
     877EOF
     878        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     879        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     880        ;;
     881    mips64:Linux:*:*)
     882        eval $set_cc_for_build
     883        sed 's/^        //' << EOF >$dummy.c
     884        #undef CPU
     885        #undef mips64
     886        #undef mips64el
     887        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     888        CPU=mips64el
     889        #else
     890        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     891        CPU=mips64
     892        #else
     893        CPU=
     894        #endif
     895        #endif
     896EOF
     897        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     898        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    774899        ;;
    775900    ppc:Linux:*:*)
     
    807932        echo ${UNAME_MACHINE}-ibm-linux
    808933        exit 0 ;;
     934    sh64*:Linux:*:*)
     935        echo ${UNAME_MACHINE}-unknown-linux-gnu
     936        exit 0 ;;
    809937    sh*:Linux:*:*)
    810938        echo ${UNAME_MACHINE}-unknown-linux-gnu
     
    820948        # first see if it will tell us. cd to the root directory to prevent
    821949        # problems with other programs or directories called `ld' in the path.
    822         ld_supported_targets=`cd /; ld --help 2>&1 \
     950        # Set LC_ALL=C to ensure ld outputs messages in English.
     951        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
    823952                         | sed -ne '/supported targets:/!d
    824953                                    s/[         ][      ]*/ /g
     
    832961          a.out-i386-linux)
    833962                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    834                 exit 0 ;;               
     963                exit 0 ;;
    835964          coff-i386)
    836965                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     
    844973        # Determine whether the default compiler is a.out or elf
    845974        eval $set_cc_for_build
    846         cat >$dummy.c <<EOF
    847 #include <features.h>
    848 #ifdef __cplusplus
    849 #include <stdio.h>  /* for printf() prototype */
    850         int main (int argc, char *argv[]) {
    851 #else
    852         int main (argc, argv) int argc; char *argv[]; {
    853 #endif
    854 #ifdef __ELF__
    855 # ifdef __GLIBC__
    856 #  if __GLIBC__ >= 2
    857     printf ("%s-pc-linux-gnu\n", argv[1]);
    858 #  else
    859     printf ("%s-pc-linux-gnulibc1\n", argv[1]);
    860 #  endif
    861 # else
    862    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
    863 # endif
    864 #else
    865   printf ("%s-pc-linux-gnuaout\n", argv[1]);
    866 #endif
    867   return 0;
    868 }
     975        sed 's/^        //' << EOF >$dummy.c
     976        #include <features.h>
     977        #ifdef __ELF__
     978        # ifdef __GLIBC__
     979        #  if __GLIBC__ >= 2
     980        LIBC=gnu
     981        #  else
     982        LIBC=gnulibc1
     983        #  endif
     984        # else
     985        LIBC=gnulibc1
     986        # endif
     987        #else
     988        #ifdef __INTEL_COMPILER
     989        LIBC=gnu
     990        #else
     991        LIBC=gnuaout
     992        #endif
     993        #endif
     994        #ifdef __dietlibc__
     995        LIBC=dietlibc
     996        #endif
    869997EOF
    870         $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
    871         rm -f $dummy.c $dummy
     998        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     999        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    8721000        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    8731001        ;;
     
    8861014        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    8871015        exit 0 ;;
     1016    i*86:OS/2:*:*)
     1017        # If we were able to find `uname', then EMX Unix compatibility
     1018        # is probably installed.
     1019        echo ${UNAME_MACHINE}-pc-os2-emx
     1020        exit 0 ;;
     1021    i*86:XTS-300:*:STOP)
     1022        echo ${UNAME_MACHINE}-unknown-stop
     1023        exit 0 ;;
     1024    i*86:atheos:*:*)
     1025        echo ${UNAME_MACHINE}-unknown-atheos
     1026        exit 0 ;;
     1027        i*86:syllable:*:*)
     1028        echo ${UNAME_MACHINE}-pc-syllable
     1029        exit 0 ;;
     1030    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1031        echo i386-unknown-lynxos${UNAME_RELEASE}
     1032        exit 0 ;;
     1033    i*86:*DOS:*:*)
     1034        echo ${UNAME_MACHINE}-pc-msdosdjgpp
     1035        exit 0 ;;
    8881036    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    8891037        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    9071055                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    9081056        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    909                 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
    910                 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
    911                 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
     1057                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     1058                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
     1059                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
    9121060                        && UNAME_MACHINE=i586
    913                 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
     1061                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
    9141062                        && UNAME_MACHINE=i686
    915                 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
     1063                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
    9161064                        && UNAME_MACHINE=i686
    9171065                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
     
    9191067                echo ${UNAME_MACHINE}-pc-sysv32
    9201068        fi
    921         exit 0 ;;
    922     i*86:*DOS:*:*)
    923         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    9241069        exit 0 ;;
    9251070    pc:*:*:*)
     
    9461091        echo m68010-convergent-sysv
    9471092        exit 0 ;;
     1093    mc68k:UNIX:SYSTEM5:3.51m)
     1094        echo m68k-convergent-sysv
     1095        exit 0 ;;
     1096    M680?0:D-NIX:5.3:*)
     1097        echo m68k-diab-dnix
     1098        exit 0 ;;
    9481099    M68*:*:R3V[567]*:*)
    9491100        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    950     3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
     1101    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)
    9511102        OS_REL=''
    9521103        test -r /etc/.relid \
     
    9651116        echo m68k-atari-sysv4
    9661117        exit 0 ;;
    967     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    968         echo i386-unknown-lynxos${UNAME_RELEASE}
    969         exit 0 ;;
    9701118    TSUNAMI:LynxOS:2.*:*)
    9711119        echo sparc-unknown-lynxos${UNAME_RELEASE}
     
    10391187        echo sx5-nec-superux${UNAME_RELEASE}
    10401188        exit 0 ;;
     1189    SX-6:SUPER-UX:*:*)
     1190        echo sx6-nec-superux${UNAME_RELEASE}
     1191        exit 0 ;;
    10411192    Power*:Rhapsody:*:*)
    10421193        echo powerpc-apple-rhapsody${UNAME_RELEASE}
     
    10461197        exit 0 ;;
    10471198    *:Darwin:*:*)
    1048         echo `uname -p`-apple-darwin${UNAME_RELEASE}
     1199        case `uname -p` in
     1200            *86) UNAME_PROCESSOR=i686 ;;
     1201            powerpc) UNAME_PROCESSOR=powerpc ;;
     1202        esac
     1203        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    10491204        exit 0 ;;
    10501205    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    1051         if test "${UNAME_MACHINE}" = "x86pc"; then
     1206        UNAME_PROCESSOR=`uname -p`
     1207        if test "$UNAME_PROCESSOR" = "x86"; then
     1208                UNAME_PROCESSOR=i386
    10521209                UNAME_MACHINE=pc
    10531210        fi
    1054         echo `uname -p`-${UNAME_MACHINE}-nto-qnx
     1211        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    10551212        exit 0 ;;
    10561213    *:QNX:*:4*)
    10571214        echo i386-pc-qnx
    10581215        exit 0 ;;
    1059     NSR-[KW]:NONSTOP_KERNEL:*:*)
     1216    NSR-?:NONSTOP_KERNEL:*:*)
    10601217        echo nsr-tandem-nsk${UNAME_RELEASE}
    10611218        exit 0 ;;
     
    10801237        echo ${UNAME_MACHINE}-unknown-plan9
    10811238        exit 0 ;;
    1082     i*86:OS/2:*:*)
    1083         # If we were able to find `uname', then EMX Unix compatibility
    1084         # is probably installed.
    1085         echo ${UNAME_MACHINE}-pc-os2-emx
    1086         exit 0 ;;
    10871239    *:TOPS-10:*:*)
    10881240        echo pdp10-unknown-tops10
     
    11031255        echo pdp10-unknown-its
    11041256        exit 0 ;;
    1105     i*86:XTS-300:*:STOP)
    1106         echo ${UNAME_MACHINE}-unknown-stop
    1107         exit 0 ;;
    1108     i*86:atheos:*:*)
    1109         echo ${UNAME_MACHINE}-unknown-atheos
     1257    SEI:*:*:SEIUX)
     1258        echo mips-sei-seiux${UNAME_RELEASE}
     1259        exit 0 ;;
     1260    *:DragonFly:*:*)
     1261        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    11101262        exit 0 ;;
    11111263esac
     
    12291381EOF
    12301382
    1231 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
    1232 rm -f $dummy.c $dummy
     1383$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    12331384
    12341385# Apollos put the system type in the environment.
  • abuse/trunk/config.sub

    r2 r4  
    11#! /bin/sh
    22# Configuration validation subroutine script.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    4 #   Free Software Foundation, Inc.
    5 
    6 timestamp='2001-10-05'
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2004-03-12'
    77
    88# This file is (in principle) common to ALL GNU software.
     
    119119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    120120case $maybe_os in
    121   nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
     121  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
     122  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    122123    os=-$maybe_os
    123124    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     
    228229        | a29k \
    229230        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
     231        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     232        | am33_2.0 \
    230233        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    231234        | c4x | clipper \
    232         | d10v | d30v | dsp16xx \
    233         | fr30 \
     235        | d10v | d30v | dlx | dsp16xx \
     236        | fr30 | frv \
    234237        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    235238        | i370 | i860 | i960 | ia64 \
    236         | m32r | m68000 | m68k | m88k | mcore \
    237         | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
    238         | mips64vr4100 | mips64vr4100el | mips64vr4300 \
    239         | mips64vr4300el | mips64vr5000 | mips64vr5000el \
    240         | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
    241         | mipsisa32 \
     239        | ip2k | iq2000 \
     240        | m32r | m32rle | m68000 | m68k | m88k | mcore \
     241        | mips | mipsbe | mipseb | mipsel | mipsle \
     242        | mips16 \
     243        | mips64 | mips64el \
     244        | mips64vr | mips64vrel \
     245        | mips64orion | mips64orionel \
     246        | mips64vr4100 | mips64vr4100el \
     247        | mips64vr4300 | mips64vr4300el \
     248        | mips64vr5000 | mips64vr5000el \
     249        | mipsisa32 | mipsisa32el \
     250        | mipsisa32r2 | mipsisa32r2el \
     251        | mipsisa64 | mipsisa64el \
     252        | mipsisa64r2 | mipsisa64r2el \
     253        | mipsisa64sb1 | mipsisa64sb1el \
     254        | mipsisa64sr71k | mipsisa64sr71kel \
     255        | mipstx39 | mipstx39el \
    242256        | mn10200 | mn10300 \
     257        | msp430 \
    243258        | ns16k | ns32k \
    244         | openrisc \
     259        | openrisc | or32 \
    245260        | pdp10 | pdp11 | pj | pjl \
    246261        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    247262        | pyramid \
    248         | s390 | s390x \
    249         | sh | sh[34] | sh[34]eb | shbe | shle \
    250         | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
    251         | stormy16 | strongarm \
    252         | tahoe | thumb | tic80 | tron \
    253         | v850 \
     263        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
     264        | sh64 | sh64le \
     265        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
     266        | strongarm \
     267        | tahoe | thumb | tic4x | tic80 | tron \
     268        | v850 | v850e \
    254269        | we32k \
    255         | x86 | xscale \
     270        | x86 | xscale | xstormy16 | xtensa \
    256271        | z8k)
    257272                basic_machine=$basic_machine-unknown
     
    280295        | a29k-* \
    281296        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
    282         | alphapca5[67]-* | arc-* \
    283         | arm-*  | armbe-* | armle-* | armv*-* \
     297        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
     298        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
     299        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    284300        | avr-* \
    285301        | bs2000-* \
    286         | c[123]* | c30-* | [cjt]90-* | c54x-* \
    287         | clipper-* | cray2-* | cydra-* \
    288         | d10v-* | d30v-* \
     302        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
     303        | clipper-* | cydra-* \
     304        | d10v-* | d30v-* | dlx-* \
    289305        | elxsi-* \
    290         | f30[01]-* | f700-* | fr30-* | fx80-* \
     306        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
    291307        | h8300-* | h8500-* \
    292308        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    293309        | i*86-* | i860-* | i960-* | ia64-* \
    294         | m32r-* \
    295         | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
     310        | ip2k-* | iq2000-* \
     311        | m32r-* | m32rle-* \
     312        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    296313        | m88110-* | m88k-* | mcore-* \
    297         | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
    298         | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
    299         | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
    300         | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
    301         | none-* | np1-* | ns16k-* | ns32k-* \
     314        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
     315        | mips16-* \
     316        | mips64-* | mips64el-* \
     317        | mips64vr-* | mips64vrel-* \
     318        | mips64orion-* | mips64orionel-* \
     319        | mips64vr4100-* | mips64vr4100el-* \
     320        | mips64vr4300-* | mips64vr4300el-* \
     321        | mips64vr5000-* | mips64vr5000el-* \
     322        | mipsisa32-* | mipsisa32el-* \
     323        | mipsisa32r2-* | mipsisa32r2el-* \
     324        | mipsisa64-* | mipsisa64el-* \
     325        | mipsisa64r2-* | mipsisa64r2el-* \
     326        | mipsisa64sb1-* | mipsisa64sb1el-* \
     327        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
     328        | mipstx39-* | mipstx39el-* \
     329        | msp430-* \
     330        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
    302331        | orion-* \
    303332        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     
    305334        | pyramid-* \
    306335        | romp-* | rs6000-* \
    307         | s390-* | s390x-* \
    308         | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
    309         | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
    310         | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
    311         | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
    312         | v850-* | vax-* \
     336        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
     337        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
     338        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
     339        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     340        | tahoe-* | thumb-* \
     341        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     342        | tron-* \
     343        | v850-* | v850e-* | vax-* \
    313344        | we32k-* \
    314         | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
     345        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
     346        | xtensa-* \
    315347        | ymp-* \
    316348        | z8k-*)
     
    332364                os=-udi
    333365                ;;
     366        abacus)
     367                basic_machine=abacus-unknown
     368                ;;
    334369        adobe68k)
    335370                basic_machine=m68010-adobe
     
    346381                os=-bsd
    347382                ;;
     383        amd64)
     384                basic_machine=x86_64-pc
     385                ;;
     386        amd64-*)
     387                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     388                ;;
    348389        amdahl)
    349390                basic_machine=580-amdahl
     
    377418                os=-dynix
    378419                ;;
     420        c90)
     421                basic_machine=c90-cray
     422                os=-unicos
     423                ;;
    379424        convex-c1)
    380425                basic_machine=c1-convex
     
    397442                os=-bsd
    398443                ;;
    399         cray | ymp)
    400                 basic_machine=ymp-cray
     444        cray | j90)
     445                basic_machine=j90-cray
    401446                os=-unicos
    402447                ;;
    403         cray2)
    404                 basic_machine=cray2-cray
    405                 os=-unicos
    406                 ;;
    407         [cjt]90)
    408                 basic_machine=${basic_machine}-cray
    409                 os=-unicos
     448        cr16c)
     449                basic_machine=cr16c-unknown
     450                os=-elf
    410451                ;;
    411452        crds | unos)
     
    415456                basic_machine=cris-axis
    416457                ;;
     458        crx)
     459                basic_machine=crx-unknown
     460                os=-elf
     461                ;;
    417462        da30 | da30-*)
    418463                basic_machine=m68k-da30
     
    420465        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
    421466                basic_machine=mips-dec
     467                ;;
     468        decsystem10* | dec10*)
     469                basic_machine=pdp10-dec
     470                os=-tops10
     471                ;;
     472        decsystem20* | dec20*)
     473                basic_machine=pdp10-dec
     474                os=-tops20
    422475                ;;
    423476        delta | 3300 | motorola-3300 | motorola-delta \
     
    601654                os=-mint
    602655                ;;
    603         mipsel*-linux*)
    604                 basic_machine=mipsel-unknown
    605                 os=-linux-gnu
    606                 ;;
    607         mips*-linux*)
    608                 basic_machine=mips-unknown
    609                 os=-linux-gnu
    610                 ;;
    611656        mips3*-*)
    612657                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
     
    622667                basic_machine=m68k-rom68k
    623668                os=-coff
     669                ;;
     670        morphos)
     671                basic_machine=powerpc-unknown
     672                os=-morphos
    624673                ;;
    625674        msdos)
     
    695744                basic_machine=np1-gould
    696745                ;;
     746        nv1)
     747                basic_machine=nv1-cray
     748                os=-unicosmp
     749                ;;
    697750        nsr-tandem)
    698751                basic_machine=nsr-tandem
     
    702755                os=-proelf
    703756                ;;
     757        or32 | or32-*)
     758                basic_machine=or32-unknown
     759                os=-coff
     760                ;;
     761        os400)
     762                basic_machine=powerpc-ibm
     763                os=-os400
     764                ;;
    704765        OSE68000 | ose68000)
    705766                basic_machine=m68000-ericsson
     
    724785                basic_machine=m68k-tti
    725786                ;;
    726         pc532 | pc532-*)
     787        pc532 | pc532-*)
    727788                basic_machine=ns32k-pc532
    728789                ;;
     
    730791                basic_machine=i586-pc
    731792                ;;
    732         pentiumpro | p6 | 6x86 | athlon)
     793        pentiumpro | p6 | 6x86 | athlon | athlon_*)
    733794                basic_machine=i686-pc
    734795                ;;
    735         pentiumii | pentium2)
     796        pentiumii | pentium2 | pentiumiii | pentium3)
    736797                basic_machine=i686-pc
     798                ;;
     799        pentium4)
     800                basic_machine=i786-pc
    737801                ;;
    738802        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
     
    742806                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    743807                ;;
    744         pentiumii-* | pentium2-*)
     808        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
    745809                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     810                ;;
     811        pentium4-*)
     812                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
    746813                ;;
    747814        pn)
     
    751818                ;;
    752819        ppc)    basic_machine=powerpc-unknown
    753                 ;;
     820                ;;
    754821        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    755822                ;;
    756823        ppcle | powerpclittle | ppc-le | powerpc-little)
    757824                basic_machine=powerpcle-unknown
    758                 ;;
     825                ;;
    759826        ppcle-* | powerpclittle-*)
    760827                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    761828                ;;
    762829        ppc64)  basic_machine=powerpc64-unknown
    763                 ;;
     830                ;;
    764831        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
    765832                ;;
    766833        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
    767834                basic_machine=powerpc64le-unknown
    768                 ;;
     835                ;;
    769836        ppc64le-* | powerpc64little-*)
    770837                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
     
    787854                basic_machine=romp-ibm
    788855                ;;
     856        s390 | s390-*)
     857                basic_machine=s390-ibm
     858                ;;
     859        s390x | s390x-*)
     860                basic_machine=s390x-ibm
     861                ;;
    789862        sa29200)
    790863                basic_machine=a29k-amd
    791864                os=-udi
    792865                ;;
     866        sb1)
     867                basic_machine=mipsisa64sb1-unknown
     868                ;;
     869        sb1el)
     870                basic_machine=mipsisa64sb1el-unknown
     871                ;;
     872        sei)
     873                basic_machine=mips-sei
     874                os=-seiux
     875                ;;
    793876        sequent)
    794877                basic_machine=i386-sequent
     
    798881                os=-hms
    799882                ;;
     883        sh64)
     884                basic_machine=sh64-unknown
     885                ;;
    800886        sparclite-wrs | simso-wrs)
    801887                basic_machine=sparclite-wrs
     
    865951                ;;
    866952        t3e)
    867                 basic_machine=t3e-cray
     953                basic_machine=alphaev5-cray
     954                os=-unicos
     955                ;;
     956        t90)
     957                basic_machine=t90-cray
    868958                os=-unicos
    869959                ;;
     
    872962                os=-coff
    873963                ;;
     964        tic55x | c55x*)
     965                basic_machine=tic55x-unknown
     966                os=-coff
     967                ;;
     968        tic6x | c6x*)
     969                basic_machine=tic6x-unknown
     970                os=-coff
     971                ;;
    874972        tx39)
    875973                basic_machine=mipstx39-unknown
     
    878976                basic_machine=mipstx39el-unknown
    879977                ;;
     978        toad1)
     979                basic_machine=pdp10-xkl
     980                os=-tops20
     981                ;;
    880982        tower | tower-32)
    881983                basic_machine=m68k-ncr
     984                ;;
     985        tpf)
     986                basic_machine=s390x-ibm
     987                os=-tpf
    882988                ;;
    883989        udi29k)
     
    9021008                ;;
    9031009        vpp*|vx|vx-*)
    904                basic_machine=f301-fujitsu
    905                ;;
     1010                basic_machine=f301-fujitsu
     1011                ;;
    9061012        vxworks960)
    9071013                basic_machine=i960-wrs
     
    9241030                os=-proelf
    9251031                ;;
    926         windows32)
    927                 basic_machine=i386-pc
    928                 os=-windows32-msvcrt
    929                 ;;
    930         xmp)
    931                 basic_machine=xmp-cray
     1032        xps | xps100)
     1033                basic_machine=xps100-honeywell
     1034                ;;
     1035        ymp)
     1036                basic_machine=ymp-cray
    9321037                os=-unicos
    933                 ;;
    934         xps | xps100)
    935                 basic_machine=xps100-honeywell
    9361038                ;;
    9371039        z8k-*-coff)
     
    9551057                basic_machine=hppa1.1-oki
    9561058                ;;
    957         mips)
    958                 if [ x$os = x-linux-gnu ]; then
    959                         basic_machine=mips-unknown
    960                 else
    961                         basic_machine=mips-mips
    962                 fi
    963                 ;;
    9641059        romp)
    9651060                basic_machine=romp-ibm
     
    9811076                basic_machine=we32k-att
    9821077                ;;
    983         sh3 | sh4 | sh3eb | sh4eb)
     1078        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
    9841079                basic_machine=sh-unknown
    9851080                ;;
    986         sparc | sparcv9 | sparcv9b)
     1081        sh64)
     1082                basic_machine=sh64-unknown
     1083                ;;
     1084        sparc | sparcv8 | sparcv9 | sparcv9b)
    9871085                basic_machine=sparc-sun
    9881086                ;;
    989         cydra)
     1087        cydra)
    9901088                basic_machine=cydra-cydrome
    9911089                ;;
     
    10011099        pmac | pmac-mpw)
    10021100                basic_machine=powerpc-apple
    1003                 ;;
    1004         c4x*)
    1005                 basic_machine=c4x-none
    1006                 os=-coff
    10071101                ;;
    10081102        *-unknown)
     
    10611155              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    10621156              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1063               | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    1064               | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1157              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
     1158              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1159              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    10651160              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    10661161              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    10671162              | -chorusos* | -chorusrdb* \
    10681163              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1069               | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
    1070               | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
     1164              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
     1165              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    10711166              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    10721167              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    1073               | -os2* | -vos*)
     1168              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
     1169              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     1170              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
    10741171        # Remember, each alternative MUST END IN *, to match a version number.
    10751172                ;;
     
    10831180                esac
    10841181                ;;
     1182        -nto-qnx*)
     1183                ;;
    10851184        -nto*)
    1086                 os=-nto-qnx
     1185                os=`echo $os | sed -e 's|nto|nto-qnx|'`
    10871186                ;;
    10881187        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
     
    10931192                os=`echo $os | sed -e 's|mac|macos|'`
    10941193                ;;
     1194        -linux-dietlibc)
     1195                os=-linux-dietlibc
     1196                ;;
    10951197        -linux*)
    10961198                os=`echo $os | sed -e 's|linux|linux-gnu|'`
     
    11051207                os=-openedition
    11061208                ;;
     1209        -os400*)
     1210                os=-os400
     1211                ;;
    11071212        -wince*)
    11081213                os=-wince
     
    11231228                os=-aos
    11241229                ;;
     1230        -atheos*)
     1231                os=-atheos
     1232                ;;
     1233        -syllable*)
     1234                os=-syllable
     1235                ;;
    11251236        -386bsd)
    11261237                os=-bsd
     
    11291240                os=-sysv
    11301241                ;;
     1242        -nova*)
     1243                os=-rtmk-nova
     1244                ;;
    11311245        -ns2 )
    1132                 os=-nextstep2
     1246                os=-nextstep2
    11331247                ;;
    11341248        -nsk*)
     
    11421256                os=-sysv4
    11431257                ;;
     1258        -tpf*)
     1259                os=-tpf
     1260                ;;
    11441261        -triton*)
    11451262                os=-sysv3
     
    11691286                os=-xenix
    11701287                ;;
    1171         -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    1172                 os=-mint
     1288        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     1289                os=-mint
     1290                ;;
     1291        -aros*)
     1292                os=-aros
     1293                ;;
     1294        -kaos*)
     1295                os=-kaos
    11731296                ;;
    11741297        -none)
     
    12031326                os=-aout
    12041327                ;;
     1328    c4x-* | tic4x-*)
     1329        os=-coff
     1330        ;;
     1331        # This must come before the *-dec entry.
    12051332        pdp10-*)
    12061333                os=-tops20
    12071334                ;;
    1208         pdp11-*)
     1335        pdp11-*)
    12091336                os=-none
    12101337                ;;
     
    12331360                os=-elf
    12341361                ;;
     1362        or32-*)
     1363                os=-coff
     1364                ;;
    12351365        *-tti)  # must be before sparc entry or we get the wrong os.
    12361366                os=-sysv3
     
    12961426                os=-nextstep3
    12971427                ;;
    1298         *-gould)
     1428        *-gould)
    12991429                os=-sysv
    13001430                ;;
    1301         *-highlevel)
     1431        *-highlevel)
    13021432                os=-bsd
    13031433                ;;
     
    13051435                os=-bsd
    13061436                ;;
    1307         *-sgi)
     1437        *-sgi)
    13081438                os=-irix
    13091439                ;;
    1310         *-siemens)
     1440        *-siemens)
    13111441                os=-sysv4
    13121442                ;;
     
    13771507                                vendor=ibm
    13781508                                ;;
     1509                        -os400*)
     1510                                vendor=ibm
     1511                                ;;
    13791512                        -ptx*)
    13801513                                vendor=sequent
    13811514                                ;;
    1382                         -vxsim* | -vxworks*)
     1515                        -tpf*)
     1516                                vendor=ibm
     1517                                ;;
     1518                        -vxsim* | -vxworks* | -windiss*)
    13831519                                vendor=wrs
    13841520                                ;;
  • abuse/trunk/libtool

    r2 r4  
    3636# ### BEGIN LIBTOOL CONFIG
    3737
    38 # Libtool was configured on host Milamber:
     38# Libtool was configured on host poukram:
    3939
    4040# Shell to use when invoking shell scripts.
     
    7171
    7272# The linker used to build libraries.
    73 LD="/usr/i386-slackware-linux/bin/ld"
     73LD="/usr/bin/ld"
    7474
    7575# Whether we need hard or soft links.
  • abuse/trunk/src/chars.cpp

    r2 r4  
    413413    {
    414414      lprint(lcar(field));
    415       lbreak("Unknown field for character definiltion");
     415      lbreak("Unknown field for character definition");
    416416      exit(0);
    417417    }   
  • abuse/trunk/src/collide.cpp

    r2 r4  
    148148{
    149149  game_object *target,*rec,*subject;
    150   long sx1,sy1,sx2,sy2,tx1,ty1,tx2,ty2,hitx,hity,t_centerx;
     150  long sx1,sy1,sx2,sy2,tx1,ty1,tx2,ty2,hitx=0,hity=0,t_centerx;
    151151
    152152  for (int l=0;l<attack_total;l++)
  • abuse/trunk/src/cop.cpp

    r2 r4  
    143143                                        (o->otype==S_ROCKET_TOP ? large_fire_off :
    144144                                         (o->otype==S_BFG_TOP ? large_fire_off : small_fire_off));
    145         signed char *f=fire_off,*fb;
    146         int best_diff=200,best_num;
     145        signed char *f=fire_off,*fb=NULL;
     146        int best_diff=200,best_num=0;
    147147        int iy=f[1],ix=f[6*2];
    148148       
     
    836836          case run_jump_fall : o->state=(character_state)S_fast_run_jump_fall; break;
    837837          case end_run_jump : o->state=(character_state)S_fast_end_run_jump; break;
     838          default: break;
    838839        }
    839840
     
    855856          case run_jump_fall : o->state=(character_state)S_fly_run_jump_fall; break;
    856857          case end_run_jump : o->state=(character_state)S_fly_end_run_jump; break;
     858          default: break;
    857859        }
    858860
  • abuse/trunk/src/demo.cpp

    r2 r4  
    117117      }
    118118    } break;
     119    default :
     120      break;
    119121  }
    120122}
     
    209211
    210212    } break;
     213    default :
     214      break;
    211215  }
    212216
  • abuse/trunk/src/dev.cpp

    r2 r4  
    20032003      }
    20042004    }
     2005    default:
     2006      break;
    20052007  }
    20062008
  • abuse/trunk/src/game.cpp

    r2 r4  
    545545    spec_directory sd(fp); 
    546546
     547#if 0
    547548    spec_entry *e=sd.find("Copyright 1995 Crack dot Com, All Rights reserved");
    548549    if (!e)
     
    553554    }
    554555    else
     556#endif
    555557      current_level=new level(&sd,fp,name);
    556558    delete fp;
     
    14211423        char *fastpath;
    14221424        fastpath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 13, "fastpath" );
    1423         sprintf( fastpath, "%sfastload.dat\0", get_save_filename_prefix() );
     1425        sprintf( fastpath, "%sfastload.dat", get_save_filename_prefix() );
    14241426        fast_load_start_recording( fastpath );
    14251427        load_data(argc,argv); 
  • abuse/trunk/src/gamma.cpp

    r2 r4  
    180180
    181181                        gammapath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 10, "gammapath" );
    182                         sprintf( gammapath, "%sgamma.lsp\0", get_save_filename_prefix() );
     182                        sprintf( gammapath, "%sgamma.lsp", get_save_filename_prefix() );
    183183                        fp = open_FILE( gammapath, "wb" );
    184184                        if( fp )
  • abuse/trunk/src/imlib/dprint.cpp

    r2 r4  
    2121        if (dprint_fun)
    2222        {
    23                 char st[1000],a,*sp;
    24                 int y;
     23                char st[1000];
    2524                va_list ap;
    2625
  • abuse/trunk/src/imlib/filesel.cpp

    r2 r4  
    5757      int i=0;
    5858      for (;i<tf;i++)
    59       if (strlen(f[i])>wid) wid=strlen(f[i]);
     59      if ((int)strlen(f[i])>wid) wid=strlen(f[i]);
    6060      for (i=0;i<td;i++)
    61       if (strlen(d[i])+2>wid) wid=strlen(d[i])+2;
     61      if ((int)strlen(d[i])+2>wid) wid=strlen(d[i])+2;
    6262      sx=0;
    6363
     
    103103  int i=0;
    104104  for (;i<tf;i++)
    105     if (strlen(f[i])>wid) wid=strlen(f[i]);
     105    if ((int)strlen(f[i])>wid) wid=strlen(f[i]);
    106106  for (i=0;i<td;i++)
    107     if (strlen(d[i])+2>wid) wid=strlen(d[i])+2;
     107    if ((int)strlen(d[i])+2>wid) wid=strlen(d[i])+2;
    108108  reconfigure(); 
    109109}
  • abuse/trunk/src/imlib/fonts.cpp

    r2 r4  
    3737void JCFont::put_char(image *screen,  int x, int y, char ch, int color)
    3838{
    39   if (let[ch])
     39  if (let[(int)ch])
    4040  {
    4141    if (color>=0)
    42       let[ch]->put_color(screen,x,y,color);
    43     else let[ch]->put_image(screen,x,y);
     42      let[(int)ch]->put_color(screen,x,y,color);
     43    else let[(int)ch]->put_image(screen,x,y);
    4444  }
    4545}
  • abuse/trunk/src/imlib/gifread.cpp

    r2 r4  
    3838  char buf[100],er;
    3939  unsigned char sep;
    40   int ncolors;
     40  unsigned int ncolors;
    4141  FILE *fp;
    4242  image *im;
  • abuse/trunk/src/imlib/include.cpp

    r2 r4  
    66  char tmp_name[200];
    77  strcpy(tmp_name,name);
    8   int j,append=0,i;
     8  unsigned int j;
     9  int append=0,i;
    910  for (j=0;j<strlen(name);j++)
    1011    if (toupper(tmp_name[j])<'A' || toupper(tmp_name[j])>'Z')
  • abuse/trunk/src/imlib/input.cpp

    r2 r4  
    257257      case JK_LEFT : if (cur) { draw_cur(wm->dark_color(),screen,wm); cur--;
    258258                           draw_cur(wm->bright_color(),screen,wm); } break;
    259       case JK_RIGHT : if (cur<strlen(format)-1) { draw_cur(wm->dark_color(),screen,wm); cur++;
     259      case JK_RIGHT : if (cur<(int)strlen(format)-1) { draw_cur(wm->dark_color(),screen,wm); cur++;
    260260                           draw_cur(wm->bright_color(),screen,wm); } break;
    261261      case JK_END : if (cur!=last_spot())
    262262                          { draw_cur(wm->dark_color(),screen,wm); cur=last_spot();
    263                             if (cur==strlen(format)-1) cur--;
     263                            if (cur==(int)strlen(format)-1) cur--;
    264264                           draw_cur(wm->bright_color(),screen,wm); } break;
    265265      case JK_HOME : if (cur)
     
    268268      case JK_BACKSPACE : if (cur)
    269269         { draw_cur(wm->dark_color(),screen,wm); cur--;
    270            for (xx=cur;xx<strlen(format)-1;xx++)
     270           for (xx=cur;xx<(int)strlen(format)-1;xx++)
    271271             data[xx]=data[xx+1];
    272272           data[strlen(format)-1]=' ';
     
    281281             data[xx]=data[xx-1];
    282282           data[cur]=ev.key;
    283            if (cur<strlen(format)-1)
     283           if (cur<(int)strlen(format)-1)
    284284             cur++;
    285285           data[strlen(format)]=0;
     
    335335{
    336336  char num[20];
    337   sprintf(num,"%Lg",Data); 
     337  sprintf(num,"%g",Data); 
    338338  int slen=(strlen(Format)>strlen(num) ? strlen(Format) : strlen(num));
    339339  x=X; y=Y; id=ID;
  • abuse/trunk/src/imlib/jmalloc.cpp

    r2 r4  
    169169  for (;f;f=f->next);               // scan through static big list
    170170
    171   int i,bit;
     171  int i,bit=1;
    172172  for (i=0;i<JM_SMALL_SIZE;i++)
    173173  {
     
    215215    {     
    216216      fprintf(fp,"*** Small Block size = %d ***\n",i);     
    217       unsigned long x=0,bit=1;
     217      unsigned long bit=1;
    218218      char *addr=((char *)(s+1));
    219219      for (int j=0;j<32;j++)
     
    252252    {     
    253253      fprintf(fp,"*** Small Block size = %d ***\n",i);     
    254       unsigned long x=0,bit=1;
     254      unsigned long bit=1;
    255255      char *addr=((char *)(s+1));
    256256      for (int j=0;j<32;j++)
     
    348348    } else
    349349    {
    350       int bit=1,i=0,offset=0;
     350      int bit=1,i=0;
    351351      char *addr=((char *)s)+sizeof(small_block);
    352352      while (1)        // we already know there is a bit free
     
    380380  s->size=-s->size;
    381381
    382   if (s->size-size>sizeof(memory_node)+4)  // is there enough space to split the block?
     382  if (s->size-size>(int)sizeof(memory_node)+4)  // is there enough space to split the block?
    383383  {   
    384384    memory_node *p=(memory_node *)((char *)s+sizeof(memory_node)+size);
     
    431431    } else
    432432    {
    433       int bit=1,i=0,offset=0;
     433      int bit=1,i=0;
    434434      char *addr=((char *)s)+sizeof(small_block);
    435435      while (1)        // we already know there is a bit free
     
    486486  s->size=-s->size;
    487487
    488   if (s->size-size>sizeof(memory_node)+4)  // is there enough space to split the block?
     488  if (s->size-size>(int)sizeof(memory_node)+4)  // is there enough space to split the block?
    489489  {
    490490    memory_node *p=s;    // store this position
     
    882882        char *reportpath;
    883883        reportpath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + strlen( filename ), "reportpath" );
    884         sprintf( reportpath, "%s%s\0", get_save_filename_prefix(), filename );
     884        sprintf( reportpath, "%s%s", get_save_filename_prefix(), filename );
    885885
    886886        FILE *fp = fopen( reportpath, "wb" );
  • abuse/trunk/src/imlib/jwindow.cpp

    r2 r4  
    176176        if (red)
    177177        {
    178           jwindow *j=ev.window,*p;
     178          jwindow *j=ev.window;
    179179/*        screen->add_dirty(j->x,j->y,j->x+j->l-1,j->y+j->h-1);
    180180          for (p=first;p!=j;p=p->next)
     
    283283  jwindow *p,*q;
    284284
    285   int mx,my,but;
    286   image *mouse_pic,*mouse_save;
     285  int mx=0,my=0;
     286  image *mouse_pic=NULL,*mouse_save=NULL;
    287287 
    288288  if (has_mouse())
     
    427427ifield *input_manager::unlink(int id)     // unlinks ID from fields list and return the pointer to it
    428428{
    429   for (ifield *i=first,*last;i;i=i->next)
     429  for (ifield *i=first,*last=NULL;i;i=i->next)
    430430  {
    431431    if (i->id==id)
  • abuse/trunk/src/imlib/keys.cpp

    r2 r4  
    1212void key_name(int key, char *buffer)
    1313{
    14         static char sing[2];
     14        //static char sing[2];
    1515        if( key > 255 && key <= JK_MAX_KEY )
    1616                strcpy(buffer,jk_key_names[key-256]);
  • abuse/trunk/src/imlib/lbmread.cpp

    r2 r4  
    3030    else
    3131    {
    32       long offset=12,ssize;   
     32      long ssize;   
    3333      char stype[4];
    3434      short w=0,h=0,x,y,tcolor,pagew,pageh;
    35       char planes,masking,compr,padl,xa,ya;
     35      char planes,masking,compr=0,padl,xa,ya;
    3636     
    3737      while (ftell(fp)+4<size)
     
    6363          if (im) delete im;  // shouldn't be two BODY's butjust in case...
    6464          im=new image(w,h);
    65           int x,y;
     65          int y;
    6666          if (!compr)
    6767          {
  • abuse/trunk/src/imlib/palette.cpp

    r2 r4  
    482482  brv=0; bri=0;
    483483
    484   for (i=0;i<ncolors;i++)
     484  for (i=0;i<(unsigned int)ncolors;i++)
    485485  { if (all || used(i))
    486486    {
     
    502502  brv=(long)258*(long)258*(long)258; bri=0;
    503503
    504   for (i=0;i<ncolors;i++)
     504  for (i=0;i<(unsigned int)ncolors;i++)
    505505  { if (all || used(i))
    506506    {
  • abuse/trunk/src/imlib/pmenu.cpp

    r2 r4  
    276276 
    277277
    278   int total=0,tx,tw,i=0,x;
     278  int total=0,tw,i=0,x=0;
    279279  for (pmenu_item *pp=top;pp;pp=pp->next,i++)
    280280  { if (pp==p) x=i;
  • abuse/trunk/src/imlib/scroller.cpp

    r2 r4  
    348348{
    349349  screen->bar(x,y,x+l-1,y+h-1,wm->black());
    350   int xa,ya,xo,yo;
     350  int xa,ya,xo=0,yo;
    351351  if (vert) { xa=0; ya=30; yo=x+5; yo=y+5; } else { xa=30; ya=0; xo=x+5; yo=y+5; }
    352352  for (int i=newx,c=0;c<30 && i<100;i++,c++)
     
    391391
    392392  for (i=0;i<t;i++)
    393     if (strlen(List[i])>wid)
     393    if ((int)strlen(List[i])>wid)
    394394      wid=strlen(List[i]);
    395395  cur_sel=sx=start_yoffset;
     
    426426    int found=-1;
    427427    if (key_hist_total<20)
    428       key_hist[key_hist_total++]=ev.key;
     428      key_hist[(int)(key_hist_total++)]=ev.key;
    429429
    430430    for (int i=0;i<t && found==-1;i++)
    431431    {
    432       if (strlen(lis[i].name)>=key_hist_total && memcmp(lis[i].name,key_hist,key_hist_total)==0)
     432      if ((int)strlen(lis[i].name)>=key_hist_total && memcmp(lis[i].name,key_hist,key_hist_total)==0)
    433433        found=i;
    434434    }
     
    480480    int tw=(l+tex->width()-1)/tex->width();
    481481    int th=(h+tex->height()-1)/tex->height();
    482     int dy=y,dx;
     482    int dy=y;
    483483    for (int j=0;j<th;j++,dy+=tex->height())
    484484      for (int i=0,dx=x;i<tw;i++,dx+=tex->width())     
  • abuse/trunk/src/imlib/specs.cpp

    r2 r4  
    151151  if (wbuf_end!=0)
    152152  {
    153     long ret=unbuffered_write(wbuf,wbuf_end);
     153    unsigned long ret=unbuffered_write(wbuf,wbuf_end);
    154154    if (ret!=wbuf_end && no_space_handle_fun)
    155155      no_space_handle_fun();
     
    172172    if (rbuf_start<rbuf_end)
    173173    {
    174       int avail_size=rbuf_end-rbuf_start;
     174      unsigned int avail_size=rbuf_end-rbuf_start;
    175175      int copy_size=avail_size>count ? count : avail_size;
    176176      memcpy(buf,rbuf+rbuf_start,copy_size);
     
    209209      buf=(void *)(((char *)buf)+copy_size);
    210210      if (wbuf_end==wbuf_size)
    211         if (flush_writes()!=wbuf_size)
     211        if ((unsigned int)flush_writes()!=wbuf_size)
    212212          return total_written;
    213213     
     
    217217  } else
    218218  {
    219     long ret=unbuffered_write(buf,count);
     219    unsigned long ret=unbuffered_write(buf,count);
    220220    if (ret!=count && no_space_handle_fun)
    221221      no_space_handle_fun();
     
    234234  else if (whence==SEEK_END) offset=file_size()-offset;
    235235
    236   if (offset<realpos-rbuf_end || offset>=realpos)
     236  if (offset<realpos-(long)rbuf_end || offset>=realpos)
    237237  {
    238238    rbuf_start=rbuf_end=0;
     
    270270#if (defined(__APPLE__) && !defined(__MACH__))
    271271  spec_main_jfile.open_external(filename,"rb",O_BINARY|O_RDONLY);
    272   spec_main_fd = spec_main_jfile.get_fd();
    273   spec_main_sd.startup(&spec_main_jfile);
    274272#else
    275273  spec_main_jfile.open_external(filename,"rb",O_RDONLY);
     274#endif
    276275  spec_main_fd = spec_main_jfile.get_fd();
     276  if (spec_main_fd==-1)
     277    return;
    277278  spec_main_sd.startup(&spec_main_jfile);
    278 #endif
    279279}
    280280
     
    335335    {
    336336      skip_size=1;
    337       int errval = unlink(tmp_name);
     337      //int errval = unlink(tmp_name);
    338338    }
    339339
     
    487487int jFILE::unbuffered_read(void *buf, size_t count)
    488488{
    489         long len;
     489        unsigned long len;
    490490
    491491        if (fd == spec_main_fd)
     
    505505                        len = ::read(fd,(char*)buf,count);
    506506                        ::write(fast_load_fd,(char*)&len,sizeof(len));
    507                         ::write(fast_load_fd,(char*)buf,count);
     507                        ::write(fast_load_fd,(char*)buf,len);
    508508                        break;
    509509                case 2:
     
    525525                len = ::read(fd,(char*)buf,count);
    526526                        ::write(fast_load_fd,(char*)&len,sizeof(len));
    527                         ::write(fast_load_fd,(char*)buf,count);
     527                        ::write(fast_load_fd,(char*)buf,len);
    528528                break;
    529529                case 2:
     
    755755{
    756756  char buf[256];
     757  memset(buf,0,256);
    757758  fp->read(buf,8);
    758759  buf[9]=0;
  • abuse/trunk/src/imlib/targa.cpp

    r2 r4  
    5555  int x,y;
    5656  unsigned char ctrl;
    57   unsigned char bgra[4],*sl,c,lr,lg,lb,ll=0,lc;
     57  unsigned char bgra[4],*sl,c,lr=0,lg=0,lb=0,ll=0,lc=0;
    5858 
    5959 
  • abuse/trunk/src/imlib/xwdread.cpp

    r2 r4  
    140140  X11WDFileHeader *h11P;
    141141  char junk[800];
    142   int i, dummy1, dummy2, dummy3;
     142  unsigned int i;
     143  int dummy1, dummy2, dummy3;
    143144  unsigned  short minred, maxred;
    144145  X11XColor x11col;
  • abuse/trunk/src/innet.cpp

    r2 r4  
    490490      spec_directory sd(fp); 
    491491
     492#if 0
    492493      spec_entry *e=sd.find("Copyright 1995 Crack dot Com, All Rights reserved");
    493494      if (!e)
     
    498499      }
    499500      else
     501#endif
    500502        current_level=new level(&sd,fp,NET_STARTFILE);
    501503
  • abuse/trunk/src/lcache.cpp

    r2 r4  
    110110      {
    111111        long x=abs(t);
    112         cons_cell *last,*first=NULL;
     112        cons_cell *last=NULL,*first=NULL;
    113113        while (x)
    114114        {
  • abuse/trunk/src/light.cpp

    r2 r4  
    204204        char *lightpath;
    205205        lightpath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 9, "lightpath" );
    206         sprintf( lightpath, "%slight.tbl\0", get_save_filename_prefix() );
     206        sprintf( lightpath, "%slight.tbl", get_save_filename_prefix() );
    207207
    208208        bFILE *fp=open_file( lightpath, "rb" );
     
    12191219    long t=fp->read_long();
    12201220    min_light_level=fp->read_long();
    1221     light_source *last;
     1221    light_source *last=NULL;
    12221222    while (t)
    12231223    {
  • abuse/trunk/src/lisp.cpp

    r2 r4  
    932932  if (l1!=0)
    933933  {
    934     void *first=NULL,*last=NULL,*cur=NULL;
     934    void *first=NULL,*last=NULL,*cur=NULL,*tmp;
    935935    p_ref r1(first),r2(last),r3(cur);
    936936    while (list1)
     
    943943             
    944944      cons_cell *cell=new_cons_cell();       
    945       ((cons_cell *)cell)->car=lcar(list1);
    946       ((cons_cell *)cell)->cdr=lcar(list2);
     945      tmp=lcar(list1);
     946      ((cons_cell *)cell)->car=tmp;
     947      tmp=lcar(list2);
     948      ((cons_cell *)cell)->cdr=tmp;
    947949      ((cons_cell *)cur)->car=cell;
    948950
     
    11511153  else if (n[0]=='\'')                    // short hand for quote function
    11521154  {
    1153     void *cs=new_cons_cell(),*c2=NULL;
     1155    void *cs=new_cons_cell(),*c2=NULL,*tmp;
    11541156    p_ref r1(cs),r2(c2);
    11551157
    11561158    ((cons_cell *)cs)->car=quote_symbol;
    11571159    c2=new_cons_cell();
    1158     ((cons_cell *)c2)->car=compile(s);
     1160    tmp=compile(s);
     1161    ((cons_cell *)c2)->car=tmp;
    11591162    ((cons_cell *)c2)->cdr=NULL;
    11601163    ((cons_cell *)cs)->cdr=c2;
     
    11631166  else if (n[0]=='`')                    // short hand for backquote function
    11641167  {
    1165     void *cs=new_cons_cell(),*c2=NULL;
     1168    void *cs=new_cons_cell(),*c2=NULL,*tmp;
    11661169    p_ref r1(cs),r2(c2);
    11671170
    11681171    ((cons_cell *)cs)->car=backquote_symbol;
    11691172    c2=new_cons_cell();
    1170     ((cons_cell *)c2)->car=compile(s);
     1173    tmp=compile(s);
     1174    ((cons_cell *)c2)->car=tmp;
    11711175    ((cons_cell *)c2)->cdr=NULL;
    11721176    ((cons_cell *)cs)->cdr=c2;
     
    11741178  }  else if (n[0]==',')              // short hand for comma function
    11751179  {
    1176     void *cs=new_cons_cell(),*c2=NULL;
     1180    void *cs=new_cons_cell(),*c2=NULL,*tmp;
    11771181    p_ref r1(cs),r2(c2);
    11781182
    11791183    ((cons_cell *)cs)->car=comma_symbol;
    11801184    c2=new_cons_cell();
    1181     ((cons_cell *)c2)->car=compile(s);
     1185    tmp=compile(s);
     1186    ((cons_cell *)c2)->car=tmp;
    11821187    ((cons_cell *)c2)->cdr=NULL;
    11831188    ((cons_cell *)cs)->cdr=c2;
     
    12071212                                  else
    12081213                                  {
     1214                                    void *tmp;
    12091215                                    read_ltoken(s,n);              // skip the '.'
    1210                                     ((cons_cell *)last)->cdr=compile(s);          // link the last cdr to
     1216                                    tmp=compile(s);
     1217                                    ((cons_cell *)last)->cdr=tmp;          // link the last cdr to
    12111218                                    last=NULL;
    12121219                                  }
     
    12151222                                else
    12161223                                {               
     1224                                  void *tmp;
    12171225                                  cur=new_cons_cell();
    12181226                                  p_ref r1(cur);
    12191227                                  if (!first) first=cur;
    1220                                   ((cons_cell *)cur)->car=compile(s);   
     1228                                  tmp=compile(s);       
     1229                                  ((cons_cell *)cur)->car=tmp;
    12211230                                  if (last)
    12221231                                    ((cons_cell *)last)->cdr=cur;
     
    12661275    else if (n[1]==0)                           // short hand for function
    12671276    {
    1268       void *cs=new_cons_cell(),*c2=NULL;
     1277      void *cs=new_cons_cell(),*c2=NULL,*tmp;
    12691278      p_ref r4(cs),r5(c2);
    1270       ((cons_cell *)cs)->car=make_find_symbol("function");
     1279      tmp=make_find_symbol("function");
     1280      ((cons_cell *)cs)->car=tmp;
    12711281      c2=new_cons_cell();
    1272       ((cons_cell *)c2)->car=compile(s);
     1282      tmp=compile(s);
     1283      ((cons_cell *)c2)->car=tmp;
    12731284      ((cons_cell *)cs)->cdr=c2;
    12741285      ret=cs;
     
    12791290      exit(0);
    12801291    }
    1281   } else return make_find_symbol(n);
     1292  } else {
     1293    ret = make_find_symbol(n);
     1294  }
    12821295  return ret;
    12831296}
     
    15271540    case L_C_FUNCTION :
    15281541    {
    1529       void *first=NULL,*cur=NULL;
     1542      void *first=NULL,*cur=NULL,*tmp;
    15301543      p_ref r1(first),r2(cur);
    15311544      while (arg_list)
    15321545      {
    1533                                 if (first)
    1534                                   cur=((cons_cell *)cur)->cdr=new_cons_cell();
    1535                                 else
     1546                                if (first) {
     1547                                  tmp=new_cons_cell();
     1548                                  ((cons_cell *)cur)->cdr=tmp;
     1549                                  cur=tmp;
     1550                                } else
    15361551                                  cur=first=new_cons_cell();
    15371552                       
     
    15441559    case L_C_BOOL :
    15451560    {
    1546       void *first=NULL,*cur=NULL;
     1561      void *first=NULL,*cur=NULL,*tmp;
    15471562      p_ref r1(first),r2(cur);
    15481563      while (arg_list)
    15491564      {
    1550                                 if (first)
    1551                                   cur=((cons_cell *)cur)->cdr=new_cons_cell();
    1552                                 else
     1565                                if (first) {
     1566                                  tmp=new_cons_cell();
     1567                                  ((cons_cell *)cur)->cdr=tmp;
     1568                                  cur=tmp;
     1569                                } else
    15531570                                  cur=first=new_cons_cell();
    15541571                       
     
    15631580    } break;
    15641581    default :
    1565       fprintf(stderr,"not a fun, sholdn't happed\n");
     1582      fprintf(stderr,"not a fun, shouldn't happen\n");
    15661583  }
    15671584
     
    17821799  else
    17831800  {
    1784     void *first=NULL,*last=NULL,*cur=NULL;
     1801    void *first=NULL,*last=NULL,*cur=NULL,*tmp;
    17851802    p_ref ref1(first),ref2(last),ref3(cur),ref4(args);
    17861803    while (args)
     
    17901807        if (CAR(args)==comma_symbol)               // dot list with a comma?
    17911808        {
    1792           ((cons_cell *)last)->cdr=eval(CAR(CDR(args)));
     1809          tmp=eval(CAR(CDR(args)));
     1810          ((cons_cell *)last)->cdr=tmp;
    17931811          args=NULL;
    17941812        }
     
    18011819            first=cur;
    18021820          last=cur;
    1803           ((cons_cell *)cur)->car=backquote_eval(CAR(args));
     1821          tmp=backquote_eval(CAR(args));
     1822          ((cons_cell *)cur)->car=tmp;
    18041823          args=CDR(args);
    18051824        }
    18061825      } else
    18071826      {
    1808         ((cons_cell *)last)->cdr=backquote_eval(args);
     1827        tmp=backquote_eval(args);
     1828        ((cons_cell *)last)->cdr=tmp;
    18091829        args=NULL;
    18101830      }
     
    21062126      while (var_list)
    21072127      {
    2108         void *var_name=CAR(CAR(var_list));
     2128        void *var_name=CAR(CAR(var_list)),*tmp;
    21092129#ifdef TYPE_CHECKING
    21102130        if (item_type(var_name)!=L_SYMBOL)
     
    21172137
    21182138        l_user_stack.push(((lisp_symbol *)var_name)->value);
    2119         ((lisp_symbol *)var_name)->value=eval(CAR(CDR(CAR(var_list))));
     2139        tmp=eval(CAR(CDR(CAR(var_list))));     
     2140        ((lisp_symbol *)var_name)->value=tmp;
    21202141        var_list=CDR(var_list);
    21212142      }
     
    23782399                                        char *gammapath;
    23792400                                        gammapath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 10, "gammapath" );
    2380                                         sprintf( gammapath, "%sgamma.lsp\0", get_save_filename_prefix() );
     2401                                        sprintf( gammapath, "%sgamma.lsp", get_save_filename_prefix() );
    23812402                                        fp = new jFILE( gammapath, "rb" );
    23822403                                        jfree( gammapath );
  • abuse/trunk/src/lisp_gc.cpp

    r2 r4  
    7979inline void *collect_cons_cell(void *x)
    8080{
    81   cons_cell *last=NULL,*first;
     81  cons_cell *last=NULL,*first=NULL;
    8282  if (!x) return x;
    8383  for (;x && item_type(x)==L_CONS_CELL;)
  • abuse/trunk/src/loader2.cpp

    r2 r4  
    284284        int should_save_sd_cache = 0;
    285285
     286# if 0
    286287        char *cachepath;
    287288        cachepath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 12, "cachepath" );
    288         sprintf( cachepath, "%ssd_cache.tmp\0", get_save_filename_prefix() );
     289        sprintf( cachepath, "%ssd_cache.tmp", get_save_filename_prefix() );
    289290
    290291        bFILE *load = open_file( cachepath, "rb" );
     
    298299        }
    299300        delete load;
     301#endif
    300302
    301303  if (!net_start())              // don't let them specify a startup file we are connect elsewhere
     
    444446  b_hi=cash.backt(backtiles[0])->im->height();
    445447
     448#if 0
    446449        if( should_save_sd_cache )
    447450        {
     
    453456                delete save;
    454457        }
     458#endif
    455459
    456460        sd_cache.clear();
    457461        past_startup = 1;
     462#if 0
    458463        jfree( cachepath );
     464#endif
    459465}
    460466
  • abuse/trunk/src/loadgame.cpp

    r2 r4  
    192192                total_saved=MAX_SAVE_GAMES;
    193193
    194         int i,ih=cash.img(save_buts[0])->height();
    195 /*  ico_button *buts[MAX_SAVE_GAMES];
     194        int i;
     195/*  int ih=cash.img(save_buts[0])->height();
     196  ico_button *buts[MAX_SAVE_GAMES];
    196197  int y=WINDOW_FRAME_TOP;
    197198
  • abuse/trunk/src/net/gserver.cpp

    r2 r4  
    458458    player_client *d=c;
    459459    c=c->next;
    460     delete c;
     460    delete d;
    461461  }
    462462  player_list=NULL;
  • abuse/trunk/src/net/include/fileman.hpp

    r2 r4  
    1919    int file_fd;
    2020
     21    nfs_client *next;
    2122    long size_to_read; 
    2223    long size;
    23     nfs_client *next;
    2424    nfs_client(net_socket *sock, int file_fd, nfs_client *next);
    2525    int send_read();     // flushes as much of size_to_read as possible
  • abuse/trunk/src/net/include/gserver.hpp

    r2 r4  
    3636    void set_need_reload_start_ok(int x) { set_flag(Need_reload_start_ok,x); }
    3737
     38    int client_id;
    3839    net_socket *comm;
    39     int client_id;
    4040    net_address *data_address;
    4141    player_client *next;
  • abuse/trunk/src/net/include/tcpip.hpp

    r2 r4  
    8585  typedef isllist<RequestItem *>::iterator p_request;
    8686  isllist<RequestItem*> servers,returned;
    87   net_socket *responder;
    88   ip_address *bcast;
    8987
    9088  // Notification Data
     
    9290  char notify_data[512];
    9391  int notify_len;
     92
     93  net_socket *responder;
     94  ip_address *bcast;
    9495
    9596  int handle_notification();
  • abuse/trunk/src/net/tcpip.cpp

    r2 r4  
    9999  char my_name[100];                                            // check to see if this address is 'hostname'
    100100  gethostname(my_name,100);
    101   ip_address *ret = 0;
     101  //ip_address *ret = 0;
    102102 
    103103  if (my_name[0]<'0' || my_name[0]>'9')
     
    379379                        buf[len] = 0;
    380380      if  (strcmp(buf, notify_signature)==0) {
     381#ifdef TCPIP_DEBUG
    381382                                char s[256];
    382 #ifdef TCPIP_DEBUG
    383383                                addr->store_string(s,256);
    384384                                printf("responding to %s",s);
     
    537537        if (!found)
    538538        {
     539#ifdef TCPIP_DEBUG
    539540                                        char s[256];
     541#endif
    540542                                        RequestItem *r = new RequestItem;
    541543                                        r->addr = addr;
  • abuse/trunk/src/netcfg.cpp

    r2 r4  
    5959    case RESTART_SINGLE :
    6060      return 1;
     61    default:
     62      break;
    6163  }
    6264  return 0;
     
    7072    case RESTART_CLIENT : { state=CLIENT; } break;
    7173    case RESTART_SINGLE : { state=SINGLE_PLAYER; } break;
     74    default: break;
    7275  }
    7376
  • abuse/trunk/src/nfclient.cpp

    r2 r4  
    135135  {
    136136    long a=NF_read(nfs_fd,buf,count);
    137     if (a>count)
     137    if (a>(long)count)
    138138    {
    139139      fprintf(stderr,"ooch read too much\n");
  • abuse/trunk/src/objects.cpp

    r2 r4  
    404404    void *m=mark_heap(TMP_SPACE);
    405405
    406     time_marker *prof1;
     406    time_marker *prof1=NULL;
    407407    if (profiling())
    408408      prof1=new time_marker;
     
    503503    ((cons_cell *)px)->cdr=py;
    504504
    505     time_marker *prof1;
     505    time_marker *prof1=NULL;
    506506    if (profiling())
    507507      prof1=new time_marker;
     
    618618
    619619    void *m=mark_heap(TMP_SPACE);
    620     time_marker *prof1;
     620    time_marker *prof1=NULL;
    621621    if (profiling())
    622622      prof1=new time_marker;
     
    645645
    646646    void *m=mark_heap(TMP_SPACE);
    647     time_marker *prof1;
     647    time_marker *prof1=NULL;
    648648    if (profiling())
    649649      prof1=new time_marker;
     
    11521152    void *m=mark_heap(TMP_SPACE);
    11531153
    1154     time_marker *prof1;
     1154    time_marker *prof1=NULL;
    11551155    if (profiling())
    11561156      prof1=new time_marker;
     
    12191219    void *m=mark_heap(TMP_SPACE);
    12201220
    1221     time_marker *prof1;
     1221    time_marker *prof1=NULL;
    12221222    if (profiling())
    12231223      prof1=new time_marker;
     
    15781578      current_object=(game_object *)this;
    15791579
    1580       time_marker *prof1;
     1580      time_marker *prof1=NULL;
    15811581      if (profiling())
    15821582        prof1=new time_marker;
     
    16211621    void *m=mark_heap(TMP_SPACE);
    16221622
    1623     time_marker *prof1;
     1623    time_marker *prof1=NULL;
    16241624    if (profiling())
    16251625      prof1=new time_marker;
  • abuse/trunk/src/sdlport/event.cpp

    r2 r4  
    344344                                                                                case SDLK_QUOTE:
    345345                                                                                        ev.key = SDLK_QUOTEDBL; break;
     346                                                                                default:
     347                                                                                        break;
    346348                                                                        }
    347349                                                                }
  • abuse/trunk/src/sdlport/setup.cpp

    r2 r4  
    4040        printf( "  -size <arg>       Set the size of the screen\n" );
    4141        printf( "  -edit             Startup in editor mode\n" );
     42        printf( "  -a <arg>          Use addon named <arg>\n" );
    4243        printf( "  -f <arg>          Load map file named <arg>\n" );
    4344        printf( "  -lisp             Startup in lisp interpreter mode\n" );
     
    7374        {
    7475                fputs( "; Abuse-SDL Configuration file\n\n", fd );
    75                 fputs( "; Location of the datafiles\ndatadir=/usr/local/share/games/abuse\n\n", fd );
     76                fputs( "; Location of the datafiles\ndatadir=/var/games/abuse\n\n", fd );
    7677                fputs( "; Startup fullscreen\nfullscreen=0\n\n", fd );
    7778                fputs( "; Use DoubleBuffering\ndoublebuf=0\n\n", fd );
     
    106107
    107108        rcfile = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 9, "rcfile" );
    108         sprintf( rcfile, "%s/abuserc\0", get_save_filename_prefix() );
     109        sprintf( rcfile, "%s/abuserc", get_save_filename_prefix() );
    109110        if( (fd = fopen( rcfile, "r" )) != NULL )
    110111        {
     
    360361        {
    361362                savedir = (char *)jmalloc( strlen( homedir ) + 8, "savedir" );
    362                 sprintf( savedir, "%s/.abuse/\0", homedir );
     363                sprintf( savedir, "%s/.abuse/", homedir );
    363364                // Check if we already have a savegame directory
    364365                if( (fd = fopen( savedir, "r" )) == NULL )
  • abuse/trunk/src/sdlport/sound.cpp

    r2 r4  
    6767                if( handle->length > 0 && handle->pos )
    6868                {
    69                         len = ( len > handle->length ? handle->length : len );
     69                        len = ( len > (int)handle->length ? handle->length : len );
    7070                        SDL_MixAudio( stream, handle->pos, len, handle->volume );
    7171                        handle->pos += len;
     
    113113        datadir = get_filename_prefix();
    114114        sfxdir = (char *)jmalloc( strlen( datadir ) + 6, "sfxdir" );
    115         sprintf( sfxdir, "%s/sfx/\0", datadir );
     115        sprintf( sfxdir, "%s/sfx/", datadir );
    116116        if( (fd = fopen( sfxdir,"r" )) == NULL )
    117117        {
  • abuse/trunk/src/sdlport/video.cpp

    r2 r4  
    226226void put_part_image( image *im, int x, int y, int x1, int y1, int x2, int y2 )
    227227{
    228         int xs, xe, ys, ye;
     228        int xe, ye;
    229229        SDL_Rect srcrect, dstrect;
    230230        int ii, jj;
     
    232232        Uint8 *dpixel;
    233233        Uint16 dinset;
    234         int dest_addr, line_width;
    235234
    236235        if( (unsigned)y > yres || (unsigned)x > xres )
  • abuse/trunk/src/unixnfc.cpp

    r2 r4  
    416416      spec_directory sd(fp); 
    417417
     418#if 0
    418419      spec_entry *e=sd.find("Copyright 1995 Crack dot Com, All Rights reserved");
    419420      if (!e)
     
    424425      }
    425426      else
     427#endif
    426428        current_level=new level(&sd,fp,NET_STARTFILE);
    427429
Note: See TracChangeset for help on using the changeset viewer.