IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3199


Ignore:
Timestamp:
Feb 11, 2005, 1:55:58 PM (21 years ago)
Author:
desonia
Message:

* empty log message *

Location:
trunk/psLib
Files:
4 added
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib

    • Property svn:ignore
      •  

        old new  
        33lib
        44man
         5include
        56pslib.kdevelop.*
        67docs
  • trunk/psLib/.cvsignore

    r3164 r3199  
    33lib
    44man
     5include
    56pslib.kdevelop.*
    67docs
  • trunk/psLib/Makefile.cvs

    r3115 r3199  
    22
    33all:
     4        if [ "`which glibtoolize`" != "" ] ; then glibtoolize --force ; else libtoolize --force ; fi
    45        aclocal
    56        autoheader
  • trunk/psLib/config

    • Property svn:ignore set to
      Makefile.in
  • trunk/psLib/config.guess

    r3123 r3199  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    5 
    6 timestamp='2004-08-11'
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2003-02-22'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    5454
    5555Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    5757Free Software Foundation, Inc.
    5858
     
    107107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    108108 { 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 ; } ||
    110109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    111110dummy=$tmp/dummy ;
     
    136135UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    137136UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    138 
    139 case "${UNAME_MACHINE}" in
    140     i?86)
    141         test -z "$VENDOR" && VENDOR=pc
    142         ;;
    143     *)
    144         test -z "$VENDOR" && VENDOR=unknown
    145         ;;
    146 esac
    147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    148137
    149138# Note: order is significant - the case branches are not exclusive.
     
    208197        echo "${machine}-${os}${release}"
    209198        exit 0 ;;
    210     amd64:OpenBSD:*:*)
    211         echo x86_64-unknown-openbsd${UNAME_RELEASE}
    212         exit 0 ;;
    213199    amiga:OpenBSD:*:*)
    214200        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    217203        echo mipsel-unknown-openbsd${UNAME_RELEASE}
    218204        exit 0 ;;
    219     cats:OpenBSD:*:*)
    220         echo arm-unknown-openbsd${UNAME_RELEASE}
    221         exit 0 ;;
    222205    hp300:OpenBSD:*:*)
    223206        echo m68k-unknown-openbsd${UNAME_RELEASE}
    224207        exit 0 ;;
    225     luna88k:OpenBSD:*:*)
    226         echo m88k-unknown-openbsd${UNAME_RELEASE}
    227         exit 0 ;;
    228208    mac68k:OpenBSD:*:*)
    229209        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    256236        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    257237        exit 0 ;;
    258     *:ekkoBSD:*:*)
    259         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    260         exit 0 ;;
    261     macppc:MirBSD:*:*)
    262         echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    263         exit 0 ;;
    264     *:MirBSD:*:*)
    265         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    266         exit 0 ;;
    267238    alpha:OSF1:*:*)
    268         case $UNAME_RELEASE in
    269         *4.0)
     239        if test $UNAME_RELEASE = "V4.0"; then
    270240                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    271                 ;;
    272         *5.*)
    273                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    274                 ;;
    275         esac
     241        fi
    276242        # According to Compaq, /usr/sbin/psrinfo has been available on
    277243        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     
    311277                UNAME_MACHINE="alphaev79" ;;
    312278        esac
    313         # A Pn.n version is a patched version.
    314279        # A Vn.n version is a released version.
    315280        # A Tn.n version is a released field test version.
    316281        # A Xn.n version is an unreleased experimental baselevel.
    317282        # 1.2 uses "1.2" for uname -r.
    318         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     283        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    319284        exit 0 ;;
    320285    Alpha\ *:Windows_NT*:*)
     
    338303    *:OS/390:*:*)
    339304        echo i370-ibm-openedition
    340         exit 0 ;;
    341     *:OS400:*:*)
    342         echo powerpc-ibm-os400
    343305        exit 0 ;;
    344306    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    359321        echo pyramid-pyramid-svr4
    360322        exit 0 ;;
    361     DRS?6000:unix:4.0:6*)
    362         echo sparc-icl-nx6
    363         exit 0 ;;
    364323    DRS?6000:UNIX_SV:4.2*:7*)
    365324        case `/usr/bin/uname -p` in
     
    434393        echo m68k-unknown-mint${UNAME_RELEASE}
    435394        exit 0 ;;
    436     m68k:machten:*:*)
    437         echo m68k-apple-machten${UNAME_RELEASE}
    438         exit 0 ;;
    439395    powerpc:machten:*:*)
    440396        echo powerpc-apple-machten${UNAME_RELEASE}
     
    772728        exit 0 ;;
    773729    *:UNICOS/mp:*:*)
    774         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     730        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    775731        exit 0 ;;
    776732    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     
    780736        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    781737        exit 0 ;;
    782     5000:UNIX_System_V:4.*:*)
    783         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    784         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    785         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    786         exit 0 ;;
    787738    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    788739        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    795746        exit 0 ;;
    796747    *:FreeBSD:*:*)
    797         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     748        # Determine whether the default compiler uses glibc.
     749        eval $set_cc_for_build
     750        sed 's/^        //' << EOF >$dummy.c
     751        #include <features.h>
     752        #if __GLIBC__ >= 2
     753        LIBC=gnu
     754        #else
     755        LIBC=
     756        #endif
     757EOF
     758        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     759        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    798760        exit 0 ;;
    799761    i*:CYGWIN*:*)
     
    806768        echo ${UNAME_MACHINE}-pc-pw32
    807769        exit 0 ;;
    808     x86:Interix*:[34]*)
    809         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     770    x86:Interix*:3*)
     771        echo i586-pc-interix3
    810772        exit 0 ;;
    811773    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     
    828790        exit 0 ;;
    829791    *:GNU:*:*)
    830         # the GNU system
    831792        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    832         exit 0 ;;
    833     *:GNU/*:*:*)
    834         # other systems with GNU libc and userland
    835         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    836793        exit 0 ;;
    837794    i*86:Minix:*:*)
     
    839796        exit 0 ;;
    840797    arm*:Linux:*:*)
    841         echo ${UNAME_MACHINE}-${VENDOR}-linux
    842         exit 0 ;;
    843     cris:Linux:*:*)
    844         echo cris-axis-linux
     798        echo ${UNAME_MACHINE}-unknown-linux-gnu
    845799        exit 0 ;;
    846800    ia64:Linux:*:*)
    847         echo ${UNAME_MACHINE}-${VENDOR}-linux
    848         exit 0 ;;
    849     m32r*:Linux:*:*)
    850         echo ${UNAME_MACHINE}-${VENDOR}-linux
     801        echo ${UNAME_MACHINE}-unknown-linux-gnu
    851802        exit 0 ;;
    852803    m68*:Linux:*:*)
    853         echo ${UNAME_MACHINE}-${VENDOR}-linux
     804        echo ${UNAME_MACHINE}-unknown-linux-gnu
    854805        exit 0 ;;
    855806    mips:Linux:*:*)
     
    870821EOF
    871822        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    872         test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
     823        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    873824        ;;
    874825    mips64:Linux:*:*)
     
    889840EOF
    890841        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    891         test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
     842        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    892843        ;;
    893844    ppc:Linux:*:*)
    894         echo powerpc-${VENDOR}-linux
     845        echo powerpc-unknown-linux-gnu
    895846        exit 0 ;;
    896847    ppc64:Linux:*:*)
    897         echo powerpc64-${VENDOR}-linux
     848        echo powerpc64-unknown-linux-gnu
    898849        exit 0 ;;
    899850    alpha:Linux:*:*)
     
    908859        esac
    909860        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    910         if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
    911         echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
     861        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     862        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    912863        exit 0 ;;
    913864    parisc:Linux:*:* | hppa:Linux:*:*)
    914865        # Look for CPU level
    915866        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    916           PA7*) echo hppa1.1-${VENDOR}-linux ;;
    917           PA8*) echo hppa2.0-${VENDOR}-linux ;;
    918           *)    echo hppa-${VENDOR}-linux ;;
     867          PA7*) echo hppa1.1-unknown-linux-gnu ;;
     868          PA8*) echo hppa2.0-unknown-linux-gnu ;;
     869          *)    echo hppa-unknown-linux-gnu ;;
    919870        esac
    920871        exit 0 ;;
    921872    parisc64:Linux:*:* | hppa64:Linux:*:*)
    922         echo hppa64-${VENDOR}-linux
     873        echo hppa64-unknown-linux-gnu
    923874        exit 0 ;;
    924875    s390:Linux:*:* | s390x:Linux:*:*)
    925876        echo ${UNAME_MACHINE}-ibm-linux
    926877        exit 0 ;;
    927     sh64*:Linux:*:*)
    928         echo ${UNAME_MACHINE}-${VENDOR}-linux
    929         exit 0 ;;
    930878    sh*:Linux:*:*)
    931         echo ${UNAME_MACHINE}-${VENDOR}-linux
     879        echo ${UNAME_MACHINE}-unknown-linux-gnu
    932880        exit 0 ;;
    933881    sparc:Linux:*:* | sparc64:Linux:*:*)
    934         echo ${UNAME_MACHINE}-${VENDOR}-linux
     882        echo ${UNAME_MACHINE}-unknown-linux-gnu
    935883        exit 0 ;;
    936884    x86_64:Linux:*:*)
    937         echo x86_64-${VENDOR}-linux
     885        echo x86_64-unknown-linux-gnu
    938886        exit 0 ;;
    939887    i*86:Linux:*:*)
     
    950898        case "$ld_supported_targets" in
    951899          elf32-i386)
    952                 TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
     900                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
    953901                ;;
    954902          a.out-i386-linux)
    955                 echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
     903                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    956904                exit 0 ;;
    957905          coff-i386)
    958                 echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
     906                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    959907                exit 0 ;;
    960908          "")
    961                 # Either a pre-BFD a.out linker (linuxoldld) or
     909                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    962910                # one that does not give us useful --help.
    963                 echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
     911                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    964912                exit 0 ;;
    965913        esac
     
    985933        #endif
    986934        #endif
    987         #ifdef __dietlibc__
    988         LIBC=dietlibc
    989         #endif
    990935EOF
    991936        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    992         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
     937        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    993938        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    994939        ;;
     
    1017962    i*86:atheos:*:*)
    1018963        echo ${UNAME_MACHINE}-unknown-atheos
    1019         exit 0 ;;
    1020         i*86:syllable:*:*)
    1021         echo ${UNAME_MACHINE}-pc-syllable
    1022964        exit 0 ;;
    1023965    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     
    10901032        echo m68k-diab-dnix
    10911033        exit 0 ;;
    1092     M68*:*:R3V[5678]*:*)
     1034    M68*:*:R3V[567]*:*)
    10931035        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1094     3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
     1036    3[34]??:*: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)
    10951037        OS_REL=''
    10961038        test -r /etc/.relid \
     
    11901132        exit 0 ;;
    11911133    *:Darwin:*:*)
    1192         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1193         case $UNAME_PROCESSOR in
     1134        case `uname -p` in
    11941135            *86) UNAME_PROCESSOR=i686 ;;
    1195             unknown) UNAME_PROCESSOR=powerpc ;;
     1136            powerpc) UNAME_PROCESSOR=powerpc ;;
    11961137        esac
    11971138        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     
    12081149        echo i386-pc-qnx
    12091150        exit 0 ;;
    1210     NSR-?:NONSTOP_KERNEL:*:*)
     1151    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
    12111152        echo nsr-tandem-nsk${UNAME_RELEASE}
    12121153        exit 0 ;;
     
    12491190        echo pdp10-unknown-its
    12501191        exit 0 ;;
    1251     SEI:*:*:SEIUX)
    1252         echo mips-sei-seiux${UNAME_RELEASE}
    1253         exit 0 ;;
    1254     *:DragonFly:*:*)
    1255         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1256         exit 0 ;;
    1257     *:*VMS:*:*)
    1258         UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1259         case "${UNAME_MACHINE}" in
    1260             A*) echo alpha-dec-vms && exit 0 ;;
    1261             I*) echo ia64-dec-vms && exit 0 ;;
    1262             V*) echo vax-dec-vms && exit 0 ;;
    1263         esac
    12641192esac
    12651193
  • trunk/psLib/config.sub

    r3123 r3199  
    22# Configuration validation subroutine script.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    5 
    6 timestamp='2004-06-24'
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2003-02-22'
    77
    88# This file is (in principle) common to ALL GNU software.
     
    7171GNU config.sub ($timestamp)
    7272
    73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    7474Free Software Foundation, Inc.
    7575
     
    119119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    120120case $maybe_os in
    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*)
     121  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    123122    os=-$maybe_os
    124123    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     
    146145        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    147146        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    148         -apple | -axis | -knuth | -cray)
     147        -apple | -axis)
    149148                os=
    150149                basic_machine=$1
     
    230229        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    231230        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    232         | am33_2.0 \
    233231        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    234         | c4x | clipper \
     232        | clipper \
    235233        | d10v | d30v | dlx | dsp16xx \
    236234        | fr30 | frv \
    237235        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    238236        | i370 | i860 | i960 | ia64 \
    239         | ip2k | iq2000 \
    240         | m32r | m32rle | m68000 | m68k | m88k | mcore \
     237        | ip2k \
     238        | m32r | m68000 | m68k | m88k | mcore \
    241239        | mips | mipsbe | mipseb | mipsel | mipsle \
    242240        | mips16 \
     
    250248        | mipsisa32r2 | mipsisa32r2el \
    251249        | mipsisa64 | mipsisa64el \
    252         | mipsisa64r2 | mipsisa64r2el \
    253250        | mipsisa64sb1 | mipsisa64sb1el \
    254251        | mipsisa64sr71k | mipsisa64sr71kel \
     
    263260        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
    264261        | sh64 | sh64le \
    265         | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
     262        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
    266263        | strongarm \
    267         | tahoe | thumb | tic4x | tic80 | tron \
     264        | tahoe | thumb | tic80 | tron \
    268265        | v850 | v850e \
    269266        | we32k \
     
    301298        | bs2000-* \
    302299        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    303         | clipper-* | craynv-* | cydra-* \
     300        | clipper-* | cydra-* \
    304301        | d10v-* | d30v-* | dlx-* \
    305302        | elxsi-* \
     
    308305        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    309306        | i*86-* | i860-* | i960-* | ia64-* \
    310         | ip2k-* | iq2000-* \
    311         | m32r-* | m32rle-* \
     307        | ip2k-* \
     308        | m32r-* \
    312309        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    313310        | m88110-* | m88k-* | mcore-* \
     
    323320        | mipsisa32r2-* | mipsisa32r2el-* \
    324321        | mipsisa64-* | mipsisa64el-* \
    325         | mipsisa64r2-* | mipsisa64r2el-* \
    326322        | mipsisa64sb1-* | mipsisa64sb1el-* \
    327323        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
    328324        | mipstx39-* | mipstx39el-* \
    329         | mmix-* \
    330325        | msp430-* \
    331         | none-* | np1-* | ns16k-* | ns32k-* \
     326        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
    332327        | orion-* \
    333328        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     
    338333        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    339334        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
    340         | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     335        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
    341336        | tahoe-* | thumb-* \
    342337        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     
    365360                os=-udi
    366361                ;;
    367         abacus)
    368                 basic_machine=abacus-unknown
    369                 ;;
    370362        adobe68k)
    371363                basic_machine=m68010-adobe
     
    382374                os=-bsd
    383375                ;;
    384         amd64)
    385                 basic_machine=x86_64-pc
    386                 ;;
    387         amd64-*)
    388                 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
    389                 ;;
    390376        amdahl)
    391377                basic_machine=580-amdahl
     
    447433                os=-unicos
    448434                ;;
    449         craynv)
    450                 basic_machine=craynv-cray
    451                 os=-unicosmp
    452                 ;;
    453         cr16c)
    454                 basic_machine=cr16c-unknown
    455                 os=-elf
    456                 ;;
    457435        crds | unos)
    458436                basic_machine=m68k-crds
     
    460438        cris | cris-* | etrax*)
    461439                basic_machine=cris-axis
    462                 ;;
    463         crx)
    464                 basic_machine=crx-unknown
    465                 os=-elf
    466440                ;;
    467441        da30 | da30-*)
     
    664638        mips3*)
    665639                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
     640                ;;
     641        mmix*)
     642                basic_machine=mmix-knuth
     643                os=-mmixware
    666644                ;;
    667645        monitor)
     
    745723                basic_machine=np1-gould
    746724                ;;
     725        nv1)
     726                basic_machine=nv1-cray
     727                os=-unicosmp
     728                ;;
    747729        nsr-tandem)
    748730                basic_machine=nsr-tandem
     
    756738                os=-coff
    757739                ;;
    758         os400)
    759                 basic_machine=powerpc-ibm
    760                 os=-os400
    761                 ;;
    762740        OSE68000 | ose68000)
    763741                basic_machine=m68000-ericsson
     
    791769                basic_machine=i686-pc
    792770                ;;
    793         pentiumii | pentium2 | pentiumiii | pentium3)
     771        pentiumii | pentium2)
    794772                basic_machine=i686-pc
    795                 ;;
    796         pentium4)
    797                 basic_machine=i786-pc
    798773                ;;
    799774        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
     
    803778                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    804779                ;;
    805         pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
     780        pentiumii-* | pentium2-*)
    806781                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    807                 ;;
    808         pentium4-*)
    809                 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
    810782                ;;
    811783        pn)
     
    867839                basic_machine=mipsisa64sb1el-unknown
    868840                ;;
    869         sei)
    870                 basic_machine=mips-sei
    871                 os=-seiux
    872                 ;;
    873841        sequent)
    874842                basic_machine=i386-sequent
     
    878846                os=-hms
    879847                ;;
    880         sh64)
    881                 basic_machine=sh64-unknown
    882                 ;;
    883848        sparclite-wrs | simso-wrs)
    884849                basic_machine=sparclite-wrs
     
    955920                os=-unicos
    956921                ;;
     922        tic4x | c4x*)
     923                basic_machine=tic4x-unknown
     924                os=-coff
     925                ;;
    957926        tic54x | c54x*)
    958927                basic_machine=tic54x-unknown
     
    979948        tower | tower-32)
    980949                basic_machine=m68k-ncr
    981                 ;;
    982         tpf)
    983                 basic_machine=s390x-ibm
    984                 os=-tpf
    985950                ;;
    986951        udi29k)
     
    10571022                basic_machine=romp-ibm
    10581023                ;;
    1059         mmix)
    1060                 basic_machine=mmix-knuth
    1061                 ;;
    10621024        rs6000)
    10631025                basic_machine=rs6000-ibm
     
    10821044                basic_machine=sh64-unknown
    10831045                ;;
    1084         sparc | sparcv8 | sparcv9 | sparcv9b)
     1046        sparc | sparcv9 | sparcv9b)
    10851047                basic_machine=sparc-sun
    10861048                ;;
     
    11551117              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    11561118              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1157               | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
    1158               | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
    1159               | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1119              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
     1120              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    11601121              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    11611122              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    11621123              | -chorusos* | -chorusrdb* \
    11631124              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1164               | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
     1125              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
    11651126              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    11661127              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     
    11681129              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    11691130              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    1170               | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
     1131              | -powermax* | -dnix*)
    11711132        # Remember, each alternative MUST END IN *, to match a version number.
    11721133                ;;
     
    11921153                os=`echo $os | sed -e 's|mac|macos|'`
    11931154                ;;
    1194         -linux-dietlibc)
    1195                 os=-linux-dietlibc
     1155        -linux*)
     1156                os=`echo $os | sed -e 's|linux|linux-gnu|'`
    11961157                ;;
    11971158        -sunos5*)
     
    12041165                os=-openedition
    12051166                ;;
    1206         -os400*)
    1207                 os=-os400
    1208                 ;;
    12091167        -wince*)
    12101168                os=-wince
     
    12271185        -atheos*)
    12281186                os=-atheos
    1229                 ;;
    1230         -syllable*)
    1231                 os=-syllable
    12321187                ;;
    12331188        -386bsd)
     
    12521207        -sinix*)
    12531208                os=-sysv4
    1254                 ;;
    1255         -tpf*)
    1256                 os=-tpf
    12571209                ;;
    12581210        -triton*)
     
    13231275                os=-aout
    13241276                ;;
    1325     c4x-* | tic4x-*)
    1326         os=-coff
    1327         ;;
    13281277        # This must come before the *-dec entry.
    13291278        pdp10-*)
     
    13711320        *-ibm)
    13721321                os=-aix
    1373                 ;;
    1374         *-knuth)
    1375                 os=-mmixware
    13761322                ;;
    13771323        *-wec)
     
    15071453                                vendor=ibm
    15081454                                ;;
    1509                         -os400*)
    1510                                 vendor=ibm
    1511                                 ;;
    15121455                        -ptx*)
    15131456                                vendor=sequent
    1514                                 ;;
    1515                         -tpf*)
    1516                                 vendor=ibm
    15171457                                ;;
    15181458                        -vxsim* | -vxworks* | -windiss*)
  • trunk/psLib/configure.in

    r3191 r3199  
    77
    88dnl Setup CFLAGS with project-particulars
    9 CFLAGS="${CFLAGS=} -Wall -Werror -std=c99 -D_GNU_SOURCE"
     9CFLAGS="${CFLAGS=} -std=c99"
     10
     11AH_VERBATIM([_GNU_SOURCE],
     12[/* Enable GNU extensions on systems that have them. */
     13#ifndef _GNU_SOURCE
     14# define _GNU_SOURCE
     15#endif
     16])
    1017
    1118AC_DISABLE_STATIC
     
    123130AC_SUBST(PERL_PREFIX,$PERL_PREFIX)
    124131
     132dnl for MacOSX, check if sqrtf is in mx library.
     133AC_CHECK_LIB(mx,sqrtf,
     134  [PSLIB_LIBS="${PSLIB_LIBS=} -lmx"])
     135
    125136dnl --------- set config/data file location --------------
    126137SYSCONFDIR=`cd $sysconfdir; pwd`
     
    130141AC_DEFINE_UNQUOTED(UTC_DAT_FILE, "$DATADIR/pslib/tai_utc.dat", [Location of the tai_utc.dat file])
    131142
    132 dnl for MacOSX, where sqrtf is in mx
    133 AC_CHECK_LIB(mx,sqrtf)
    134 
    135143DOXYGEN="doxygen Doxyfile"
    136144AC_CHECK_PROG(DOXYGEN,doxygen,[echo Doxygen not detected in configure stage.])
    137145AC_SUBST(DOXYGEN,$DOXYGEN)
     146
     147CFLAGS="${CFLAGS=} -Wall -Werror"
    138148
    139149dnl ---------------- export variables --------------------
  • trunk/psLib/etc

    • Property svn:ignore set to
      Makefile.in
  • trunk/psLib/etc/pslib

    • Property svn:ignore set to
      Makefile.in
  • trunk/psLib/ltmain.sh

    r3123 r3199  
    22# NOTE: Changing this file will not affect anything until you rerun configure.
    33#
    4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
     4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
    55# Free Software Foundation, Inc.
    66# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
     
    2525# the same distribution terms that you use for the rest of that program.
    2626
    27 basename="s,^.*/,,g"
    28 
    29 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
    30 # is ksh but when the shell is invoked as "sh" and the current value of
    31 # the _XPG environment variable is not equal to 1 (one), the special
    32 # positional parameter $0, within a function call, is the name of the
    33 # function.
    34 progpath="$0"
    35 
    36 # The name of this program:
    37 progname=`echo "$progpath" | $SED $basename`
    38 modename="$progname"
    39 
    40 # Global variables:
    41 EXIT_SUCCESS=0
    42 EXIT_FAILURE=1
    43 
    44 PROGRAM=ltmain.sh
    45 PACKAGE=libtool
    46 VERSION=1.5.8
    47 TIMESTAMP=" (1.1220.2.118 2004/08/07 12:24:38)"
    48 
    49 # See if we are running on zsh, and set the options which allow our
    50 # commands through without removal of \ escapes.
    51 if test -n "${ZSH_VERSION+set}" ; then
    52   setopt NO_GLOB_SUBST
    53 fi
    54 
    5527# Check that we have a working $echo.
    5628if test "X$1" = X--no-reexec; then
     
    6537else
    6638  # Restart under the correct shell, and then maybe $echo will work.
    67   exec $SHELL "$progpath" --no-reexec ${1+"$@"}
     39  exec $SHELL "$0" --no-reexec ${1+"$@"}
    6840fi
    6941
     
    7446$*
    7547EOF
    76   exit $EXIT_SUCCESS
     48  exit 0
    7749fi
     50
     51# The name of this program.
     52progname=`$echo "$0" | ${SED} 's%^.*/%%'`
     53modename="$progname"
     54
     55# Constants.
     56PROGRAM=ltmain.sh
     57PACKAGE=libtool
     58VERSION=1.5
     59TIMESTAMP=" (1.1220 2003/04/05 19:32:58)"
    7860
    7961default_mode=
     
    8971sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
    9072# test EBCDIC or ASCII
    91 case `echo A|tr A '\301'` in
    92  A) # EBCDIC based system
     73case `echo A|od -x` in
     74 *[Cc]1*) # EBCDIC based system
    9375  SP2NL="tr '\100' '\n'"
    9476  NL2SP="tr '\r\n' '\100\100'"
     
    11395
    11496# Make sure IFS has a sensible default
    115 : ${IFS="       
    116 "}
     97: ${IFS="       "}
    11798
    11899if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
    119100  $echo "$modename: not configured to build any kind of library" 1>&2
    120101  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
    121   exit $EXIT_FAILURE
     102  exit 1
    122103fi
    123104
     
    138119# This seems to be the best place for them
    139120
    140 # func_win32_libid arg
    141 # return the library type of file 'arg'
    142 #
    143121# Need a lot of goo to handle *both* DLLs and import libs
    144122# Has to be a shell function in order to 'eat' the argument
    145123# that is supplied when $file_magic_command is called.
    146 func_win32_libid () {
     124win32_libid () {
    147125  win32_libid_type="unknown"
    148126  win32_fileres=`file -L $1 2>/dev/null`
     
    153131  *ar\ archive*) # could be an import, or static
    154132    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
    155       $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
     133      grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
    156134      win32_nmres=`eval $NM -f posix -A $1 | \
    157135        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
     
    163141    fi
    164142    ;;
    165   *DLL*)
     143  *DLL*) 
    166144    win32_libid_type="x86 DLL"
    167145    ;;
     
    177155}
    178156
    179 
    180 # func_infer_tag arg
    181 # Infer tagged configuration to use if any are available and
    182 # if one wasn't chosen via the "--tag" command line option.
    183 # Only attempt this if the compiler in the base compile
    184 # command doesn't match the default compiler.
    185 # arg is usually of the form 'gcc ...'
    186 func_infer_tag () {
    187     if test -n "$available_tags" && test -z "$tagname"; then
    188       CC_quoted=
    189       for arg in $CC; do
    190         case $arg in
    191           *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
    192           arg="\"$arg\""
    193           ;;
    194         esac
    195         CC_quoted="$CC_quoted $arg"
    196       done
    197       case $@ in
    198       # Blanks in the command may have been stripped by the calling shell,
    199       # but not from the CC environment variable when configure was run.
    200       " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
    201       # Blanks at the start of $base_compile will cause this to fail
    202       # if we don't check for them as well.
    203       *)
    204         for z in $available_tags; do
    205           if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
    206             # Evaluate the configuration.
    207             eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
    208             CC_quoted=
    209             for arg in $CC; do
    210             # Double-quote args containing other shell metacharacters.
    211             case $arg in
    212               *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    213               arg="\"$arg\""
    214               ;;
    215             esac
    216             CC_quoted="$CC_quoted $arg"
    217           done
    218             case "$@ " in
    219               " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
    220               # The compiler in the base compile command matches
    221               # the one in the tagged configuration.
    222               # Assume this is the tagged configuration we want.
    223               tagname=$z
    224               break
    225               ;;
    226             esac
    227           fi
    228         done
    229         # If $tagname still isn't set, then no tagged configuration
    230         # was found and let the user know that the "--tag" command
    231         # line option must be used.
    232         if test -z "$tagname"; then
    233           $echo "$modename: unable to infer tagged configuration"
    234           $echo "$modename: specify a tag with \`--tag'" 1>&2
    235           exit $EXIT_FAILURE
    236 #        else
    237 #          $echo "$modename: using $tagname tagged configuration"
    238         fi
    239         ;;
    240       esac
    241     fi
    242 }
    243 
    244 
    245 # func_extract_archives gentop oldlib ...
    246 func_extract_archives () {
    247     my_gentop="$1"; shift
    248     my_oldlibs=${1+"$@"}
    249     my_oldobjs=""
    250     my_xlib=""
    251     my_xabs=""
    252     my_xdir=""
    253     my_status=""
    254 
    255     $show "${rm}r $my_gentop"
    256     $run ${rm}r "$my_gentop"
    257     $show "$mkdir $my_gentop"
    258     $run $mkdir "$my_gentop"
    259     my_status=$?
    260     if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
    261       exit $my_status
    262     fi
    263 
    264     for my_xlib in $my_oldlibs; do
    265       # Extract the objects.
    266       case $my_xlib in
    267         [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
    268         *) my_xabs=`pwd`"/$my_xlib" ;;
    269       esac
    270       my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
    271       my_xdir="$my_gentop/$my_xlib"
    272 
    273       $show "${rm}r $my_xdir"
    274       $run ${rm}r "$my_xdir"
    275       $show "$mkdir $my_xdir"
    276       $run $mkdir "$my_xdir"
    277       status=$?
    278       if test "$status" -ne 0 && test ! -d "$my_xdir"; then
    279         exit $status
    280       fi
    281       case $host in
    282       *-darwin*)
    283         $show "Extracting $my_xabs"
    284         # Do not bother doing anything if just a dry run
    285         if test -z "$run"; then
    286           darwin_orig_dir=`pwd`
    287           cd $my_xdir || exit $?
    288           darwin_archive=$my_xabs
    289           darwin_curdir=`pwd`
    290           darwin_base_archive=`basename $darwin_archive`
    291           darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
    292           if test -n "$darwin_arches"; then
    293             darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
    294             darwin_arch=
    295             $show "$darwin_base_archive has multiple architectures $darwin_arches"
    296             for darwin_arch in  $darwin_arches ; do
    297               mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
    298               lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
    299               # Remove the table of contents from the thin files.
    300               $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
    301               $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
    302               cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
    303               $AR -xo "${darwin_base_archive}"
    304               rm "${darwin_base_archive}"
    305               cd "$darwin_curdir"
    306             done # $darwin_arches
    307       ## Okay now we have a bunch of thin objects, gotta fatten them up :)
    308             darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
    309             darwin_file=
    310             darwin_files=
    311             for darwin_file in $darwin_filelist; do
    312               darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
    313               lipo -create -output "$darwin_file" $darwin_files
    314             done # $darwin_filelist
    315             rm -rf unfat-$$
    316             cd "$darwin_orig_dir"
    317           else
    318             cd $darwin_orig_dir
    319             (cd $my_xdir && $AR x $my_xabs) || exit $?
    320           fi # $darwin_arches
    321         fi # $run
    322       ;;
    323       *)
    324         # We will extract separately just the conflicting names and we will
    325         # no longer touch any unique names. It is faster to leave these
    326         # extract automatically by $AR in one run.
    327         $show "(cd $my_xdir && $AR x $my_xabs)"
    328         $run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
    329         if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
    330           :
    331         else
    332           $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    333           $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    334           $AR t "$my_xabs" | sort | uniq -cd | while read -r count name
    335           do
    336             i=1
    337             while test "$i" -le "$count"
    338             do
    339               # Put our $i before any first dot (extension)
    340               # Never overwrite any file
    341               name_to="$name"
    342               while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
    343               do
    344                 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    345               done
    346               $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
    347               $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
    348               i=`expr $i + 1`
    349             done
    350           done
    351         fi
    352         ;;
    353       esac
    354       my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    355     done
    356 
    357     func_extract_archives_result="$my_oldobjs"
    358 }
    359157# End of Shell function definitions
    360158#####################################
    361 
    362 # Darwin sucks
    363 eval std_shrext=\"$shrext_cmds\"
    364159
    365160# Parse our command line options once, thoroughly.
     
    382177    tag)
    383178      tagname="$arg"
    384       preserve_args="${preserve_args}=$arg"
    385179
    386180      # Check whether tagname contains only valid characters
     
    388182      *[!-_A-Za-z0-9,/]*)
    389183        $echo "$progname: invalid tag name: $tagname" 1>&2
    390         exit $EXIT_FAILURE
     184        exit 1
    391185        ;;
    392186      esac
     
    398192        ;;
    399193      *)
    400         if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
     194        if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
    401195          taglist="$taglist $tagname"
    402196          # Evaluate the configuration.
    403           eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
     197          eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
    404198        else
    405199          $echo "$progname: ignoring unknown tag $tagname" 1>&2
     
    430224    $echo "This is free software; see the source for copying conditions.  There is NO"
    431225    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    432     exit $EXIT_SUCCESS
     226    exit 0
    433227    ;;
    434228
    435229  --config)
    436     ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
     230    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
    437231    # Now print the configurations for the tags.
    438232    for tagname in $taglist; do
    439       ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
     233      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
    440234    done
    441     exit $EXIT_SUCCESS
     235    exit 0
    442236    ;;
    443237
     
    445239    $echo "$progname: enabling shell trace mode"
    446240    set -x
    447     preserve_args="$preserve_args $arg"
    448241    ;;
    449242
     
    464257      $echo "disable static libraries"
    465258    fi
    466     exit $EXIT_SUCCESS
     259    exit 0
    467260    ;;
    468261
     
    476269  --quiet | --silent)
    477270    show=:
    478     preserve_args="$preserve_args $arg"
    479271    ;;
    480272
     
    484276    shift
    485277    prev=tag
    486     preserve_args="$preserve_args --tag"
    487278    ;;
    488279
     
    495286    $echo "$modename: unrecognized option \`$arg'" 1>&2
    496287    $echo "$help" 1>&2
    497     exit $EXIT_FAILURE
     288    exit 1
    498289    ;;
    499290
     
    508299  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
    509300  $echo "$help" 1>&2
    510   exit $EXIT_FAILURE
     301  exit 1
    511302fi
    512303
     
    517308
    518309if test -z "$show_help"; then
     310  archargs=
     311  case $host in
     312  *-*-darwin*)
     313    # For darwin, separate arch arguments and apply them to all compile/link
     314    # commands
     315    doarch=
     316    for arg; do
     317      if test -n "$doarch"; then
     318        archargs="$archargs -arch $arg"
     319        doarch=
     320        continue
     321      fi
     322      case $arg in
     323      -arch) doarch=y;;
     324      esac
     325    done
     326  esac
    519327
    520328  # Infer the operation mode.
     
    564372    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
    565373    $echo "$help" 1>&2
    566     exit $EXIT_FAILURE
     374    exit 1
    567375  fi
    568376
     
    579387    base_compile=
    580388    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
    581     suppress_opt=yes
    582389    suppress_output=
    583390    arg_mode=normal
    584391    libobj=
    585     later=
    586392
    587393    for arg
     
    606412          if test -n "$libobj" ; then
    607413            $echo "$modename: you cannot specify \`-o' more than once" 1>&2
    608             exit $EXIT_FAILURE
     414            exit 1
    609415          fi
    610416          arg_mode=target
     
    612418          ;;
    613419
    614         -static | -prefer-pic | -prefer-non-pic)
    615           later="$later $arg"
     420        -static)
     421          build_old_libs=yes
    616422          continue
    617423          ;;
    618424
    619         -no-suppress)
    620           suppress_opt=no
     425        -prefer-pic)
     426          pic_mode=yes
     427          continue
     428          ;;
     429
     430        -prefer-non-pic)
     431          pic_mode=no
    621432          continue
    622433          ;;
     
    631442          lastarg=
    632443          save_ifs="$IFS"; IFS=','
    633           for arg in $args; do
     444          for arg in $args; do
    634445            IFS="$save_ifs"
    635446
     
    681492    arg)
    682493      $echo "$modename: you must specify an argument for -Xcompile"
    683       exit $EXIT_FAILURE
     494      exit 1
    684495      ;;
    685496    target)
    686497      $echo "$modename: you must specify a target with \`-o'" 1>&2
    687       exit $EXIT_FAILURE
     498      exit 1
    688499      ;;
    689500    *)
     
    718529    *)
    719530      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
    720       exit $EXIT_FAILURE
     531      exit 1
    721532      ;;
    722533    esac
    723534
    724     func_infer_tag $base_compile
    725 
    726     for arg in $later; do
    727       case $arg in
    728       -static)
    729         build_old_libs=yes
    730         continue
    731         ;;
    732 
    733       -prefer-pic)
    734         pic_mode=yes
    735         continue
    736         ;;
    737 
    738       -prefer-non-pic)
    739         pic_mode=no
    740         continue
     535    # Infer tagged configuration to use if any are available and
     536    # if one wasn't chosen via the "--tag" command line option.
     537    # Only attempt this if the compiler in the base compile
     538    # command doesn't match the default compiler.
     539    if test -n "$available_tags" && test -z "$tagname"; then
     540      case $base_compile in
     541      # Blanks in the command may have been stripped by the calling shell,
     542      # but not from the CC environment variable when configure was run.
     543      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
     544      # Blanks at the start of $base_compile will cause this to fail
     545      # if we don't check for them as well.
     546      *)
     547        for z in $available_tags; do
     548          if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
     549            # Evaluate the configuration.
     550            eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
     551            case "$base_compile " in
     552            "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
     553              # The compiler in the base compile command matches
     554              # the one in the tagged configuration.
     555              # Assume this is the tagged configuration we want.
     556              tagname=$z
     557              break
     558              ;;
     559            esac
     560          fi
     561        done
     562        # If $tagname still isn't set, then no tagged configuration
     563        # was found and let the user know that the "--tag" command
     564        # line option must be used.
     565        if test -z "$tagname"; then
     566          $echo "$modename: unable to infer tagged configuration"
     567          $echo "$modename: specify a tag with \`--tag'" 1>&2
     568          exit 1
     569#        else
     570#          $echo "$modename: using $tagname tagged configuration"
     571        fi
    741572        ;;
    742573      esac
    743     done
     574    fi
    744575
    745576    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
     
    755586      $echo "$modename: you must specify a compilation command" 1>&2
    756587      $echo "$help" 1>&2
    757       exit $EXIT_FAILURE
     588      exit 1
    758589    fi
    759590
     
    766597
    767598    $run $rm $removelist
    768     trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
     599    trap "$run $rm $removelist; exit 1" 1 2 15
    769600
    770601    # On Cygwin there's no "real" PIC flag so we must build both object types
     
    785616      lockfile="$output_obj.lock"
    786617      removelist="$removelist $output_obj $lockfile"
    787       trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
     618      trap "$run $rm $removelist; exit 1" 1 2 15
    788619    else
    789620      output_obj=
     
    795626    # We use this script file to make the link, it avoids creating a new file
    796627    if test "$need_locks" = yes; then
    797       until $run ln "$progpath" "$lockfile" 2>/dev/null; do
     628      until $run ln "$0" "$lockfile" 2>/dev/null; do
    798629        $show "Waiting for $lockfile to be removed"
    799630        sleep 2
     
    813644
    814645        $run $rm $removelist
    815         exit $EXIT_FAILURE
     646        exit 1
    816647      fi
    817648      $echo $srcfile > "$lockfile"
     
    868699      else
    869700        test -n "$output_obj" && $run $rm $removelist
    870         exit $EXIT_FAILURE
     701        exit 1
    871702      fi
    872703
     
    888719
    889720        $run $rm $removelist
    890         exit $EXIT_FAILURE
     721        exit 1
    891722      fi
    892723
     
    909740
    910741      # Allow error messages only from the first compilation.
    911       if test "$suppress_opt" = yes; then
    912         suppress_output=' >/dev/null 2>&1'
    913       fi
     742      suppress_output=' >/dev/null 2>&1'
    914743    else
    915744      # No PIC object so indicate it doesn't exist in the libtool
     
    940769      else
    941770        $run $rm $removelist
    942         exit $EXIT_FAILURE
     771        exit 1
    943772      fi
    944773
     
    960789
    961790        $run $rm $removelist
    962         exit $EXIT_FAILURE
     791        exit 1
    963792      fi
    964793
     
    998827    fi
    999828
    1000     exit $EXIT_SUCCESS
     829    exit 0
    1001830    ;;
    1002831
     
    1024853    esac
    1025854    libtool_args="$nonopt"
    1026     base_compile="$nonopt $@"
     855    base_compile="$nonopt"
    1027856    compile_command="$nonopt"
    1028857    finalize_command="$nonopt"
     
    1056885    objs=
    1057886    non_pic_objects=
    1058     precious_files_regex=
    1059887    prefer_static_libs=no
    1060888    preload=no
     
    1070898    vinfo_number=no
    1071899
    1072     func_infer_tag $base_compile
    1073 
    1074900    # We need to know -static, to get the right output filenames.
    1075901    for arg
     
    1103929    while test "$#" -gt 0; do
    1104930      arg="$1"
     931      base_compile="$base_compile $arg"
    1105932      shift
    1106933      case $arg in
     
    1166993          if test ! -f "$arg"; then
    1167994            $echo "$modename: symbol file \`$arg' does not exist"
    1168             exit $EXIT_FAILURE
     995            exit 1
    1169996          fi
    1170997          prev=
     
    11781005        inst_prefix)
    11791006          inst_prefix_dir="$arg"
    1180           prev=
    1181           continue
    1182           ;;
    1183         precious_regex)
    1184           precious_files_regex="$arg"
    11851007          prev=
    11861008          continue
     
    12181040                   test "$non_pic_object" = none; then
    12191041                  $echo "$modename: cannot find name of object for \`$arg'" 1>&2
    1220                   exit $EXIT_FAILURE
     1042                  exit 1
    12211043                fi
    12221044
     
    12711093                if test -z "$run"; then
    12721094                  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
    1273                   exit $EXIT_FAILURE
     1095                  exit 1
    12741096                else
    12751097                  # Dry-run case.
     
    12921114          else
    12931115            $echo "$modename: link input file \`$save_arg' does not exist"
    1294             exit $EXIT_FAILURE
     1116            exit 1
    12951117          fi
    12961118          arg=$save_arg
     
    13041126          *)
    13051127            $echo "$modename: only absolute run-paths are allowed" 1>&2
    1306             exit $EXIT_FAILURE
     1128            exit 1
    13071129            ;;
    13081130          esac
     
    13441166          continue
    13451167          ;;
    1346         shrext)
    1347           shrext_cmds="$arg"
    1348           prev=
    1349           continue
    1350           ;;
    13511168        *)
    13521169          eval "$prev=\"\$arg\""
     
    13971214        if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
    13981215          $echo "$modename: more than one -exported-symbols argument is not allowed"
    1399           exit $EXIT_FAILURE
     1216          exit 1
    14001217        fi
    14011218        if test "X$arg" = "X-export-symbols"; then
     
    14331250          if test -z "$absdir"; then
    14341251            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
    1435             exit $EXIT_FAILURE
     1252            exit 1
    14361253          fi
    14371254          dir="$absdir"
     
    14881305        ;;
    14891306
    1490      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
    1491         deplibs="$deplibs $arg"
    1492         continue
    1493         ;;
    1494 
    14951307      -module)
    14961308        module=yes
     
    15571369      -o) prev=output ;;
    15581370
    1559       -precious-files-regex)
    1560         prev=precious_regex
    1561         continue
    1562         ;;
    1563 
    15641371      -release)
    15651372        prev=release
     
    15841391        *)
    15851392          $echo "$modename: only absolute run-paths are allowed" 1>&2
    1586           exit $EXIT_FAILURE
     1393          exit 1
    15871394          ;;
    15881395        esac
     
    17071514             test "$non_pic_object" = none; then
    17081515            $echo "$modename: cannot find name of object for \`$arg'" 1>&2
    1709             exit $EXIT_FAILURE
     1516            exit 1
    17101517          fi
    17111518
     
    17601567          if test -z "$run"; then
    17611568            $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
    1762             exit $EXIT_FAILURE
     1569            exit 1
    17631570          else
    17641571            # Dry-run case.
     
    18271634      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
    18281635      $echo "$help" 1>&2
    1829       exit $EXIT_FAILURE
     1636      exit 1
     1637    fi
     1638
     1639    # Infer tagged configuration to use if any are available and
     1640    # if one wasn't chosen via the "--tag" command line option.
     1641    # Only attempt this if the compiler in the base link
     1642    # command doesn't match the default compiler.
     1643    if test -n "$available_tags" && test -z "$tagname"; then
     1644      case $base_compile in
     1645      # Blanks in the command may have been stripped by the calling shell,
     1646      # but not from the CC environment variable when configure was run.
     1647      "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;;
     1648      # Blanks at the start of $base_compile will cause this to fail
     1649      # if we don't check for them as well.
     1650      *)
     1651        for z in $available_tags; do
     1652          if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
     1653            # Evaluate the configuration.
     1654            eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
     1655            case $base_compile in
     1656            "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
     1657              # The compiler in $compile_command matches
     1658              # the one in the tagged configuration.
     1659              # Assume this is the tagged configuration we want.
     1660              tagname=$z
     1661              break
     1662              ;;
     1663            esac
     1664          fi
     1665        done
     1666        # If $tagname still isn't set, then no tagged configuration
     1667        # was found and let the user know that the "--tag" command
     1668        # line option must be used.
     1669        if test -z "$tagname"; then
     1670          $echo "$modename: unable to infer tagged configuration"
     1671          $echo "$modename: specify a tag with \`--tag'" 1>&2
     1672          exit 1
     1673#       else
     1674#         $echo "$modename: using $tagname tagged configuration"
     1675        fi
     1676        ;;
     1677      esac
    18301678    fi
    18311679
     
    18711719      $echo "$modename: you must specify an output file" 1>&2
    18721720      $echo "$help" 1>&2
    1873       exit $EXIT_FAILURE
     1721      exit 1
    18741722      ;;
    18751723    *.$libext) linkmode=oldlib ;;
     
    18811729    case $host in
    18821730    *cygwin* | *mingw* | *pw32*)
    1883       # don't eliminate duplications in $postdeps and $predeps
     1731      # don't eliminate duplcations in $postdeps and $predeps
    18841732      duplicate_compiler_generated_deps=yes
    18851733      ;;
     
    19341782          *)
    19351783            $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
    1936             exit $EXIT_FAILURE
     1784            exit 1
    19371785            ;;
    19381786          esac
     
    19721820        found=no
    19731821        case $deplib in
    1974         -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
    1975           if test "$linkmode,$pass" = "prog,link"; then
    1976             compile_deplibs="$deplib $compile_deplibs"
    1977             finalize_deplibs="$deplib $finalize_deplibs"
    1978           else
    1979             deplibs="$deplib $deplibs"
    1980           fi
    1981           continue
    1982           ;;
    19831822        -l*)
    19841823          if test "$linkmode" != lib && test "$linkmode" != prog; then
     
    19921831          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
    19931832          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
    1994             for search_ext in .la $std_shrext .so .a; do
    1995               # Search the libtool library
    1996               lib="$searchdir/lib${name}${search_ext}"
    1997               if test -f "$lib"; then
    1998                 if test "$search_ext" = ".la"; then
    1999                   found=yes
    2000                 else
    2001                   found=no
    2002                 fi
    2003                 break 2
    2004               fi
    2005             done
     1833            # Search the libtool library
     1834            lib="$searchdir/lib${name}.la"
     1835            if test -f "$lib"; then
     1836              found=yes
     1837              break
     1838            fi
    20061839          done
    20071840          if test "$found" != yes; then
     
    20681901            if test "$pass" = scan; then
    20691902              deplibs="$deplib $deplibs"
     1903              newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
    20701904            else
    20711905              compile_deplibs="$deplib $compile_deplibs"
    20721906              finalize_deplibs="$deplib $finalize_deplibs"
    20731907            fi
    2074             newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
    20751908            ;;
    20761909          *)
     
    21001933          case $linkmode in
    21011934          lib)
    2102             valid_a_lib=no
    2103             case $deplibs_check_method in
    2104               match_pattern*)
    2105                 set dummy $deplibs_check_method
    2106                 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
    2107                 if eval $echo \"$deplib\" 2>/dev/null \
    2108                     | $SED 10q \
    2109                     | $EGREP "$match_pattern_regex" > /dev/null; then
    2110                   valid_a_lib=yes
    2111                 fi
    2112                 ;;
    2113               pass_all)
    2114                 valid_a_lib=yes
    2115                 ;;
    2116             esac
    2117             if test "$valid_a_lib" != yes; then
     1935            if test "$deplibs_check_method" != pass_all; then
    21181936              $echo
    21191937              $echo "*** Warning: Trying to link with static lib archive $deplib."
     
    21661984        else
    21671985          $echo "$modename: cannot find the library \`$lib'" 1>&2
    2168           exit $EXIT_FAILURE
     1986          exit 1
    21691987        fi
    21701988
     
    21731991        else
    21741992          $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    2175           exit $EXIT_FAILURE
     1993          exit 1
    21761994        fi
    21771995
     
    22092027            if test -z "$old_library"; then
    22102028              $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
    2211               exit $EXIT_FAILURE
     2029              exit 1
    22122030            fi
    22132031            # It is a libtool convenience library, so add in its objects.
     
    22262044          elif test "$linkmode" != prog && test "$linkmode" != lib; then
    22272045            $echo "$modename: \`$lib' is not a convenience library" 1>&2
    2228             exit $EXIT_FAILURE
     2046            exit 1
    22292047          fi
    22302048          continue
    22312049        fi # $pass = conv
    22322050
    2233 
     2051   
    22342052        # Get the name of the library we link against.
    22352053        linklib=
     
    22392057        if test -z "$linklib"; then
    22402058          $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
    2241           exit $EXIT_FAILURE
     2059          exit 1
    22422060        fi
    22432061
     
    22462064          if test -z "$libdir"; then
    22472065            $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
    2248             exit $EXIT_FAILURE
    2249           fi
    2250           if test -z "$dlname" ||
    2251              test "$dlopen_support" != yes ||
    2252              test "$build_libtool_libs" = no; then
     2066            exit 1
     2067          fi
     2068          if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
    22532069            # If there is no dlname, no dlopen support or we're linking
    22542070            # statically, we need to preload.  We also need to preload any
     
    22882104          fi
    22892105        else
    2290           if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
    2291             dir="$ladir"
    2292             absdir="$abs_ladir"
    2293             # Remove this search path later
    2294             notinst_path="$notinst_path $abs_ladir"
    2295           else
    2296             dir="$ladir/$objdir"
    2297             absdir="$abs_ladir/$objdir"
    2298             # Remove this search path later
    2299             notinst_path="$notinst_path $abs_ladir"
    2300           fi
     2106          dir="$ladir/$objdir"
     2107          absdir="$abs_ladir/$objdir"
     2108          # Remove this search path later
     2109          notinst_path="$notinst_path $abs_ladir"
    23012110        fi # $installed = yes
    23022111        name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
     
    23062115          if test -z "$libdir"; then
    23072116            $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
    2308             exit $EXIT_FAILURE
     2117            exit 1
    23092118          fi
    23102119          # Prefer using a static library (so that no silly _DYNAMIC symbols
     
    23332142        fi
    23342143
    2335 
     2144   
    23362145        if test "$linkmode" = prog && test "$pass" != link; then
    23372146          newlib_search_path="$newlib_search_path $ladir"
     
    24202229          fi
    24212230          # This is a shared library
    2422 
    2423           # Warn about portability, can't link against -module's on
    2424           # some systems (darwin)
    2425           if test "$shouldnotlink" = yes && test "$pass" = link ; then
     2231       
     2232      # Warn about portability, can't link against -module's on some systems (darwin)
     2233      if test "$shouldnotlink" = yes && test "$pass" = link ; then
    24262234            $echo
    24272235            if test "$linkmode" = prog; then
     
    24302238              $echo "*** Warning: Linking the shared library $output against the loadable module"
    24312239            fi
    2432             $echo "*** $linklib is not portable!"
    2433           fi
     2240            $echo "*** $linklib is not portable!"   
     2241      fi         
    24342242          if test "$linkmode" = lib &&
    24352243             test "$hardcode_into_libs" = yes; then
     
    24882296            else
    24892297              $show "extracting exported symbol list from \`$soname'"
    2490               save_ifs="$IFS"; IFS='~'
    2491               cmds=$extract_expsyms_cmds
     2298              save_ifs="$IFS"; IFS=$_S_
     2299              eval cmds=\"$extract_expsyms_cmds\"
    24922300              for cmd in $cmds; do
    24932301                IFS="$save_ifs"
    2494                 eval cmd=\"$cmd\"
    24952302                $show "$cmd"
    24962303                $run eval "$cmd" || exit $?
     
    25022309            if test -f "$output_objdir/$newlib"; then :; else
    25032310              $show "generating import library for \`$soname'"
    2504               save_ifs="$IFS"; IFS='~'
    2505               cmds=$old_archive_from_expsyms_cmds
     2311              save_ifs="$IFS"; IFS=$_S_
     2312              eval cmds=\"$old_archive_from_expsyms_cmds\"
    25062313              for cmd in $cmds; do
    25072314                IFS="$save_ifs"
    2508                 eval cmd=\"$cmd\"
    25092315                $show "$cmd"
    25102316                $run eval "$cmd" || exit $?
     
    25292335                  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
    25302336                  *-*-darwin* )
    2531                     # if the lib is a module then we can not link against
    2532                     # it, someone is ignoring the new warnings I added
    2533                     if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
     2337                    # if the lib is a module then we can not link against it, someone
     2338                    # is ignoring the new warnings I added
     2339                    if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then
    25342340                      $echo "** Warning, lib $linklib is a module, not a shared library"
    25352341                      if test -z "$old_library" ; then
     
    25392345                      else
    25402346                        add="$dir/$old_library"
    2541                       fi
     2347                      fi 
    25422348                    fi
    25432349                esac
     
    25642370                  case "$libdir" in
    25652371                    [\\/]*)
    2566                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
     2372                      add_dir="-L$inst_prefix_dir$libdir $add_dir"
    25672373                      ;;
    25682374                  esac
     
    25812387            if test "$lib_linked" != yes; then
    25822388              $echo "$modename: configuration error: unsupported hardcode properties"
    2583               exit $EXIT_FAILURE
     2389              exit 1
    25842390            fi
    25852391
     
    26242430              add="-l$name"
    26252431            elif test "$hardcode_automatic" = yes; then
    2626               if test -n "$inst_prefix_dir" &&
    2627                  test -f "$inst_prefix_dir$libdir/$linklib" ; then
     2432              if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
    26282433                add="$inst_prefix_dir$libdir/$linklib"
    26292434              else
     
    26372442                case "$libdir" in
    26382443                  [\\/]*)
    2639                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
     2444                    add_dir="-L$inst_prefix_dir$libdir $add_dir"
    26402445                    ;;
    26412446                esac
     
    27052510        if test "$linkmode" = lib; then
    27062511          if test -n "$dependency_libs" &&
    2707              { test "$hardcode_into_libs" != yes ||
    2708                test "$build_old_libs" = yes ||
     2512             { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
    27092513               test "$link_static" = yes; }; then
    27102514            # Extract -R from dependency_libs
     
    27632567                  if test -z "$libdir"; then
    27642568                    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
    2765                     exit $EXIT_FAILURE
     2569                    exit 1
    27662570                  fi
    27672571                  if test "$absdir" != "$libdir"; then
     
    27732577                case $host in
    27742578                *-*-darwin*)
    2775                   # we do not want to link against static libs,
    2776                   # but need to link against shared
     2579                  # we do not want to link against static libs, but need to link against shared
    27772580                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
    27782581                  if test -n "$deplibrary_names" ; then
     
    27822585                    if test -f "$path/$depdepl" ; then
    27832586                      depdepl="$path/$depdepl"
    2784                     fi
    2785                     # do not add paths which are already there
    2786                     case " $newlib_search_path " in
    2787                     *" $path "*) ;;
    2788                     *) newlib_search_path="$newlib_search_path $path";;
    2789                     esac
     2587                   fi
     2588                    newlib_search_path="$newlib_search_path $path"
     2589                    path=""
    27902590                  fi
    2791                   path=""
    27922591                  ;;
    27932592                *)
    2794                   path="-L$path"
    2795                   ;;
    2796                 esac
     2593                path="-L$path"
    27972594                ;;
    2798               -l*)
     2595                esac
     2596               
     2597                ;;
     2598                  -l*)
    27992599                case $host in
    28002600                *-*-darwin*)
    2801                   # Again, we only want to link against shared libraries
    2802                   eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
    2803                   for tmp in $newlib_search_path ; do
    2804                     if test -f "$tmp/lib$tmp_libs.dylib" ; then
    2805                       eval depdepl="$tmp/lib$tmp_libs.dylib"
    2806                       break
    2807                     fi
    2808                   done
    2809                   path=""
     2601                 # Again, we only want to link against shared libraries
     2602                 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
     2603                 for tmp in $newlib_search_path ; do
     2604                     if test -f "$tmp/lib$tmp_libs.dylib" ; then
     2605                       eval depdepl="$tmp/lib$tmp_libs.dylib"
     2606                       break
     2607                     fi 
     2608         done
     2609         path=""
    28102610                  ;;
    28112611                *) continue ;;
    2812                 esac
     2612                esac             
    28132613                ;;
    28142614              *) continue ;;
     
    28162616              case " $deplibs " in
    28172617              *" $depdepl "*) ;;
    2818               *) deplibs="$depdepl $deplibs" ;;
    2819               esac
     2618              *) deplibs="$deplibs $depdepl" ;;
     2619              esac           
    28202620              case " $deplibs " in
    28212621              *" $path "*) ;;
     
    29072707        done # for var
    29082708      fi
    2909       # Last step: remove runtime libs from dependency_libs
    2910       # (they stay in deplibs)
     2709      # Last step: remove runtime libs from dependency_libs (they stay in deplibs)
    29112710      tmp_libs=
    29122711      for i in $dependency_libs ; do
     
    29682767      lib*)
    29692768        name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
    2970         eval shared_ext=\"$shrext_cmds\"
     2769        eval shared_ext=\"$shrext\"
    29712770        eval libname=\"$libname_spec\"
    29722771        ;;
     
    29752774          $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
    29762775          $echo "$help" 1>&2
    2977           exit $EXIT_FAILURE
     2776          exit 1
    29782777        fi
    29792778        if test "$need_lib_prefix" != no; then
    29802779          # Add the "lib" prefix for modules if required
    29812780          name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
    2982           eval shared_ext=\"$shrext_cmds\"
     2781          eval shared_ext=\"$shrext\"
    29832782          eval libname=\"$libname_spec\"
    29842783        else
     
    29912790        if test "$deplibs_check_method" != pass_all; then
    29922791          $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
    2993           exit $EXIT_FAILURE
     2792          exit 1
    29942793        else
    29952794          $echo
     
    30392838          $echo "$modename: too many parameters to \`-version-info'" 1>&2
    30402839          $echo "$help" 1>&2
    3041           exit $EXIT_FAILURE
     2840          exit 1
    30422841        fi
    30432842
     
    30452844        # this retains compatibility with .la files and attempts
    30462845        # to make the code below a bit more comprehensible
    3047 
     2846       
    30482847        case $vinfo_number in
    30492848        yes)
     
    30892888          $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
    30902889          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3091           exit $EXIT_FAILURE
     2890          exit 1
    30922891          ;;
    30932892        esac
     
    30982897          $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
    30992898          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3100           exit $EXIT_FAILURE
     2899          exit 1
    31012900          ;;
    31022901        esac
     
    31072906          $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
    31082907          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3109           exit $EXIT_FAILURE
     2908          exit 1
    31102909          ;;
    31112910        esac
     
    31142913          $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
    31152914          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3116           exit $EXIT_FAILURE
     2915          exit 1
    31172916        fi
    31182917
     
    31312930          # Darwin ld doesn't like 0 for these options...
    31322931          minor_current=`expr $current + 1`
    3133           verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
     2932          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
    31342933          ;;
    31352934
     
    32033002          $echo "$modename: unknown library version type \`$version_type'" 1>&2
    32043003          $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
    3205           exit $EXIT_FAILURE
     3004          exit 1
    32063005          ;;
    32073006        esac
     
    32573056               ;;
    32583057            $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
    3259                if test "X$precious_files_regex" != "X"; then
    3260                  if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
    3261                  then
    3262                    continue
    3263                  fi
    3264                fi
    32653058               removelist="$removelist $p"
    32663059               ;;
     
    33833176EOF
    33843177          $rm conftest
    3385           $LTCC -o conftest conftest.c $deplibs
     3178          $LTCC $archargs -o conftest conftest.c $deplibs
    33863179          if test "$?" -eq 0 ; then
    33873180            ldd_output=`ldd conftest`
     
    34283221              if test "$name" != "" && test "$name" != "0"; then
    34293222                $rm conftest
    3430                 $LTCC -o conftest conftest.c $i
     3223                $LTCC $archargs -o conftest conftest.c $i
    34313224                # Did it work?
    34323225                if test "$?" -eq 0 ; then
     
    37423535
    37433536        # Get the real and link names of the library.
    3744         eval shared_ext=\"$shrext_cmds\"
     3537        eval shared_ext=\"$shrext\"
    37453538        eval library_names=\"$library_names_spec\"
    37463539        set dummy $library_names
     
    37723565            export_symbols="$output_objdir/$libname.exp"
    37733566            $run $rm $export_symbols
    3774             cmds=$export_symbols_cmds
    3775             save_ifs="$IFS"; IFS='~'
     3567            eval cmds=\"$export_symbols_cmds\"
     3568            save_ifs="$IFS"; IFS=$_S_
    37763569            for cmd in $cmds; do
    37773570              IFS="$save_ifs"
    3778               eval cmd=\"$cmd\"
    37793571              if len=`expr "X$cmd" : ".*"` &&
    37803572               test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
     
    38063598                case " $convenience " in
    38073599                *" $test_deplib "*) ;;
    3808                 *)
     3600                *) 
    38093601                        tmp_deplibs="$tmp_deplibs $test_deplib"
    38103602                        ;;
    38113603                esac
    38123604        done
    3813         deplibs="$tmp_deplibs"
     3605        deplibs="$tmp_deplibs" 
    38143606
    38153607        if test -n "$convenience"; then
     
    38193611          else
    38203612            gentop="$output_objdir/${outputname}x"
     3613            $show "${rm}r $gentop"
     3614            $run ${rm}r "$gentop"
     3615            $show "$mkdir $gentop"
     3616            $run $mkdir "$gentop"
     3617            status=$?
     3618            if test "$status" -ne 0 && test ! -d "$gentop"; then
     3619              exit $status
     3620            fi
    38213621            generated="$generated $gentop"
    38223622
    3823             func_extract_archives $gentop $convenience
    3824             libobjs="$libobjs $func_extract_archives_result"
    3825           fi
    3826         fi
    3827        
     3623            for xlib in $convenience; do
     3624              # Extract the objects.
     3625              case $xlib in
     3626              [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
     3627              *) xabs=`pwd`"/$xlib" ;;
     3628              esac
     3629              xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
     3630              xdir="$gentop/$xlib"
     3631
     3632              $show "${rm}r $xdir"
     3633              $run ${rm}r "$xdir"
     3634              $show "$mkdir $xdir"
     3635              $run $mkdir "$xdir"
     3636              status=$?
     3637              if test "$status" -ne 0 && test ! -d "$xdir"; then
     3638                exit $status
     3639              fi
     3640              case $host in
     3641              *-*-darwin*)
     3642                # ranlib-ed archives of fat binaries are converted to a fat xabs that
     3643                # ar can't use.  So we to split the fat xabs into non-fat ones to unpack.
     3644                # We can't deal with duplicate names, since 'ar xN' and 'uniq -cd' don't work.
     3645                d_archs=`lipo -info $xabs 2> /dev/null | grep '^Architectures' | sed 's/^.*: //'`
     3646                if test -n "$d_archs"; then
     3647                  $echo "$modename: manually unpacking fat archive $xabs" 1>&2
     3648                  d_name=`basename $xabs`
     3649                  d_dir="/tmp/fat_ar.$$"
     3650                  d_files=''
     3651
     3652                  for d_arch in $d_archs; do
     3653                    d_archdir="$d_dir/$d_arch"
     3654                    $show "$mkdir -p $d_archdir"
     3655                    $run $mkdir -p "$d_archdir"
     3656
     3657                    $show "lipo -thin $d_arch $xabs -o $d_dir/$d_name"
     3658                    $run lipo -thin $d_arch "$xabs" -o "$d_dir/$d_name"
     3659
     3660                    $show "(cd $d_archdir && $AR x $d_dir/$d_name)"
     3661                    $run eval "(cd \$d_archdir && \$AR x \$d_dir/\$d_name)" || exit $?
     3662
     3663                    $show "${rm} $d_dir/$d_name"
     3664                    $run ${rm} "$d_dir/$d_name"
     3665                  done
     3666
     3667                  # Can't deal with blanks in file names
     3668                  $run eval "d_files=\`find \$d_dir -type f | sed -e 's,.*/,,' -e '/ /d' | sort -u\`" || exit $?
     3669
     3670                  for d_file in $d_files; do
     3671                    $run eval "d_f=\`find \$d_dir -name \$d_file -print\`" || exit $?
     3672                    $show "lipo -create $d_f -o $xdir/$d_file"
     3673                    $run eval "lipo -create \$d_f -o \"\$xdir/\$d_file\"" || exit $?
     3674                  done
     3675
     3676                  $show "${rm}r $d_dir"
     3677                  $run ${rm}r "$d_dir"
     3678                else
     3679                  $show "(cd $xdir && $AR x $xabs)"
     3680                  $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
     3681                fi
     3682                ;;
     3683              *)
     3684                # We will extract separately just the conflicting names and we will no
     3685                # longer touch any unique names. It is faster to leave these extract
     3686                # automatically by $AR in one run.
     3687                $show "(cd $xdir && $AR x $xabs)"
     3688                $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
     3689                if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
     3690                  :
     3691                else
     3692                  $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
     3693                  $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
     3694                  $AR t "$xabs" | sort | uniq -cd | while read -r count name
     3695                  do
     3696                    i=1
     3697                    while test "$i" -le "$count"
     3698                    do
     3699                     # Put our $i before any first dot (extension)
     3700                     # Never overwrite any file
     3701                     name_to="$name"
     3702                     while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
     3703                     do
     3704                       name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
     3705                     done
     3706                     $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
     3707                     $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
     3708                     i=`expr $i + 1`
     3709                    done
     3710                  done
     3711                fi
     3712                ;;
     3713              esac
     3714
     3715              libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
     3716            done
     3717          fi
     3718        fi
     3719
    38283720        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
    38293721          eval flag=\"$thread_safe_flag_spec\"
     
    38393731        if test "$module" = yes && test -n "$module_cmds" ; then
    38403732          if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
    3841             eval test_cmds=\"$module_expsym_cmds\"
    3842             cmds=$module_expsym_cmds
     3733            eval cmds=\"$module_expsym_cmds\"
    38433734          else
    3844             eval test_cmds=\"$module_cmds\"
    3845             cmds=$module_cmds
     3735            eval cmds=\"$module_cmds\"
    38463736          fi
    38473737        else
    38483738        if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
    3849           eval test_cmds=\"$archive_expsym_cmds\"
    3850           cmds=$archive_expsym_cmds
     3739          eval cmds=\"$archive_expsym_cmds\"
    38513740        else
    3852           eval test_cmds=\"$archive_cmds\"
    3853           cmds=$archive_cmds
    3854           fi
    3855         fi
    3856 
    3857         if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
     3741          eval cmds=\"$archive_cmds\"
     3742          fi
     3743        fi
     3744
     3745        if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` &&
    38583746           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
    38593747          :
     
    39013789                # All subsequent reloadable object files will link in
    39023790                # the last one created.
    3903                 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
     3791                eval concat_cmds=\"\$concat_cmds${_S_}$reload_cmds $objlist $last_robj\"
    39043792              fi
    39053793              last_robj=$output_objdir/$save_output-${k}.$objext
     
    39133801          # reloadable object file.  All subsequent reloadable object
    39143802          # files will link in the last one created.
    3915           test -z "$concat_cmds" || concat_cmds=$concat_cmds~
     3803          test -z "$concat_cmds" || concat_cmds=$concat_cmds${_S_}
    39163804          eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
    39173805
     
    39223810            libobjs=$output
    39233811            # Append the command to create the export file.
    3924             eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
     3812            eval concat_cmds=\"\$concat_cmds${_S_}$export_symbols_cmds\"
    39253813          fi
    39263814
     
    39373825
    39383826          # Loop through the commands generated above and execute them.
    3939           save_ifs="$IFS"; IFS='~'
     3827          save_ifs="$IFS"; IFS=$_S_
    39403828          for cmd in $concat_cmds; do
    39413829            IFS="$save_ifs"
     
    39563844
    39573845          # Do each of the archive commands.
    3958           if test "$module" = yes && test -n "$module_cmds" ; then
    3959             if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
    3960               cmds=$module_expsym_cmds
    3961             else
    3962               cmds=$module_cmds
    3963             fi
     3846          if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
     3847            eval cmds=\"$archive_expsym_cmds\"
    39643848          else
    3965           if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
    3966             cmds=$archive_expsym_cmds
    3967           else
    3968             cmds=$archive_cmds
    3969             fi
     3849            eval cmds=\"$archive_cmds\"
    39703850          fi
    39713851
    39723852          # Append the command to remove the reloadable object files
    39733853          # to the just-reset $cmds.
    3974           eval cmds=\"\$cmds~\$rm $delfiles\"
    3975         fi
    3976         save_ifs="$IFS"; IFS='~'
     3854          eval cmds=\"\$cmds${_S_}$rm $delfiles\"
     3855        fi
     3856        save_ifs="$IFS"; IFS=$_S_
    39773857        for cmd in $cmds; do
    39783858          IFS="$save_ifs"
    3979           eval cmd=\"$cmd\"
    39803859          $show "$cmd"
    39813860          $run eval "$cmd" || exit $?
     
    39863865        if test "$mode" = relink; then
    39873866          $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
    3988           exit $EXIT_SUCCESS
     3867          exit 0
    39893868        fi
    39903869
     
    40343913        if test -n "$objs$old_deplibs"; then
    40353914          $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
    4036           exit $EXIT_FAILURE
     3915          exit 1
    40373916        fi
    40383917        libobj="$output"
     
    40633942        else
    40643943          gentop="$output_objdir/${obj}x"
     3944          $show "${rm}r $gentop"
     3945          $run ${rm}r "$gentop"
     3946          $show "$mkdir $gentop"
     3947          $run $mkdir "$gentop"
     3948          status=$?
     3949          if test "$status" -ne 0 && test ! -d "$gentop"; then
     3950            exit $status
     3951          fi
    40653952          generated="$generated $gentop"
    40663953
    4067           func_extract_archives $gentop $convenience
    4068           reload_conv_objs="$reload_objs $func_extract_archives_result"
     3954          for xlib in $convenience; do
     3955            # Extract the objects.
     3956            case $xlib in
     3957            [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
     3958            *) xabs=`pwd`"/$xlib" ;;
     3959            esac
     3960            xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
     3961            xdir="$gentop/$xlib"
     3962
     3963            $show "${rm}r $xdir"
     3964            $run ${rm}r "$xdir"
     3965            $show "$mkdir $xdir"
     3966            $run $mkdir "$xdir"
     3967            status=$?
     3968            if test "$status" -ne 0 && test ! -d "$xdir"; then
     3969              exit $status
     3970            fi
     3971            case $host in
     3972            *-*-darwin*)
     3973              # ranlib-ed archives of fat binaries are converted to a fat xabs that
     3974              # ar can't use.  So we to split the fat xabs into non-fat ones to unpack.
     3975              # We can't deal with duplicate names, since 'ar xN' and 'uniq -cd' don't work.
     3976              d_archs=`lipo -info $xabs 2> /dev/null | grep '^Architectures' | sed 's/^.*: //'`
     3977              if test -n "$d_archs"; then
     3978                $echo "$modename: manually unpacking fat archive $xabs" 1>&2
     3979                d_name=`basename $xabs`
     3980                d_dir="/tmp/fat_ar.$$"
     3981                d_files=''
     3982
     3983                for d_arch in $d_archs; do
     3984                  d_archdir="$d_dir/$d_arch"
     3985                  $show "$mkdir -p $d_archdir"
     3986                  $run $mkdir -p "$d_archdir"
     3987
     3988                  $show "lipo -thin $d_arch $xabs -o $d_dir/$d_name"
     3989                  $run lipo -thin $d_arch "$xabs" -o "$d_dir/$d_name"
     3990
     3991                  $show "(cd $d_archdir && $AR x $d_dir/$d_name)"
     3992                  $run eval "(cd \$d_archdir && \$AR x \$d_dir/\$d_name)" || exit $?
     3993
     3994                  $show "${rm} $d_dir/$d_name"
     3995                  $run ${rm} "$d_dir/$d_name"
     3996                done
     3997
     3998                # Can't deal with blanks in file names
     3999                $run eval "d_files=\`find \$d_dir -type f | sed -e 's,.*/,,' -e '/ /d' | sort -u\`" || exit $?
     4000
     4001                for d_file in $d_files; do
     4002                  $run eval "d_f=\`find \$d_dir -name \$d_file -print\`" || exit $?
     4003                  $show "lipo -create $d_f -o $xdir/$d_file"
     4004                  $run eval "lipo -create \$d_f -o \"\$xdir/\$d_file\"" || exit $?
     4005                done
     4006
     4007                $show "${rm}r $d_dir"
     4008                $run ${rm}r "$d_dir"
     4009              else
     4010                $show "(cd $xdir && $AR x $xabs)"
     4011                $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
     4012              fi
     4013              ;;
     4014            *)
     4015              # We will extract separately just the conflicting names and we will no
     4016              # longer touch any unique names. It is faster to leave these extract
     4017              # automatically by $AR in one run.
     4018              $show "(cd $xdir && $AR x $xabs)"
     4019              $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
     4020              if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
     4021                :
     4022              else
     4023                $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
     4024                $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
     4025                $AR t "$xabs" | sort | uniq -cd | while read -r count name
     4026                do
     4027                  i=1
     4028                  while test "$i" -le "$count"
     4029                  do
     4030                   # Put our $i before any first dot (extension)
     4031                   # Never overwrite any file
     4032                   name_to="$name"
     4033                   while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
     4034                   do
     4035                     name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
     4036                   done
     4037                   $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
     4038                   $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
     4039                   i=`expr $i + 1`
     4040                  done
     4041                done
     4042              fi
     4043              ;;
     4044            esac
     4045
     4046            reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
     4047          done
    40694048        fi
    40704049      fi
     
    40744053
    40754054      output="$obj"
    4076       cmds=$reload_cmds
    4077       save_ifs="$IFS"; IFS='~'
     4055      eval cmds=\"$reload_cmds\"
     4056      save_ifs="$IFS"; IFS=$_S_
    40784057      for cmd in $cmds; do
    40794058        IFS="$save_ifs"
    4080         eval cmd=\"$cmd\"
    40814059        $show "$cmd"
    40824060        $run eval "$cmd" || exit $?
     
    40914069        fi
    40924070
    4093         exit $EXIT_SUCCESS
     4071        exit 0
    40944072      fi
    40954073
     
    41044082        # $show "echo timestamp > $libobj"
    41054083        # $run eval "echo timestamp > $libobj" || exit $?
    4106         exit $EXIT_SUCCESS
     4084        exit 0
    41074085      fi
    41084086
     
    41114089        reload_objs="$libobjs $reload_conv_objs"
    41124090        output="$libobj"
    4113         cmds=$reload_cmds
    4114         save_ifs="$IFS"; IFS='~'
     4091        eval cmds=\"$reload_cmds\"
     4092        save_ifs="$IFS"; IFS=$_S_
    41154093        for cmd in $cmds; do
    41164094          IFS="$save_ifs"
    4117           eval cmd=\"$cmd\"
    41184095          $show "$cmd"
    41194096          $run eval "$cmd" || exit $?
     
    41274104      fi
    41284105
    4129       exit $EXIT_SUCCESS
     4106      exit 0
    41304107      ;;
    41314108
     
    44324409
    44334410          # Now compile the dynamic symbol file.
    4434           $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
    4435           $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
     4411          $show "(cd $output_objdir && $LTCC $archargs -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
     4412          $run eval '(cd $output_objdir && $LTCC $archargs -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
    44364413
    44374414          # Clean up the generated files.
     
    44454422        *)
    44464423          $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
    4447           exit $EXIT_FAILURE
     4424          exit 1
    44484425          ;;
    44494426        esac
     
    45334510        $show "$link_command"
    45344511        $run eval "$link_command" || exit $?
    4535         exit $EXIT_SUCCESS
     4512        exit 0
    45364513      fi
    45374514
     
    45884565
    45894566      # Quote $echo for shipping.
    4590       if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
    4591         case $progpath in
    4592         [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
    4593         *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
     4567      if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
     4568        case $0 in
     4569        [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
     4570        *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
    45944571        esac
    45954572        qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
     
    46174594            cwrapper=`$echo ${output}.exe`
    46184595            $rm $cwrappersource $cwrapper
    4619             trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
     4596            trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15
    46204597
    46214598            cat > $cwrappersource <<EOF
     
    46264603   The $output program cannot be directly executed until all the libtool
    46274604   libraries that it depends on are installed.
    4628 
     4605   
    46294606   This wrapper executable should never be moved out of the build directory.
    46304607   If it is, it will not operate correctly.
     
    46584635  defined (__OS2__)
    46594636#define HAVE_DOS_BASED_FILE_SYSTEM
    4660 #ifndef DIR_SEPARATOR_2
     4637#ifndef DIR_SEPARATOR_2 
    46614638#define DIR_SEPARATOR_2 '\\'
    46624639#endif
     
    46894666  char **newargz;
    46904667  int i;
    4691 
     4668 
    46924669  program_name = (char *) xstrdup ((char *) basename (argv[0]));
    46934670  newargz = XMALLOC(char *, argc+2);
     
    47024679  /* we know the script has the same name, without the .exe */
    47034680  /* so make sure newargz[1] doesn't end in .exe */
    4704   strendzap(newargz[1],".exe");
     4681  strendzap(newargz[1],".exe"); 
    47054682  for (i = 1; i < argc; i++)
    47064683    newargz[i+1] = xstrdup(argv[i]);
     
    47254702}
    47264703
    4727 char *
     4704char * 
    47284705xstrdup (const char *string)
    47294706{
     
    47394716#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    47404717  /* Skip over the disk name in MSDOS pathnames. */
    4741   if (isalpha (name[0]) && name[1] == ':')
     4718  if (isalpha (name[0]) && name[1] == ':') 
    47424719    name += 2;
    47434720#endif
     
    47494726}
    47504727
    4751 char *
     4728char * 
    47524729fnqualify(const char *path)
    47534730{
     
    47774754
    47784755char *
    4779 strendzap(char *str, const char *pat)
     4756strendzap(char *str, const char *pat) 
    47804757{
    47814758  size_t len, patlen;
     
    47974774
    47984775static void
    4799 lt_error_core (int exit_status, const char * mode,
     4776lt_error_core (int exit_status, const char * mode, 
    48004777          const char * message, va_list ap)
    48014778{
     
    48224799          # Since the "real" binary is built for $host, then this
    48234800          # wrapper might as well be built for $host, too.
    4824           $run $LTCC -s -o $cwrapper $cwrappersource
     4801          $run $LTCC $archargs -s -o $cwrapper $cwrappersource
    48254802          ;;
    48264803        esac
    48274804        $rm $output
    4828         trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
     4805        trap "$rm $output; exit 1" 1 2 15
    48294806
    48304807        $echo > $output "\
     
    48474824# The HP-UX ksh and POSIX shell print the target directory to stdout
    48484825# if CDPATH is set.
    4849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     4826if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
    48504827
    48514828relink_command=\"$relink_command\"
     
    49264903        $echo \"\$relink_command_output\" >&2
    49274904        $rm \"\$progdir/\$file\"
    4928         exit $EXIT_FAILURE
     4905        exit 1
    49294906      fi
    49304907    fi
     
    49884965        $echo >> $output "\
    49894966      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
    4990       exit $EXIT_FAILURE
     4967      exit 1
    49914968    fi
    49924969  else
     
    49954972    \$echo \"This script is just a wrapper for \$program.\" 1>&2
    49964973    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
    4997     exit $EXIT_FAILURE
     4974    exit 1
    49984975  fi
    49994976fi\
     
    50014978        chmod +x $output
    50024979      fi
    5003       exit $EXIT_SUCCESS
     4980      exit 0
    50044981      ;;
    50054982    esac
     
    50245001      if test -n "$addlibs"; then
    50255002        gentop="$output_objdir/${outputname}x"
     5003        $show "${rm}r $gentop"
     5004        $run ${rm}r "$gentop"
     5005        $show "$mkdir $gentop"
     5006        $run $mkdir "$gentop"
     5007        status=$?
     5008        if test "$status" -ne 0 && test ! -d "$gentop"; then
     5009          exit $status
     5010        fi
    50265011        generated="$generated $gentop"
    50275012
    5028         func_extract_archives $gentop $addlibs
    5029         oldobjs="$oldobjs $func_extract_archives_result"
     5013        # Add in members from convenience archives.
     5014        for xlib in $addlibs; do
     5015          # Extract the objects.
     5016          case $xlib in
     5017          [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
     5018          *) xabs=`pwd`"/$xlib" ;;
     5019          esac
     5020          xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
     5021          xdir="$gentop/$xlib"
     5022
     5023          $show "${rm}r $xdir"
     5024          $run ${rm}r "$xdir"
     5025          $show "$mkdir $xdir"
     5026          $run $mkdir "$xdir"
     5027          status=$?
     5028          if test "$status" -ne 0 && test ! -d "$xdir"; then
     5029            exit $status
     5030          fi
     5031          case $host in
     5032          *-*-darwin*)
     5033            # ranlib-ed archives of fat binaries are converted to a fat xabs that
     5034            # ar can't use.  So we to split the fat xabs into non-fat ones to unpack.
     5035            # We can't deal with duplicate names, since 'ar xN' and 'uniq -cd' don't work.
     5036            d_archs=`lipo -info $xabs 2> /dev/null | grep '^Architectures' | sed 's/^.*: //'`
     5037            if test -n "$d_archs"; then
     5038              $echo "$modename: manually unpacking fat archive $xabs" 1>&2
     5039              d_name=`basename $xabs`
     5040              d_dir="/tmp/fat_ar.$$"
     5041              d_files=''
     5042
     5043              for d_arch in $d_archs; do
     5044                d_archdir="$d_dir/$d_arch"
     5045                $show "$mkdir -p $d_archdir"
     5046                $run $mkdir -p "$d_archdir"
     5047
     5048                $show "lipo -thin $d_arch $xabs -o $d_dir/$d_name"
     5049                $run lipo -thin $d_arch "$xabs" -o "$d_dir/$d_name"
     5050
     5051                $show "(cd $d_archdir && $AR x $d_dir/$d_name)"
     5052                $run eval "(cd \$d_archdir && \$AR x \$d_dir/\$d_name)" || exit $?
     5053
     5054                $show "${rm} $d_dir/$d_name"
     5055                $run ${rm} "$d_dir/$d_name"
     5056              done
     5057
     5058              # Can't deal with blanks in file names
     5059              $run eval "d_files=\`find \$d_dir -type f | sed -e 's,.*/,,' -e '/ /d' | sort -u\`" || exit $?
     5060
     5061              for d_file in $d_files; do
     5062                $run eval "d_f=\`find \$d_dir -name \$d_file -print\`" || exit $?
     5063                $show "lipo -create $d_f -o $xdir/$d_file"
     5064                $run eval "lipo -create \$d_f -o \"\$xdir/\$d_file\"" || exit $?
     5065              done
     5066
     5067              $show "${rm}r $d_dir"
     5068              $run ${rm}r "$d_dir"
     5069            else
     5070              $show "(cd $xdir && $AR x $xabs)"
     5071              $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
     5072            fi
     5073            ;;
     5074          *)
     5075            # We will extract separately just the conflicting names and we will no
     5076            # longer touch any unique names. It is faster to leave these extract
     5077            # automatically by $AR in one run.
     5078            $show "(cd $xdir && $AR x $xabs)"
     5079            $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
     5080            if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
     5081              :
     5082            else
     5083              $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
     5084              $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
     5085              $AR t "$xabs" | sort | uniq -cd | while read -r count name
     5086              do
     5087                i=1
     5088                while test "$i" -le "$count"
     5089                do
     5090                 # Put our $i before any first dot (extension)
     5091                 # Never overwrite any file
     5092                 name_to="$name"
     5093                 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
     5094                 do
     5095                   name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
     5096                 done
     5097                 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
     5098                 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
     5099                 i=`expr $i + 1`
     5100                done
     5101              done
     5102            fi
     5103            ;;
     5104          esac
     5105
     5106          oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
     5107        done
    50305108      fi
    50315109
    50325110      # Do each command in the archive commands.
    50335111      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
    5034        cmds=$old_archive_from_new_cmds
     5112        eval cmds=\"$old_archive_from_new_cmds\"
    50355113      else
    50365114        eval cmds=\"$old_archive_cmds\"
     
    50385116        if len=`expr "X$cmds" : ".*"` &&
    50395117             test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
    5040           cmds=$old_archive_cmds
     5118          :
    50415119        else
    50425120          # the command line is too long to link in one step, link in parts
     
    50655143          do
    50665144            last_oldobj=$obj
    5067           done
     5145          done 
    50685146          for obj in $save_oldobjs
    50695147          do
     
    50795157              if test "$obj" = "$last_oldobj" ; then
    50805158                RANLIB=$save_RANLIB
    5081               fi
    5082               test -z "$concat_cmds" || concat_cmds=$concat_cmds~
     5159              fi 
     5160              test -z "$concat_cmds" || concat_cmds=$concat_cmds${_S_}
    50835161              eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
    50845162              objlist=
     
    50905168            eval cmds=\"\$concat_cmds\"
    50915169          else
    5092             eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
    5093           fi
    5094         fi
    5095       fi
    5096       save_ifs="$IFS"; IFS='~'
     5170            eval cmds=\"\$concat_cmds${_S_}$old_archive_cmds\"
     5171          fi
     5172        fi
     5173      fi
     5174      save_ifs="$IFS"; IFS=$_S_
    50975175      for cmd in $cmds; do
    5098         eval cmd=\"$cmd\"
    50995176        IFS="$save_ifs"
    51005177        $show "$cmd"
     
    51285205      done
    51295206      # Quote the link command for shipping.
    5130       relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
     5207      relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
    51315208      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
    5132       if test "$hardcode_automatic" = yes ; then
    5133         relink_command=
    5134       fi
    5135 
    51365209
    51375210      # Only create the output if not a dry run.
     
    51525225                if test -z "$libdir"; then
    51535226                  $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
    5154                   exit $EXIT_FAILURE
     5227                  exit 1
    51555228                fi
    51565229                newdependency_libs="$newdependency_libs $libdir/$name"
     
    51665239              if test -z "$libdir"; then
    51675240                $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    5168                 exit $EXIT_FAILURE
     5241                exit 1
    51695242              fi
    51705243              newdlfiles="$newdlfiles $libdir/$name"
     
    51775250              if test -z "$libdir"; then
    51785251                $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    5179                 exit $EXIT_FAILURE
     5252                exit 1
    51805253              fi
    51815254              newdlprefiles="$newdlprefiles $libdir/$name"
    5182             done
    5183             dlprefiles="$newdlprefiles"
    5184           else
    5185             newdlfiles=
    5186             for lib in $dlfiles; do
    5187               case $lib in
    5188                 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
    5189                 *) abs=`pwd`"/$lib" ;;
    5190               esac
    5191               newdlfiles="$newdlfiles $abs"
    5192             done
    5193             dlfiles="$newdlfiles"
    5194             newdlprefiles=
    5195             for lib in $dlprefiles; do
    5196               case $lib in
    5197                 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
    5198                 *) abs=`pwd`"/$lib" ;;
    5199               esac
    5200               newdlprefiles="$newdlprefiles $abs"
    52015255            done
    52025256            dlprefiles="$newdlprefiles"
     
    52575311      ;;
    52585312    esac
    5259     exit $EXIT_SUCCESS
     5313    exit 0
    52605314    ;;
    52615315
     
    53465400      $echo "$modename: you must specify an install program" 1>&2
    53475401      $echo "$help" 1>&2
    5348       exit $EXIT_FAILURE
     5402      exit 1
    53495403    fi
    53505404
     
    53525406      $echo "$modename: the \`$prev' option requires an argument" 1>&2
    53535407      $echo "$help" 1>&2
    5354       exit $EXIT_FAILURE
     5408      exit 1
    53555409    fi
    53565410
     
    53625416      fi
    53635417      $echo "$help" 1>&2
    5364       exit $EXIT_FAILURE
     5418      exit 1
    53655419    fi
    53665420
     
    53835437        $echo "$modename: \`$dest' is not a directory" 1>&2
    53845438        $echo "$help" 1>&2
    5385         exit $EXIT_FAILURE
     5439        exit 1
    53865440      fi
    53875441    fi
     
    53955449          $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
    53965450          $echo "$help" 1>&2
    5397           exit $EXIT_FAILURE
     5451          exit 1
    53985452          ;;
    53995453        esac
     
    54245478          $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
    54255479          $echo "$help" 1>&2
    5426           exit $EXIT_FAILURE
     5480          exit 1
    54275481        fi
    54285482
     
    54665520          if test "$inst_prefix_dir" = "$destdir"; then
    54675521            $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
    5468             exit $EXIT_FAILURE
     5522            exit 1
    54695523          fi
    54705524
     
    54815535          else
    54825536            $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
    5483             exit $EXIT_FAILURE
     5537            exit 1
    54845538          fi
    54855539        fi
     
    55165570          # Do each command in the postinstall commands.
    55175571          lib="$destdir/$realname"
    5518           cmds=$postinstall_cmds
    5519           save_ifs="$IFS"; IFS='~'
     5572          eval cmds=\"$postinstall_cmds\"
     5573          save_ifs="$IFS"; IFS=$_S_
    55205574          for cmd in $cmds; do
    55215575            IFS="$save_ifs"
    5522             eval cmd=\"$cmd\"
    55235576            $show "$cmd"
    55245577            $run eval "$cmd" || exit $?
     
    55605613          $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
    55615614          $echo "$help" 1>&2
    5562           exit $EXIT_FAILURE
     5615          exit 1
    55635616          ;;
    55645617        esac
     
    55785631          $run eval "$install_prog \$staticobj \$staticdest" || exit $?
    55795632        fi
    5580         exit $EXIT_SUCCESS
     5633        exit 0
    55815634        ;;
    55825635
     
    56325685          if test -z "$notinst_deplibs"; then
    56335686            $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
    5634             exit $EXIT_FAILURE
     5687            exit 1
    56355688          fi
    56365689
     
    56735726              test -n "$TMPDIR" && tmpdir="$TMPDIR"
    56745727              tmpdir="$tmpdir/libtool-$$"
    5675               save_umask=`umask`
    5676               umask 0077
    5677               if $mkdir "$tmpdir"; then
    5678                 umask $save_umask
     5728              if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
    56795729              else
    5680                 umask $save_umask
    56815730                $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
    56825731                continue
     
    57375786      $run eval "$install_prog \$file \$oldlib" || exit $?
    57385787
    5739       if test -n "$stripme" && test -n "$old_striplib"; then
     5788      if test -n "$stripme" && test -n "$striplib"; then
    57405789        $show "$old_striplib $oldlib"
    57415790        $run eval "$old_striplib $oldlib" || exit $?
     
    57435792
    57445793      # Do each command in the postinstall commands.
    5745       cmds=$old_postinstall_cmds
    5746       save_ifs="$IFS"; IFS='~'
     5794      eval cmds=\"$old_postinstall_cmds\"
     5795      save_ifs="$IFS"; IFS=$_S_
    57475796      for cmd in $cmds; do
    57485797        IFS="$save_ifs"
    5749         eval cmd=\"$cmd\"
    57505798        $show "$cmd"
    57515799        $run eval "$cmd" || exit $?
     
    57615809      # Maybe just do a dry run.
    57625810      test -n "$run" && current_libdirs=" -n$current_libdirs"
    5763       exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
     5811      exec_cmd='$SHELL $0 --finish$current_libdirs'
    57645812    else
    5765       exit $EXIT_SUCCESS
     5813      exit 0
    57665814    fi
    57675815    ;;
     
    57825830        if test -n "$finish_cmds"; then
    57835831          # Do each command in the finish commands.
    5784           cmds=$finish_cmds
    5785           save_ifs="$IFS"; IFS='~'
     5832          eval cmds=\"$finish_cmds\"
     5833          save_ifs="$IFS"; IFS=$_S_
    57865834          for cmd in $cmds; do
    57875835            IFS="$save_ifs"
    5788             eval cmd=\"$cmd\"
    57895836            $show "$cmd"
    57905837            $run eval "$cmd" || admincmds="$admincmds
     
    58035850
    58045851    # Exit here if they wanted silent mode.
    5805     test "$show" = : && exit $EXIT_SUCCESS
     5852    test "$show" = : && exit 0
    58065853
    58075854    $echo "----------------------------------------------------------------------"
     
    58395886    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
    58405887    $echo "----------------------------------------------------------------------"
    5841     exit $EXIT_SUCCESS
     5888    exit 0
    58425889    ;;
    58435890
     
    58515898      $echo "$modename: you must specify a COMMAND" 1>&2
    58525899      $echo "$help"
    5853       exit $EXIT_FAILURE
     5900      exit 1
    58545901    fi
    58555902
     
    58595906        $echo "$modename: \`$file' is not a file" 1>&2
    58605907        $echo "$help" 1>&2
    5861         exit $EXIT_FAILURE
     5908        exit 1
    58625909      fi
    58635910
     
    58705917          $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    58715918          $echo "$help" 1>&2
    5872           exit $EXIT_FAILURE
     5919          exit 1
    58735920        fi
    58745921
     
    58975944        else
    58985945          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
    5899           exit $EXIT_FAILURE
     5946          exit 1
    59005947        fi
    59015948        ;;
     
    59696016
    59706017      # Now prepare to actually exec the command.
    5971       exec_cmd="\"\$cmd\"$args"
     6018      exec_cmd="\$cmd$args"
    59726019    else
    59736020      # Display what would be done.
     
    59766023        $echo "export $shlibpath_var"
    59776024      fi
    5978       eval \$echo \"\$cmd\"$args
    5979       exit $EXIT_SUCCESS
     6025      $echo "$cmd$args"
     6026      exit 0
    59806027    fi
    59816028    ;;
     
    60056052      $echo "$modename: you must specify an RM program" 1>&2
    60066053      $echo "$help" 1>&2
    6007       exit $EXIT_FAILURE
     6054      exit 1
    60086055    fi
    60096056
     
    60606107            if test -n "$library_names"; then
    60616108              # Do each command in the postuninstall commands.
    6062               cmds=$postuninstall_cmds
    6063               save_ifs="$IFS"; IFS='~'
     6109              eval cmds=\"$postuninstall_cmds\"
     6110              save_ifs="$IFS"; IFS=$_S_
    60646111              for cmd in $cmds; do
    60656112                IFS="$save_ifs"
    6066                 eval cmd=\"$cmd\"
    60676113                $show "$cmd"
    60686114                $run eval "$cmd"
     
    60766122            if test -n "$old_library"; then
    60776123              # Do each command in the old_postuninstall commands.
    6078               cmds=$old_postuninstall_cmds
    6079               save_ifs="$IFS"; IFS='~'
     6124              eval cmds=\"$old_postuninstall_cmds\"
     6125              save_ifs="$IFS"; IFS=$_S_
    60806126              for cmd in $cmds; do
    60816127                IFS="$save_ifs"
    6082                 eval cmd=\"$cmd\"
    60836128                $show "$cmd"
    60846129                $run eval "$cmd"
     
    61196164          noexename=$name
    61206165          case $file in
    6121           *.exe)
     6166          *.exe) 
    61226167            file=`$echo $file|${SED} 's,.exe$,,'`
    61236168            noexename=`$echo $name|${SED} 's,.exe$,,'`
     
    61646209    $echo "$modename: you must specify a MODE" 1>&2
    61656210    $echo "$generic_help" 1>&2
    6166     exit $EXIT_FAILURE
     6211    exit 1
    61676212    ;;
    61686213  esac
     
    61716216    $echo "$modename: invalid operation mode \`$mode'" 1>&2
    61726217    $echo "$generic_help" 1>&2
    6173     exit $EXIT_FAILURE
     6218    exit 1
    61746219  fi
    61756220fi # test -z "$show_help"
     
    61776222if test -n "$exec_cmd"; then
    61786223  eval exec $exec_cmd
    6179   exit $EXIT_FAILURE
     6224  exit 1
    61806225fi
    61816226
     
    62136258
    62146259Report bugs to <bug-libtool@gnu.org>."
    6215   exit $EXIT_SUCCESS
     6260  exit 0
    62166261  ;;
    62176262
     
    63256370  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
    63266371  -objectlist FILE  Use a list of object files found in FILE to specify objects
    6327   -precious-files-regex REGEX
    6328                     don't remove output files matching REGEX
    63296372  -release RELEASE  specify package release information
    63306373  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
     
    63686411  $echo "$modename: invalid operation mode \`$mode'" 1>&2
    63696412  $echo "$help" 1>&2
    6370   exit $EXIT_FAILURE
     6413  exit 1
    63716414  ;;
    63726415esac
     
    63756418$echo "Try \`$modename --help' for more information about other modes."
    63766419
    6377 exit $EXIT_SUCCESS
     6420exit 0
    63786421
    63796422# The TAGs below are defined such that we never get into a situation
  • trunk/psLib/share/pslib

    • Property svn:ignore set to
      psTime.config
      psTime.xml
  • trunk/psLib/src/config.h.in

    r3191 r3199  
    2929/* Define to 1 if you have the <inttypes.h> header file. */
    3030#undef HAVE_INTTYPES_H
    31 
    32 /* Define to 1 if you have the `mx' library (-lmx). */
    33 #undef HAVE_LIBMX
    3431
    3532/* Define to 1 if you have the <memory.h> header file. */
     
    8683/* Location of the psTime.xml file */
    8784#undef XML_CONFIG_FILE
     85
     86/* Enable GNU extensions on systems that have them. */
     87#ifndef _GNU_SOURCE
     88# define _GNU_SOURCE
     89#endif
     90
Note: See TracChangeset for help on using the changeset viewer.