debian/0000755000000000000000000000000012226272171007170 5ustar debian/control0000644000000000000000000000334012226267461010601 0ustar Source: recode Section: text Priority: optional Maintainer: Santiago Vila Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), gettext, texinfo Package: recode Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Character set conversion utility Free `recode' converts files between character sets and usages. When exact transliterations are not possible, it may get rid of the offending characters or fall back on approximations. This program recognizes or produces nearly 300 different character sets and is able to transliterate files between almost any pair. Most RFC 1345 character sets, and all `libiconv' character sets, are supported. Package: recode-doc Section: doc Priority: optional Architecture: all Depends: ${misc:Depends} Description: Documentation for Free recode This package contains the HTML documentation for Free recode. Package: librecode0 Section: libs Priority: optional Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Shared library on which recode is based This recoding library converts files between various coded character sets and surface encodings. The library recognizes or produces more than 300 different character sets and is able to convert files between almost any pair. Most RFC 1345 character sets, and all `libiconv' character sets, are supported. Package: librecode-dev Section: libdevel Priority: optional Architecture: any Depends: ${shlibs:Depends}, librecode0 (= ${binary:Version}), ${misc:Depends} Description: Development package for librecode0 This package contains the header files and static librecode.a library needed to build applications based on librecode. debian/fix-libtool0000644000000000000000000000027211763633216011352 0ustar #!/bin/sh echo Fixing libtool for -rpath problems. sed -e 's/^hardcode_libdir_flag_spec=.*/hardcode_libdir_flag_spec=" "/' libtool > libtool.new mv libtool.new libtool chmod 755 libtool debian/librecode-dev.install0000644000000000000000000000007111763103440013257 0ustar usr/include usr/lib/*/librecode.so usr/lib/*/librecode.a debian/rules0000755000000000000000000000177412226270323010256 0ustar #!/usr/bin/make -f %: dh $@ package = recode override_dh_auto_clean: dh_auto_clean rm -f i18n/*.mo rm -f doc/*.html rm -f src/recode.1 rm -f stamp-pot rm -rf doc/$(package) override_dh_auto_configure: touch aclocal.m4 touch configure touch stamp-h.in touch config.h.in touch Makefile.in touch m4/Makefile.in touch doc/Makefile.in touch lib/Makefile.in touch libiconv/Makefile.in touch i18n/Makefile.in touch src/Makefile.in touch tests/Makefile.in touch contrib/Makefile.in dh_auto_configure -- --without-included-gettext sh debian/fix-libtool override_dh_auto_build: LD_LIBRARY_PATH=`pwd`/src/.libs dh_auto_build override_dh_auto_test: LD_LIBRARY_PATH=`pwd`/src/.libs dh_auto_test override_dh_installdocs: install -d debian/lib$(package)-dev/usr/share/doc ln -s lib$(package)0 debian/lib$(package)-dev/usr/share/doc/lib$(package)-dev cd doc && makeinfo --html --split=chapter $(package).texi dh_installdocs -i doc/$(package)/*.html dh_installdocs -a TODO NEWS THANKS doc/File-Latin1 debian/librecode0.shlibs0000644000000000000000000000004007442173456012412 0ustar librecode 0 librecode0 (>= 3.6) debian/compat0000644000000000000000000000000211763103440010363 0ustar 9 debian/patches/0000755000000000000000000000000012226270217010616 5ustar debian/patches/01-no-usr-share-info-dir-gz0000644000000000000000000000073711763103440015432 0ustar From: Santiago Vila Subject: Modified doc/Makefile.in to avoid /usr/share/info/dir.gz X-Debian-version: 3.6-16 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -223,7 +223,7 @@ done; \ done @$(POST_INSTALL) - @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ + @if false; then \ list='$(INFO_DEPS)'; \ for file in $$list; do \ echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\ debian/patches/99-config-guess-config-sub0000644000000000000000000027352112226270160015432 0ustar From: Santiago Vila Subject: Updated config.guess and config.sub Bug-Debian: http://bugs.debian.org/95974 Bug-Debian: http://bugs.debian.org/201945 Bug-Debian: http://bugs.debian.org/333452 X-Debian-version: 3.6-2 X-Debian-version: 3.6-8 X-Debian-version: 3.6-12 X-Debian-version: 3.6-13 X-Debian-version: 3.6-16 X-Debian-version: 3.6-19 X-Debian-version: 3.6-21 --- a/config.guess +++ b/config.guess @@ -1,11 +1,12 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 -# Free Software Foundation, Inc. -# +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-06-10' + # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -14,157 +15,318 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Written by Per Bothner . -# The master version of this file is at the FSF in /home/gd/gnu/lib. -# Please send patches to . +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). # -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. +# Originally written by Per Bothner. # -# The plan is that this can be called by configure scripts if you -# don't specify an explicit system type (host/target name). -# -# Only a few systems have been added to this list; please add others -# (but try to keep the structure clean). +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # +# Please send patches with a ChangeLog entry to config-patches@gnu.org. -# Use $HOST_CC if defined. $CC may point to a cross-compiler -if test x"$CC_FOR_BUILD" = x; then - if test x"$HOST_CC" != x; then - CC_FOR_BUILD="$HOST_CC" - else - if test x"$CC" != x; then - CC_FOR_BUILD="$CC" - else - CC_FOR_BUILD=cc - fi - fi + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2013 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 fi +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 8/24/94.) +# (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -dummy=dummy-$$ -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then + case $UNAME_RELEASE in + *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - cat <$dummy.s - .globl main - .ent main -main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - fi - rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit 0 ;; + exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit 0 ;; + exit ;; Amiga*:UNIX_System_V:4.0:*) - echo m68k-cbm-sysv4 - exit 0;; - amiga:NetBSD:*:*) - echo m68k-cbm-netbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + echo m68k-unknown-sysv4 + exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - arc64:OpenBSD:*:*) - echo mips64el-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hkmips:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - arm32:NetBSD:*:*) - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - SR2?01:HI-UX/MPP:*:*) + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit 0;; + exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -172,25 +334,51 @@ else echo pyramid-pyramid-bsd fi - exit 0 ;; + exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit 0 ;; + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -199,12 +387,12 @@ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; + exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) @@ -214,81 +402,59 @@ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit 0 ;; + exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - atari*:NetBSD:*:*) - echo m68k-atari-netbsd${UNAME_RELEASE} - exit 0 ;; - atari*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor + # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; - sun3*:NetBSD:*:*) - echo m68k-sun-netbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:NetBSD:*:*) - echo m68k-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - macppc:NetBSD:*:*) - echo powerpc-apple-netbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit 0 ;; + exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; + exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus +#include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { @@ -307,61 +473,82 @@ exit (-1); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy \ - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit 0 ;; + exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit 0 ;; + exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit 0 ;; + exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then echo m88k-dg-dgux${UNAME_RELEASE} - else + else echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} fi - else echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit 0 ;; + exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit 0 ;; + exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit 0 ;; + exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; + exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i?86:AIX:*:*) + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) echo i386-ibm-aix - exit 0 ;; + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include @@ -373,18 +560,21 @@ exit(0); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo rs6000-ibm-aix3.2.5 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit 0 ;; - *:AIX:*:4) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc @@ -392,74 +582,119 @@ if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else - IBM_REV=4.${UNAME_RELEASE} + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:*:*) echo rs6000-ibm-aix - exit 0 ;; + exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 + exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit 0 ;; + exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit 0 ;; + exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit 0 ;; + exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit 0 ;; + exit ;; 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) - sed 's/^ //' << EOF >$dummy.c - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } EOF - ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` - rm -f $dummy.c $dummy + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; esac - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; 3050*:HI-UX:*:*) + eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int @@ -485,410 +720,459 @@ exit (0); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 - exit 0 ;; + exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit 0 ;; + exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit 0 ;; - *9??*:MPE/iX:*:*) + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit 0 ;; + exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit 0 ;; + exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit 0 ;; - i?86:OSF1:*:*) + exit ;; + i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit 0 ;; + exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit 0 ;; - hppa*:OpenBSD:*:*) - echo hppa-unknown-openbsd - exit 0 ;; + exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit 0 ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit 0 ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit 0 ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit 0 ;; - CRAY*X-MP:*:*:*) - echo xmp-cray-unicos - exit 0 ;; + exit ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} - exit 0 ;; + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ - exit 0 ;; + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} - exit 0 ;; + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; CRAY*T3E:*:*:*) - echo alpha-cray-unicosmk${UNAME_RELEASE} - exit 0 ;; - CRAY-2:*:*:*) - echo cray2-cray-unicos - exit 0 ;; - F300:UNIX_System_V:*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - F301:UNIX_System_V:*:*) - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` - exit 0 ;; - hp3[0-9][05]:NetBSD:*:*) - echo m68k-hp-netbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - i?86:BSD/386:*:* | i?86:BSD/OS:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:FreeBSD:*:*) - if test -x /usr/bin/objformat; then - if test "elf" = "`/usr/bin/objformat`"; then - echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` - exit 0 - fi - fi - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; - *:NetBSD:*:*) - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? - echo i386-pc-interix - exit 0 ;; + echo i586-pc-interix + exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit 0 ;; + exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; *:GNU:*:*) - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - *:Linux:*:*) - # uname on the ARM produces all sorts of strangeness, and we need to - # filter it out. - case "$UNAME_MACHINE" in - armv*) UNAME_MACHINE=$UNAME_MACHINE ;; - arm* | sa110*) UNAME_MACHINE="arm" ;; + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; esac - - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - ld_help_string=`cd /; ld --help 2>&1` - ld_supported_emulations=`echo $ld_help_string \ - | sed -ne '/supported emulations:/!d - s/[ ][ ]*/ /g - s/.*supported emulations: *// - s/ .*// - p'` - case "$ld_supported_emulations" in - *ia64) echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 ;; - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - elf32ppc | elf32ppclinux) - # Determine Lib Version - cat >$dummy.c < -#if defined(__GLIBC__) -extern char __libc_version[]; -extern char __libc_release[]; -#endif -main(argc, argv) - int argc; - char *argv[]; -{ -#if defined(__GLIBC__) - printf("%s %s\n", __libc_version, __libc_release); -#else - printf("unkown\n"); -#endif - return 0; -} -EOF - LIBC="" - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy | grep 1\.99 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f $dummy.c $dummy - echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; - esac - - if test "${UNAME_MACHINE}" = "alpha" ; then - sed 's/^ //' <$dummy.s - .globl main - .ent main - main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - LIBC="" - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - - objdump --private-headers $dummy | \ - grep ld.so.1 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 - elif test "${UNAME_MACHINE}" = "mips" ; then - cat >$dummy.c </dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else - # Either a pre-BFD a.out linker (linux-gnuoldld) - # or one that does not give us useful --help. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. - # If ld does not provide *any* "supported emulations:" - # that means it is gnuoldld. - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 - - case "${UNAME_MACHINE}" in - i?86) - VENDOR=pc; - ;; - *) - VENDOR=unknown; - ;; - esac - # Determine whether the default compiler is a.out or elf - cat >$dummy.c < -#ifdef __cplusplus - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif -#ifdef __ELF__ -# ifdef __GLIBC__ -# if __GLIBC__ >= 2 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -#else - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); -#endif - return 0; -} + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif EOF - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - fi ;; -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions -# are messed up and put the nodename in both sysname and nodename. - i?86:DYNIX/ptx:4*:*) + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. echo i386-sequent-sysv4 - exit 0 ;; - i?86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. + # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit 0 ;; - i?86:*:5:7*) - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586 - (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585 - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE} - exit 0 ;; - i?86:*:3.2:*) + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi - exit 0 ;; + exit ;; pc:*:*:*) - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 - exit 0 ;; + exit ;; paragon:*:*:*) echo i860-intel-osf1 - exit 0 ;; + exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit 0 ;; + exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit 0 ;; - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) + exit ;; + rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; + exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -896,59 +1180,188 @@ else echo ns32k-sni-sysv fi - exit 0 ;; - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit 0 ;; + exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit 0 ;; + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:*:6*) + exit ;; + news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit 0 ;; + exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv${UNAME_RELEASE} else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv${UNAME_RELEASE} fi - exit 0 ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit 0 ;; + exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit 0 ;; + exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit 0 ;; + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; esac -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - +eval $set_cc_for_build cat >$dummy.c < @@ -965,16 +1378,16 @@ #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 - "4" + "4" #else - "" + "" #endif - ); exit (0); + ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); + printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1035,11 +1448,24 @@ #endif #if defined (vax) -#if !defined (ultrix) - printf ("vax-dec-bsd\n"); exit (0); -#else - printf ("vax-dec-ultrix\n"); exit (0); -#endif +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif #endif #if defined (alliant) && defined (i860) @@ -1050,12 +1476,12 @@ } EOF -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 -rm -f $dummy.c $dummy +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) @@ -1064,25 +1490,69 @@ case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit 0 ;; + exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; c34*) echo c34-convex-bsd - exit 0 ;; + exit ;; c38*) echo c38-convex-bsd - exit 0 ;; + exit ;; c4*) echo c4-convex-bsd - exit 0 ;; + exit ;; esac fi -#echo '(Unable to guess system type)' 1>&2 +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: --- a/config.sub +++ b/config.sub @@ -1,35 +1,40 @@ #! /bin/sh -# Configuration validation subroutine script, version 1.1. -# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# Configuration validation subroutine script. +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-08-10' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# along with this program; if not, see . +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + +# Please send patches with a ChangeLog entry to config-patches@gnu.org. +# # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. @@ -45,33 +50,83 @@ # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. -if [ x$1 = x ] -then - echo Configuration name missing. 1>&2 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 - echo "or $0 ALIAS" 1>&2 - echo where ALIAS is a recognized configuration type. 1>&2 - exit 1 -fi +me=`echo "$0" | sed -e 's,.*/,,'` -# First pass through any local machine types. -case $1 in - *local*) - echo $1 - exit 0 - ;; - *) - ;; +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2013 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - linux-gnu*) + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] @@ -94,10 +149,13 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple) + -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; + -bluegene*) + os=-cnk + ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 @@ -108,9 +166,21 @@ os=-vxworks basic_machine=$1 ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -127,6 +197,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -144,6 +218,12 @@ -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; -lynx*) os=-lynxos ;; @@ -166,27 +246,113 @@ case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ - | 580 | i960 | h8300 \ - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ - | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ - | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ - | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ - | mips64orion | mips64orionel | mipstx39 | mipstx39el \ - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ - | mips64vr5000 | miprs64vr5000el | mcore \ - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ - | thumb | d10v) + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ + | bfin \ + | c4x | c8051 | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | epiphany \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ + | ns16k | ns32k \ + | open8 \ + | or1k | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pyramid \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65) + + xscaleel) + basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. - i[34567]86) + i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. @@ -195,24 +361,84 @@ exit 1 ;; # Recognize the basic CPU types with company name. - # FIXME: clean up the formatting here. - vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ - | xmp-* | ymp-* \ - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ - | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ - | clipper-* | orion-* \ - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ - | mips64el-* | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ - | mipstx39-* | mipstx39el-* | mcore-* \ - | f301-* | armv*-* | t3e-* \ - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ - | thumb-* | v850-* | d30v-* | tic30-* | c30-* ) + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | c8051-* | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pyramid-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -230,6 +456,9 @@ basic_machine=a29k-amd os=-udi ;; + abacus) + basic_machine=abacus-unknown + ;; adobe68k) basic_machine=m68010-adobe os=-scout @@ -244,19 +473,25 @@ basic_machine=a29k-none os=-bsd ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) - basic_machine=m68k-cbm + basic_machine=m68k-unknown ;; amigaos | amigados) - basic_machine=m68k-cbm + basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) - basic_machine=m68k-cbm + basic_machine=m68k-unknown os=-sysv4 ;; apollo68) @@ -267,6 +502,10 @@ basic_machine=m68k-apollo os=-bsd ;; + aros) + basic_machine=i386-pc + os=-aros + ;; aux) basic_machine=m68k-apple os=-aux @@ -275,6 +514,35 @@ basic_machine=ns32k-sequent os=-dynix ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; convex-c1) basic_machine=c1-convex os=-bsd @@ -295,27 +563,45 @@ basic_machine=c38-convex os=-bsd ;; - cray | ymp) - basic_machine=ymp-cray + cray | j90) + basic_machine=j90-cray os=-unicos ;; - cray2) - basic_machine=cray2-cray - os=-unicos + craynv) + basic_machine=craynv-cray + os=-unicosmp ;; - [ctj]90-cray) - basic_machine=c90-cray - os=-unicos + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf ;; crds | unos) basic_machine=m68k-crds ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola @@ -324,6 +610,14 @@ basic_machine=m88k-motorola os=-sysv3 ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -357,6 +651,10 @@ basic_machine=tron-gmicro os=-sysv ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 @@ -430,22 +728,20 @@ ;; i370-ibm* | ibm*) basic_machine=i370-ibm - os=-mvs ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i[34567]86v32) + i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; - i[34567]86v4*) + i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; - i[34567]86v) + i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; - i[34567]86sol2) + i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; @@ -457,14 +753,6 @@ basic_machine=i386-unknown os=-vsta ;; - i386-go32 | go32) - basic_machine=i386-unknown - os=-go32 - ;; - i386-mingw32 | mingw32) - basic_machine=i386-unknown - os=-mingw32 - ;; iris | iris4d) basic_machine=mips-sgi case $os in @@ -479,6 +767,14 @@ basic_machine=m68k-isi os=-sysv ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; m88k-omron*) basic_machine=m88k-omron ;; @@ -490,6 +786,21 @@ basic_machine=ns32k-utek os=-sysv ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; + mingw32) + basic_machine=i686-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; miniframe) basic_machine=m68000-convergent ;; @@ -497,14 +808,6 @@ basic_machine=m68k-atari os=-mint ;; - mipsel*-linux*) - basic_machine=mipsel-unknown - os=-linux-gnu - ;; - mips*-linux*) - basic_machine=mips-unknown - os=-linux-gnu - ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; @@ -515,10 +818,29 @@ basic_machine=m68k-rom68k os=-coff ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; msdos) - basic_machine=i386-unknown + basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i686-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; ncr3000) basic_machine=i486-ncr os=-sysv4 @@ -528,7 +850,7 @@ os=-netbsd ;; netwinder) - basic_machine=armv4l-corel + basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) @@ -576,13 +898,33 @@ basic_machine=i960-intel os=-mon960 ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; np1) basic_machine=np1-gould ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose @@ -599,51 +941,94 @@ basic_machine=i860-intel os=-osf ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; - pc532 | pc532-*) + pc532 | pc532-*) basic_machine=ns32k-pc532 ;; - pentium | p5 | k5 | k6 | nexen) + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; - pentiumpro | p6 | 6x86) + pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; - pentiumii | pentium2) + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) basic_machine=i786-pc ;; - pentium-* | p5-* | k5-* | k6-* | nexen-*) + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; - pentiumpro-* | p6-* | 6x86-*) + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; - pentiumii-* | pentium2-*) + pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; - power) basic_machine=rs6000-ibm + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown - ;; + ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; ps2) basic_machine=i386-ibm ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -654,10 +1039,30 @@ rtpc | rtpc-*) basic_machine=romp-ibm ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; sa29200) basic_machine=a29k-amd os=-udi ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; sequent) basic_machine=i386-sequent ;; @@ -665,7 +1070,13 @@ basic_machine=sh-hitachi os=-hms ;; - sparclite-wrs) + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; @@ -683,6 +1094,9 @@ basic_machine=i860-stratus os=-sysv4 ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; sun2) basic_machine=m68000-sun ;; @@ -723,23 +1137,43 @@ sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) - basic_machine=t3e-cray + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray os=-unicos ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; tower | tower-32) basic_machine=m68k-ncr ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; udi29k) basic_machine=a29k-amd os=-udi @@ -761,8 +1195,8 @@ os=-vms ;; vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; + basic_machine=f301-fujitsu + ;; vxworks960) basic_machine=i960-wrs os=-vxworks @@ -783,17 +1217,28 @@ basic_machine=hppa1.1-winbond os=-proelf ;; - xmp) - basic_machine=xmp-cray - os=-unicos + xbox) + basic_machine=i686-pc + os=-mingw32 ;; - xps | xps100) + xps | xps100) basic_machine=xps100-honeywell ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; none) basic_machine=none-none os=-none @@ -810,32 +1255,35 @@ op60c) basic_machine=hppa1.1-oki ;; - mips) - if [ x$os = x-linux-gnu ]; then - basic_machine=mips-unknown - else - basic_machine=mips-mips - fi - ;; romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; - sparc | sparcv9) + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; - cydra) + cydra) basic_machine=cydra-cydrome ;; orion) @@ -850,9 +1298,8 @@ pmac | pmac-mpw) basic_machine=powerpc-apple ;; - c4x*) - basic_machine=c4x-none - os=-coff + *-unknown) + # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 @@ -877,9 +1324,12 @@ if [ x"$os" != x"" ] then case $os in - # First match some system type aliases - # that might get confused with valid system types. + # First match some system type aliases + # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; @@ -900,28 +1350,57 @@ # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ + | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*) + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ - | -macos* | -mpw* | -magic* | -mon960* | -lnews*) + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; @@ -931,6 +1410,15 @@ -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; -osfrose*) os=-osfrose ;; @@ -946,14 +1434,26 @@ -acis*) os=-aos ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; + -nova*) + os=-rtmk-nova + ;; -ns2 ) - os=-nextstep2 + os=-nextstep2 + ;; + -nsk*) + os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) @@ -962,6 +1462,9 @@ -sinix*) os=-sysv4 ;; + -tpf*) + os=-tpf + ;; -triton*) os=-sysv3 ;; @@ -989,8 +1492,19 @@ -xenix) os=-xenix ;; - -*mint | -*MiNT) - os=-mint + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) ;; -none) ;; @@ -1014,16 +1528,44 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; *-acorn) os=-riscix1.2 ;; - arm*-corel) + arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; - pdp11-*) + c4x-* | tic4x-*) + os=-coff + ;; + c8051-*) + os=-elf + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) os=-none ;; *-dec | vax-*) @@ -1037,19 +1579,25 @@ ;; m68000-sun) os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 ;; m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; + or1k-*) + os=-elf + ;; + or32-*) + os=-coff + ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; @@ -1059,9 +1607,15 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; @@ -1113,25 +1667,25 @@ *-next) os=-nextstep3 ;; - *-gould) + *-gould) os=-sysv ;; - *-highlevel) + *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; - *-sgi) + *-sgi) os=-irix ;; - *-siemens) + *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; - f301-fujitsu) + f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) @@ -1164,7 +1718,7 @@ -sunos*) vendor=sun ;; - -aix*) + -cnk*|-aix*) vendor=ibm ;; -beos*) @@ -1191,13 +1745,19 @@ -genix*) vendor=ns ;; - -mvs*) + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; - -vxsim* | -vxworks*) + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) @@ -1209,12 +1769,23 @@ -mpw* | -macos*) vendor=apple ;; - -*mint | -*MiNT) + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; + -vos*) + vendor=stratus + ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: debian/patches/12-src-names-c-format-string0000644000000000000000000000061511763103440015663 0ustar From: Santiago Vila Subject: Use %s to print a string, not the string itself X-Debian-version: 3.6-19 --- a/src/names.c +++ b/src/names.c @@ -907,7 +907,7 @@ if (ucs2 >= 0) printf (format, code); else if (mnemonic || counter2 != 112) - printf (blanks); + printf ("%s", blanks); if (mnemonic) printf (counter2 == 112 ? " %s\n" : " %-3s", mnemonic); debian/patches/08-all-linguas-update0000644000000000000000000000136111763103440014455 0ustar From: Santiago Vila Subject: Update for ALL_LINGUAS X-Debian-version: 3.6-9 X-Debian-version: 3.6-14 X-Debian-version: 3.6-19 --- a/configure +++ b/configure @@ -987,7 +987,7 @@ esac -ALL_LINGUAS="da de el es fr gl it nl pl pt sl sv" +ALL_LINGUAS="be ca cs da de el eo es fi fr ga gl he hu id it nl pl pt pt_BR ro sk sl sv tr vi zh_CN" # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 --- a/configure.in +++ b/configure.in @@ -7,7 +7,7 @@ AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(recode, 3.6) AT_CONFIG(../src) -ALL_LINGUAS="da de el es fr gl it nl pl pt sl sv" +ALL_LINGUAS="be ca cs da de el eo es fi fr ga gl he hu id it nl pl pt pt_BR ro sk sl sv tr vi zh_CN" AC_PROG_CC AC_AIX debian/patches/05-src-request-c-pointer-recalculation0000644000000000000000000000110511763103440017754 0ustar From: Enrik Berkhan Subject: Fixes wrong pointer recalculation Bug-Debian: http://bugs.debian.org/156635 X-Debian-version: 3.6-7 --- a/src/request.c +++ b/src/request.c @@ -1073,7 +1073,7 @@ if (task->output.cursor + 4 >= task->output.limit) { RECODE_OUTER outer = task->request->outer; - size_t old_size = task->output.limit - task->output.buffer; + size_t old_size = task->output.cursor - task->output.buffer; size_t new_size = task->output.cursor + 4 - task->output.buffer; /* FIXME: Rethink about how the error should be reported. */ debian/patches/03-src-task-c-librecode0000644000000000000000000000070011763103440014651 0ustar From: Enrik Berkhan Subject: Fixed a librecode bug in recode_perform_task Bug-Debian: http://bugs.debian.org/134899 X-Debian-version: 3.6-5 --- a/src/task.c +++ b/src/task.c @@ -1198,6 +1198,8 @@ else success = transform_mere_copy (subtask); + task->output = subtask->output; + if (subtask->input.name && *subtask->input.name) fclose (subtask->input.file); if (subtask->output.name && *subtask->output.name) debian/patches/10-src-recodext-h-gcc-fix0000644000000000000000000000055011763103440015122 0ustar From: François Pinard Subject: Fixes FTBFS with gcc-4.3 Bug-Debian: http://bugs.debian.org/462004 X-Debian-version: 3.6-15 --- a/src/recodext.h +++ b/src/recodext.h @@ -218,7 +218,7 @@ enum recode_symbol_type type : 3; /* Non zero if this one should be ignored. */ - bool ignore : 2; + bool ignore : 1; }; struct recode_surface_list debian/patches/04-src-hash-h-php4-collision0000644000000000000000000000107011763103440015555 0ustar From: Steve Langasek Subject: Prevent collisions with php4 Bug-Debian: http://bugs.debian.org/131080 X-Debian-version: 3.6-6 --- a/src/hash.h +++ b/src/hash.h @@ -21,6 +21,11 @@ /* Make sure USE_OBSTACK is defined to 1 if you want the allocator to use obstacks instead of malloc, and recompile `hash.c' with same setting. */ +#define hash_lookup recode_hash_lookup +#define hash_delete recode_hash_delete +#define hash_free recode_hash_free +#define hash_insert recode_hash_insert + #ifndef PARAMS # if PROTOTYPES || __STDC__ # define PARAMS(Args) Args debian/patches/06-libtool-update0000644000000000000000000303541211763103440013716 0ustar From: Santiago Vila Subject: Libtool update Bug-Debian: http://bugs.debian.org/201945 X-Debian-version: 3.6-8 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,5 +1,6 @@ -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*- -## Copyright (C) 1996-1999 Free Software Foundation, Inc. +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- +## Copyright 1996, 1997, 1998, 1999, 2000, 2001 +## Free Software Foundation, Inc. ## Originally by Gordon Matzigkeit , 1996 ## ## This program is free software; you can redistribute it and/or modify @@ -21,134 +22,3028 @@ ## configuration script generated by Autoconf, you may include it under ## the same distribution terms that you use for the rest of that program. -# serial 40 AC_PROG_LIBTOOL -AC_DEFUN(AC_PROG_LIBTOOL, +# serial 46 AC_PROG_LIBTOOL +# Debian $Rev: 50 $ + +AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -# Save cache, so that ltconfig can load it -AC_CACHE_SAVE +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +]) + +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.13)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl +AC_REQUIRE([LT_AC_PROG_SED])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl + +_LT_AC_PROG_ECHO_BACKSLASH +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE(libtool-lock, + [ --disable-libtool-lock avoid locking (might break parallel builds)]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_SAVE + AC_LANG_C + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_RESTORE]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, + [AC_TRY_LINK([], + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); + DllMain (0, 0, 0);], + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) + + case $host/$CC in + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) + # old mingw systems require "-dll" to link a DLL, while more recent ones + # require "-mdll" + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mdll" + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) + CFLAGS="$SAVE_CFLAGS" ;; + *-*-cygwin* | *-*-pw32*) + # cygwin systems need to pass --dll to the linker, and not link + # crt.o which will require a WinMain@16 definition. + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; + esac + ;; + ]) +esac + +_LT_AC_LTCONFIG_HACK + +]) + +# AC_LIBTOOL_HEADER_ASSERT +# ------------------------ +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], +[AC_CACHE_CHECK([whether $CC supports assert without backlinking], + [lt_cv_func_assert_works], + [case $host in + *-*-solaris*) + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then + case `$CC --version 2>/dev/null` in + [[12]].*) lt_cv_func_assert_works=no ;; + *) lt_cv_func_assert_works=yes ;; + esac + fi + ;; + esac]) + +if test "x$lt_cv_func_assert_works" = xyes; then + AC_CHECK_HEADERS(assert.h) +fi +])# AC_LIBTOOL_HEADER_ASSERT + +# _LT_AC_CHECK_DLFCN +# -------------------- +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h) +])# _LT_AC_CHECK_DLFCN + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform the above into a raw symbol and a C symbol. +symxfrm='\1 \2\3 \3' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris* | sysv5*) + symcode='[[BDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $host_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then + symcode='[[ABCDGISTW]]' +fi + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then + if egrep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr void * +#else +# define lt_ptr char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr address; +} +lt_preloaded_symbols[[]] = +{ +EOF + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$no_builtin_flag" + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC + fi + else + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC + fi + else + echo "$progname: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" +if test -z "$lt_cv_sys_global_symbol_pipe"; then + global_symbol_to_cdecl= + global_symbol_to_c_name_address= +else + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" +fi +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; +then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR +# --------------------------------- +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], +[# Find the correct PATH separator. Usually this is `:', but +# DJGPP uses `;' like DOS. +if test "X${PATH_SEPARATOR+set}" != Xset; then + UNAME=${UNAME-`uname 2>/dev/null`} + case X$UNAME in + *-DOS) lt_cv_sys_path_separator=';' ;; + *) lt_cv_sys_path_separator=':' ;; + esac + PATH_SEPARATOR=$lt_cv_sys_path_separator +fi +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null && + echo_test_string="`eval $cmd`" && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +AC_DIVERT_POP +])# _LT_AC_PROG_ECHO_BACKSLASH + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ------------------------------------------------------------------ +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[if test "$cross_compiling" = yes; then : + [$4] +else + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_unknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + +# AC_LIBTOOL_DLOPEN_SELF +# ------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + cygwin* | mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + +AC_DEFUN([_LT_AC_LTCONFIG_HACK], +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e s/^X//' +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" +need_locks="$enable_libtool_lock" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +if test x"$host" != x"$build"; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + +# Transform linux* to *-*-linux-gnu*, to support old configure scripts. +case $host_os in +linux-gnu*) ;; +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` +esac + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +# Allow CC to be a program name with arguments. +set dummy $CC +compiler="[$]2" + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([for objdir]) +rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + objdir=_libs +fi +rmdir .libs 2>/dev/null +AC_MSG_RESULT($objdir) +## +## END FIXME + + +## FIXME: this should be a separate macro +## +AC_ARG_WITH(pic, +[ --with-pic try to use only PIC/non-PIC objects [default=use both]], +pic_mode="$withval", pic_mode=default) +test -z "$pic_mode" && pic_mode=default + +# We assume here that the value for lt_cv_prog_cc_pic will not be cached +# in isolation, and that seeing it set (from the cache) indicates that +# the associated values are set (in the cache) correctly too. +AC_MSG_CHECKING([for $compiler option to produce PIC]) +AC_CACHE_VAL(lt_cv_prog_cc_pic, +[ lt_cv_prog_cc_pic= + lt_cv_prog_cc_shlib= + lt_cv_prog_cc_wl= + lt_cv_prog_cc_static= + lt_cv_prog_cc_no_builtin= + lt_cv_prog_cc_can_build_shared=$can_build_shared + + if test "$GCC" = yes; then + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-static' + + case $host_os in + aix*) + # Below there is a dirty hack to force normal static linking with -ldl + # The problem is because libdl dynamically linked with both libc and + # libC (AIX C++ library), which obviously doesn't included in libraries + # list by gcc. This cause undefined symbols with -static flags. + # This hack allows C programs to be linked with "-static -ldl", but + # not sure about C++ programs. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_cv_prog_cc_pic='-fno-common' + ;; + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_cv_prog_cc_pic=-Kconform_pic + fi + ;; + *) + lt_cv_prog_cc_pic='-fPIC' + ;; + esac + else + # PORTME Check for PIC flags for the system compiler. + case $host_os in + aix3* | aix4* | aix5*) + lt_cv_prog_cc_wl='-Wl,' + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_cv_prog_cc_static='-Bstatic' + else + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + hpux9* | hpux10* | hpux11*) + # Is there a better lt_cv_prog_cc_static that works with the bundled CC? + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" + lt_cv_prog_cc_pic='+Z' + ;; + + irix5* | irix6* | nonstopux*) + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + # PIC (with -KPIC) is the default. + ;; + + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + + newsos6) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + ;; + + osf3* | osf4* | osf5*) + # All OSF/1 code is PIC. + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + ;; + + sco3.2v5*) + lt_cv_prog_cc_pic='-Kpic' + lt_cv_prog_cc_static='-dn' + lt_cv_prog_cc_shlib='-belf' + ;; + + solaris*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + sunos4*) + lt_cv_prog_cc_pic='-PIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Qoption ld ' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + uts4*) + lt_cv_prog_cc_pic='-pic' + lt_cv_prog_cc_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_cv_prog_cc_pic='-Kconform_pic' + lt_cv_prog_cc_static='-Bstatic' + fi + ;; + + *) + lt_cv_prog_cc_can_build_shared=no + ;; + esac + fi +]) +if test -z "$lt_cv_prog_cc_pic"; then + AC_MSG_RESULT([none]) +else + AC_MSG_RESULT([$lt_cv_prog_cc_pic]) + + # Check to make sure the pic_flag actually works. + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" + AC_TRY_COMPILE([], [], [dnl + case $host_os in + hpux9* | hpux10* | hpux11*) + # On HP-UX, both CC and GCC only warn that PIC is supported... then + # they create non-PIC objects. So, if there were any warnings, we + # assume that PIC is not supported. + if test -s conftest.err; then + lt_cv_prog_cc_pic_works=no + else + lt_cv_prog_cc_pic_works=yes + fi + ;; + *) + lt_cv_prog_cc_pic_works=yes + ;; + esac + ], [dnl + lt_cv_prog_cc_pic_works=no + ]) + CFLAGS="$save_CFLAGS" + ]) + + if test "X$lt_cv_prog_cc_pic_works" = Xno; then + lt_cv_prog_cc_pic= + lt_cv_prog_cc_can_build_shared=no + else + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" + fi + + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) +fi +## +## END FIXME + +# Check for any special shared library compilation flags. +if test -n "$lt_cv_prog_cc_shlib"; then + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : + else + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) + lt_cv_prog_cc_can_build_shared=no + fi +fi + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl + lt_cv_prog_cc_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) + LDFLAGS="$save_LDFLAGS" +]) + +# Belt *and* braces to stop my trousers falling down: +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= +AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) + +pic_flag="$lt_cv_prog_cc_pic" +special_shlib_compile_flags="$lt_cv_prog_cc_shlib" +wl="$lt_cv_prog_cc_wl" +link_static_flag="$lt_cv_prog_cc_static" +no_builtin_flag="$lt_cv_prog_cc_no_builtin" +can_build_shared="$lt_cv_prog_cc_can_build_shared" +## +## END FIXME + + +## FIXME: this should be a separate macro +## +# Check to see if options -o and -c are simultaneously supported by compiler +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) +AC_CACHE_VAL([lt_cv_compiler_c_o], [ +$rm -r conftest 2>/dev/null +mkdir conftest +cd conftest +echo "int some_variable = 0;" > conftest.$ac_ext +mkdir out +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers +# that will create temporary files in the current directory regardless of +# the output directory. Thus, making CWD read-only will cause this test +# to fail, enabling locking or at least warning the user not to do parallel +# builds. +chmod -w . +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" +compiler_c_o=no +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s out/conftest.err; then + lt_cv_compiler_c_o=no + else + lt_cv_compiler_c_o=yes + fi +else + # Append any errors to the config.log. + cat out/conftest.err 1>&AC_FD_CC + lt_cv_compiler_c_o=no +fi +CFLAGS="$save_CFLAGS" +chmod u+w . +$rm conftest* out/* +rmdir out +cd .. +rmdir conftest +$rm -r conftest 2>/dev/null +]) +compiler_c_o=$lt_cv_compiler_c_o +AC_MSG_RESULT([$compiler_c_o]) + +if test x"$compiler_c_o" = x"yes"; then + # Check to see if we can write to a .lo + AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) + AC_CACHE_VAL([lt_cv_compiler_o_lo], [ + lt_cv_compiler_o_lo=no + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -c -o conftest.lo" + save_objext="$ac_objext" + ac_objext=lo + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + lt_cv_compiler_o_lo=no + else + lt_cv_compiler_o_lo=yes + fi + ]) + ac_objext="$save_objext" + CFLAGS="$save_CFLAGS" + ]) + compiler_o_lo=$lt_cv_compiler_o_lo + AC_MSG_RESULT([$compiler_o_lo]) +else + compiler_o_lo=no +fi +## +## END FIXME + +## FIXME: this should be a separate macro +## +# Check to see if we can do hard links to lock some files if needed +hard_links="nottested" +if test "$compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +## +## END FIXME + +## FIXME: this should be a separate macro +## +if test "$GCC" = yes; then + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) + echo "int some_variable = 0;" > conftest.$ac_ext + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" + compiler_rtti_exceptions=no + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + compiler_rtti_exceptions=no + else + compiler_rtti_exceptions=yes + fi + ]) + CFLAGS="$save_CFLAGS" + AC_MSG_RESULT([$compiler_rtti_exceptions]) + + if test "$compiler_rtti_exceptions" = "yes"; then + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' + else + no_builtin_flag=' -fno-builtin' + fi +fi +## +## END FIXME + +## FIXME: this should be a separate macro +## +# See if the linker supports building shared libraries. +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) + +allow_undefined_flag= +no_undefined_flag= +need_lib_prefix=unknown +need_version=unknown +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +archive_cmds= +archive_expsym_cmds= +old_archive_from_new_cmds= +old_archive_from_expsyms_cmds= +export_dynamic_flag_spec= +whole_archive_flag_spec= +thread_safe_flag_spec= +hardcode_into_libs=no +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no +hardcode_shlibpath_var=unsupported +runpath_var= +link_all_deplibs=unknown +always_export_symbols=no +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' +# include_expsyms should be a list of space-separated symbols to be *always* +# included in the symbol list +include_expsyms= +# exclude_expsyms can be an egrep regular expression of symbols to exclude +# it will be wrapped by ` (' and `)$', so one must not match beginning or +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', +# as well as any symbol that contains `d'. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_" +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out +# platforms (ab)use it in PIC code, but their linkers get confused if +# the symbol is explicitly referenced. Since portable code cannot +# rely on this symbol name, it's probably fine to never include it in +# preloaded symbol tables. +extract_expsyms_cmds= + +case $host_os in +cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; +openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX, the GNU linker is very broken + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=yes + + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ + test -f $output_objdir/impgen.exe || (cd $output_objdir && \ + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ + else $CC -o impgen impgen.c ; fi)~ + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' + + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' + + # cygwin and mingw dlls have different entry points and sets of symbols + # to exclude. + # FIXME: what about values for MSVC? + dll_entry=__cygwin_dll_entry@12 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ + case $host_os in + mingw*) + # mingw values + dll_entry=_DllMainCRTStartup@12 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ + ;; + esac + + # mingw and cygwin differ, and it's simplest to just exclude the union + # of the two symbol sets. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one (in ltdll.c) + if test "x$lt_cv_need_dllmain" = "xyes"; then + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' + else + ltdll_obj= + ltdll_cmds= + fi + + # Extract the symbol export list from an `--export-all' def file, + # then regenerate the def file from the symbol export list, so that + # the compiled dll only exports the symbol export list. + # Be careful not to strip the DATA tag left be newer dlltools. + export_symbols_cmds="$ltdll_cmds"' + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' + + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is. + # If DATA tags from a recent dlltool are present, honour them! + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname-def; + else + echo EXPORTS > $output_objdir/$soname-def; + _lt_hint=1; + cat $export_symbols | while read symbol; do + set dummy \$symbol; + case \[$]# in + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; + esac; + _lt_hint=`expr 1 + \$_lt_hint`; + done; + fi~ + '"$ltdll_cmds"' + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = yes; then + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + case $host_os in + cygwin* | mingw* | pw32*) + # dlltool doesn't understand --whole-archive et. al. + whole_archive_flag_spec= + ;; + *) + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + ;; + esac + fi +else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + hardcode_direct=yes + archive_cmds='' + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + + shared_flag='-shared' + else + # not using gcc + if test "$host_cpu" = ia64; then + shared_flag='${wl}-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall can do strange things, so it is better to + # generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='${wl}-berok' + # This is a bit strange, but is similar to how AIX traditionally builds + # it's shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[[012]]) + allow_undefined_flag='-undefined suppress' + ;; + *) # Darwin 1.3 on + allow_undefined_flag='-flat_namespace -undefined suppress' + ;; + esac + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. Also zsh mangles + # `"' quotes if we put them in here... so don't! + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' + # We need to add '_' to the symbols in $export_symbols first + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' + hardcode_direct=yes + hardcode_shlibpath_var=no + whole_archive_flag_spec='-all_load $convenience' + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9* | hpux10* | hpux11*) + case $host_os in + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; + esac + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_minus_L=yes # Not in the search PATH, but as the default + # location of the library. + export_dynamic_flag_spec='${wl}-E' + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case "$host_os" in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' + + #Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + sco3.2v5*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + export_dynamic_flag_spec='${wl}-Bexport' + ;; + + solaris*) + # gcc --version < 3.0 without binutils cannot create self contained + # shared libraries reliably, requiring libgcc.a to resolve some of + # the object symbols generated in some cases. Libraries that use + # assert need libgcc.a to resolve __eprintf, for example. Linking + # a copy of libgcc.a into every shared library to guarantee resolving + # such symbols causes other problems: According to Tim Van Holder + # , C++ libraries end up with a separate + # (to the application) exception stack for one thing. + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + case `$CC --version 2>/dev/null` in + [[12]].*) + cat <&2 + +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably +*** create self contained shared libraries on Solaris systems, without +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling +*** -no-undefined support, which will at least allow you to build shared +*** libraries. However, you may find that when you link such libraries +*** into an application without using GCC, you have to manually add +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to +*** upgrade to a newer version of GCC. Another option is to rebuild your +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. + +EOF + no_undefined_flag= + ;; + esac + fi + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5uw7* | unixware7*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac +fi +AC_MSG_RESULT([$ld_shlibs]) +test "$ld_shlibs" = no && can_build_shared=no +## +## END FIXME + +## FIXME: this should be a separate macro +## +# Check hardcoding attributes. +AC_MSG_CHECKING([how to hardcode library paths into programs]) +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var"; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$hardcode_shlibpath_var" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +AC_MSG_RESULT([$hardcode_action]) +## +## END FIXME + +## FIXME: this should be a separate macro +## +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi +## +## END FIXME + +reload_cmds='$LD$reload_flag -o $output$reload_objs' +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +## FIXME: this should be a separate macro +## +# PORTME Fill in your ld.so characteristics +AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}.so$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can + # not hardcode correct soname into executable. Probably we can + # add versioning support to collect2, so additional links can + # be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}.so$major' + fi + shlibpath_var=LIBPATH + fi + hardcode_into_libs=yes + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}.so' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi4*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + export_dynamic_flag_spec=-rdynamic + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + need_version=no + need_lib_prefix=no + case $GCC,$host_os in + yes,cygwin*) + library_names_spec='$libname.dll.a' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog .libs/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + ;; + yes,mingw*) + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` + ;; + yes,pw32*) + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' + ;; + *) + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU/FreeBSD ld.so' + ;; + +freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + *) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + dynamic_linker="$host_os dld.sl" + version_type=sunos + need_lib_prefix=no + need_version=no + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' + soname_spec='${libname}${release}.sl$major' + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) version_type=irix ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' + soname_spec='${libname}${release}.so$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case "$host_os" in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + ;; + +os2*) + libname_spec='$name' + need_lib_prefix=no + library_names_spec='$libname.dll $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_version=no + need_lib_prefix=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + hardcode_into_libs=yes + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' + soname_spec='$libname.so.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no +## +## END FIXME + +## FIXME: this should be a separate macro +## +# Report the final consequences. +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) +## +## END FIXME + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) +## +## END FIXME + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) +## +## END FIXME + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +AC_LIBTOOL_DLOPEN_SELF + +## FIXME: this should be a separate macro +## +if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], + [$rm conftest* + echo 'static int dummy;' > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile); then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_cv_prog_cc_wl + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi]) + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) + ;; + esac +fi +need_lc=${lt_cv_archive_cmds_need_lc-yes} +## +## END FIXME + +## FIXME: this should be a separate macro +## +# The second clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + : +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + test -f Makefile && make "$ltmain" +fi -# Actually configure libtool. ac_aux_dir is where install-sh is found. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ -|| AC_MSG_ERROR([libtool configure failed]) +if test -f "$ltmain"; then + trap "$rm \"${ofile}T\"; exit 1" 1 2 15 + $rm -f "${ofile}T" + + echo creating $ofile + + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS SED \ + AR AR_FLAGS CC LD LN_S NM SHELL \ + reload_flag reload_cmds wl \ + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ + thread_safe_flag_spec whole_archive_flag_spec libname_spec \ + library_names_spec soname_spec \ + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ + old_striplib striplib file_magic_cmd export_symbols_cmds \ + deplibs_check_method allow_undefined_flag no_undefined_flag \ + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ + global_symbol_to_c_name_address \ + hardcode_libdir_flag_spec hardcode_libdir_separator \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do + + case $var in + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done -# Reload cache, that may have been modified by ltconfig -AC_CACHE_LOAD + cat <<__EOF__ > "${ofile}T" +#! $SHELL -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl +# A sed that does not truncate output. +SED=$lt_SED -# Redirect the config.log output again, so that the ltconfig log is not -# clobbered by the next message. -exec 5>>./config.log -]) +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="${SED} -e s/^X//" -AC_DEFUN(AC_LIBTOOL_SETUP, -[AC_PREREQ(2.13)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_RANLIB])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_NM])dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -dnl +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi -case "$target" in -NONE) lt_target="$host" ;; -*) lt_target="$target" ;; -esac +# ### BEGIN LIBTOOL CONFIG -# Check for any special flags to pass to ltconfig. -libtool_flags="--cache-file=$cache_file" -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], -[libtool_flags="$libtool_flags --enable-dlopen"]) -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[libtool_flags="$libtool_flags --enable-win32-dll"]) -AC_ARG_ENABLE(libtool-lock, - [ --disable-libtool-lock avoid locking (might break parallel builds)]) -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case "$lt_target" in -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case "`/usr/bin/file conftest.o`" in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - rm -rf conftest* - ;; +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -]) -esac -]) +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$need_lc + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# The default C compiler. +CC=$lt_CC + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP="$STRIP" + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_pic_flag +pic_mode=$pic_mode + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_compiler_c_o + +# Can we write directly to a .lo ? +compiler_o_lo=$lt_compiler_o_lo + +# Must we lock files when doing compilation ? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_link_static_flag + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + case $host_os in + aix3*) + cat <<\EOF >> "${ofile}T" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + case $host_os in + cygwin* | mingw* | pw32* | os2*) + cat <<'EOF' >> "${ofile}T" + # This is a source program that is used to create dlls on Windows + # Don't remove nor modify the starting and closing comments +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ + # This is a source program that is used to create import libraries + # on Windows for dlls which lack them. Don't remove nor modify the + # starting and closing comments +# /* impgen.c starts here */ +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. +# +# This file is part of GNU libtool. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# */ +# +# #include /* for printf() */ +# #include /* for open(), lseek(), read() */ +# #include /* for O_RDONLY, O_BINARY */ +# #include /* for strdup() */ +# +# /* O_BINARY isn't required (or even defined sometimes) under Unix */ +# #ifndef O_BINARY +# #define O_BINARY 0 +# #endif +# +# static unsigned int +# pe_get16 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[2]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 2); +# return b[0] + (b[1]<<8); +# } +# +# static unsigned int +# pe_get32 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[4]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 4); +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# static unsigned int +# pe_as32 (ptr) +# void *ptr; +# { +# unsigned char *b = ptr; +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# int +# main (argc, argv) +# int argc; +# char *argv[]; +# { +# int dll; +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; +# unsigned long export_rva, export_size, nsections, secptr, expptr; +# unsigned long name_rvas, nexp; +# unsigned char *expdata, *erva; +# char *filename, *dll_name; +# +# filename = argv[1]; +# +# dll = open(filename, O_RDONLY|O_BINARY); +# if (dll < 1) +# return 1; +# +# dll_name = filename; +# +# for (i=0; filename[i]; i++) +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') +# dll_name = filename + i +1; +# +# pe_header_offset = pe_get32 (dll, 0x3c); +# opthdr_ofs = pe_header_offset + 4 + 20; +# num_entries = pe_get32 (dll, opthdr_ofs + 92); +# +# if (num_entries < 1) /* no exports */ +# return 1; +# +# export_rva = pe_get32 (dll, opthdr_ofs + 96); +# export_size = pe_get32 (dll, opthdr_ofs + 100); +# nsections = pe_get16 (dll, pe_header_offset + 4 +2); +# secptr = (pe_header_offset + 4 + 20 + +# pe_get16 (dll, pe_header_offset + 4 + 16)); +# +# expptr = 0; +# for (i = 0; i < nsections; i++) +# { +# char sname[8]; +# unsigned long secptr1 = secptr + 40 * i; +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); +# unsigned long vsize = pe_get32 (dll, secptr1 + 16); +# unsigned long fptr = pe_get32 (dll, secptr1 + 20); +# lseek(dll, secptr1, SEEK_SET); +# read(dll, sname, 8); +# if (vaddr <= export_rva && vaddr+vsize > export_rva) +# { +# expptr = fptr + (export_rva - vaddr); +# if (export_rva + export_size > vaddr + vsize) +# export_size = vsize - (export_rva - vaddr); +# break; +# } +# } +# +# expdata = (unsigned char*)malloc(export_size); +# lseek (dll, expptr, SEEK_SET); +# read (dll, expdata, export_size); +# erva = expdata - export_rva; +# +# nexp = pe_as32 (expdata+24); +# name_rvas = pe_as32 (expdata+32); +# +# printf ("EXPORTS\n"); +# for (i = 0; i> "${ofile}T" || (rm -f "${ofile}T"; exit 1) + + mv -f "${ofile}T" "$ofile" || \ + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") + chmod +x "$ofile" +fi +## +## END FIXME + +])# _LT_AC_LTCONFIG_HACK # AC_LIBTOOL_DLOPEN - enable checks for dlopen support -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) # AC_ENABLE_SHARED - implement the --enable-shared flag # Usage: AC_ENABLE_SHARED[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_SHARED, [dnl -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) @@ -167,21 +3062,22 @@ ]) # AC_DISABLE_SHARED - set the default shared flag to --disable-shared -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no)]) # AC_ENABLE_STATIC - implement the --enable-static flag # Usage: AC_ENABLE_STATIC[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_STATIC, [dnl -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) @@ -200,7 +3096,8 @@ ]) # AC_DISABLE_STATIC - set the default static flag to --disable-static -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no)]) @@ -208,14 +3105,14 @@ # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(fast-install, changequote(<<, >>)dnl << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) @@ -233,29 +3130,120 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl ]) -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no)]) +# AC_LIBTOOL_PICMODE - implement the --with-pic flag +# Usage: AC_LIBTOOL_PICMODE[(MODE)] +# Where MODE is either `yes' or `no'. If omitted, it defaults to +# `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default)]) + + +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in + /*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; + ?:/*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. + ;; + *) + ac_save_MAGIC_CMD="$MAGIC_CMD" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + egrep "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$ac_save_ifs" + MAGIC_CMD="$ac_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +]) + + +# AC_PATH_MAGIC - find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) + else + MAGIC_CMD=: + fi +fi +]) + + # AC_PROG_LD - find the path to the GNU or non-GNU linker -AC_DEFUN(AC_PROG_LD, +AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH(gnu-ld, [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl ac_prog=ld -if test "$ac_cv_prog_gcc" = yes; then +if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) - ac_prog=`($CC -print-prog-name=ld) 2>&5` - case "$ac_prog" in + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in # Accept absolute paths. -changequote(,)dnl - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' -changequote([,])dnl + [[\\/]]* | [[A-Za-z]]:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do @@ -277,17 +3265,17 @@ else AC_MSG_CHECKING([for non-GNU ld]) fi -AC_CACHE_VAL(ac_cv_path_LD, +AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - ac_cv_path_LD="$ac_dir/$ac_prog" + lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break @@ -296,9 +3284,9 @@ done IFS="$ac_save_ifs" else - ac_cv_path_LD="$LD" # Let the user override the test with a path. + lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) -LD="$ac_cv_path_LD" +LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else @@ -308,56 +3296,255 @@ AC_PROG_LD_GNU ]) -AC_DEFUN(AC_PROG_LD_GNU, -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, +# AC_PROG_LD_GNU - +AC_DEFUN([AC_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then - ac_cv_prog_gnu_ld=yes + lt_cv_prog_gnu_ld=yes else - ac_cv_prog_gnu_ld=no + lt_cv_prog_gnu_ld=no fi]) +with_gnu_ld=$lt_cv_prog_gnu_ld +]) + +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker +# -- PORTME Some linkers may need a different reload flag. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, +[lt_cv_ld_reload_flag='-r']) +reload_flag=$lt_cv_ld_reload_flag +test -n "$reload_flag" && reload_flag=" $reload_flag" +]) + +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], +[AC_CACHE_CHECK([how to recognise dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given egrep regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix4* | aix5*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi4*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin* | mingw* | pw32*) + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' + lt_cv_file_magic_cmd='/usr/bin/file -L' + case "$host_os" in + rhapsody* | darwin1.[[012]]) + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` + ;; + *) # Darwin 1.3 on + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' + ;; + esac + ;; + +freebsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20*|hpux11*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + irix5* | nonstopux*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" + ;; + *) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" + ;; + esac + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux-gnu*) + case $host_cpu in + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k) + lt_cv_deplibs_check_method=pass_all ;; + *) + # glibc up to 2.1.1 does not perform some relocations on ARM + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; + esac + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +openbsd*) + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' + else + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + fi + ;; + +osf3* | osf4* | osf5*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' + lt_cv_file_magic_test_file=/shlib/libc.so + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + lt_cv_file_magic_test_file=/lib/libc.so + ;; + +sysv5uw[[78]]* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method ]) + # AC_PROG_NM - find the path to a BSD-compatible name lister -AC_DEFUN(AC_PROG_NM, -[AC_MSG_CHECKING([for BSD-compatible nm]) -AC_CACHE_VAL(ac_cv_path_NM, +AC_DEFUN([AC_PROG_NM], +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl +AC_MSG_CHECKING([for BSD-compatible nm]) +AC_CACHE_VAL(lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. - ac_cv_path_NM="$NM" + lt_cv_path_NM="$NM" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then + tmp_nm=$ac_dir/${ac_tool_prefix}nm + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -B" + # Tru64's nm complains that /dev/null is an invalid object file + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then + lt_cv_path_NM="$tmp_nm -B" break - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -p" + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + lt_cv_path_NM="$tmp_nm -p" break else - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) -NM="$ac_cv_path_NM" +NM="$lt_cv_path_NM" AC_MSG_RESULT([$NM]) ]) # AC_CHECK_LIBM - check for math library -AC_DEFUN(AC_CHECK_LIBM, +AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= -case "$lt_target" in -*-*-beos* | *-*-cygwin*) +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32*) # These system don't have libm ;; *-ncr-sysv4.3*) @@ -371,33 +3558,41 @@ ]) # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl convenience library, adds --enable-ltdl-convenience to -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed -# to be `${top_builddir}/libltdl'. Make sure you start DIR with -# '${top_builddir}/' (note the single quotes!) if your package is not -# flat, and, if you're not using automake, define top_builddir as -# appropriate in the Makefiles. -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case "$enable_ltdl_convenience" in +# the libltdl convenience library and LTDLINCL to the include flags for +# the libltdl header and adds --enable-ltdl-convenience to the +# configure arguments. Note that LIBLTDL and LTDLINCL are not +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed +# with '${top_builddir}/' and LTDLINCL will be prefixed with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" ]) # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl installable library, and adds --enable-ltdl-install to -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed -# to be `${top_builddir}/libltdl'. Make sure you start DIR with -# '${top_builddir}/' (note the single quotes!) if your package is not -# flat, and, if you're not using automake, define top_builddir as -# appropriate in the Makefiles. +# the libltdl installable library and LTDLINCL to the include flags for +# the libltdl header and adds --enable-ltdl-install to the configure +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed +# with '${top_srcdir}/' (note the single quotes!). If your package is +# not flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, main, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then @@ -408,23 +3603,116 @@ ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" - INCLTDL= + LTDLINCL= fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" ]) -dnl old names -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_executable_p="test -f" +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" + fi + done + done +done -dnl This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL])dnl + # Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/sed$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + _max=0 + _count=0 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris + # along with /bin/sed that truncates output. + for _sed in $_sed_list /usr/xpg4/bin/sed; do + test ! -f ${_sed} && break + cat /dev/null > "$tmp/sed.in" + _count=0 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" + # Check for GNU sed and select it if it is found. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then + lt_cv_path_SED=${_sed} + break + fi + while true; do + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" + mv "$tmp/sed.tmp" "$tmp/sed.in" + cp "$tmp/sed.in" "$tmp/sed.nl" + echo >>"$tmp/sed.nl" + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break + # 40000 chars as input seems more than enough + test $_count -gt 10 && break + _count=`expr $_count + 1` + if test $_count -gt $_max; then + _max=$_count + lt_cv_path_SED=$_sed + fi + done + done + rm -rf "$tmp" +]) +if test "X$SED" != "X"; then + lt_cv_path_SED=$SED +else + SED=$lt_cv_path_SED +fi +AC_MSG_RESULT([$SED]) +]) --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,6 +1,6 @@ -dnl aclocal.m4 generated automatically by aclocal 1.4 +dnl aclocal.m4 generated automatically by aclocal 1.4-p6 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,81 +10,73 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- -# serial 40 AC_PROG_LIBTOOL -AC_DEFUN(AC_PROG_LIBTOOL, -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl - -# Save cache, so that ltconfig can load it -AC_CACHE_SAVE +# serial 46 AC_PROG_LIBTOOL +# Debian $Rev: 50 $ -# Actually configure libtool. ac_aux_dir is where install-sh is found. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ -|| AC_MSG_ERROR([libtool configure failed]) - -# Reload cache, that may have been modified by ltconfig -AC_CACHE_LOAD +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl # This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl -# Redirect the config.log output again, so that the ltconfig log is not -# clobbered by the next message. -exec 5>>./config.log +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) ]) -AC_DEFUN(AC_LIBTOOL_SETUP, +AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.13)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl +AC_REQUIRE([LT_AC_PROG_SED])dnl + AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl dnl -case "$target" in -NONE) lt_target="$host" ;; -*) lt_target="$target" ;; +_LT_AC_PROG_ECHO_BACKSLASH +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; esac -# Check for any special flags to pass to ltconfig. -libtool_flags="--cache-file=$cache_file" -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], -[libtool_flags="$libtool_flags --enable-dlopen"]) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[libtool_flags="$libtool_flags --enable-win32-dll"]) +enable_win32_dll=yes, enable_win32_dll=no) + AC_ARG_ENABLE(libtool-lock, [ --disable-libtool-lock avoid locking (might break parallel builds)]) -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. -case "$lt_target" in +case $host in *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then - case "`/usr/bin/file conftest.o`" in + case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; @@ -104,41 +96,2884 @@ SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) + [AC_LANG_SAVE + AC_LANG_C + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_RESTORE]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -]) -esac -]) +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, + [AC_TRY_LINK([], + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); + DllMain (0, 0, 0);], + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) + + case $host/$CC in + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) + # old mingw systems require "-dll" to link a DLL, while more recent ones + # require "-mdll" + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mdll" + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) + CFLAGS="$SAVE_CFLAGS" ;; + *-*-cygwin* | *-*-pw32*) + # cygwin systems need to pass --dll to the linker, and not link + # crt.o which will require a WinMain@16 definition. + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; + esac + ;; + ]) +esac + +_LT_AC_LTCONFIG_HACK + +]) + +# AC_LIBTOOL_HEADER_ASSERT +# ------------------------ +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], +[AC_CACHE_CHECK([whether $CC supports assert without backlinking], + [lt_cv_func_assert_works], + [case $host in + *-*-solaris*) + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then + case `$CC --version 2>/dev/null` in + [[12]].*) lt_cv_func_assert_works=no ;; + *) lt_cv_func_assert_works=yes ;; + esac + fi + ;; + esac]) + +if test "x$lt_cv_func_assert_works" = xyes; then + AC_CHECK_HEADERS(assert.h) +fi +])# AC_LIBTOOL_HEADER_ASSERT + +# _LT_AC_CHECK_DLFCN +# -------------------- +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h) +])# _LT_AC_CHECK_DLFCN + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform the above into a raw symbol and a C symbol. +symxfrm='\1 \2\3 \3' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris* | sysv5*) + symcode='[[BDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $host_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then + symcode='[[ABCDGISTW]]' +fi + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then + if egrep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr void * +#else +# define lt_ptr char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr address; +} +lt_preloaded_symbols[[]] = +{ +EOF + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$no_builtin_flag" + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC + fi + else + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC + fi + else + echo "$progname: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" +if test -z "$lt_cv_sys_global_symbol_pipe"; then + global_symbol_to_cdecl= + global_symbol_to_c_name_address= +else + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" +fi +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; +then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR +# --------------------------------- +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], +[# Find the correct PATH separator. Usually this is `:', but +# DJGPP uses `;' like DOS. +if test "X${PATH_SEPARATOR+set}" != Xset; then + UNAME=${UNAME-`uname 2>/dev/null`} + case X$UNAME in + *-DOS) lt_cv_sys_path_separator=';' ;; + *) lt_cv_sys_path_separator=':' ;; + esac + PATH_SEPARATOR=$lt_cv_sys_path_separator +fi +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null && + echo_test_string="`eval $cmd`" && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +AC_DIVERT_POP +])# _LT_AC_PROG_ECHO_BACKSLASH + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ------------------------------------------------------------------ +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[if test "$cross_compiling" = yes; then : + [$4] +else + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_unknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + +# AC_LIBTOOL_DLOPEN_SELF +# ------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + cygwin* | mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + +AC_DEFUN([_LT_AC_LTCONFIG_HACK], +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e s/^X//' +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" +need_locks="$enable_libtool_lock" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +if test x"$host" != x"$build"; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + +# Transform linux* to *-*-linux-gnu*, to support old configure scripts. +case $host_os in +linux-gnu*) ;; +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` +esac + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +# Allow CC to be a program name with arguments. +set dummy $CC +compiler="[$]2" + +AC_MSG_CHECKING([for objdir]) +rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + objdir=_libs +fi +rmdir .libs 2>/dev/null +AC_MSG_RESULT($objdir) + + +AC_ARG_WITH(pic, +[ --with-pic try to use only PIC/non-PIC objects [default=use both]], +pic_mode="$withval", pic_mode=default) +test -z "$pic_mode" && pic_mode=default + +# We assume here that the value for lt_cv_prog_cc_pic will not be cached +# in isolation, and that seeing it set (from the cache) indicates that +# the associated values are set (in the cache) correctly too. +AC_MSG_CHECKING([for $compiler option to produce PIC]) +AC_CACHE_VAL(lt_cv_prog_cc_pic, +[ lt_cv_prog_cc_pic= + lt_cv_prog_cc_shlib= + lt_cv_prog_cc_wl= + lt_cv_prog_cc_static= + lt_cv_prog_cc_no_builtin= + lt_cv_prog_cc_can_build_shared=$can_build_shared + + if test "$GCC" = yes; then + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-static' + + case $host_os in + aix*) + # Below there is a dirty hack to force normal static linking with -ldl + # The problem is because libdl dynamically linked with both libc and + # libC (AIX C++ library), which obviously doesn't included in libraries + # list by gcc. This cause undefined symbols with -static flags. + # This hack allows C programs to be linked with "-static -ldl", but + # not sure about C++ programs. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_cv_prog_cc_pic='-fno-common' + ;; + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_cv_prog_cc_pic=-Kconform_pic + fi + ;; + *) + lt_cv_prog_cc_pic='-fPIC' + ;; + esac + else + # PORTME Check for PIC flags for the system compiler. + case $host_os in + aix3* | aix4* | aix5*) + lt_cv_prog_cc_wl='-Wl,' + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_cv_prog_cc_static='-Bstatic' + else + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + hpux9* | hpux10* | hpux11*) + # Is there a better lt_cv_prog_cc_static that works with the bundled CC? + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" + lt_cv_prog_cc_pic='+Z' + ;; + + irix5* | irix6* | nonstopux*) + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + # PIC (with -KPIC) is the default. + ;; + + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + + newsos6) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + ;; + + osf3* | osf4* | osf5*) + # All OSF/1 code is PIC. + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + ;; + + sco3.2v5*) + lt_cv_prog_cc_pic='-Kpic' + lt_cv_prog_cc_static='-dn' + lt_cv_prog_cc_shlib='-belf' + ;; + + solaris*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + sunos4*) + lt_cv_prog_cc_pic='-PIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Qoption ld ' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + uts4*) + lt_cv_prog_cc_pic='-pic' + lt_cv_prog_cc_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_cv_prog_cc_pic='-Kconform_pic' + lt_cv_prog_cc_static='-Bstatic' + fi + ;; + + *) + lt_cv_prog_cc_can_build_shared=no + ;; + esac + fi +]) +if test -z "$lt_cv_prog_cc_pic"; then + AC_MSG_RESULT([none]) +else + AC_MSG_RESULT([$lt_cv_prog_cc_pic]) + + # Check to make sure the pic_flag actually works. + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" + AC_TRY_COMPILE([], [], [dnl + case $host_os in + hpux9* | hpux10* | hpux11*) + # On HP-UX, both CC and GCC only warn that PIC is supported... then + # they create non-PIC objects. So, if there were any warnings, we + # assume that PIC is not supported. + if test -s conftest.err; then + lt_cv_prog_cc_pic_works=no + else + lt_cv_prog_cc_pic_works=yes + fi + ;; + *) + lt_cv_prog_cc_pic_works=yes + ;; + esac + ], [dnl + lt_cv_prog_cc_pic_works=no + ]) + CFLAGS="$save_CFLAGS" + ]) + + if test "X$lt_cv_prog_cc_pic_works" = Xno; then + lt_cv_prog_cc_pic= + lt_cv_prog_cc_can_build_shared=no + else + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" + fi + + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) +fi + +# Check for any special shared library compilation flags. +if test -n "$lt_cv_prog_cc_shlib"; then + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : + else + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) + lt_cv_prog_cc_can_build_shared=no + fi +fi + +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl + lt_cv_prog_cc_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) + LDFLAGS="$save_LDFLAGS" +]) + +# Belt *and* braces to stop my trousers falling down: +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= +AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) + +pic_flag="$lt_cv_prog_cc_pic" +special_shlib_compile_flags="$lt_cv_prog_cc_shlib" +wl="$lt_cv_prog_cc_wl" +link_static_flag="$lt_cv_prog_cc_static" +no_builtin_flag="$lt_cv_prog_cc_no_builtin" +can_build_shared="$lt_cv_prog_cc_can_build_shared" + + +# Check to see if options -o and -c are simultaneously supported by compiler +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) +AC_CACHE_VAL([lt_cv_compiler_c_o], [ +$rm -r conftest 2>/dev/null +mkdir conftest +cd conftest +echo "int some_variable = 0;" > conftest.$ac_ext +mkdir out +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers +# that will create temporary files in the current directory regardless of +# the output directory. Thus, making CWD read-only will cause this test +# to fail, enabling locking or at least warning the user not to do parallel +# builds. +chmod -w . +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" +compiler_c_o=no +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s out/conftest.err; then + lt_cv_compiler_c_o=no + else + lt_cv_compiler_c_o=yes + fi +else + # Append any errors to the config.log. + cat out/conftest.err 1>&AC_FD_CC + lt_cv_compiler_c_o=no +fi +CFLAGS="$save_CFLAGS" +chmod u+w . +$rm conftest* out/* +rmdir out +cd .. +rmdir conftest +$rm -r conftest 2>/dev/null +]) +compiler_c_o=$lt_cv_compiler_c_o +AC_MSG_RESULT([$compiler_c_o]) + +if test x"$compiler_c_o" = x"yes"; then + # Check to see if we can write to a .lo + AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) + AC_CACHE_VAL([lt_cv_compiler_o_lo], [ + lt_cv_compiler_o_lo=no + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -c -o conftest.lo" + save_objext="$ac_objext" + ac_objext=lo + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + lt_cv_compiler_o_lo=no + else + lt_cv_compiler_o_lo=yes + fi + ]) + ac_objext="$save_objext" + CFLAGS="$save_CFLAGS" + ]) + compiler_o_lo=$lt_cv_compiler_o_lo + AC_MSG_RESULT([$compiler_o_lo]) +else + compiler_o_lo=no +fi + +# Check to see if we can do hard links to lock some files if needed +hard_links="nottested" +if test "$compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi + +if test "$GCC" = yes; then + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) + echo "int some_variable = 0;" > conftest.$ac_ext + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" + compiler_rtti_exceptions=no + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + compiler_rtti_exceptions=no + else + compiler_rtti_exceptions=yes + fi + ]) + CFLAGS="$save_CFLAGS" + AC_MSG_RESULT([$compiler_rtti_exceptions]) + + if test "$compiler_rtti_exceptions" = "yes"; then + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' + else + no_builtin_flag=' -fno-builtin' + fi +fi + +# See if the linker supports building shared libraries. +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) + +allow_undefined_flag= +no_undefined_flag= +need_lib_prefix=unknown +need_version=unknown +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +archive_cmds= +archive_expsym_cmds= +old_archive_from_new_cmds= +old_archive_from_expsyms_cmds= +export_dynamic_flag_spec= +whole_archive_flag_spec= +thread_safe_flag_spec= +hardcode_into_libs=no +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no +hardcode_shlibpath_var=unsupported +runpath_var= +link_all_deplibs=unknown +always_export_symbols=no +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' +# include_expsyms should be a list of space-separated symbols to be *always* +# included in the symbol list +include_expsyms= +# exclude_expsyms can be an egrep regular expression of symbols to exclude +# it will be wrapped by ` (' and `)$', so one must not match beginning or +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', +# as well as any symbol that contains `d'. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_" +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out +# platforms (ab)use it in PIC code, but their linkers get confused if +# the symbol is explicitly referenced. Since portable code cannot +# rely on this symbol name, it's probably fine to never include it in +# preloaded symbol tables. +extract_expsyms_cmds= + +case $host_os in +cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; +openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX, the GNU linker is very broken + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=yes + + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ + test -f $output_objdir/impgen.exe || (cd $output_objdir && \ + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ + else $CC -o impgen impgen.c ; fi)~ + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' + + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' + + # cygwin and mingw dlls have different entry points and sets of symbols + # to exclude. + # FIXME: what about values for MSVC? + dll_entry=__cygwin_dll_entry@12 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ + case $host_os in + mingw*) + # mingw values + dll_entry=_DllMainCRTStartup@12 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ + ;; + esac + + # mingw and cygwin differ, and it's simplest to just exclude the union + # of the two symbol sets. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one (in ltdll.c) + if test "x$lt_cv_need_dllmain" = "xyes"; then + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' + else + ltdll_obj= + ltdll_cmds= + fi + + # Extract the symbol export list from an `--export-all' def file, + # then regenerate the def file from the symbol export list, so that + # the compiled dll only exports the symbol export list. + # Be careful not to strip the DATA tag left be newer dlltools. + export_symbols_cmds="$ltdll_cmds"' + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' + + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is. + # If DATA tags from a recent dlltool are present, honour them! + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname-def; + else + echo EXPORTS > $output_objdir/$soname-def; + _lt_hint=1; + cat $export_symbols | while read symbol; do + set dummy \$symbol; + case \[$]# in + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; + esac; + _lt_hint=`expr 1 + \$_lt_hint`; + done; + fi~ + '"$ltdll_cmds"' + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = yes; then + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + case $host_os in + cygwin* | mingw* | pw32*) + # dlltool doesn't understand --whole-archive et. al. + whole_archive_flag_spec= + ;; + *) + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + ;; + esac + fi +else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + hardcode_direct=yes + archive_cmds='' + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + + shared_flag='-shared' + else + # not using gcc + if test "$host_cpu" = ia64; then + shared_flag='${wl}-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall can do strange things, so it is better to + # generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='${wl}-berok' + # This is a bit strange, but is similar to how AIX traditionally builds + # it's shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[[012]]) + allow_undefined_flag='-undefined suppress' + ;; + *) # Darwin 1.3 on + allow_undefined_flag='-flat_namespace -undefined suppress' + ;; + esac + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. Also zsh mangles + # `"' quotes if we put them in here... so don't! + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' + # We need to add '_' to the symbols in $export_symbols first + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' + hardcode_direct=yes + hardcode_shlibpath_var=no + whole_archive_flag_spec='-all_load $convenience' + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9* | hpux10* | hpux11*) + case $host_os in + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; + esac + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_minus_L=yes # Not in the search PATH, but as the default + # location of the library. + export_dynamic_flag_spec='${wl}-E' + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case "$host_os" in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' + + #Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + sco3.2v5*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + export_dynamic_flag_spec='${wl}-Bexport' + ;; + + solaris*) + # gcc --version < 3.0 without binutils cannot create self contained + # shared libraries reliably, requiring libgcc.a to resolve some of + # the object symbols generated in some cases. Libraries that use + # assert need libgcc.a to resolve __eprintf, for example. Linking + # a copy of libgcc.a into every shared library to guarantee resolving + # such symbols causes other problems: According to Tim Van Holder + # , C++ libraries end up with a separate + # (to the application) exception stack for one thing. + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + case `$CC --version 2>/dev/null` in + [[12]].*) + cat <&2 + +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably +*** create self contained shared libraries on Solaris systems, without +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling +*** -no-undefined support, which will at least allow you to build shared +*** libraries. However, you may find that when you link such libraries +*** into an application without using GCC, you have to manually add +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to +*** upgrade to a newer version of GCC. Another option is to rebuild your +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. + +EOF + no_undefined_flag= + ;; + esac + fi + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5uw7* | unixware7*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac +fi +AC_MSG_RESULT([$ld_shlibs]) +test "$ld_shlibs" = no && can_build_shared=no + +# Check hardcoding attributes. +AC_MSG_CHECKING([how to hardcode library paths into programs]) +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var"; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$hardcode_shlibpath_var" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +AC_MSG_RESULT([$hardcode_action]) + +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi + +reload_cmds='$LD$reload_flag -o $output$reload_objs' +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +# PORTME Fill in your ld.so characteristics +AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}.so$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can + # not hardcode correct soname into executable. Probably we can + # add versioning support to collect2, so additional links can + # be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}.so$major' + fi + shlibpath_var=LIBPATH + fi + hardcode_into_libs=yes + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}.so' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi4*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + export_dynamic_flag_spec=-rdynamic + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + need_version=no + need_lib_prefix=no + case $GCC,$host_os in + yes,cygwin*) + library_names_spec='$libname.dll.a' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog .libs/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + ;; + yes,mingw*) + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` + ;; + yes,pw32*) + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' + ;; + *) + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU/FreeBSD ld.so' + ;; + +freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + *) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + dynamic_linker="$host_os dld.sl" + version_type=sunos + need_lib_prefix=no + need_version=no + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' + soname_spec='${libname}${release}.sl$major' + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) version_type=irix ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' + soname_spec='${libname}${release}.so$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case "$host_os" in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + ;; + +os2*) + libname_spec='$name' + need_lib_prefix=no + library_names_spec='$libname.dll $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_version=no + need_lib_prefix=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + hardcode_into_libs=yes + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' + soname_spec='$libname.so.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +# Report the final consequences. +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +AC_LIBTOOL_DLOPEN_SELF + +if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], + [$rm conftest* + echo 'static int dummy;' > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile); then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_cv_prog_cc_wl + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi]) + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) + ;; + esac +fi +need_lc=${lt_cv_archive_cmds_need_lc-yes} + +# The second clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + : +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + test -f Makefile && make "$ltmain" +fi + +if test -f "$ltmain"; then + trap "$rm \"${ofile}T\"; exit 1" 1 2 15 + $rm -f "${ofile}T" + + echo creating $ofile + + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS SED \ + AR AR_FLAGS CC LD LN_S NM SHELL \ + reload_flag reload_cmds wl \ + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ + thread_safe_flag_spec whole_archive_flag_spec libname_spec \ + library_names_spec soname_spec \ + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ + old_striplib striplib file_magic_cmd export_symbols_cmds \ + deplibs_check_method allow_undefined_flag no_undefined_flag \ + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ + global_symbol_to_c_name_address \ + hardcode_libdir_flag_spec hardcode_libdir_separator \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do + + case $var in + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + cat <<__EOF__ > "${ofile}T" +#! $SHELL + +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="${SED} -e s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$need_lc + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# The default C compiler. +CC=$lt_CC + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP="$STRIP" + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_pic_flag +pic_mode=$pic_mode + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_compiler_c_o + +# Can we write directly to a .lo ? +compiler_o_lo=$lt_compiler_o_lo + +# Must we lock files when doing compilation ? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_link_static_flag + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + case $host_os in + aix3*) + cat <<\EOF >> "${ofile}T" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + case $host_os in + cygwin* | mingw* | pw32* | os2*) + cat <<'EOF' >> "${ofile}T" + # This is a source program that is used to create dlls on Windows + # Don't remove nor modify the starting and closing comments +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ + # This is a source program that is used to create import libraries + # on Windows for dlls which lack them. Don't remove nor modify the + # starting and closing comments +# /* impgen.c starts here */ +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. +# +# This file is part of GNU libtool. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# */ +# +# #include /* for printf() */ +# #include /* for open(), lseek(), read() */ +# #include /* for O_RDONLY, O_BINARY */ +# #include /* for strdup() */ +# +# /* O_BINARY isn't required (or even defined sometimes) under Unix */ +# #ifndef O_BINARY +# #define O_BINARY 0 +# #endif +# +# static unsigned int +# pe_get16 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[2]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 2); +# return b[0] + (b[1]<<8); +# } +# +# static unsigned int +# pe_get32 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[4]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 4); +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# static unsigned int +# pe_as32 (ptr) +# void *ptr; +# { +# unsigned char *b = ptr; +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# int +# main (argc, argv) +# int argc; +# char *argv[]; +# { +# int dll; +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; +# unsigned long export_rva, export_size, nsections, secptr, expptr; +# unsigned long name_rvas, nexp; +# unsigned char *expdata, *erva; +# char *filename, *dll_name; +# +# filename = argv[1]; +# +# dll = open(filename, O_RDONLY|O_BINARY); +# if (dll < 1) +# return 1; +# +# dll_name = filename; +# +# for (i=0; filename[i]; i++) +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') +# dll_name = filename + i +1; +# +# pe_header_offset = pe_get32 (dll, 0x3c); +# opthdr_ofs = pe_header_offset + 4 + 20; +# num_entries = pe_get32 (dll, opthdr_ofs + 92); +# +# if (num_entries < 1) /* no exports */ +# return 1; +# +# export_rva = pe_get32 (dll, opthdr_ofs + 96); +# export_size = pe_get32 (dll, opthdr_ofs + 100); +# nsections = pe_get16 (dll, pe_header_offset + 4 +2); +# secptr = (pe_header_offset + 4 + 20 + +# pe_get16 (dll, pe_header_offset + 4 + 16)); +# +# expptr = 0; +# for (i = 0; i < nsections; i++) +# { +# char sname[8]; +# unsigned long secptr1 = secptr + 40 * i; +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); +# unsigned long vsize = pe_get32 (dll, secptr1 + 16); +# unsigned long fptr = pe_get32 (dll, secptr1 + 20); +# lseek(dll, secptr1, SEEK_SET); +# read(dll, sname, 8); +# if (vaddr <= export_rva && vaddr+vsize > export_rva) +# { +# expptr = fptr + (export_rva - vaddr); +# if (export_rva + export_size > vaddr + vsize) +# export_size = vsize - (export_rva - vaddr); +# break; +# } +# } +# +# expdata = (unsigned char*)malloc(export_size); +# lseek (dll, expptr, SEEK_SET); +# read (dll, expdata, export_size); +# erva = expdata - export_rva; +# +# nexp = pe_as32 (expdata+24); +# name_rvas = pe_as32 (expdata+32); +# +# printf ("EXPORTS\n"); +# for (i = 0; i> "${ofile}T" || (rm -f "${ofile}T"; exit 1) + + mv -f "${ofile}T" "$ofile" || \ + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") + chmod +x "$ofile" +fi + +])# _LT_AC_LTCONFIG_HACK # AC_LIBTOOL_DLOPEN - enable checks for dlopen support -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) # AC_ENABLE_SHARED - implement the --enable-shared flag # Usage: AC_ENABLE_SHARED[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_SHARED, [dnl -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) @@ -157,21 +2992,22 @@ ]) # AC_DISABLE_SHARED - set the default shared flag to --disable-shared -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no)]) # AC_ENABLE_STATIC - implement the --enable-static flag # Usage: AC_ENABLE_STATIC[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_STATIC, [dnl -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) @@ -190,7 +3026,8 @@ ]) # AC_DISABLE_STATIC - set the default static flag to --disable-static -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no)]) @@ -198,14 +3035,14 @@ # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(fast-install, changequote(<<, >>)dnl << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) @@ -223,29 +3060,120 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl ]) -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no)]) +# AC_LIBTOOL_PICMODE - implement the --with-pic flag +# Usage: AC_LIBTOOL_PICMODE[(MODE)] +# Where MODE is either `yes' or `no'. If omitted, it defaults to +# `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default)]) + + +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in + /*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; + ?:/*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. + ;; + *) + ac_save_MAGIC_CMD="$MAGIC_CMD" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + egrep "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$ac_save_ifs" + MAGIC_CMD="$ac_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +]) + + +# AC_PATH_MAGIC - find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) + else + MAGIC_CMD=: + fi +fi +]) + + # AC_PROG_LD - find the path to the GNU or non-GNU linker -AC_DEFUN(AC_PROG_LD, +AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH(gnu-ld, [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl ac_prog=ld -if test "$ac_cv_prog_gcc" = yes; then +if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) - ac_prog=`($CC -print-prog-name=ld) 2>&5` - case "$ac_prog" in + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in # Accept absolute paths. -changequote(,)dnl - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' -changequote([,])dnl + [[\\/]]* | [[A-Za-z]]:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do @@ -267,17 +3195,17 @@ else AC_MSG_CHECKING([for non-GNU ld]) fi -AC_CACHE_VAL(ac_cv_path_LD, +AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - ac_cv_path_LD="$ac_dir/$ac_prog" + lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break @@ -286,9 +3214,9 @@ done IFS="$ac_save_ifs" else - ac_cv_path_LD="$LD" # Let the user override the test with a path. + lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) -LD="$ac_cv_path_LD" +LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else @@ -298,56 +3226,255 @@ AC_PROG_LD_GNU ]) -AC_DEFUN(AC_PROG_LD_GNU, -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, +# AC_PROG_LD_GNU - +AC_DEFUN([AC_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then - ac_cv_prog_gnu_ld=yes + lt_cv_prog_gnu_ld=yes else - ac_cv_prog_gnu_ld=no + lt_cv_prog_gnu_ld=no fi]) +with_gnu_ld=$lt_cv_prog_gnu_ld +]) + +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker +# -- PORTME Some linkers may need a different reload flag. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, +[lt_cv_ld_reload_flag='-r']) +reload_flag=$lt_cv_ld_reload_flag +test -n "$reload_flag" && reload_flag=" $reload_flag" +]) + +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], +[AC_CACHE_CHECK([how to recognise dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given egrep regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix4* | aix5*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi4*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin* | mingw* | pw32*) + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' + lt_cv_file_magic_cmd='/usr/bin/file -L' + case "$host_os" in + rhapsody* | darwin1.[[012]]) + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` + ;; + *) # Darwin 1.3 on + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' + ;; + esac + ;; + +freebsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20*|hpux11*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + irix5* | nonstopux*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" + ;; + *) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" + ;; + esac + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux-gnu*) + case $host_cpu in + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k) + lt_cv_deplibs_check_method=pass_all ;; + *) + # glibc up to 2.1.1 does not perform some relocations on ARM + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; + esac + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +openbsd*) + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' + else + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + fi + ;; + +osf3* | osf4* | osf5*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' + lt_cv_file_magic_test_file=/shlib/libc.so + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + lt_cv_file_magic_test_file=/lib/libc.so + ;; + +sysv5uw[[78]]* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method ]) + # AC_PROG_NM - find the path to a BSD-compatible name lister -AC_DEFUN(AC_PROG_NM, -[AC_MSG_CHECKING([for BSD-compatible nm]) -AC_CACHE_VAL(ac_cv_path_NM, +AC_DEFUN([AC_PROG_NM], +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl +AC_MSG_CHECKING([for BSD-compatible nm]) +AC_CACHE_VAL(lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. - ac_cv_path_NM="$NM" + lt_cv_path_NM="$NM" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then + tmp_nm=$ac_dir/${ac_tool_prefix}nm + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -B" + # Tru64's nm complains that /dev/null is an invalid object file + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then + lt_cv_path_NM="$tmp_nm -B" break - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -p" + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + lt_cv_path_NM="$tmp_nm -p" break else - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) -NM="$ac_cv_path_NM" +NM="$lt_cv_path_NM" AC_MSG_RESULT([$NM]) ]) # AC_CHECK_LIBM - check for math library -AC_DEFUN(AC_CHECK_LIBM, +AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= -case "$lt_target" in -*-*-beos* | *-*-cygwin*) +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32*) # These system don't have libm ;; *-ncr-sysv4.3*) @@ -361,33 +3488,41 @@ ]) # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl convenience library, adds --enable-ltdl-convenience to -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed -# to be `${top_builddir}/libltdl'. Make sure you start DIR with -# '${top_builddir}/' (note the single quotes!) if your package is not -# flat, and, if you're not using automake, define top_builddir as -# appropriate in the Makefiles. -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case "$enable_ltdl_convenience" in +# the libltdl convenience library and LTDLINCL to the include flags for +# the libltdl header and adds --enable-ltdl-convenience to the +# configure arguments. Note that LIBLTDL and LTDLINCL are not +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed +# with '${top_builddir}/' and LTDLINCL will be prefixed with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" ]) # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl installable library, and adds --enable-ltdl-install to -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed -# to be `${top_builddir}/libltdl'. Make sure you start DIR with -# '${top_builddir}/' (note the single quotes!) if your package is not -# flat, and, if you're not using automake, define top_builddir as -# appropriate in the Makefiles. +# the libltdl installable library and LTDLINCL to the include flags for +# the libltdl header and adds --enable-ltdl-install to the configure +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed +# with '${top_srcdir}/' (note the single quotes!). If your package is +# not flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, main, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then @@ -398,30 +3533,940 @@ ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" - INCLTDL= + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +]) + +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_executable_p="test -f" +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" + fi + done + done +done + + # Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/sed$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + _max=0 + _count=0 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris + # along with /bin/sed that truncates output. + for _sed in $_sed_list /usr/xpg4/bin/sed; do + test ! -f ${_sed} && break + cat /dev/null > "$tmp/sed.in" + _count=0 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" + # Check for GNU sed and select it if it is found. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then + lt_cv_path_SED=${_sed} + break + fi + while true; do + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" + mv "$tmp/sed.tmp" "$tmp/sed.in" + cp "$tmp/sed.in" "$tmp/sed.nl" + echo >>"$tmp/sed.nl" + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break + # 40000 chars as input seems more than enough + test $_count -gt 10 && break + _count=`expr $_count + 1` + if test $_count -gt $_max; then + _max=$_count + lt_cv_path_SED=$_sed + fi + done + done + rm -rf "$tmp" +]) +if test "X$SED" != "X"; then + lt_cv_path_SED=$SED +else + SED=$lt_cv_path_SED +fi +AC_MSG_RESULT([$SED]) +]) + +# lib-prefix.m4 serial 3 (gettext-0.12.2) +dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible. + +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't +dnl require excessive bracketing. +ifdef([AC_HELP_STRING], +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +# lib-link.m4 serial 4 (gettext-0.12) +dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible. + +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and +dnl augments the CPPFLAGS variable. +AC_DEFUN([AC_LIB_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + undefine([Name]) + undefine([NAME]) +]) + +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) +dnl searches for libname and the libraries corresponding to explicit and +dnl implicit dependencies, together with the specified include files and +dnl the ability to compile and link the specified testcode. If found, it +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + LIBS="$LIBS $LIB[]NAME" + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + undefine([Name]) + undefine([NAME]) +]) + +dnl Determine the platform dependent parameters needed to use rpath: +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, +dnl hardcode_direct, hardcode_minus_L. +AC_DEFUN([AC_LIB_RPATH], +[ + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE(rpath, + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib$1-prefix], +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib + --without-lib$1-prefix don't search for lib$1 in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) + +# lib-ld.m4 serial 2 (gettext-0.12) +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl Subroutines of libtool.m4, +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision +dnl with libtool.m4. + +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 &5; then + acl_cv_prog_gnu_ld=yes +else + acl_cv_prog_gnu_ld=no +fi]) +with_gnu_ld=$acl_cv_prog_gnu_ld +]) + +dnl From libtool-1.4. Sets the variable LD. +AC_DEFUN([AC_LIB_PROG_LD], +[AC_ARG_WITH(gnu-ld, +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(acl_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + test "$with_gnu_ld" != no && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU ]) -dnl old names -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl - -dnl This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL])dnl - # Like AC_CONFIG_HEADER, but automatically create stamp file. -AC_DEFUN(AM_CONFIG_HEADER, +AC_DEFUN([AM_CONFIG_HEADER], [AC_PREREQ([2.12]) AC_CONFIG_HEADER([$1]) dnl When config.status generates a header, we must update the stamp-h file. @@ -451,8 +4496,9 @@ dnl Usage: dnl AM_INIT_AUTOMAKE(package,version, [no-define]) -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AC_PROG_INSTALL]) +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL]) PACKAGE=[$1] AC_SUBST(PACKAGE) VERSION=[$2] @@ -468,18 +4514,47 @@ AC_REQUIRE([AC_ARG_PROGRAM]) dnl FIXME This is truly gross. missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) AC_REQUIRE([AC_PROG_MAKE_SET])]) +# Copyright 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.4-p6])]) + # # Check to make sure that the build environment is sane. # -AC_DEFUN(AM_SANITY_CHECK, +AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 @@ -520,7 +4595,7 @@ dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, +AC_DEFUN([AM_MISSING_PROG], [AC_MSG_CHECKING(for working $2) # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. @@ -572,10 +4647,37 @@ AC_SUBST(ECHO_C)dnl ]) +# isc-posix.m4 serial 2 (gettext-0.11.2) +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005. + +# This test replaces the one in autoconf. +# Currently this macro should have the same name as the autoconf macro +# because gettext's gettext.m4 (distributed in the automake package) +# still uses it. Otherwise, the use in gettext.m4 makes autoheader +# give these diagnostics: +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX + +undefine([AC_ISC_POSIX]) + +AC_DEFUN([AC_ISC_POSIX], + [ + dnl This test replaces the obsolescent AC_ISC_POSIX kludge. + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) + ] +) + # serial 1 -AC_DEFUN(AM_C_PROTOTYPES, +AC_DEFUN([AM_C_PROTOTYPES], [AC_REQUIRE([AM_PROG_CC_STDC]) AC_REQUIRE([AC_PROG_CPP]) AC_MSG_CHECKING([for function prototypes]) @@ -612,7 +4714,7 @@ # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac -AC_DEFUN(AM_PROG_CC_STDC, +AC_DEFUN([AM_PROG_CC_STDC], [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) @@ -862,7 +4964,7 @@ # serial 1 -AC_DEFUN(AM_WITH_DMALLOC, +AC_DEFUN([AM_WITH_DMALLOC], [AC_MSG_CHECKING(if malloc debugging is wanted) AC_ARG_WITH(dmalloc, [ --with-dmalloc use dmalloc, as in @@ -1011,18 +5113,1138 @@ fi fi]) -# Define a conditional. +# gettext.m4 serial 20 (gettext-0.12) +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +dnl Macro to add for using GNU gettext. + +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The +dnl default (if it is not specified or empty) is 'no-libtool'. +dnl INTLSYMBOL should be 'external' for packages with no intl directory, +dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. +dnl If INTLSYMBOL is 'use-libtool', then a libtool library +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, +dnl depending on --{enable,disable}-{shared,static} and on the presence of +dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library +dnl $(top_builddir)/intl/libintl.a will be created. +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext +dnl implementations (in libc or libintl) without the ngettext() function +dnl will be ignored. If NEEDSYMBOL is specified and is +dnl 'need-formatstring-macros', then GNU gettext implementations that don't +dnl support the ISO C 99 formatstring macros will be ignored. +dnl INTLDIR is used to find the intl libraries. If empty, +dnl the value `$(top_builddir)/intl/' is used. +dnl +dnl The result of the configuration is one of three cases: +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled +dnl and used. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 2) GNU gettext has been found in the system's C library. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 3) No internationalization, always use English msgid. +dnl Catalog format: none +dnl Catalog extension: none +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. +dnl The use of .gmo is historical (it was needed to avoid overwriting the +dnl GNU format catalogs when building on a platform with an X/Open gettext), +dnl but we keep it in order not to force irrelevant filename changes on the +dnl maintainers. +dnl +AC_DEFUN([AM_GNU_GETTEXT], +[ + dnl Argument checking. + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT +])])])])]) + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT +])])])]) + define(gt_included_intl, ifelse([$1], [external], [no], [yes])) + define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], [])) + + AC_REQUIRE([AM_PO_SUBDIRS])dnl + ifelse(gt_included_intl, yes, [ + AC_REQUIRE([AM_INTL_SUBDIR])dnl + ]) -AC_DEFUN(AM_CONDITIONAL, -[AC_SUBST($1_TRUE) -AC_SUBST($1_FALSE) -if $2; then - $1_TRUE= - $1_FALSE='#' + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Sometimes libintl requires libiconv, so first search for libiconv. + dnl Ideally we would do this search only after the + dnl if test "$USE_NLS" = "yes"; then + dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT + dnl the configure script would need to contain the same shell code + dnl again, outside any 'if'. There are two solutions: + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. + dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not + dnl documented, we avoid it. + ifelse(gt_included_intl, yes, , [ + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + ]) + + dnl Set USE_NLS. + AM_NLS + + ifelse(gt_included_intl, yes, [ + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + ]) + LIBINTL= + LTLIBINTL= + POSUB= + + dnl If we use NLS figure out what method + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + ifelse(gt_included_intl, yes, [ + AC_MSG_CHECKING([whether included gettext is requested]) + AC_ARG_WITH(included-gettext, + [ --with-included-gettext use the GNU gettext library included here], + nls_cv_force_use_gnu_gettext=$withval, + nls_cv_force_use_gnu_gettext=no) + AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + ]) + dnl User does not insist on using GNU NLS library. Figure out what + dnl to use. If GNU gettext is available we use this. Else we have + dnl to fall back to GNU NLS library. + + dnl Add a version number to the cache macros. + define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) + define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) + define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) + + AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, + [AC_TRY_LINK([#include +]ifelse([$2], [need-formatstring-macros], +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +], [])[extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings;], + [bindtextdomain ("", ""); +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], + gt_cv_func_gnugettext_libc=yes, + gt_cv_func_gnugettext_libc=no)]) + + if test "$gt_cv_func_gnugettext_libc" != "yes"; then + dnl Sometimes libintl requires libiconv, so first search for libiconv. + ifelse(gt_included_intl, yes, , [ + AM_ICONV_LINK + ]) + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL + dnl even if libiconv doesn't exist. + AC_LIB_LINKFLAGS_BODY([intl]) + AC_CACHE_CHECK([for GNU gettext in libintl], + gt_cv_func_gnugettext_libintl, + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + dnl Now see whether libintl exists and does not depend on libiconv. + AC_TRY_LINK([#include +]ifelse([$2], [need-formatstring-macros], +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +], [])[extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias ();], + [bindtextdomain ("", ""); +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], + gt_cv_func_gnugettext_libintl=yes, + gt_cv_func_gnugettext_libintl=no) + dnl Now see whether libintl exists and depends on libiconv. + if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include +]ifelse([$2], [need-formatstring-macros], +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +], [])[extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias ();], + [bindtextdomain ("", ""); +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + gt_cv_func_gnugettext_libintl=yes + ]) + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + fi + + dnl If an already present or preinstalled GNU gettext() is found, + dnl use it. But if this macro is used in GNU gettext, and GNU + dnl gettext is already preinstalled in libintl, we update this + dnl libintl. (Cf. the install rule in intl/Makefile.in.) + if test "$gt_cv_func_gnugettext_libc" = "yes" \ + || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + dnl Reset the values set by searching for libintl. + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + ifelse(gt_included_intl, yes, [ + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + dnl GNU gettext is not found in the C library. + dnl Fall back on included GNU gettext library. + nls_cv_use_gnu_gettext=yes + fi + fi + + if test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions used to generate GNU NLS library. + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions to use GNU gettext tools. + CATOBJEXT=.gmo + fi + ]) + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + AC_DEFINE(ENABLE_NLS, 1, + [Define to 1 if translation of program messages to the user's native language + is requested.]) + else + USE_NLS=no + fi + fi + + AC_MSG_CHECKING([whether to use NLS]) + AC_MSG_RESULT([$USE_NLS]) + if test "$USE_NLS" = "yes"; then + AC_MSG_CHECKING([where the gettext function comes from]) + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext_libintl" = "yes"; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + AC_MSG_RESULT([$gt_source]) + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext_libintl" = "yes"; then + AC_MSG_CHECKING([how to link with libintl]) + AC_MSG_RESULT([$LIBINTL]) + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) + fi + + dnl For backward compatibility. Some packages may be using this. + AC_DEFINE(HAVE_GETTEXT, 1, + [Define if the GNU gettext() function is already present or preinstalled.]) + AC_DEFINE(HAVE_DCGETTEXT, 1, + [Define if the GNU dcgettext() function is already present or preinstalled.]) + fi + + dnl We need to process the po/ directory. + POSUB=po + fi + + ifelse(gt_included_intl, yes, [ + dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL + dnl to 'yes' because some of the testsuite requires it. + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi + + dnl Make all variables we use known to autoconf. + AC_SUBST(BUILD_INCLUDED_LIBINTL) + AC_SUBST(USE_INCLUDED_LIBINTL) + AC_SUBST(CATOBJEXT) + + dnl For backward compatibility. Some configure.ins may be using this. + nls_cv_header_intl= + nls_cv_header_libgt= + + dnl For backward compatibility. Some Makefiles may be using this. + DATADIRNAME=share + AC_SUBST(DATADIRNAME) + + dnl For backward compatibility. Some Makefiles may be using this. + INSTOBJEXT=.mo + AC_SUBST(INSTOBJEXT) + + dnl For backward compatibility. Some Makefiles may be using this. + GENCAT=gencat + AC_SUBST(GENCAT) + + dnl For backward compatibility. Some Makefiles may be using this. + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi + AC_SUBST(INTLOBJS) + + dnl Enable libtool support if the surrounding package wishes it. + INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix + AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) + ]) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLLIBS="$LIBINTL" + AC_SUBST(INTLLIBS) + + dnl Make all documented variables known to autoconf. + AC_SUBST(LIBINTL) + AC_SUBST(LTLIBINTL) + AC_SUBST(POSUB) +]) + + +dnl Checks for all prerequisites of the intl subdirectory, +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, +dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. +AC_DEFUN([AM_INTL_SUBDIR], +[ + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_MKINSTALLDIRS])dnl + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + AC_REQUIRE([AC_PROG_RANLIB])dnl + AC_REQUIRE([AC_ISC_POSIX])dnl + AC_REQUIRE([AC_HEADER_STDC])dnl + AC_REQUIRE([AC_C_CONST])dnl + AC_REQUIRE([AC_C_INLINE])dnl + AC_REQUIRE([AC_TYPE_OFF_T])dnl + AC_REQUIRE([AC_TYPE_SIZE_T])dnl + AC_REQUIRE([AC_FUNC_ALLOCA])dnl + AC_REQUIRE([AC_FUNC_MMAP])dnl + AC_REQUIRE([jm_GLIBC21])dnl + AC_REQUIRE([gt_INTDIV0])dnl + AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl + AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl + AC_REQUIRE([gt_INTTYPES_PRI])dnl + + AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ +stdlib.h string.h unistd.h sys/param.h]) + AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ +geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ +strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ +__fsetlocking]) + + AM_ICONV + AM_LANGINFO_CODESET + if test $ac_cv_header_locale_h = yes; then + AM_LC_MESSAGES + fi + + dnl intl/plural.c is generated from intl/plural.y. It requires bison, + dnl because plural.y uses bison specific features. It requires at least + dnl bison-1.26 because earlier versions generate a plural.c that doesn't + dnl compile. + dnl bison is only needed for the maintainer (who touches plural.y). But in + dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put + dnl the rule in general Makefile. Now, some people carelessly touch the + dnl files or have a broken "make" program, hence the plural.c rule will + dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not + dnl present or too old. + AC_CHECK_PROGS([INTLBISON], [bison]) + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + dnl Found it, now check the version. + AC_MSG_CHECKING([version of bison]) +changequote(<<,>>)dnl + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) +changequote([,])dnl + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + AC_MSG_RESULT([$ac_prog_version]) + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi +]) + + +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) + +# po.m4 serial 1 (gettext-0.12) +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +dnl Checks for all prerequisites of the po subdirectory. +AC_DEFUN([AM_PO_SUBDIRS], +[ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_MKINSTALLDIRS])dnl + AC_REQUIRE([AM_NLS])dnl + + dnl Perform the following tests also if --disable-nls has been given, + dnl because they are needed for "make dist" to work. + + dnl Search for GNU msgfmt in the PATH. + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. + dnl The second test excludes FreeBSD msgfmt. + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, + [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) + + dnl Search for GNU xgettext 0.12 or newer in the PATH. + dnl The first test excludes Solaris xgettext and early GNU xgettext versions. + dnl The second test excludes FreeBSD xgettext. + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + + dnl Search for GNU msgmerge 0.11 or newer in the PATH. + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, + [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :) + + dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. + dnl Test whether we really found GNU msgfmt. + if test "$GMSGFMT" != ":"; then + dnl If it is no GNU msgfmt we define it as : so that the + dnl Makefiles still can work. + if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && + (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` + AC_MSG_RESULT( + [found $GMSGFMT program is not GNU msgfmt; ignore it]) + GMSGFMT=":" + fi + fi + + dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. + dnl Test whether we really found GNU xgettext. + if test "$XGETTEXT" != ":"; then + dnl If it is no GNU xgettext we define it as : so that the + dnl Makefiles still can work. + if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && + (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + AC_MSG_RESULT( + [found xgettext program is not GNU xgettext; ignore it]) + XGETTEXT=":" + fi + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + fi + + AC_OUTPUT_COMMANDS([ + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + POMAKEFILEDEPS="POTFILES.in" + # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` + # Hide the ALL_LINGUAS assigment from automake. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # The set of available languages was given in configure.in. + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + fi + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + GMOFILES= + UPDATEPOFILES= + DUMMYPOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done], + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it + # from automake. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + ]) +]) + +# nls.m4 serial 1 (gettext-0.12) +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE(nls, + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT($USE_NLS) + AC_SUBST(USE_NLS) +]) + +AC_DEFUN([AM_MKINSTALLDIRS], +[ + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly + dnl find the mkinstalldirs script in another subdir but $(top_srcdir). + dnl Try to locate it. + MKINSTALLDIRS= + if test -n "$ac_aux_dir"; then + case "$ac_aux_dir" in + /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; + *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; + esac + fi + if test -z "$MKINSTALLDIRS"; then + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" + fi + AC_SUBST(MKINSTALLDIRS) +]) + +# progtest.m4 serial 3 (gettext-0.12) +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1996. + +# Search path for a program which passes the given test. + +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN([AM_PATH_PROG_WITH_TEST], +[ +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" else - $1_TRUE='#' - $1_FALSE= -fi]) + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_path_$1, +[case "[$]$1" in + [[\\/]]* | ?:[[\\/]]*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in ifelse([$5], , $PATH, [$5]); do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then + AC_MSG_RESULT([$]$1) +else + AC_MSG_RESULT(no) +fi +AC_SUBST($1)dnl +]) + +# iconv.m4 serial AM4 (gettext-0.11.3) +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible. + +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], +[ + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([iconv]) +]) + +AC_DEFUN([AM_ICONV_LINK], +[ + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and + dnl those with the standalone portable GNU libiconv installed). + + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV + dnl accordingly. + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + + dnl Add $INCICONV to CPPFLAGS before performing the following checks, + dnl because if the user has installed libiconv and not disabled its use + dnl via --without-libiconv-prefix, he wants to use it. The first + dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. + am_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) + + AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + AC_TRY_LINK([#include +#include ], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + am_cv_func_iconv=yes) + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include +#include ], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + am_cv_lib_iconv=yes + am_cv_func_iconv=yes) + LIBS="$am_save_LIBS" + fi + ]) + if test "$am_cv_func_iconv" = yes; then + AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) + fi + if test "$am_cv_lib_iconv" = yes; then + AC_MSG_CHECKING([how to link with libiconv]) + AC_MSG_RESULT([$LIBICONV]) + else + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV + dnl either. + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + AC_SUBST(LIBICONV) + AC_SUBST(LTLIBICONV) +]) + +AC_DEFUN([AM_ICONV], +[ + AM_ICONV_LINK + if test "$am_cv_func_iconv" = yes; then + AC_MSG_CHECKING([for iconv declaration]) + AC_CACHE_VAL(am_cv_proto_iconv, [ + AC_TRY_COMPILE([ +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + AC_MSG_RESULT([$]{ac_t:- + }[$]am_cv_proto_iconv) + AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, + [Define as const if the declaration of iconv() needs const.]) + fi +]) + +# intdiv0.m4 serial 1 (gettext-0.11.3) +dnl Copyright (C) 2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible. + +AC_DEFUN([gt_INTDIV0], +[ + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + + AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], + gt_cv_int_divbyzero_sigfpe, + [ + AC_TRY_RUN([ +#include +#include + +static void +#ifdef __cplusplus +sigfpe_handler (int sig) +#else +sigfpe_handler (sig) int sig; +#endif +{ + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ + exit (sig != SIGFPE); +} + +int x = 1; +int y = 0; +int z; +int nan; + +int main () +{ + signal (SIGFPE, sigfpe_handler); +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) + signal (SIGTRAP, sigfpe_handler); +#endif +/* Linux/SPARC yields signal SIGILL. */ +#if defined (__sparc__) && defined (__linux__) + signal (SIGILL, sigfpe_handler); +#endif + + z = x / y; + nan = y / y; + exit (1); +} +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, + [ + # Guess based on the CPU. + case "$host_cpu" in + alpha* | i[34567]86 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; + esac + ]) + ]) + case "$gt_cv_int_divbyzero_sigfpe" in + *yes) value=1;; + *) value=0;; + esac + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, + [Define if integer division by zero raises signal SIGFPE.]) +]) + +# uintmax_t.m4 serial 7 (gettext-0.12) +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +AC_PREREQ(2.13) + +# Define uintmax_t to 'unsigned long' or 'unsigned long long' +# if it is not already defined in or . + +AC_DEFUN([jm_AC_TYPE_UINTMAX_T], +[ + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([jm_AC_HEADER_STDINT_H]) + if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then + AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, + [Define to unsigned long or unsigned long long + if and don't define.]) + else + AC_DEFINE(HAVE_UINTMAX_T, 1, + [Define if you have the 'uintmax_t' type in or .]) + fi +]) + +# inttypes_h.m4 serial 5 (gettext-0.12) +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([jm_AC_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, + [AC_TRY_COMPILE( + [#include +#include ], + [uintmax_t i = (uintmax_t) -1;], + jm_ac_cv_header_inttypes_h=yes, + jm_ac_cv_header_inttypes_h=no)]) + if test $jm_ac_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) + +# stdint_h.m4 serial 3 (gettext-0.12) +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +# Define HAVE_STDINT_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([jm_AC_HEADER_STDINT_H], +[ + AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h, + [AC_TRY_COMPILE( + [#include +#include ], + [uintmax_t i = (uintmax_t) -1;], + jm_ac_cv_header_stdint_h=yes, + jm_ac_cv_header_stdint_h=no)]) + if test $jm_ac_cv_header_stdint_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) + +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40) +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG], +[ + AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, + [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;], + [unsigned long long ullmax = (unsigned long long) -1; + return ull << i | ull >> i | ullmax / ull | ullmax % ull;], + ac_cv_type_unsigned_long_long=yes, + ac_cv_type_unsigned_long_long=no)]) + if test $ac_cv_type_unsigned_long_long = yes; then + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, + [Define if you have the unsigned long long type.]) + fi +]) + +# inttypes.m4 serial 1 (gettext-0.11.4) +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H if exists and doesn't clash with +# . + +AC_DEFUN([gt_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, + [ + AC_TRY_COMPILE( + [#include +#include ], + [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) + ]) + if test $gt_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, + [Define if exists and doesn't clash with .]) + fi +]) + +# inttypes-pri.m4 serial 1 (gettext-0.11.4) +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible. + +# Define PRI_MACROS_BROKEN if exists and defines the PRI* +# macros to non-string values. This is the case on AIX 4.3.3. + +AC_DEFUN([gt_INTTYPES_PRI], +[ + AC_REQUIRE([gt_HEADER_INTTYPES_H]) + if test $gt_cv_header_inttypes_h = yes; then + AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], + gt_cv_inttypes_pri_broken, + [ + AC_TRY_COMPILE([#include +#ifdef PRId32 +char *p = PRId32; +#endif +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) + ]) + fi + if test "$gt_cv_inttypes_pri_broken" = yes; then + AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, + [Define if exists and defines unusable PRI* macros.]) + fi +]) + +# codeset.m4 serial AM1 (gettext-0.10.40) +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible. + +AC_DEFUN([AM_LANGINFO_CODESET], +[ + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, + [AC_TRY_LINK([#include ], + [char* cs = nl_langinfo(CODESET);], + am_cv_langinfo_codeset=yes, + am_cv_langinfo_codeset=no) + ]) + if test $am_cv_langinfo_codeset = yes; then + AC_DEFINE(HAVE_LANGINFO_CODESET, 1, + [Define if you have and nl_langinfo(CODESET).]) + fi +]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. @@ -1047,3 +6269,16 @@ fi fi]) +# Define a conditional. + +AC_DEFUN([AM_CONDITIONAL], +[AC_SUBST($1_TRUE) +AC_SUBST($1_FALSE) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi]) + --- a/configure +++ b/configure @@ -19,9 +19,170 @@ --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" ac_help="$ac_help --with-gnu-ld assume the C compiler uses GNU ld [default=no]" + +# Find the correct PATH separator. Usually this is `:', but +# DJGPP uses `;' like DOS. +if test "X${PATH_SEPARATOR+set}" != Xset; then + UNAME=${UNAME-`uname 2>/dev/null`} + case X$UNAME in + *-DOS) lt_cv_sys_path_separator=';' ;; + *) lt_cv_sys_path_separator=':' ;; + esac + PATH_SEPARATOR=$lt_cv_sys_path_separator +fi + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +echo=${ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null && + echo_test_string="`eval $cmd`" && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + ac_help="$ac_help --disable-libtool-lock avoid locking (might break parallel builds)" ac_help="$ac_help + --with-pic try to use only PIC/non-PIC objects [default=use both]" +ac_help="$ac_help --with-dmalloc use dmalloc, as in ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" ac_help="$ac_help @@ -563,6 +724,7 @@ ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. +am__api_version="1.4" # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -575,7 +737,7 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:579: checking for a BSD compatible install" >&5 +echo "configure:741: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -628,7 +790,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:632: checking whether build environment is sane" >&5 +echo "configure:794: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile @@ -685,7 +847,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:689: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:851: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -730,21 +892,21 @@ missing_dir=`cd $ac_aux_dir && pwd` -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 -echo "configure:735: checking for working aclocal" >&5 +echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 +echo "configure:897: checking for working aclocal-${am__api_version}" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then + ACLOCAL=aclocal-${am__api_version} echo "$ac_t""found" 1>&6 else - ACLOCAL="$missing_dir/missing aclocal" + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:748: checking for working autoconf" >&5 +echo "configure:910: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -756,21 +918,21 @@ echo "$ac_t""missing" 1>&6 fi -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:761: checking for working automake" >&5 +echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 +echo "configure:923: checking for working automake-${am__api_version}" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then + AUTOMAKE=automake-${am__api_version} echo "$ac_t""found" 1>&6 else - AUTOMAKE="$missing_dir/missing automake" + AUTOMAKE="$missing_dir/missing automake-${am__api_version}" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:774: checking for working autoheader" >&5 +echo "configure:936: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -783,7 +945,7 @@ fi echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:787: checking for working makeinfo" >&5 +echo "configure:949: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -799,7 +961,7 @@ AT_TESTPATH=../src echo $ac_n "checking how to suppress newlines using echo""... $ac_c" 1>&6 -echo "configure:803: checking how to suppress newlines using echo" >&5 +echo "configure:965: checking how to suppress newlines using echo" >&5 if eval "test \"`echo '$''{'fp_cv_prog_echo_nonl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -830,7 +992,7 @@ # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:834: checking for $ac_word" >&5 +echo "configure:996: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -860,7 +1022,7 @@ # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:864: checking for $ac_word" >&5 +echo "configure:1026: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -911,7 +1073,7 @@ # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:915: checking for $ac_word" >&5 +echo "configure:1077: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -943,7 +1105,7 @@ fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -954,12 +1116,12 @@ cat > conftest.$ac_ext << EOF -#line 958 "configure" +#line 1120 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -985,12 +1147,12 @@ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:994: checking whether we are using GNU C" >&5 +echo "configure:1156: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -999,7 +1161,7 @@ yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1018,7 +1180,7 @@ ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1022: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1184: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1050,7 +1212,7 @@ fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1054: checking how to run the C preprocessor" >&5 +echo "configure:1216: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1065,13 +1227,13 @@ # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1082,13 +1244,13 @@ rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1099,13 +1261,13 @@ rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1130,9 +1292,9 @@ echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:1134: checking for AIX" >&5 +echo "configure:1296: checking for AIX" >&5 cat > conftest.$ac_ext <&6 -echo "configure:1159: checking for minix/config.h" >&5 +echo "configure:1321: checking for minix/config.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1202,11 +1364,84 @@ fi +# Find the correct PATH separator. Usually this is `:', but +# DJGPP uses `;' like DOS. +if test "X${PATH_SEPARATOR+set}" != Xset; then + UNAME=${UNAME-`uname 2>/dev/null`} + case X$UNAME in + *-DOS) lt_cv_sys_path_separator=';' ;; + *) lt_cv_sys_path_separator=':' ;; + esac + PATH_SEPARATOR=$lt_cv_sys_path_separator +fi + +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 +echo "configure:1380: checking for Cygwin environment" >&5 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_cygwin=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_cygwin=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_cygwin" 1>&6 +CYGWIN= +test "$ac_cv_cygwin" = yes && CYGWIN=yes +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 +echo "configure:1413: checking for mingw32 environment" >&5 +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_mingw32=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_mingw32=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_mingw32" 1>&6 +MINGW32= +test "$ac_cv_mingw32" = yes && MINGW32=yes # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) @@ -1229,7 +1464,7 @@ if test "${enable_static+set}" = set; then enableval="$enable_static" p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) @@ -1252,7 +1487,7 @@ if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) @@ -1278,7 +1513,7 @@ fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:1282: checking host system type" >&5 +echo "configure:1517: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -1299,7 +1534,7 @@ echo "$ac_t""$host" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1303: checking build system type" >&5 +echo "configure:1538: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -1316,36 +1551,6 @@ build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1323: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" @@ -1355,12 +1560,18 @@ fi ac_prog=ld -if test "$ac_cv_prog_gcc" = yes; then +if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 -echo "configure:1362: checking for ld used by GCC" >&5 - ac_prog=`($CC -print-prog-name=ld) 2>&5` - case "$ac_prog" in +echo "configure:1567: checking for ld used by GCC" >&5 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' @@ -1382,24 +1593,24 @@ esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 -echo "configure:1386: checking for GNU ld" >&5 +echo "configure:1597: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 -echo "configure:1389: checking for non-GNU ld" >&5 +echo "configure:1600: checking for non-GNU ld" >&5 fi -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then +if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - ac_cv_path_LD="$ac_dir/$ac_prog" + lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break @@ -1408,281 +1619,3938 @@ done IFS="$ac_save_ifs" else - ac_cv_path_LD="$LD" # Let the user override the test with a path. + lt_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$lt_cv_path_LD" +if test -n "$LD"; then + echo "$ac_t""$LD" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi +test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } +echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 +echo "configure:1635: checking if the linker ($LD) is GNU ld" >&5 +if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 &5; then + lt_cv_prog_gnu_ld=yes +else + lt_cv_prog_gnu_ld=no +fi +fi + +echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 +with_gnu_ld=$lt_cv_prog_gnu_ld + + +echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 +echo "configure:1652: checking for $LD option to reload object files" >&5 +if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + lt_cv_ld_reload_flag='-r' +fi + +echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 +reload_flag=$lt_cv_ld_reload_flag +test -n "$reload_flag" && reload_flag=" $reload_flag" + +echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 +echo "configure:1664: checking for BSD-compatible nm" >&5 +if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/${ac_tool_prefix}nm + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then + lt_cv_path_NM="$tmp_nm -B" + break + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + lt_cv_path_NM="$tmp_nm -p" + break + else + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + fi + fi + done + IFS="$ac_save_ifs" + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi +fi + +NM="$lt_cv_path_NM" +echo "$ac_t""$NM" 1>&6 + +echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6 +echo "configure:1702: checking for a sed that does not truncate output" >&5 +if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_executable_p="test -f" +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" + fi + done + done +done + + # Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/sed$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + _max=0 + _count=0 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris + # along with /bin/sed that truncates output. + for _sed in $_sed_list /usr/xpg4/bin/sed; do + test ! -f ${_sed} && break + cat /dev/null > "$tmp/sed.in" + _count=0 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" + # Check for GNU sed and select it if it is found. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then + lt_cv_path_SED=${_sed} + break + fi + while true; do + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" + mv "$tmp/sed.tmp" "$tmp/sed.in" + cp "$tmp/sed.in" "$tmp/sed.nl" + echo >>"$tmp/sed.nl" + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break + # 40000 chars as input seems more than enough + test $_count -gt 10 && break + _count=`expr $_count + 1` + if test $_count -gt $_max; then + _max=$_count + lt_cv_path_SED=$_sed + fi + done + done + rm -rf "$tmp" + +fi + +if test "X$SED" != "X"; then + lt_cv_path_SED=$SED +else + SED=$lt_cv_path_SED +fi +echo "$ac_t""$SED" 1>&6 + +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 +echo "configure:1786: checking whether ln -s works" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + rm -f conftestdata +if ln -s X conftestdata 2>/dev/null +then + rm -f conftestdata + ac_cv_prog_LN_S="ln -s" +else + ac_cv_prog_LN_S=ln fi fi +LN_S="$ac_cv_prog_LN_S" +if test "$ac_cv_prog_LN_S" = "ln -s"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6 +echo "configure:1807: checking how to recognise dependent libraries" >&5 +if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given egrep regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix4* | aix5*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi4*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin* | mingw* | pw32*) + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' + lt_cv_file_magic_cmd='/usr/bin/file -L' + case "$host_os" in + rhapsody* | darwin1.[012]) + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` + ;; + *) # Darwin 1.3 on + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' + ;; + esac + ;; + +freebsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20*|hpux11*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + irix5* | nonstopux*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" + ;; + *) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" + ;; + esac + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux-gnu*) + case $host_cpu in + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k) + lt_cv_deplibs_check_method=pass_all ;; + *) + # glibc up to 2.1.1 does not perform some relocations on ARM + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; + esac + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +openbsd*) + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' + else + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + fi + ;; + +osf3* | osf4* | osf5*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' + lt_cv_file_magic_test_file=/shlib/libc.so + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + lt_cv_file_magic_test_file=/lib/libc.so + ;; + +sysv5uw[78]* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; +esac + +fi + +echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method + +echo $ac_n "checking for object suffix""... $ac_c" 1>&6 +echo "configure:1993: checking for object suffix" >&5 +if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + rm -f conftest* +echo 'int i = 1;' > conftest.$ac_ext +if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + for ac_file in conftest.*; do + case $ac_file in + *.c) ;; + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; + esac + done +else + { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_objext" 1>&6 +OBJEXT=$ac_cv_objext +ac_objext=$ac_cv_objext + + + +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 +echo "configure:2019: checking for executable suffix" >&5 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$CYGWIN" = yes || test "$MINGW32" = yes; then + ac_cv_exeext=.exe +else + rm -f conftest* + echo 'int main () { return 0; }' > conftest.$ac_ext + ac_cv_exeext= + if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + for file in conftest.*; do + case $file in + *.$ac_ext | *.c | *.o | *.obj) ;; + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; + esac + done + else + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } + fi + rm -f conftest* + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no +fi +fi + +EXEEXT="" +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} +echo "$ac_t""${ac_cv_exeext}" 1>&6 +ac_exeext=$EXEEXT + +if test $host != $build; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 +echo "configure:2060: checking command to parse $NM output" >&5 +if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform the above into a raw symbol and a C symbol. +symxfrm='\1 \2\3 \3' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris* | sysv5*) + symcode='[BDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $host_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then + symcode='[ABCDGISTW]' +fi + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + rm -f conftest* + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { (eval echo configure:2146: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then + if egrep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr void * +#else +# define lt_ptr char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr address; +} +lt_preloaded_symbols[] = +{ +EOF + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$no_builtin_flag" + if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" +if test -z "$lt_cv_sys_global_symbol_pipe"; then + global_symbol_to_cdecl= + global_symbol_to_c_name_address= +else + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" +fi +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; +then + echo "$ac_t""failed" 1>&6 +else + echo "$ac_t""ok" 1>&6 +fi + +for ac_hdr in dlfcn.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2246: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + + + + + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 +echo "configure:2292: checking for ${ac_tool_prefix}file" >&5 +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case $MAGIC_CMD in + /*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; + ?:/*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. + ;; + *) + ac_save_MAGIC_CMD="$MAGIC_CMD" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="/usr/bin:$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + egrep "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$ac_save_ifs" + MAGIC_CMD="$ac_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + echo "$ac_t""$MAGIC_CMD" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + echo $ac_n "checking for file""... $ac_c" 1>&6 +echo "configure:2354: checking for file" >&5 +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case $MAGIC_CMD in + /*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; + ?:/*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. + ;; + *) + ac_save_MAGIC_CMD="$MAGIC_CMD" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="/usr/bin:$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + egrep "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$ac_save_ifs" + MAGIC_CMD="$ac_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + echo "$ac_t""$MAGIC_CMD" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2425: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +if test -z "$ac_cv_prog_RANLIB"; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2457: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="ranlib" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +else + RANLIB=":" +fi +fi + +# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2492: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +STRIP="$ac_cv_prog_STRIP" +if test -n "$STRIP"; then + echo "$ac_t""$STRIP" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +if test -z "$ac_cv_prog_STRIP"; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2524: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_STRIP="strip" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" +fi +fi +STRIP="$ac_cv_prog_STRIP" +if test -n "$STRIP"; then + echo "$ac_t""$STRIP" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +else + STRIP=":" +fi +fi + + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval="$enable_libtool_lock" + : +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 2573 "configure"' > conftest.$ac_ext + if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 +echo "configure:2595: checking whether the C compiler needs -belf" >&5 +if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + lt_cv_cc_needs_belf=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + lt_cv_cc_needs_belf=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +fi + +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + + +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" +need_locks="$enable_libtool_lock" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +if test x"$host" != x"$build"; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + +# Transform linux* to *-*-linux-gnu*, to support old configure scripts. +case $host_os in +linux-gnu*) ;; +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` +esac + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +# Allow CC to be a program name with arguments. +set dummy $CC +compiler="$2" + +echo $ac_n "checking for objdir""... $ac_c" 1>&6 +echo "configure:2735: checking for objdir" >&5 +rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + objdir=_libs +fi +rmdir .libs 2>/dev/null +echo "$ac_t""$objdir" 1>&6 + + +# Check whether --with-pic or --without-pic was given. +if test "${with_pic+set}" = set; then + withval="$with_pic" + pic_mode="$withval" +else + pic_mode=default +fi + +test -z "$pic_mode" && pic_mode=default + +# We assume here that the value for lt_cv_prog_cc_pic will not be cached +# in isolation, and that seeing it set (from the cache) indicates that +# the associated values are set (in the cache) correctly too. +echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 +echo "configure:2762: checking for $compiler option to produce PIC" >&5 +if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + lt_cv_prog_cc_pic= + lt_cv_prog_cc_shlib= + lt_cv_prog_cc_wl= + lt_cv_prog_cc_static= + lt_cv_prog_cc_no_builtin= + lt_cv_prog_cc_can_build_shared=$can_build_shared + + if test "$GCC" = yes; then + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-static' + + case $host_os in + aix*) + # Below there is a dirty hack to force normal static linking with -ldl + # The problem is because libdl dynamically linked with both libc and + # libC (AIX C++ library), which obviously doesn't included in libraries + # list by gcc. This cause undefined symbols with -static flags. + # This hack allows C programs to be linked with "-static -ldl", but + # not sure about C++ programs. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_cv_prog_cc_pic='-fno-common' + ;; + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_cv_prog_cc_pic=-Kconform_pic + fi + ;; + *) + lt_cv_prog_cc_pic='-fPIC' + ;; + esac + else + # PORTME Check for PIC flags for the system compiler. + case $host_os in + aix3* | aix4* | aix5*) + lt_cv_prog_cc_wl='-Wl,' + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_cv_prog_cc_static='-Bstatic' + else + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + hpux9* | hpux10* | hpux11*) + # Is there a better lt_cv_prog_cc_static that works with the bundled CC? + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" + lt_cv_prog_cc_pic='+Z' + ;; + + irix5* | irix6* | nonstopux*) + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + # PIC (with -KPIC) is the default. + ;; + + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + + newsos6) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + ;; + + osf3* | osf4* | osf5*) + # All OSF/1 code is PIC. + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + ;; + + sco3.2v5*) + lt_cv_prog_cc_pic='-Kpic' + lt_cv_prog_cc_static='-dn' + lt_cv_prog_cc_shlib='-belf' + ;; + + solaris*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + sunos4*) + lt_cv_prog_cc_pic='-PIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Qoption ld ' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + uts4*) + lt_cv_prog_cc_pic='-pic' + lt_cv_prog_cc_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_cv_prog_cc_pic='-Kconform_pic' + lt_cv_prog_cc_static='-Bstatic' + fi + ;; + + *) + lt_cv_prog_cc_can_build_shared=no + ;; + esac + fi + +fi + +if test -z "$lt_cv_prog_cc_pic"; then + echo "$ac_t""none" 1>&6 +else + echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 + + # Check to make sure the pic_flag actually works. + echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 +echo "configure:2910: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 + if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + case $host_os in + hpux9* | hpux10* | hpux11*) + # On HP-UX, both CC and GCC only warn that PIC is supported... then + # they create non-PIC objects. So, if there were any warnings, we + # assume that PIC is not supported. + if test -s conftest.err; then + lt_cv_prog_cc_pic_works=no + else + lt_cv_prog_cc_pic_works=yes + fi + ;; + *) + lt_cv_prog_cc_pic_works=yes + ;; + esac + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + lt_cv_prog_cc_pic_works=no + +fi +rm -f conftest* + CFLAGS="$save_CFLAGS" + +fi + + + if test "X$lt_cv_prog_cc_pic_works" = Xno; then + lt_cv_prog_cc_pic= + lt_cv_prog_cc_can_build_shared=no + else + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" + fi + + echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 +fi + +# Check for any special shared library compilation flags. +if test -n "$lt_cv_prog_cc_shlib"; then + echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : + else + echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 + lt_cv_prog_cc_can_build_shared=no + fi +fi + +echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 +echo "configure:2976: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 +if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + lt_cv_prog_cc_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + lt_cv_prog_cc_static_works=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + LDFLAGS="$save_LDFLAGS" + +fi + + +# Belt *and* braces to stop my trousers falling down: +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= +echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 + +pic_flag="$lt_cv_prog_cc_pic" +special_shlib_compile_flags="$lt_cv_prog_cc_shlib" +wl="$lt_cv_prog_cc_wl" +link_static_flag="$lt_cv_prog_cc_static" +no_builtin_flag="$lt_cv_prog_cc_no_builtin" +can_build_shared="$lt_cv_prog_cc_can_build_shared" + + +# Check to see if options -o and -c are simultaneously supported by compiler +echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 +echo "configure:3018: checking if $compiler supports -c -o file.$ac_objext" >&5 +if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +$rm -r conftest 2>/dev/null +mkdir conftest +cd conftest +echo "int some_variable = 0;" > conftest.$ac_ext +mkdir out +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers +# that will create temporary files in the current directory regardless of +# the output directory. Thus, making CWD read-only will cause this test +# to fail, enabling locking or at least warning the user not to do parallel +# builds. +chmod -w . +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" +compiler_c_o=no +if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s out/conftest.err; then + lt_cv_compiler_c_o=no + else + lt_cv_compiler_c_o=yes + fi +else + # Append any errors to the config.log. + cat out/conftest.err 1>&5 + lt_cv_compiler_c_o=no +fi +CFLAGS="$save_CFLAGS" +chmod u+w . +$rm conftest* out/* +rmdir out +cd .. +rmdir conftest +$rm -r conftest 2>/dev/null + +fi + +compiler_c_o=$lt_cv_compiler_c_o +echo "$ac_t""$compiler_c_o" 1>&6 + +if test x"$compiler_c_o" = x"yes"; then + # Check to see if we can write to a .lo + echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 +echo "configure:3066: checking if $compiler supports -c -o file.lo" >&5 + if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + lt_cv_compiler_o_lo=no + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -c -o conftest.lo" + save_objext="$ac_objext" + ac_objext=lo + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + lt_cv_compiler_o_lo=no + else + lt_cv_compiler_o_lo=yes + fi + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + ac_objext="$save_objext" + CFLAGS="$save_CFLAGS" + +fi + + compiler_o_lo=$lt_cv_compiler_o_lo + echo "$ac_t""$compiler_o_lo" 1>&6 +else + compiler_o_lo=no +fi + +# Check to see if we can do hard links to lock some files if needed +hard_links="nottested" +if test "$compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 +echo "configure:3115: checking if we can lock with hard links" >&5 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$ac_t""$hard_links" 1>&6 + if test "$hard_links" = no; then + echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 + need_locks=warn + fi +else + need_locks=no +fi + +if test "$GCC" = yes; then + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler + echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 +echo "configure:3134: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 + echo "int some_variable = 0;" > conftest.$ac_ext + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" + compiler_rtti_exceptions=no + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + compiler_rtti_exceptions=no + else + compiler_rtti_exceptions=yes + fi + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + CFLAGS="$save_CFLAGS" + echo "$ac_t""$compiler_rtti_exceptions" 1>&6 + + if test "$compiler_rtti_exceptions" = "yes"; then + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' + else + no_builtin_flag=' -fno-builtin' + fi +fi + +# See if the linker supports building shared libraries. +echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 +echo "configure:3174: checking whether the linker ($LD) supports shared libraries" >&5 + +allow_undefined_flag= +no_undefined_flag= +need_lib_prefix=unknown +need_version=unknown +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +archive_cmds= +archive_expsym_cmds= +old_archive_from_new_cmds= +old_archive_from_expsyms_cmds= +export_dynamic_flag_spec= +whole_archive_flag_spec= +thread_safe_flag_spec= +hardcode_into_libs=no +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no +hardcode_shlibpath_var=unsupported +runpath_var= +link_all_deplibs=unknown +always_export_symbols=no +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' +# include_expsyms should be a list of space-separated symbols to be *always* +# included in the symbol list +include_expsyms= +# exclude_expsyms can be an egrep regular expression of symbols to exclude +# it will be wrapped by ` (' and `)$', so one must not match beginning or +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', +# as well as any symbol that contains `d'. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_" +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out +# platforms (ab)use it in PIC code, but their linkers get confused if +# the symbol is explicitly referenced. Since portable code cannot +# rely on this symbol name, it's probably fine to never include it in +# preloaded symbol tables. +extract_expsyms_cmds= + +case $host_os in +cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; +openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX, the GNU linker is very broken + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=yes + + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ + test -f $output_objdir/impgen.exe || (cd $output_objdir && \ + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ + else $CC -o impgen impgen.c ; fi)~ + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' + + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' + + # cygwin and mingw dlls have different entry points and sets of symbols + # to exclude. + # FIXME: what about values for MSVC? + dll_entry=__cygwin_dll_entry@12 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ + case $host_os in + mingw*) + # mingw values + dll_entry=_DllMainCRTStartup@12 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ + ;; + esac + + # mingw and cygwin differ, and it's simplest to just exclude the union + # of the two symbol sets. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one (in ltdll.c) + if test "x$lt_cv_need_dllmain" = "xyes"; then + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' + else + ltdll_obj= + ltdll_cmds= + fi + + # Extract the symbol export list from an `--export-all' def file, + # then regenerate the def file from the symbol export list, so that + # the compiled dll only exports the symbol export list. + # Be careful not to strip the DATA tag left be newer dlltools. + export_symbols_cmds="$ltdll_cmds"' + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' + + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is. + # If DATA tags from a recent dlltool are present, honour them! + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname-def; + else + echo EXPORTS > $output_objdir/$soname-def; + _lt_hint=1; + cat $export_symbols | while read symbol; do + set dummy \$symbol; + case \$# in + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; + esac; + _lt_hint=`expr 1 + \$_lt_hint`; + done; + fi~ + '"$ltdll_cmds"' + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = yes; then + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + case $host_os in + cygwin* | mingw* | pw32*) + # dlltool doesn't understand --whole-archive et. al. + whole_archive_flag_spec= + ;; + *) + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + ;; + esac + fi +else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + hardcode_direct=yes + archive_cmds='' + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + + shared_flag='-shared' + else + # not using gcc + if test "$host_cpu" = ia64; then + shared_flag='${wl}-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall can do strange things, so it is better to + # generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='${wl}-berok' + # This is a bit strange, but is similar to how AIX traditionally builds + # it's shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[012]) + allow_undefined_flag='-undefined suppress' + ;; + *) # Darwin 1.3 on + allow_undefined_flag='-flat_namespace -undefined suppress' + ;; + esac + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. Also zsh mangles + # `"' quotes if we put them in here... so don't! + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' + # We need to add '_' to the symbols in $export_symbols first + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' + hardcode_direct=yes + hardcode_shlibpath_var=no + whole_archive_flag_spec='-all_load $convenience' + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9* | hpux10* | hpux11*) + case $host_os in + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; + esac + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_minus_L=yes # Not in the search PATH, but as the default + # location of the library. + export_dynamic_flag_spec='${wl}-E' + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' + + #Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + sco3.2v5*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + export_dynamic_flag_spec='${wl}-Bexport' + ;; + + solaris*) + # gcc --version < 3.0 without binutils cannot create self contained + # shared libraries reliably, requiring libgcc.a to resolve some of + # the object symbols generated in some cases. Libraries that use + # assert need libgcc.a to resolve __eprintf, for example. Linking + # a copy of libgcc.a into every shared library to guarantee resolving + # such symbols causes other problems: According to Tim Van Holder + # , C++ libraries end up with a separate + # (to the application) exception stack for one thing. + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + case `$CC --version 2>/dev/null` in + [12].*) + cat <&2 + +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably +*** create self contained shared libraries on Solaris systems, without +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling +*** -no-undefined support, which will at least allow you to build shared +*** libraries. However, you may find that when you link such libraries +*** into an application without using GCC, you have to manually add +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to +*** upgrade to a newer version of GCC. Another option is to rebuild your +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. + +EOF + no_undefined_flag= + ;; + esac + fi + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5uw7* | unixware7*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac +fi +echo "$ac_t""$ld_shlibs" 1>&6 +test "$ld_shlibs" = no && can_build_shared=no + +# Check hardcoding attributes. +echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 +echo "configure:3873: checking how to hardcode library paths into programs" >&5 +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var"; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$hardcode_shlibpath_var" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +echo "$ac_t""$hardcode_action" 1>&6 + +striplib= +old_striplib= +echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 +echo "configure:3901: checking whether stripping libraries is possible" >&5 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +reload_cmds='$LD$reload_flag -o $output$reload_objs' +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +# PORTME Fill in your ld.so characteristics +echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 +echo "configure:3915: checking dynamic linker characteristics" >&5 +library_names_spec= +libname_spec='lib$name' +soname_spec= +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}.so$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can + # not hardcode correct soname into executable. Probably we can + # add versioning support to collect2, so additional links can + # be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}.so$major' + fi + shlibpath_var=LIBPATH + fi + hardcode_into_libs=yes + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}.so' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi4*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + export_dynamic_flag_spec=-rdynamic + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + need_version=no + need_lib_prefix=no + case $GCC,$host_os in + yes,cygwin*) + library_names_spec='$libname.dll.a' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog .libs/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + ;; + yes,mingw*) + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` + ;; + yes,pw32*) + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' + ;; + *) + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU/FreeBSD ld.so' + ;; + +freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + *) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + dynamic_linker="$host_os dld.sl" + version_type=sunos + need_lib_prefix=no + need_version=no + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' + soname_spec='${libname}${release}.sl$major' + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) version_type=irix ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' + soname_spec='${libname}${release}.so$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case "$host_os" in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + ;; + +os2*) + libname_spec='$name' + need_lib_prefix=no + library_names_spec='$libname.dll $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_version=no + need_lib_prefix=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + hardcode_into_libs=yes + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' + soname_spec='$libname.so.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$ac_t""$dynamic_linker" 1>&6 +test "$dynamic_linker" = no && can_build_shared=no + +# Report the final consequences. +echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 +echo "configure:4339: checking if libtool supports shared libraries" >&5 +echo "$ac_t""$can_build_shared" 1>&6 + +echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 +echo "configure:4343: checking whether to build shared libraries" >&5 +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +echo "$ac_t""$enable_shared" 1>&6 + +echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 +echo "configure:4366: checking whether to build static libraries" >&5 +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +echo "$ac_t""$enable_static" 1>&6 + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + cygwin* | mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + *) + echo $ac_n "checking for shl_load""... $ac_c" 1>&6 +echo "configure:4407: checking for shl_load" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shl_load) || defined (__stub___shl_load) +choke me +#else +shl_load(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shl_load=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shl_load=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="shl_load" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 +echo "configure:4453: checking for shl_load in -ldld" >&5 +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldld $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dlopen""... $ac_c" 1>&6 +echo "configure:4491: checking for dlopen" >&5 +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +dlopen(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_dlopen=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_dlopen=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="dlopen" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 +echo "configure:4537: checking for dlopen in -ldl" >&5 +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldl $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 +echo "configure:4575: checking for dlopen in -lsvld" >&5 +ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsvld $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 +echo "configure:4613: checking for dld_link in -ldld" >&5 +ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldld $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 +echo "configure:4688: checking whether a program can dlopen itself" >&5 +if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi + +echo "$ac_t""$lt_cv_dlopen_self" 1>&6 + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 +echo "configure:4782: checking whether a statically linked program can dlopen itself" >&5 +if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi + +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 +echo "configure:4902: checking whether -lc should be explicitly linked in" >&5 + if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + $rm conftest* + echo 'static int dummy;' > conftest.$ac_ext + + if { (eval echo configure:4909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_cv_prog_cc_wl + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { (eval echo configure:4922: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi +fi + + echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 + ;; + esac +fi +need_lc=${lt_cv_archive_cmds_need_lc-yes} + +# The second clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + : +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + test -f Makefile && make "$ltmain" +fi + +if test -f "$ltmain"; then + trap "$rm \"${ofile}T\"; exit 1" 1 2 15 + $rm -f "${ofile}T" + + echo creating $ofile + + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS SED \ + AR AR_FLAGS CC LD LN_S NM SHELL \ + reload_flag reload_cmds wl \ + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ + thread_safe_flag_spec whole_archive_flag_spec libname_spec \ + library_names_spec soname_spec \ + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ + old_striplib striplib file_magic_cmd export_symbols_cmds \ + deplibs_check_method allow_undefined_flag no_undefined_flag \ + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ + global_symbol_to_c_name_address \ + hardcode_libdir_flag_spec hardcode_libdir_separator \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do + + case $var in + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + cat <<__EOF__ > "${ofile}T" +#! $SHELL + +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="${SED} -e s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$need_lc + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# The default C compiler. +CC=$lt_CC + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP="$STRIP" + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_pic_flag +pic_mode=$pic_mode + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_compiler_c_o + +# Can we write directly to a .lo ? +compiler_o_lo=$lt_compiler_o_lo + +# Must we lock files when doing compilation ? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix -LD="$ac_cv_path_LD" -if test -n "$LD"; then - echo "$ac_t""$LD" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 -echo "configure:1424: checking if the linker ($LD) is GNU ld" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then - ac_cv_prog_gnu_ld=yes -else - ac_cv_prog_gnu_ld=no -fi -fi +# Do we need a version for libraries? +need_version=$need_version -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 +# Whether dlopen is supported. +dlopen_support=$enable_dlopen +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 -echo "configure:1440: checking for BSD-compatible nm" >&5 -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$NM"; then - # Let the user override the test. - ac_cv_path_NM="$NM" -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -B" - break - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -p" - break - else - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - fi - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm -fi -fi +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static -NM="$ac_cv_path_NM" -echo "$ac_t""$NM" 1>&6 +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_link_static_flag -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:1476: checking whether ln -s works" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - rm -f conftestdata -if ln -s X conftestdata 2>/dev/null -then - rm -f conftestdata - ac_cv_prog_LN_S="ln -s" -else - ac_cv_prog_LN_S=ln -fi -fi -LN_S="$ac_cv_prog_LN_S" -if test "$ac_cv_prog_LN_S" = "ln -s"; then - echo "$ac_t""yes" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_no_builtin_flag +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec -case "$target" in -NONE) lt_target="$host" ;; -*) lt_target="$target" ;; -esac +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec -# Check for any special flags to pass to ltconfig. -libtool_flags="--cache-file=$cache_file" -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec +# Library versioning type. +version_type=$version_type -# Check whether --enable-libtool-lock or --disable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval="$enable_libtool_lock" - : -fi +# Format of library name prefix. +libname_spec=$lt_libname_spec -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case "$lt_target" in -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 1525 "configure"' > conftest.$ac_ext - if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - case "`/usr/bin/file conftest.o`" in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - rm -rf conftest* - ;; +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 -echo "configure:1547: checking whether the C compiler needs -belf" >&5 -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - lt_cv_cc_needs_belf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - lt_cv_cc_needs_belf=no -fi -rm -f conftest* -fi +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib -esac +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd -# Save cache, so that ltconfig can load it -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + case $host_os in + aix3*) + cat <<\EOF >> "${ofile}T" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + case $host_os in + cygwin* | mingw* | pw32* | os2*) + cat <<'EOF' >> "${ofile}T" + # This is a source program that is used to create dlls on Windows + # Don't remove nor modify the starting and closing comments +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include # -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ + # This is a source program that is used to create import libraries + # on Windows for dlls which lack them. Don't remove nor modify the + # starting and closing comments +# /* impgen.c starts here */ +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. +# +# This file is part of GNU libtool. # +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# */ +# +# #include /* for printf() */ +# #include /* for open(), lseek(), read() */ +# #include /* for O_RDONLY, O_BINARY */ +# #include /* for strdup() */ +# +# /* O_BINARY isn't required (or even defined sometimes) under Unix */ +# #ifndef O_BINARY +# #define O_BINARY 0 +# #endif +# +# static unsigned int +# pe_get16 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[2]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 2); +# return b[0] + (b[1]<<8); +# } +# +# static unsigned int +# pe_get32 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[4]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 4); +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# static unsigned int +# pe_as32 (ptr) +# void *ptr; +# { +# unsigned char *b = ptr; +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# int +# main (argc, argv) +# int argc; +# char *argv[]; +# { +# int dll; +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; +# unsigned long export_rva, export_size, nsections, secptr, expptr; +# unsigned long name_rvas, nexp; +# unsigned char *expdata, *erva; +# char *filename, *dll_name; +# +# filename = argv[1]; +# +# dll = open(filename, O_RDONLY|O_BINARY); +# if (dll < 1) +# return 1; +# +# dll_name = filename; +# +# for (i=0; filename[i]; i++) +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') +# dll_name = filename + i +1; +# +# pe_header_offset = pe_get32 (dll, 0x3c); +# opthdr_ofs = pe_header_offset + 4 + 20; +# num_entries = pe_get32 (dll, opthdr_ofs + 92); +# +# if (num_entries < 1) /* no exports */ +# return 1; +# +# export_rva = pe_get32 (dll, opthdr_ofs + 96); +# export_size = pe_get32 (dll, opthdr_ofs + 100); +# nsections = pe_get16 (dll, pe_header_offset + 4 +2); +# secptr = (pe_header_offset + 4 + 20 + +# pe_get16 (dll, pe_header_offset + 4 + 16)); +# +# expptr = 0; +# for (i = 0; i < nsections; i++) +# { +# char sname[8]; +# unsigned long secptr1 = secptr + 40 * i; +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); +# unsigned long vsize = pe_get32 (dll, secptr1 + 16); +# unsigned long fptr = pe_get32 (dll, secptr1 + 20); +# lseek(dll, secptr1, SEEK_SET); +# read(dll, sname, 8); +# if (vaddr <= export_rva && vaddr+vsize > export_rva) +# { +# expptr = fptr + (export_rva - vaddr); +# if (export_rva + export_size > vaddr + vsize) +# export_size = vsize - (export_rva - vaddr); +# break; +# } +# } +# +# expdata = (unsigned char*)malloc(export_size); +# lseek (dll, expptr, SEEK_SET); +# read (dll, expdata, export_size); +# erva = expdata - export_rva; +# +# nexp = pe_as32 (expdata+24); +# name_rvas = pe_as32 (expdata+32); +# +# printf ("EXPORTS\n"); +# for (i = 0; i&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) + + mv -f "${ofile}T" "$ofile" || \ + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") + chmod +x "$ofile" fi -rm -f confcache -# Actually configure libtool. ac_aux_dir is where install-sh is found. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } -# Reload cache, that may have been modified by ltconfig -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi # This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' -# Redirect the config.log output again, so that the ltconfig log is not -# clobbered by the next message. -exec 5>>./config.log +# Prevent multiple expansion -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 -echo "configure:1662: checking for POSIXized ISC" >&5 -if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 -then - echo "$ac_t""yes" 1>&6 - ISC=yes # If later tests want to check for ISC. - cat >> confdefs.h <<\EOF -#define _POSIX_SOURCE 1 + + + echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 +echo "configure:5509: checking for strerror in -lcposix" >&5 +ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lcposix $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" - if test "$GCC" = yes; then - CC="$CC -posix" - else - CC="$CC -Xp" - fi +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -lcposix" else echo "$ac_t""no" 1>&6 - ISC= fi + + echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 -echo "configure:1686: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "configure:5554: checking for ${CC-cc} option to accept ANSI C" >&5 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1698,7 +5566,7 @@ do CC="$ac_save_CC $ac_arg" cat > conftest.$ac_ext < #include @@ -1735,7 +5603,7 @@ ; return 0; } EOF -if { (eval echo configure:1739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_prog_cc_stdc="$ac_arg"; break else @@ -1761,7 +5629,7 @@ echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 -echo "configure:1765: checking for function prototypes" >&5 +echo "configure:5633: checking for function prototypes" >&5 if test "$am_cv_prog_cc_stdc" != no; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -1774,12 +5642,12 @@ U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1778: checking for ANSI C header files" >&5 +echo "configure:5646: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1787,7 +5655,7 @@ #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1804,7 +5672,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -1822,7 +5690,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -1843,7 +5711,7 @@ : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1854,7 +5722,7 @@ exit (0); } EOF -if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1881,17 +5749,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1885: checking for $ac_hdr" >&5 +echo "configure:5753: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1920,12 +5788,12 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1924: checking for working const" >&5 +echo "configure:5792: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -1995,21 +5863,21 @@ fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:1999: checking for inline" >&5 +echo "configure:5867: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -2039,7 +5907,7 @@ # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2043: checking for $ac_word" >&5 +echo "configure:5911: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2076,7 +5944,7 @@ # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2080: checking for $ac_word" >&5 +echo "configure:5948: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2110,7 +5978,7 @@ *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 -echo "configure:2114: checking for yywrap in -l$ac_lib" >&5 +echo "configure:5982: checking for yywrap in -l$ac_lib" >&5 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2118,7 +5986,7 @@ ac_save_LIBS="$LIBS" LIBS="-l$ac_lib $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2152,7 +6020,7 @@ fi echo $ac_n "checking lex output file root""... $ac_c" 1>&6 -echo "configure:2156: checking lex output file root" >&5 +echo "configure:6024: checking lex output file root" >&5 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2173,7 +6041,7 @@ LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 -echo "configure:2177: checking whether yytext is a pointer" >&5 +echo "configure:6045: checking whether yytext is a pointer" >&5 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2185,14 +6053,14 @@ ac_save_LIBS="$LIBS" LIBS="$LIBS $LEXLIB" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_prog_lex_yytext_pointer=yes else @@ -2216,12 +6084,12 @@ fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:2220: checking for ANSI C header files" >&5 +echo "configure:6088: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2229,7 +6097,7 @@ #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2246,7 +6114,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -2264,7 +6132,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -2285,7 +6153,7 @@ : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -2296,7 +6164,7 @@ exit (0); } EOF -if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -2323,17 +6191,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2327: checking for $ac_hdr" >&5 +echo "configure:6195: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2360,12 +6228,12 @@ done echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2364: checking return type of signal handlers" >&5 +echo "configure:6232: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2382,7 +6250,7 @@ int i; ; return 0; } EOF -if { (eval echo configure:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -2401,12 +6269,12 @@ echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:2405: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:6273: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2415,7 +6283,7 @@ struct tm *tp; ; return 0; } EOF -if { (eval echo configure:2419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -2440,17 +6308,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2444: checking for $ac_hdr" >&5 +echo "configure:6312: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2478,12 +6346,12 @@ echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 -echo "configure:2482: checking for struct utimbuf" >&5 +echo "configure:6350: checking for struct utimbuf" >&5 if eval "test \"`echo '$''{'fu_cv_sys_struct_utimbuf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* fu_cv_sys_struct_utimbuf=yes else @@ -2530,12 +6398,12 @@ for ac_func in dup2 mbrtowc rename setlocale strerror strndup wcrtomb do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2534: checking for $ac_func" >&5 +echo "configure:6402: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2585,12 +6453,12 @@ for ac_func in strtol strtoul do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2589: checking for $ac_func" >&5 +echo "configure:6457: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2642,19 +6510,19 @@ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:2646: checking for working alloca.h" >&5 +echo "configure:6514: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -2675,12 +6543,12 @@ fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:2679: checking for alloca" >&5 +echo "configure:6547: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -2740,12 +6608,12 @@ echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:2744: checking whether alloca needs Cray hooks" >&5 +echo "configure:6612: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:2774: checking for $ac_func" >&5 +echo "configure:6642: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2825,7 +6693,7 @@ fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:2829: checking stack direction for C alloca" >&5 +echo "configure:6697: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2833,7 +6701,7 @@ ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -2874,12 +6742,12 @@ fi echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:2878: checking for vprintf" >&5 +echo "configure:6746: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else @@ -2926,12 +6794,12 @@ if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:2930: checking for _doprnt" >&5 +echo "configure:6798: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else @@ -2986,7 +6854,7 @@ echo $ac_n "checking for working malloc""... $ac_c" 1>&6 -echo "configure:2990: checking for working malloc" >&5 +echo "configure:6858: checking for working malloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2994,7 +6862,7 @@ jm_cv_func_working_malloc=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then jm_cv_func_working_malloc=yes else @@ -3037,7 +6905,7 @@ echo $ac_n "checking for working realloc""... $ac_c" 1>&6 -echo "configure:3041: checking for working realloc" >&5 +echo "configure:6909: checking for working realloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_realloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3045,7 +6913,7 @@ jm_cv_func_working_realloc=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then jm_cv_func_working_realloc=yes else @@ -3090,7 +6958,7 @@ fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:3094: checking host system type" >&5 +echo "configure:6962: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -3115,17 +6983,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3119: checking for $ac_hdr" >&5 +echo "configure:6987: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3154,12 +7022,12 @@ for ac_func in nl_langinfo do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3158: checking for $ac_func" >&5 +echo "configure:7026: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3208,19 +7076,19 @@ echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 -echo "configure:3212: checking for nl_langinfo and CODESET" >&5 +echo "configure:7080: checking for nl_langinfo and CODESET" >&5 if eval "test \"`echo '$''{'jm_cv_langinfo_codeset'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char* cs = nl_langinfo(CODESET); ; return 0; } EOF -if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* jm_cv_langinfo_codeset=yes else @@ -3243,12 +7111,12 @@ echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 -echo "configure:3247: checking whether we are using the GNU C Library 2.1 or newer" >&5 +echo "configure:7115: checking whether we are using the GNU C Library 2.1 or newer" >&5 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -3280,7 +7148,7 @@ echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 -echo "configure:3284: checking if malloc debugging is wanted" >&5 +echo "configure:7152: checking if malloc debugging is wanted" >&5 # Check whether --with-dmalloc or --without-dmalloc was given. if test "${with_dmalloc+set}" = set; then withval="$with_dmalloc" @@ -3303,7 +7171,7 @@ echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6 -echo "configure:3307: checking whether NLS is wanted" >&5 +echo "configure:7175: checking whether NLS is wanted" >&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" @@ -3340,12 +7208,12 @@ for ac_func in gettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3344: checking for $ac_func" >&5 +echo "configure:7212: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3393,7 +7261,7 @@ done echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 -echo "configure:3397: checking for gettext in -lintl" >&5 +echo "configure:7265: checking for gettext in -lintl" >&5 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3401,7 +7269,7 @@ ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3434,7 +7302,7 @@ if test $ac_cv_lib_intl_gettext$ac_cv_func_gettext != nono; then echo $ac_n "checking whether the included gettext is preferred""... $ac_c" 1>&6 -echo "configure:3438: checking whether the included gettext is preferred" >&5 +echo "configure:7306: checking whether the included gettext is preferred" >&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" @@ -3465,17 +7333,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3469: checking for $ac_hdr" >&5 +echo "configure:7337: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3504,12 +7372,12 @@ for ac_func in dcgettext gettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3508: checking for $ac_func" >&5 +echo "configure:7376: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3562,17 +7430,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3566: checking for $ac_hdr" >&5 +echo "configure:7434: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3602,17 +7470,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3606: checking for $ac_hdr" >&5 +echo "configure:7474: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3641,12 +7509,12 @@ for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3645: checking for $ac_func" >&5 +echo "configure:7513: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3694,7 +7562,7 @@ done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:3698: checking for working mmap" >&5 +echo "configure:7566: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3702,7 +7570,7 @@ ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -3867,12 +7735,12 @@ for ac_func in getcwd mempcpy munmap setlocale stpcpy strcasecmp strchr strdup __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3871: checking for $ac_func" >&5 +echo "configure:7739: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3921,19 +7789,19 @@ if test $ac_cv_header_locale_h = yes; then echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:3925: checking for LC_MESSAGES" >&5 +echo "configure:7793: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF -if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_val_LC_MESSAGES=yes else @@ -3968,7 +7836,7 @@ echo $ac_n "checking which translations to install""... $ac_c" 1>&6 -echo "configure:3972: checking which translations to install" >&5 +echo "configure:7840: checking which translations to install" >&5 if test -z "$LINGUAS"; then ac_print="$ALL_LINGUAS" MOFILES="$ALL_MOFILES" @@ -4172,8 +8040,12 @@ s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g -s%@RANLIB@%$RANLIB%g s%@LN_S@%$LN_S%g +s%@OBJEXT@%$OBJEXT%g +s%@EXEEXT@%$EXEEXT%g +s%@ECHO@%$ECHO%g +s%@RANLIB@%$RANLIB%g +s%@STRIP@%$STRIP%g s%@LIBTOOL@%$LIBTOOL%g s%@U@%$U%g s%@ANSI2KNR@%$ANSI2KNR%g --- a/ltmain.sh +++ b/ltmain.sh @@ -1,7 +1,8 @@ # ltmain.sh - Provide generalized library-building support services. -# NOTE: Changing this file will not affect anything until you rerun ltconfig. +# NOTE: Changing this file will not affect anything until you rerun configure. # -# Copyright (C) 1996-1999 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify @@ -48,14 +49,14 @@ fi # The name of this program. -progname=`$echo "$0" | sed 's%^.*/%%'` +progname=`$echo "$0" | ${SED} 's%^.*/%%'` modename="$progname" # Constants. PROGRAM=ltmain.sh PACKAGE=libtool -VERSION=1.3.4 -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)" +VERSION=1.4.3 +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36) Debian$Rev: 50 $" default_mode= help="Try \`$progname --help' for more information." @@ -66,10 +67,19 @@ # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' +Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' -SP2NL='tr \040 \012' -NL2SP='tr \015\012 \040\040' +# test EBCDIC or ASCII +case `echo A|od -x` in + *[Cc]1*) # EBCDIC based system + SP2NL="tr '\100' '\n'" + NL2SP="tr '\r\n' '\100\100'" + ;; + *) # Assume ASCII based system + SP2NL="tr '\040' '\012'" + NL2SP="tr '\015\012' '\040\040'" + ;; +esac # NLS nuisances. # Only set LANG and LC_ALL to C if already set. @@ -83,11 +93,9 @@ save_LANG="$LANG"; LANG=C; export LANG fi -if test "$LTCONFIG_VERSION" != "$VERSION"; then - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit 1 -fi +# Make sure IFS has a sensible default +: ${IFS=" +"} if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then echo "$modename: not configured to build any kind of library" 1>&2 @@ -113,16 +121,16 @@ arg="$1" shift - case "$arg" in + case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then - case "$prev" in + case $prev in execute_dlfiles) - eval "$prev=\"\$$prev \$arg\"" + execute_dlfiles="$execute_dlfiles $arg" ;; *) eval "$prev=\$arg" @@ -135,7 +143,7 @@ fi # Have we seen a non-optional argument yet? - case "$arg" in + case $arg in --help) show_help=yes ;; @@ -146,7 +154,7 @@ ;; --config) - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 exit 0 ;; @@ -179,6 +187,8 @@ --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; + --preserve-dup-deps) duplicate_deps="yes" ;; + --quiet | --silent) show=: ;; @@ -207,16 +217,21 @@ exit 1 fi +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then - case "$nonopt" in - *cc | *++ | gcc* | *-gcc*) + case $nonopt in + *cc | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do - case "$arg" in + case $arg in -c) mode=compile break @@ -261,12 +276,13 @@ help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. - case "$mode" in + case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= + prev= lastarg= srcfile="$nonopt" suppress_output= @@ -274,8 +290,34 @@ user_target=no for arg do + case $prev in + "") ;; + xcompiler) + # Aesthetically quote the previous argument. + prev= + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + + case $arg in + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + + # Add the previous argument to base_compile. + if test -z "$base_compile"; then + base_compile="$lastarg" + else + base_compile="$base_compile $lastarg" + fi + continue + ;; + esac + # Accept any command-line options. - case "$arg" in + case $arg in -o) if test "$user_target" != "no"; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 @@ -288,9 +330,53 @@ build_old_libs=yes continue ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + lastarg="$lastarg $arg" + done + IFS="$save_ifs" + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` + + # Add the arguments to base_compile. + if test -z "$base_compile"; then + base_compile="$lastarg" + else + base_compile="$base_compile $lastarg" + fi + continue + ;; esac - case "$user_target" in + case $user_target in next) # The next one is the -o target name user_target=yes @@ -316,10 +402,10 @@ lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly in scan - # sets, so we specify it separately. - case "$lastarg" in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + case $lastarg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac @@ -332,7 +418,7 @@ fi done - case "$user_target" in + case $user_target in set) ;; no) @@ -348,7 +434,7 @@ # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSfmso]' - case "$libobj" in + case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; @@ -363,7 +449,7 @@ libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` - case "$libobj" in + case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 @@ -387,10 +473,21 @@ $run $rm $removelist trap "$run $rm $removelist; exit 1" 1 2 15 + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext} + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit 1" 1 2 15 @@ -402,7 +499,7 @@ # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then - until ln "$0" "$lockfile" 2>/dev/null; do + until $run ln "$0" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done @@ -434,8 +531,13 @@ # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile - # All platforms use -DPIC, to notify preprocessed assembler code. - command="$base_compile $srcfile $pic_flag -DPIC" + if test "$pic_mode" != no; then + # All platforms use -DPIC, to notify preprocessed assembler code. + command="$base_compile $srcfile $pic_flag -DPIC" + else + # Don't build PIC code + command="$base_compile $srcfile" + fi if test "$build_old_libs" = yes; then lo_libobj="$libobj" dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'` @@ -506,7 +608,8 @@ fi # If we have no pic_flag, then copy the object into place and finish. - if test -z "$pic_flag" && test "$build_old_libs" = yes; then + if (test -z "$pic_flag" || test "$pic_mode" != default) && + test "$build_old_libs" = yes; then # Rename the .lo from within objdir to obj if test -f $obj; then $show $rm $obj @@ -532,6 +635,10 @@ # Now arrange that obj and lo_libobj become the same file $show "(cd $xdir && $LN_S $baseobj $libobj)" if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + $run $rm "$lockfile" + fi exit 0 else error=$? @@ -546,7 +653,13 @@ # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then - command="$base_compile $srcfile" + if test "$pic_mode" != yes; then + # Don't build PIC code + command="$base_compile $srcfile" + else + # All platforms use -DPIC, to notify preprocessed assembler code. + command="$base_compile $srcfile $pic_flag -DPIC" + fi if test "$compiler_c_o" = yes; then command="$command -o $obj" output_obj="$obj" @@ -612,17 +725,17 @@ # Unlock the critical section if it was locked if test "$need_locks" != no; then - $rm "$lockfile" + $run $rm "$lockfile" fi exit 0 ;; # libtool link mode - link) + link | relink) modename="$modename: link" - case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra @@ -635,179 +748,12 @@ # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes - - # This is a source program that is used to create dlls on Windows - # Don't remove nor modify the starting and closing comments -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ - # This is a source program that is used to create import libraries - # on Windows for dlls which lack them. Don't remove nor modify the - # starting and closing comments -# /* impgen.c starts here */ -# /* Copyright (C) 1999 Free Software Foundation, Inc. -# -# This file is part of GNU libtool. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# */ -# -# #include /* for printf() */ -# #include /* for open(), lseek(), read() */ -# #include /* for O_RDONLY, O_BINARY */ -# #include /* for strdup() */ -# -# static unsigned int -# pe_get16 (fd, offset) -# int fd; -# int offset; -# { -# unsigned char b[2]; -# lseek (fd, offset, SEEK_SET); -# read (fd, b, 2); -# return b[0] + (b[1]<<8); -# } -# -# static unsigned int -# pe_get32 (fd, offset) -# int fd; -# int offset; -# { -# unsigned char b[4]; -# lseek (fd, offset, SEEK_SET); -# read (fd, b, 4); -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); -# } -# -# static unsigned int -# pe_as32 (ptr) -# void *ptr; -# { -# unsigned char *b = ptr; -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); -# } -# -# int -# main (argc, argv) -# int argc; -# char *argv[]; -# { -# int dll; -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; -# unsigned long export_rva, export_size, nsections, secptr, expptr; -# unsigned long name_rvas, nexp; -# unsigned char *expdata, *erva; -# char *filename, *dll_name; -# -# filename = argv[1]; -# -# dll = open(filename, O_RDONLY|O_BINARY); -# if (!dll) -# return 1; -# -# dll_name = filename; -# -# for (i=0; filename[i]; i++) -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') -# dll_name = filename + i +1; -# -# pe_header_offset = pe_get32 (dll, 0x3c); -# opthdr_ofs = pe_header_offset + 4 + 20; -# num_entries = pe_get32 (dll, opthdr_ofs + 92); -# -# if (num_entries < 1) /* no exports */ -# return 1; -# -# export_rva = pe_get32 (dll, opthdr_ofs + 96); -# export_size = pe_get32 (dll, opthdr_ofs + 100); -# nsections = pe_get16 (dll, pe_header_offset + 4 +2); -# secptr = (pe_header_offset + 4 + 20 + -# pe_get16 (dll, pe_header_offset + 4 + 16)); -# -# expptr = 0; -# for (i = 0; i < nsections; i++) -# { -# char sname[8]; -# unsigned long secptr1 = secptr + 40 * i; -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); -# unsigned long vsize = pe_get32 (dll, secptr1 + 16); -# unsigned long fptr = pe_get32 (dll, secptr1 + 20); -# lseek(dll, secptr1, SEEK_SET); -# read(dll, sname, 8); -# if (vaddr <= export_rva && vaddr+vsize > export_rva) -# { -# expptr = fptr + (export_rva - vaddr); -# if (export_rva + export_size > vaddr + vsize) -# export_size = vsize - (export_rva - vaddr); -# break; -# } -# } -# -# expdata = (unsigned char*)malloc(export_size); -# lseek (dll, expptr, SEEK_SET); -# read (dll, expdata, export_size); -# erva = expdata - export_rva; -# -# nexp = pe_as32 (expdata+24); -# name_rvas = pe_as32 (expdata+32); -# -# printf ("EXPORTS\n"); -# for (i = 0; i\?\'\ \ ]*|*]*|"") + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test + ;; + *) qarg=$arg ;; + esac + libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then - case "$prev" in + case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac - case "$prev" in + case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. @@ -905,7 +853,7 @@ finalize_command="$finalize_command @SYMFILE@" preload=yes fi - case "$arg" in + case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then @@ -934,6 +882,7 @@ dlprefiles="$dlprefiles $arg" fi prev= + continue ;; esac ;; @@ -951,6 +900,11 @@ prev= continue ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; release) release="-$arg" prev= @@ -958,7 +912,7 @@ ;; rpath | xrpath) # We need an absolute path. - case "$arg" in + case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 @@ -979,17 +933,32 @@ prev= continue ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + compile_command="$compile_command $qarg" + finalize_command="$finalize_command $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + compile_command="$compile_command $wl$qarg" + finalize_command="$finalize_command $wl$qarg" + continue + ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac - fi + fi # test -n $prev prevarg="$arg" - case "$arg" in + case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" @@ -1026,7 +995,7 @@ -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: not more than one -exported-symbols argument allowed" + $echo "$modename: more than one -exported-symbols argument is not allowed" exit 1 fi if test "X$arg" = "X-export-symbols"; then @@ -1037,58 +1006,83 @@ continue ;; + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + if test -z "$with_gcc"; then + case $host in + *-*-irix* | *-*-nonstopux*) + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + ;; + esac + fi + continue + ;; + -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. - case "$dir" in + case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 - absdir="$dir" + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 + exit 1 fi dir="$absdir" ;; esac - case " $deplibs " in - *" $arg "*) ;; - *) deplibs="$deplibs $arg";; - esac - case " $lib_search_path " in - *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir";; + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; esac - case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) - dllsearchdir=`cd "$dir" && pwd || echo "$dir"` - case ":$dllsearchpath:" in - ::) dllsearchpath="$dllsearchdir";; - *":$dllsearchdir:"*) ;; - *) dllsearchpath="$dllsearchpath:$dllsearchdir";; + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + case :$dllsearchpath: in + *":$dir:"*) ;; + *) dllsearchpath="$dllsearchpath:$dir";; esac ;; esac + continue ;; -l*) - if test "$arg" = "-lc"; then - case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*) - # These systems don't actually have c library (as such) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-pw32* | *-*-beos*) + # These systems don't actually have a C or math library (as such) continue ;; + *-*-mingw* | *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; esac - elif test "$arg" = "-lm"; then - case "$host" in - *-*-cygwin* | *-*-beos*) - # These systems don't actually have math library (as such) + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd*) + # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" + continue ;; -module) @@ -1096,6 +1090,25 @@ continue ;; + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + # The PATH hackery in wrapper scripts is required on Windows + # in order for the loader to find any dlls it needs. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + -no-undefined) allow_undefined=no continue @@ -1121,7 +1134,7 @@ -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. - case "$dir" in + case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 @@ -1136,11 +1149,11 @@ ;; -static) - # If we have no pic_flag, then this is the same as -all-static. - if test -z "$pic_flag" && test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. continue ;; @@ -1154,28 +1167,76 @@ continue ;; + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + case $flag in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + flag="\"$flag\"" + ;; + esac + arg="$arg $wl$flag" + compiler_flags="$compiler_flags $flag" + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + + -Wl,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + case $flag in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + flag="\"$flag\"" + ;; + esac + arg="$arg $wl$flag" + compiler_flags="$compiler_flags $wl$flag" + linker_flags="$linker_flags $flag" + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread ) + compiler_flags="$compiler_flags $arg" + continue + ;; + # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case "$arg" in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; - *.o | *.obj | *.a | *.lib) - # A standard object. - objs="$objs $arg" - ;; - - *.lo) - # A library object. + *.lo | *.$objext) + # A library or standard object. if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then + # This file was specified with -dlopen. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $arg" prev= continue else @@ -1188,357 +1249,917 @@ # Preload the old-style object. dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"` prev= + else + case $arg in + *.lo) libobjs="$libobjs $arg" ;; + *) objs="$objs $arg" ;; + esac fi - libobjs="$libobjs $arg" + ;; + + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue ;; *.la) # A libtool-controlled library. - dlname= - libdir= - library_names= - old_library= - - # Check to see that this really is a libtool archive. - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= else - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2 - exit 1 + deplibs="$deplibs $arg" fi + continue + ;; - # If the library was installed with an old release of libtool, - # it will not redefine variable installed. - installed=yes - - # Read the .la file - # If there is no directory component, then add one. - case "$arg" in - */* | *\\*) . $arg ;; - *) . ./$arg ;; + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; esac + ;; + esac # arg - # Get the name of the library we link against. - linklib= - for l in $old_library $library_names; do - linklib="$l" - done - - if test -z "$linklib"; then - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2 - exit 1 - fi - - # Find the relevant object directory and library name. - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'` + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi + done # argument parsing loop - if test "X$installed" = Xyes; then - dir="$libdir" - else - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$dir" = "X$arg"; then - dir="$objdir" - else - dir="$dir/$objdir" - fi - fi + if test -n "$prev"; then + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi - if test -n "$dependency_libs"; then - # Extract -R and -L from dependency_libs - temp_deplibs= - for deplib in $dependency_libs; do - case "$deplib" in - -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'` - case " $rpath $xrpath " in - *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; - esac;; - -L*) case "$compile_command $temp_deplibs " in - *" $deplib "*) ;; - *) temp_deplibs="$temp_deplibs $deplib";; - esac - temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'` - case " $lib_search_path " in - *" $temp_dir "*) ;; - *) lib_search_path="$lib_search_path $temp_dir";; - esac - ;; - *) temp_deplibs="$temp_deplibs $deplib";; - esac - done - dependency_libs="$temp_deplibs" - fi + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi - if test -z "$libdir"; then - # It is a libtool convenience library, so add in its objects. - convenience="$convenience $dir/$old_library" - old_convenience="$old_convenience $dir/$old_library" - deplibs="$deplibs$dependency_libs" - compile_command="$compile_command $dir/$old_library$dependency_libs" - finalize_command="$finalize_command $dir/$old_library$dependency_libs" - continue - fi + # calculate the name of the file, without its directory + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` + libobjs_save="$libobjs" - # This library was specified with -dlopen. - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then - # If there is no dlname, no dlopen support or we're linking statically, - # we need to preload. - prev=dlprefiles - else - # We should not create a dependency on this library, but we - # may need any libraries it requires. - compile_command="$compile_command$dependency_libs" - finalize_command="$finalize_command$dependency_libs" - prev= - continue - fi - fi + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - # The library was specified with -dlpreopen. - if test "$prev" = dlprefiles; then - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - dlprefiles="$dlprefiles $dir/$old_library" - else - dlprefiles="$dlprefiles $dir/$linklib" - fi - prev= - fi + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` + if test "X$output_objdir" = "X$output"; then + output_objdir="$objdir" + else + output_objdir="$output_objdir/$objdir" + fi + # Create the object directory. + if test ! -d $output_objdir; then + $show "$mkdir $output_objdir" + $run $mkdir $output_objdir + status=$? + if test $status -ne 0 && test ! -d $output_objdir; then + exit $status + fi + fi - if test -n "$library_names" && - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then - link_against_libtool_libs="$link_against_libtool_libs $arg" - if test -n "$shlibpath_var"; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath " in - *" $dir "*) ;; - *) temp_rpath="$temp_rpath $dir" ;; - esac - fi + # Determine the type of output + case $output in + "") + $echo "$modename: you must specify an output file" 1>&2 + $echo "$help" 1>&2 + exit 1 + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac - # We need an absolute path. - case "$dir" in - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 - absdir="$dir" - fi - ;; - esac - - # This is the magic to use -rpath. - # Skip directories that are in the system default run-time - # search path, unless they have been requested with -R. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; + specialdeplibs= + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if test "X$duplicate_deps" = "Xyes" ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + case $linkmode in + lib) + passes="conv link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 + exit 1 ;; esac - - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - - lib_linked=yes - case "$hardcode_action" in - immediate | unsupported) - if test "$hardcode_direct" = no; then - compile_command="$compile_command $dir/$linklib" - deplibs="$deplibs $dir/$linklib" - case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) - dllsearchdir=`cd "$dir" && pwd || echo "$dir"` - if test -n "$dllsearchpath"; then - dllsearchpath="$dllsearchpath:$dllsearchdir" - else - dllsearchpath="$dllsearchdir" - fi - ;; - esac - elif test "$hardcode_minus_L" = no; then - case "$host" in - *-*-sunos*) - compile_shlibpath="$compile_shlibpath$dir:" - ;; - esac - case "$compile_command " in - *" -L$dir "*) ;; - *) compile_command="$compile_command -L$dir";; - esac - compile_command="$compile_command -l$name" - deplibs="$deplibs -L$dir -l$name" - elif test "$hardcode_shlibpath_var" = no; then - case ":$compile_shlibpath:" in - *":$dir:"*) ;; - *) compile_shlibpath="$compile_shlibpath$dir:";; - esac - compile_command="$compile_command -l$name" - deplibs="$deplibs -l$name" + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + for pass in $passes; do + if test $linkmode = prog; then + # Determine which files to process + case $pass in + dlopen) + libs="$dlfiles" + save_deplibs="$deplibs" # Collect dlpreopened libraries + deplibs= + ;; + dlpreopen) libs="$dlprefiles" ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + for deplib in $libs; do + lib= + found=no + case $deplib in + -l*) + if test $linkmode = oldlib && test $linkmode = obj; then + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2 + continue + fi + if test $pass = conv; then + deplibs="$deplib $deplibs" + continue + fi + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do + # Search the libtool library + lib="$searchdir/lib${name}.la" + if test -f "$lib"; then + found=yes + break + fi + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" else - lib_linked=no + deplibs="$deplib $deplibs" + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs" fi + continue + fi + ;; # -l + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test $pass = conv && continue + newdependency_libs="$deplib $newdependency_libs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; - - relink) - if test "$hardcode_direct" = yes; then - compile_command="$compile_command $absdir/$linklib" - deplibs="$deplibs $absdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - case "$compile_command " in - *" -L$absdir "*) ;; - *) compile_command="$compile_command -L$absdir";; - esac - compile_command="$compile_command -l$name" - deplibs="$deplibs -L$absdir -l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case ":$compile_shlibpath:" in - *":$absdir:"*) ;; - *) compile_shlibpath="$compile_shlibpath$absdir:";; - esac - compile_command="$compile_command -l$name" - deplibs="$deplibs -l$name" + prog) + if test $pass = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test $pass = scan; then + deplibs="$deplib $deplibs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` else - lib_linked=no + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" fi ;; - *) - lib_linked=no + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2 ;; - esac + esac # linkmode + continue + ;; # -L + -R*) + if test $pass = link; then + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test $pass = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + if test "$deplibs_check_method" != pass_all; then + echo + echo "*** Warning: Trying to link with static lib archive $deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not used here." + else + echo + echo "*** Warning: Linking the shared library $output against the" + echo "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + continue + ;; + prog) + if test $pass != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + if test $found = yes || test -f "$lib"; then : + else + $echo "$modename: cannot find the library \`$lib'" 1>&2 + exit 1 + fi + + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit 1 + fi + + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` + test "X$ladir" = "X$lib" && ladir="." - if test "$lib_linked" != yes; then - $echo "$modename: configuration error: unsupported hardcode properties" + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + # If the library was installed with an old release of libtool, + # it will not redefine variable installed. + installed=yes + + # Read the .la file + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test $linkmode = oldlib && test $linkmode = obj; }; then + # Add dl[pre]opened files of deplib + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test $pass = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 + exit 1 + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + elif test $linkmode != prog && test $linkmode != lib; then + $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit 1 fi + continue + fi # $pass = conv - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes; then - finalize_command="$finalize_command $libdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - case "$finalize_command " in - *" -L$libdir "*) ;; - *) finalize_command="$finalize_command -L$libdir";; - esac - finalize_command="$finalize_command -l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case ":$finalize_shlibpath:" in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:";; - esac - finalize_command="$finalize_command -l$name" + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 + exit 1 + fi + + # This library was specified with -dlopen. + if test $pass = dlopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 + exit 1 + fi + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. + dlprefiles="$dlprefiles $lib" else - # We cannot seem to hardcode it, guess we'll fake it. - case "$finalize_command " in - *" -L$dir "*) ;; - *) finalize_command="$finalize_command -L$libdir";; - esac - finalize_command="$finalize_command -l$name" + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 + abs_ladir="$ladir" + fi + ;; + esac + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + $echo "$modename: warning: library \`$lib' was moved." 1>&2 + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" fi else - # Transform directly to old archives if we don't build new libraries. - if test -n "$pic_flag" && test -z "$old_library"; then - $echo "$modename: cannot find static library for \`$arg'" 1>&2 + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi # $installed = yes + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + + # This library was specified with -dlpreopen. + if test $pass = dlpreopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit 1 fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test "$hardcode_direct" != unsupported; then - test -n "$old_library" && linklib="$old_library" - compile_command="$compile_command $dir/$linklib" - finalize_command="$finalize_command $dir/$linklib" + if test -z "$libdir"; then + # Link the convenience library + if test $linkmode = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" else - case "$compile_command " in - *" -L$dir "*) ;; - *) compile_command="$compile_command -L$dir";; + deplibs="$lib $deplibs" + fi + continue + fi + + if test $linkmode = prog && test $pass != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test + esac + # Need to link against all dependency_libs? + if test $linkalldeplibs = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + link_static=no # Whether the deplib will be linked statically + if test -n "$library_names" && + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then + # Link against this shared library + + if test "$linkmode,$pass" = "prog,link" || + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; esac - compile_command="$compile_command -l$name" - case "$finalize_command " in - *" -L$dir "*) ;; - *) finalize_command="$finalize_command -L$dir";; + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; esac - finalize_command="$finalize_command -l$name" + if test $linkmode = prog; then + # We need to hardcode the library path + if test -n "$shlibpath_var"; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath " in + *" $dir "*) ;; + *" $absdir "*) ;; + *) temp_rpath="$temp_rpath $dir" ;; + esac + fi + fi + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue fi - fi - # Add in any libraries that this one depends upon. - compile_command="$compile_command$dependency_libs" - finalize_command="$finalize_command$dependency_libs" - continue - ;; + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + realname="$2" + shift; shift + libname=`eval \\$echo \"$libname_spec\"` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin*) + major=`expr $current - $age` + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case "$arg" in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) - arg="\"$arg\"" - ;; - esac - ;; - esac + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + soname=`echo $soroot | ${SED} -e 's/^.*\///'` + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi - done + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + $show "extracting exported symbol list from \`$soname'" + save_ifs="$IFS"; IFS='~' + eval cmds=\"$extract_expsyms_cmds\" + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi - if test -n "$prev"; then - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit 1 - fi + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + $show "generating import library for \`$soname'" + save_ifs="$IFS"; IFS='~' + eval cmds=\"$old_archive_from_expsyms_cmds\" + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n $old_archive_from_expsyms_cmds + + if test $linkmode = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi + if test "$lib_linked" != yes; then + $echo "$modename: configuration error: unsupported hardcode properties" + exit 1 + fi - oldlibs= - # calculate the name of the file, without its directory - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` - libobjs_save="$libobjs" + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test $linkmode = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && \ + test "$hardcode_minus_L" != yes && \ + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi - case "$output" in - "") - $echo "$modename: you must specify an output file" 1>&2 - $echo "$help" 1>&2 - exit 1 - ;; + if test $linkmode = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi - *.a | *.lib) - if test -n "$link_against_libtool_libs"; then - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2 - exit 1 + if test $linkmode = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test $linkmode = prog; then + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + + # Try to link the static library + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + echo + echo "*** Warning: This system can not link to static lib archive $lib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + convenience="$convenience $dir/$old_library" + old_convenience="$old_convenience $dir/$old_library" + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test $linkmode = lib; then + if test -n "$dependency_libs" && + { test $hardcode_into_libs != yes || test $build_old_libs = yes || + test $link_static = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test $link_all_deplibs != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path="$deplib" ;; + *.la) + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$deplib" && dir="." + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 + absdir="$dir" + fi + ;; + esac + if grep "^installed=no" $deplib > /dev/null; then + path="-L$absdir/$objdir" + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit 1 + fi + if test "$absdir" != "$libdir"; then + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 + fi + path="-L$absdir" + fi + ;; + *) continue ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$deplibs $path" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test $pass = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done fi + if test $pass != dlopen; then + test $pass != scan && dependency_libs="$newdependency_libs" + if test $pass != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + *) + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var fi + if test "$pass" = "conv" && + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then + libs="$deplibs" # reset libs + deplibs= + fi + done # for pass + if test $linkmode = prog; then + dlfiles="$newdlfiles" + dlprefiles="$newdlprefiles" + fi + case $linkmode in + oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi @@ -1566,11 +2187,12 @@ # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" + objs="$objs$old_deplibs" ;; - *.la) + lib) # Make sure we only generate libraries of the form `libNAME.la'. - case "$outputname" in + case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval libname=\"$libname_spec\" @@ -1591,26 +2213,20 @@ ;; esac - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` - if test "X$output_objdir" = "X$output"; then - output_objdir="$objdir" - else - output_objdir="$output_objdir/$objdir" - fi - if test -n "$objs"; then - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1 - exit 1 - fi - - # How the heck are we supposed to write a wrapper for a shared library? - if test -n "$link_against_libtool_libs"; then - $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2 - exit 1 + if test "$deplibs_check_method" != pass_all; then + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 + exit 1 + else + echo + echo "*** Warning: Linking the shared library $output against the non-libtool" + echo "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi fi - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2 + if test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath @@ -1628,7 +2244,6 @@ build_libtool_libs=convenience build_old_libs=yes fi - dependency_libs="$deplibs" if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2 @@ -1640,7 +2255,7 @@ else # Parse the version information argument. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':' + save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" @@ -1655,8 +2270,8 @@ age="$4" # Check that each of the things are valid numbers. - case "$current" in - 0 | [1-9] | [1-9][0-9]*) ;; + case $current in + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 @@ -1664,8 +2279,8 @@ ;; esac - case "$revision" in - 0 | [1-9] | [1-9][0-9]*) ;; + case $revision in + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 @@ -1673,8 +2288,8 @@ ;; esac - case "$age" in - 0 | [1-9] | [1-9][0-9]*) ;; + case $age in + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 @@ -1692,21 +2307,49 @@ major= versuffix= verstring= - case "$version_type" in + case $version_type in none) ;; - irix) + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + major=.`expr $current - $age` + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + minor_current=`expr $current + 1` + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current"; + ;; + + irix | nonstopux) major=`expr $current - $age + 1` - versuffix="$major.$revision" - verstring="sgi$major.$revision" + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test $loop != 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` - verstring="sgi$major.$iface:$verstring" + verstring="$verstring_prefix$major.$iface:$verstring" done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" ;; linux) @@ -1715,7 +2358,7 @@ ;; osf) - major=`expr $current - $age` + major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" @@ -1736,21 +2379,11 @@ versuffix=".$current.$revision" ;; - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; - - freebsd-elf) - major=".$current" - versuffix=".$current"; - ;; - windows) - # Like Linux, but with '-' rather than '.', since we only - # want one extension on Windows 95. + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. major=`expr $current - $age` - versuffix="-$major-$age-$revision" + versuffix="-$major" ;; *) @@ -1764,6 +2397,16 @@ if test -z "$vinfo" && test -n "$release"; then major= verstring="0.0" + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring="" + ;; + *) + verstring="0.0" + ;; + esac if test "$need_version" = no; then versuffix= else @@ -1777,7 +2420,7 @@ versuffix= verstring="" fi - + # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then @@ -1789,30 +2432,12 @@ # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi - - dependency_libs="$deplibs" - case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*) - # these systems don't actually have a c library (as such)! - ;; - *) - # Add libc to deplibs on all other systems. - deplibs="$deplibs -lc" - ;; - esac fi - # Create the output directory, or remove our outputs if we need to. - if test -d $output_objdir; then + if test "$mode" != relink; then + # Remove our outputs. $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*" $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.* - else - $show "$mkdir $output_objdir" - $run $mkdir $output_objdir - status=$? - if test $status -ne 0 && test ! -d $output_objdir; then - exit $status - fi fi # Now set the variables for building old libraries. @@ -1823,7 +2448,73 @@ oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi + # Eliminate all temporary directories. + for path in $notinst_path; do + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'` + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'` + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` + done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs -framework System" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd*) + # Do not include libc due to us having libc/libc_r. + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test $build_libtool_need_lc = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname @@ -1838,7 +2529,7 @@ major="" newdeplibs= droppeddeps=no - case "$deplibs_check_method" in + case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check @@ -1863,7 +2554,7 @@ for i in $deplibs; do name="`expr $i : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. - if test "$name" != "" ; then + if test -n "$name" && test "$name" != "0"; then libname=`eval \\$echo \"$libname_spec\"` deplib_matches=`eval \\$echo \"$library_names_spec\"` set dummy $deplib_matches @@ -1873,22 +2564,24 @@ else droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $i." + echo "*** Warning: dynamic linker does not accept needed library $i." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which I believe you do not have" + echo "*** because a test_compile did reveal that the linker did not use it for" + echo "*** its dynamic dependency list that programs get resolved with at runtime." fi else newdeplibs="$newdeplibs $i" fi done else - # Error occured in the first compile. Let's try to salvage the situation: - # Compile a seperate program for each library. + # Error occured in the first compile. Let's try to salvage + # the situation: Compile a separate program for each library. for i in $deplibs; do name="`expr $i : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. - if test "$name" != "" ; then + if test -n "$name" && test "$name" != "0"; then $rm conftest $CC -o conftest conftest.c $i # Did it work? @@ -1903,10 +2596,12 @@ else droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $i." + echo "*** Warning: dynamic linker does not accept needed library $i." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which you do not appear to have" + echo "*** because a test_compile did reveal that the linker did not use this one" + echo "*** as a dynamic dependency that programs can get resolved with at runtime." fi else droppeddeps=yes @@ -1924,19 +2619,19 @@ ;; file_magic*) set dummy $deplibs_check_method - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`" + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name="`expr $a_deplib : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. - if test "$name" != "" ; then + if test -n "$name" && test "$name" != "0"; then libname=`eval \\$echo \"$libname_spec\"` - for i in $lib_search_path; do + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then - continue + continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. @@ -1945,14 +2640,14 @@ # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | sed 's/.* -> //'` - case "$potliblink" in + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ - | sed 10q \ + | ${SED} 10q \ | egrep "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" @@ -1963,10 +2658,59 @@ if test -n "$a_deplib" ; then droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $a_deplib." + echo "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + echo "*** with $libname but no candidates were found. (...for file magic test)" + else + echo "*** with $libname and none of the candidates passed a file format test" + echo "*** using a file magic. Last file checked: $potlib" + fi + fi + else + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + fi + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` + for a_deplib in $deplibs; do + name="`expr $a_deplib : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test -n "$name" && test "$name" != "0"; then + libname=`eval \\$echo \"$libname_spec\"` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check below in file_magic test + if eval echo \"$potent_lib\" 2>/dev/null \ + | ${SED} 10q \ + | egrep "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + if test -n "$a_deplib" ; then + droppeddeps=yes + echo + echo "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + echo "*** with $libname but no candidates were found. (...for regex pattern test)" + else + echo "*** with $libname and none of the candidates passed a file format test" + echo "*** using a regex pattern. Last file checked: $potlib" + fi fi else # Add a -L argument. @@ -1996,6 +2740,13 @@ libname=$libname_save name=$name_save + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` + ;; + esac + if test "$droppeddeps" = yes; then if test "$module" = yes; then echo @@ -2021,6 +2772,21 @@ echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." + + if test $allow_undefined = no; then + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" + echo "*** it was explicitly requested with -no-undefined," + echo "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi fi fi # Done checking deplibs! @@ -2031,9 +2797,64 @@ library_names= old_library= dlname= - + # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then + if test $hardcode_into_libs = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + # Get the real and link names of the library. eval library_names=\"$library_names_spec\" set dummy $library_names @@ -2045,6 +2866,7 @@ else soname="$realname" fi + test -z "$dlname" && dlname=$soname lib="$output_objdir/$realname" for link @@ -2079,7 +2901,7 @@ export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols eval cmds=\"$export_symbols_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -2116,7 +2938,7 @@ for xlib in $convenience; do # Extract the objects. - case "$xlib" in + case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac @@ -2141,16 +2963,32 @@ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" - linkopts="$linkopts $flag" + linker_flags="$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval cmds=\"$archive_expsym_cmds\" else + save_deplibs="$deplibs" + for conv in $convenience; do + tmp_deplibs= + for test_deplib in $deplibs; do + if test "$test_deplib" != "$conv"; then + tmp_deplibs="$tmp_deplibs $test_deplib" + fi + done + deplibs="$tmp_deplibs" + done eval cmds=\"$archive_cmds\" + deplibs="$save_deplibs" fi - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -2158,6 +2996,12 @@ done IFS="$save_ifs" + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? + exit 0 + fi + # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then @@ -2174,12 +3018,7 @@ fi ;; - *.lo | *.o | *.obj) - if test -n "$link_against_libtool_libs"; then - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2 - exit 1 - fi - + obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi @@ -2204,9 +3043,9 @@ $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi - case "$output" in + case $output in *.lo) - if test -n "$objs"; then + if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit 1 fi @@ -2230,7 +3069,7 @@ gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec - wl= + wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then @@ -2249,7 +3088,7 @@ for xlib in $convenience; do # Extract the objects. - case "$xlib" in + case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac @@ -2273,11 +3112,11 @@ fi # Create the old-style object. - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" eval cmds=\"$reload_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -2308,12 +3147,12 @@ exit 0 fi - if test -n "$pic_flag"; then + if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" eval cmds=\"$reload_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -2344,8 +3183,10 @@ exit 0 ;; - # Anything else should be a program. - *) + prog) + case $host in + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; + esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi @@ -2355,20 +3196,34 @@ fi if test "$preload" = yes; then - if test "$dlopen" = unknown && test "$dlopen_self" = unknown && + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." - fi + fi fi - + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + case $host in + *darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + ;; + esac + ;; + esac + + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" + if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. - case "$compile_rpath " in - *" $libdir "*) ;; - *) compile_rpath="$compile_rpath $libdir" ;; - esac case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; @@ -2386,7 +3241,7 @@ hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) @@ -2404,6 +3259,14 @@ *) perm_rpath="$perm_rpath $libdir" ;; esac fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + case :$dllsearchpath: in + *":$libdir:"*) ;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + ;; + esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && @@ -2422,7 +3285,7 @@ hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) @@ -2449,23 +3312,6 @@ fi finalize_rpath="$rpath" - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` - if test "X$output_objdir" = "X$output"; then - output_objdir="$objdir" - else - output_objdir="$output_objdir/$objdir" - fi - - # Create the binary in the object directory, then wrap it. - if test ! -d $output_objdir; then - $show "$mkdir $output_objdir" - $run $mkdir $output_objdir - status=$? - if test $status -ne 0 && test ! -d $output_objdir; then - exit $status - fi - fi - if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` @@ -2482,7 +3328,7 @@ fi if test -n "$dlsyms"; then - case "$dlsyms" in + case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. @@ -2514,7 +3360,7 @@ test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. - progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" @@ -2524,7 +3370,7 @@ $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi - + if test -n "$export_symbols_regex"; then $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' @@ -2534,9 +3380,9 @@ if test -z "$export_symbols"; then export_symbols="$output_objdir/$output.exp" $run $rm $export_symbols - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' else - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' fi @@ -2544,7 +3390,7 @@ for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" - name=`echo "$arg" | sed -e 's%^.*/%%'` + name=`echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval 'echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done @@ -2559,7 +3405,13 @@ fi # Try sorting and uniquifying the output. - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then + if grep -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S @@ -2576,27 +3428,25 @@ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * +# define lt_ptr void * #else -# define lt_ptr_t char * +# define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; - lt_ptr_t address; + lt_ptr address; } lt_preloaded_symbols[] = {\ " - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \ - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \ - < "$nlist" >> "$output_objdir/$dlsyms" + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ - {0, (lt_ptr_t) 0} + {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ @@ -2613,13 +3463,13 @@ fi pic_flag_for_symtable= - case "$host" in + case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";; @@ -2658,7 +3508,7 @@ finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then + if test $need_relink = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" @@ -2667,7 +3517,7 @@ $show "$link_command" $run eval "$link_command" status=$? - + # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" @@ -2681,7 +3531,7 @@ # We should set the shlibpath_var rpath= for dir in $temp_rpath; do - case "$dir" in + case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" @@ -2723,11 +3573,24 @@ fi fi + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $run $rm $output + # Link the executable and exit + $show "$link_command" + $run eval "$link_command" || exit $? + exit 0 + fi + if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" - + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else @@ -2747,7 +3610,7 @@ # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - + # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname @@ -2759,12 +3622,24 @@ # Quote the relink command for shipping. if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $0 --fallback-echo"; then - case "$0" in + case $0 in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";; *) qecho="$SHELL `pwd`/$0 --fallback-echo";; esac @@ -2778,7 +3653,12 @@ # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in - *.exe) output=`echo $output|sed 's,.exe$,,'` ;; + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) exeext=.exe ;; + *) exeext= ;; esac $rm $output trap "$rm $output; exit 1" 1 2 15 @@ -2797,7 +3677,7 @@ # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' +Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout @@ -2809,7 +3689,7 @@ # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: - link_against_libtool_libs='$link_against_libtool_libs' + notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then @@ -2835,20 +3715,20 @@ test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\` + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;; + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. @@ -2858,11 +3738,11 @@ if test "$fast_install" = yes; then echo >> $output "\ - program=lt-'$outputname' + program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" - + if test ! -f \"\$progdir/\$program\" || \\ - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\ + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" @@ -2877,8 +3757,9 @@ # relink executable if necessary if test -n \"\$relink_command\"; then - if (cd \"\$thisdir\" && eval \$relink_command); then : + if relink_command_output=\`eval \$relink_command 2>&1\`; then : else + $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit 1 fi @@ -2907,7 +3788,7 @@ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed + # The second colon is a workaround for a bug in BeOS R4 ${SED} $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var @@ -2927,13 +3808,21 @@ # Run the actual program with our arguments. " case $host in - *-*-cygwin* | *-*-mingw | *-*-os2*) - # win32 systems need to use the prog path for dll - # lookup to work + # win32 systems need to use the prog path for dll + # lookup to work + *-*-cygwin* | *-*-pw32*) + $echo >> $output "\ + exec \$progdir/\$program \${1+\"\$@\"} +" + ;; + + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2*) $echo >> $output "\ exec \$progdir\\\\\$program \${1+\"\$@\"} " ;; + *) $echo >> $output "\ # Export the path to the program. @@ -2975,7 +3864,7 @@ oldobjs="$libobjs_save" build_libtool_libs=no else - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP` + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP` fi addlibs="$old_convenience" fi @@ -2991,11 +3880,11 @@ exit $status fi generated="$generated $gentop" - + # Add in members from convenience archives. for xlib in $addlibs; do # Extract the objects. - case "$xlib" in + case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac @@ -3041,7 +3930,7 @@ eval cmds=\"$old_archive_cmds\" fi - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -3056,19 +3945,26 @@ fi # Now create the libtool archive. - case "$output" in + case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" - if test -n "$xrpath"; then - temp_xrpath= - for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" - done - dependency_libs="$temp_xrpath $dependency_libs" - fi + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` # Only create the output if not a dry run. if test -z "$run"; then @@ -3078,8 +3974,52 @@ break fi output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit 1 + fi + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + for lib in $dlfiles; do + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + if test -z "$libdir"; then + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit 1 + fi + newdlfiles="$newdlfiles $libdir/$name" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + if test -z "$libdir"; then + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit 1 + fi + newdlprefiles="$newdlprefiles $libdir/$name" + done + dlprefiles="$newdlprefiles" fi $rm $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP @@ -3088,7 +4028,7 @@ # It is necessary for linking the library. # The name that we can dlopen(3). -dlname='$dlname' +dlname='$tdlname' # Names of this library. library_names='$library_names' @@ -3107,16 +4047,23 @@ # Is this an already installed library? installed=$installed +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + # Directory that this library needs to be installed in: -libdir='$install_libdir'\ -" +libdir='$install_libdir'" + if test "$installed" = no && test $need_relink = yes; then + $echo >> $output "\ +relink_command=\"$relink_command\"" + fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $? + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit 0 @@ -3128,10 +4075,12 @@ # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` - case "$arg" in + case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; @@ -3147,7 +4096,7 @@ # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case "$arg" in + case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; @@ -3170,7 +4119,7 @@ continue fi - case "$arg" in + case $arg in -d) isdir=yes ;; -f) prev="-f" ;; -g) prev="-g" ;; @@ -3195,7 +4144,7 @@ # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case "$arg" in + case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; @@ -3246,11 +4195,11 @@ exit 1 fi fi - case "$destdir" in + case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do - case "$file" in + case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 @@ -3272,15 +4221,15 @@ for file in $files; do # Do each installation. - case "$file" in - *.a | *.lib) + case $file in + *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 @@ -3289,8 +4238,9 @@ library_names= old_library= + relink_command= # If there is no directory component, then add one. - case "$file" in + case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac @@ -3309,10 +4259,38 @@ esac fi - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/" + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + if test "$inst_prefix_dir" = "$destdir"; then + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 + exit 1 + fi + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` + fi + + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 + exit 1 + fi + fi + # See the names of the shared library. set dummy $library_names if test -n "$2"; then @@ -3320,9 +4298,16 @@ shift shift + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + # Install the shared library and build the symlinks. - $show "$install_prog $dir/$realname $destdir/$realname" - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $? + $show "$install_prog $dir/$srcname $destdir/$realname" + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? + if test -n "$stripme" && test -n "$striplib"; then + $show "$striplib $destdir/$realname" + $run eval "$striplib $destdir/$realname" || exit $? + fi if test $# -gt 0; then # Delete the old symlinks, and create new ones. @@ -3338,7 +4323,7 @@ # Do each command in the postinstall commands. lib="$destdir/$realname" eval cmds=\"$postinstall_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -3369,11 +4354,11 @@ fi # Deduce the name of the destination old-style object file. - case "$destfile" in + case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; - *.o | *.obj) + *.$objext) staticdest="$destfile" destfile= ;; @@ -3411,40 +4396,55 @@ fi # Do a test to see if this is really a libtool program. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - link_against_libtool_libs= + case $host in + *cygwin*|*mingw*) + wrapper=`echo $file | ${SED} -e 's,.exe$,,'` + ;; + *) + wrapper=$file + ;; + esac + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then + notinst_deplibs= relink_command= # If there is no directory component, then add one. - case "$file" in - */* | *\\*) . $file ;; - *) . ./$file ;; + case $file in + */* | *\\*) . $wrapper ;; + *) . ./$wrapper ;; esac # Check the variables that should have been set. - if test -z "$link_against_libtool_libs"; then - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 + if test -z "$notinst_deplibs"; then + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit 1 fi finalize=yes - for lib in $link_against_libtool_libs; do + for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. - case "$lib" in + case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`" + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done + relink_command= + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $wrapper ;; + *) . ./$wrapper ;; + esac + outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then @@ -3456,6 +4456,7 @@ $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 continue fi + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` @@ -3477,6 +4478,23 @@ fi fi + # remove .exe since cygwin /usr/bin/install will append another + # one anyways + case $install_prog,$host in + /usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'` + ;; + esac + ;; + esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" @@ -3493,9 +4511,14 @@ $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? + if test -n "$stripme" && test -n "$striplib"; then + $show "$old_striplib $oldlib" + $run eval "$old_striplib $oldlib" || exit $? + fi + # Do each command in the postinstall commands. eval cmds=\"$old_postinstall_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -3511,11 +4534,10 @@ if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" - exec $SHELL $0 --finish$current_libdirs - exit 1 + exec_cmd='$SHELL $0 --finish$current_libdirs' + else + exit 0 fi - - exit 0 ;; # libtool finish mode @@ -3534,7 +4556,7 @@ if test -n "$finish_cmds"; then # Do each command in the finish commands. eval cmds=\"$finish_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" @@ -3553,7 +4575,7 @@ fi # Exit here if they wanted silent mode. - test "$show" = : && exit 0 + test "$show" = ":" && exit 0 echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" @@ -3563,7 +4585,7 @@ echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" - echo "specify the full pathname of the library, or use \`-LLIBDIR'" + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" @@ -3613,10 +4635,10 @@ fi dir= - case "$file" in + case $file in *.la) # Check to see that this really is a libtool archive. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 @@ -3628,7 +4650,7 @@ library_names= # If there is no directory component, then add one. - case "$file" in + case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac @@ -3683,13 +4705,13 @@ args= for file do - case "$file" in + case $file in -*) ;; *) # Do a test to see if this is really a libtool program. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. - case "$file" in + case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac @@ -3706,8 +4728,8 @@ if test -z "$run"; then if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" + # Export the shlibpath_var. + eval "export $shlibpath_var" fi # Restore saved enviroment variables @@ -3718,31 +4740,35 @@ LANG="$save_LANG"; export LANG fi - # Now actually exec the command. - eval "exec \$cmd$args" - - $echo "$modename: cannot exec \$cmd$args" - exit 1 + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" - $echo "export $shlibpath_var" + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" + $echo "export $shlibpath_var" fi $echo "$cmd$args" exit 0 fi ;; - # libtool uninstall mode - uninstall) - modename="$modename: uninstall" + # libtool clean and uninstall mode + clean | uninstall) + modename="$modename: $mode" rm="$nonopt" files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" for arg do - case "$arg" in + case $arg in + -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac @@ -3754,53 +4780,86 @@ exit 1 fi + rmdirs= + for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. + if test "X$dir" = "X$file"; then + dir=. + objdir="$objdir" + else + objdir="$dir/$objdir" + fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + test $mode = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates + if test $mode = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if (test -L "$file") >/dev/null 2>&1 \ + || (test -h "$file") >/dev/null 2>&1 \ + || test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi rmfiles="$file" - case "$name" in + case $name in *.la) # Possibly a libtool archive, so verify it. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do - rmfiles="$rmfiles $dir/$n" + rmfiles="$rmfiles $objdir/$n" done - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library" + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - $show "$rm $rmfiles" - $run $rm $rmfiles - - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - eval cmds=\"$postuninstall_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do + if test $mode = uninstall; then + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + eval cmds=\"$postuninstall_cmds\" + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" + if test $? != 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" - done - IFS="$save_ifs" - fi + fi - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - eval cmds=\"$old_postuninstall_cmds\" - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + eval cmds=\"$old_postuninstall_cmds\" + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" + if test $? != 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" - done - IFS="$save_ifs" + fi + # FIXME: should reinstall the best remaining shared library. fi - - # FIXME: should reinstall the best remaining shared library. fi ;; @@ -3809,17 +4868,35 @@ oldobj=`$echo "X$name" | $Xsed -e "$lo2o"` rmfiles="$rmfiles $dir/$oldobj" fi - $show "$rm $rmfiles" - $run $rm $rmfiles ;; *) - $show "$rm $rmfiles" - $run $rm $rmfiles + # Do a test to see if this is a libtool program. + if test $mode = clean && + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + relink_command= + . $dir/$file + + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + fi ;; esac + $show "$rm $rmfiles" + $run $rm $rmfiles || exit_status=1 done - exit 0 + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + $show "rmdir $dir" + $run rmdir $dir >/dev/null 2>&1 + fi + done + + exit $exit_status ;; "") @@ -3829,13 +4906,20 @@ ;; esac - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$generic_help" 1>&2 - exit 1 + if test -z "$exec_cmd"; then + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$generic_help" 1>&2 + exit 1 + fi fi # test -z "$show_help" +if test -n "$exec_cmd"; then + eval exec $exec_cmd + exit 1 +fi + # We need to display help for each of the modes. -case "$mode" in +case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... @@ -3854,6 +4938,7 @@ MODE must be one of the following: + clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries @@ -3866,6 +4951,20 @@ exit 0 ;; +clean) + $echo \ +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE @@ -3875,6 +4974,8 @@ This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file @@ -3954,6 +5055,8 @@ -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -release RELEASE specify package release information --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1,5 +1,6 @@ -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*- -## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc. +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- +## Copyright 1996, 1997, 1998, 1999, 2000, 2001 +## Free Software Foundation, Inc. ## Originally by Gordon Matzigkeit , 1996 ## ## This program is free software; you can redistribute it and/or modify @@ -21,134 +22,3028 @@ ## configuration script generated by Autoconf, you may include it under ## the same distribution terms that you use for the rest of that program. -# serial 40 AC_PROG_LIBTOOL -AC_DEFUN(AC_PROG_LIBTOOL, +# serial 46 AC_PROG_LIBTOOL +# Debian $Rev: 50 $ + +AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -# Save cache, so that ltconfig can load it -AC_CACHE_SAVE +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +]) + +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.13)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl +AC_REQUIRE([LT_AC_PROG_SED])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl + +_LT_AC_PROG_ECHO_BACKSLASH +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE(libtool-lock, + [ --disable-libtool-lock avoid locking (might break parallel builds)]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_SAVE + AC_LANG_C + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_RESTORE]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, + [AC_TRY_LINK([], + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); + DllMain (0, 0, 0);], + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) + + case $host/$CC in + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) + # old mingw systems require "-dll" to link a DLL, while more recent ones + # require "-mdll" + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mdll" + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) + CFLAGS="$SAVE_CFLAGS" ;; + *-*-cygwin* | *-*-pw32*) + # cygwin systems need to pass --dll to the linker, and not link + # crt.o which will require a WinMain@16 definition. + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; + esac + ;; + ]) +esac + +_LT_AC_LTCONFIG_HACK + +]) + +# AC_LIBTOOL_HEADER_ASSERT +# ------------------------ +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], +[AC_CACHE_CHECK([whether $CC supports assert without backlinking], + [lt_cv_func_assert_works], + [case $host in + *-*-solaris*) + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then + case `$CC --version 2>/dev/null` in + [[12]].*) lt_cv_func_assert_works=no ;; + *) lt_cv_func_assert_works=yes ;; + esac + fi + ;; + esac]) + +if test "x$lt_cv_func_assert_works" = xyes; then + AC_CHECK_HEADERS(assert.h) +fi +])# AC_LIBTOOL_HEADER_ASSERT + +# _LT_AC_CHECK_DLFCN +# -------------------- +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h) +])# _LT_AC_CHECK_DLFCN + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform the above into a raw symbol and a C symbol. +symxfrm='\1 \2\3 \3' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris* | sysv5*) + symcode='[[BDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $host_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then + symcode='[[ABCDGISTW]]' +fi + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then + if egrep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr void * +#else +# define lt_ptr char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr address; +} +lt_preloaded_symbols[[]] = +{ +EOF + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$no_builtin_flag" + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC + fi + else + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC + fi + else + echo "$progname: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" +if test -z "$lt_cv_sys_global_symbol_pipe"; then + global_symbol_to_cdecl= + global_symbol_to_c_name_address= +else + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" +fi +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; +then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR +# --------------------------------- +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], +[# Find the correct PATH separator. Usually this is `:', but +# DJGPP uses `;' like DOS. +if test "X${PATH_SEPARATOR+set}" != Xset; then + UNAME=${UNAME-`uname 2>/dev/null`} + case X$UNAME in + *-DOS) lt_cv_sys_path_separator=';' ;; + *) lt_cv_sys_path_separator=':' ;; + esac + PATH_SEPARATOR=$lt_cv_sys_path_separator +fi +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null && + echo_test_string="`eval $cmd`" && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +AC_DIVERT_POP +])# _LT_AC_PROG_ECHO_BACKSLASH + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ------------------------------------------------------------------ +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[if test "$cross_compiling" = yes; then : + [$4] +else + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_unknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + +# AC_LIBTOOL_DLOPEN_SELF +# ------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + cygwin* | mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + +AC_DEFUN([_LT_AC_LTCONFIG_HACK], +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e s/^X//' +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" +need_locks="$enable_libtool_lock" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +if test x"$host" != x"$build"; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + +# Transform linux* to *-*-linux-gnu*, to support old configure scripts. +case $host_os in +linux-gnu*) ;; +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` +esac + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +# Allow CC to be a program name with arguments. +set dummy $CC +compiler="[$]2" + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([for objdir]) +rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + objdir=_libs +fi +rmdir .libs 2>/dev/null +AC_MSG_RESULT($objdir) +## +## END FIXME + + +## FIXME: this should be a separate macro +## +AC_ARG_WITH(pic, +[ --with-pic try to use only PIC/non-PIC objects [default=use both]], +pic_mode="$withval", pic_mode=default) +test -z "$pic_mode" && pic_mode=default + +# We assume here that the value for lt_cv_prog_cc_pic will not be cached +# in isolation, and that seeing it set (from the cache) indicates that +# the associated values are set (in the cache) correctly too. +AC_MSG_CHECKING([for $compiler option to produce PIC]) +AC_CACHE_VAL(lt_cv_prog_cc_pic, +[ lt_cv_prog_cc_pic= + lt_cv_prog_cc_shlib= + lt_cv_prog_cc_wl= + lt_cv_prog_cc_static= + lt_cv_prog_cc_no_builtin= + lt_cv_prog_cc_can_build_shared=$can_build_shared + + if test "$GCC" = yes; then + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-static' + + case $host_os in + aix*) + # Below there is a dirty hack to force normal static linking with -ldl + # The problem is because libdl dynamically linked with both libc and + # libC (AIX C++ library), which obviously doesn't included in libraries + # list by gcc. This cause undefined symbols with -static flags. + # This hack allows C programs to be linked with "-static -ldl", but + # not sure about C++ programs. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_cv_prog_cc_pic='-fno-common' + ;; + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_cv_prog_cc_pic=-Kconform_pic + fi + ;; + *) + lt_cv_prog_cc_pic='-fPIC' + ;; + esac + else + # PORTME Check for PIC flags for the system compiler. + case $host_os in + aix3* | aix4* | aix5*) + lt_cv_prog_cc_wl='-Wl,' + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_cv_prog_cc_static='-Bstatic' + else + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + hpux9* | hpux10* | hpux11*) + # Is there a better lt_cv_prog_cc_static that works with the bundled CC? + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" + lt_cv_prog_cc_pic='+Z' + ;; + + irix5* | irix6* | nonstopux*) + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + # PIC (with -KPIC) is the default. + ;; + + cygwin* | mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_cv_prog_cc_pic='-DDLL_EXPORT' + ;; + + newsos6) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + ;; + + osf3* | osf4* | osf5*) + # All OSF/1 code is PIC. + lt_cv_prog_cc_wl='-Wl,' + lt_cv_prog_cc_static='-non_shared' + ;; + + sco3.2v5*) + lt_cv_prog_cc_pic='-Kpic' + lt_cv_prog_cc_static='-dn' + lt_cv_prog_cc_shlib='-belf' + ;; + + solaris*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + sunos4*) + lt_cv_prog_cc_pic='-PIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Qoption ld ' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-Bstatic' + lt_cv_prog_cc_wl='-Wl,' + ;; + + uts4*) + lt_cv_prog_cc_pic='-pic' + lt_cv_prog_cc_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_cv_prog_cc_pic='-Kconform_pic' + lt_cv_prog_cc_static='-Bstatic' + fi + ;; + + *) + lt_cv_prog_cc_can_build_shared=no + ;; + esac + fi +]) +if test -z "$lt_cv_prog_cc_pic"; then + AC_MSG_RESULT([none]) +else + AC_MSG_RESULT([$lt_cv_prog_cc_pic]) + + # Check to make sure the pic_flag actually works. + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" + AC_TRY_COMPILE([], [], [dnl + case $host_os in + hpux9* | hpux10* | hpux11*) + # On HP-UX, both CC and GCC only warn that PIC is supported... then + # they create non-PIC objects. So, if there were any warnings, we + # assume that PIC is not supported. + if test -s conftest.err; then + lt_cv_prog_cc_pic_works=no + else + lt_cv_prog_cc_pic_works=yes + fi + ;; + *) + lt_cv_prog_cc_pic_works=yes + ;; + esac + ], [dnl + lt_cv_prog_cc_pic_works=no + ]) + CFLAGS="$save_CFLAGS" + ]) + + if test "X$lt_cv_prog_cc_pic_works" = Xno; then + lt_cv_prog_cc_pic= + lt_cv_prog_cc_can_build_shared=no + else + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" + fi + + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) +fi +## +## END FIXME + +# Check for any special shared library compilation flags. +if test -n "$lt_cv_prog_cc_shlib"; then + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : + else + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) + lt_cv_prog_cc_can_build_shared=no + fi +fi + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl + lt_cv_prog_cc_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) + LDFLAGS="$save_LDFLAGS" +]) + +# Belt *and* braces to stop my trousers falling down: +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= +AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) + +pic_flag="$lt_cv_prog_cc_pic" +special_shlib_compile_flags="$lt_cv_prog_cc_shlib" +wl="$lt_cv_prog_cc_wl" +link_static_flag="$lt_cv_prog_cc_static" +no_builtin_flag="$lt_cv_prog_cc_no_builtin" +can_build_shared="$lt_cv_prog_cc_can_build_shared" +## +## END FIXME + + +## FIXME: this should be a separate macro +## +# Check to see if options -o and -c are simultaneously supported by compiler +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) +AC_CACHE_VAL([lt_cv_compiler_c_o], [ +$rm -r conftest 2>/dev/null +mkdir conftest +cd conftest +echo "int some_variable = 0;" > conftest.$ac_ext +mkdir out +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers +# that will create temporary files in the current directory regardless of +# the output directory. Thus, making CWD read-only will cause this test +# to fail, enabling locking or at least warning the user not to do parallel +# builds. +chmod -w . +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" +compiler_c_o=no +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s out/conftest.err; then + lt_cv_compiler_c_o=no + else + lt_cv_compiler_c_o=yes + fi +else + # Append any errors to the config.log. + cat out/conftest.err 1>&AC_FD_CC + lt_cv_compiler_c_o=no +fi +CFLAGS="$save_CFLAGS" +chmod u+w . +$rm conftest* out/* +rmdir out +cd .. +rmdir conftest +$rm -r conftest 2>/dev/null +]) +compiler_c_o=$lt_cv_compiler_c_o +AC_MSG_RESULT([$compiler_c_o]) + +if test x"$compiler_c_o" = x"yes"; then + # Check to see if we can write to a .lo + AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) + AC_CACHE_VAL([lt_cv_compiler_o_lo], [ + lt_cv_compiler_o_lo=no + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -c -o conftest.lo" + save_objext="$ac_objext" + ac_objext=lo + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + lt_cv_compiler_o_lo=no + else + lt_cv_compiler_o_lo=yes + fi + ]) + ac_objext="$save_objext" + CFLAGS="$save_CFLAGS" + ]) + compiler_o_lo=$lt_cv_compiler_o_lo + AC_MSG_RESULT([$compiler_o_lo]) +else + compiler_o_lo=no +fi +## +## END FIXME + +## FIXME: this should be a separate macro +## +# Check to see if we can do hard links to lock some files if needed +hard_links="nottested" +if test "$compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +## +## END FIXME + +## FIXME: this should be a separate macro +## +if test "$GCC" = yes; then + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) + echo "int some_variable = 0;" > conftest.$ac_ext + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" + compiler_rtti_exceptions=no + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + compiler_rtti_exceptions=no + else + compiler_rtti_exceptions=yes + fi + ]) + CFLAGS="$save_CFLAGS" + AC_MSG_RESULT([$compiler_rtti_exceptions]) + + if test "$compiler_rtti_exceptions" = "yes"; then + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' + else + no_builtin_flag=' -fno-builtin' + fi +fi +## +## END FIXME + +## FIXME: this should be a separate macro +## +# See if the linker supports building shared libraries. +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) + +allow_undefined_flag= +no_undefined_flag= +need_lib_prefix=unknown +need_version=unknown +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +archive_cmds= +archive_expsym_cmds= +old_archive_from_new_cmds= +old_archive_from_expsyms_cmds= +export_dynamic_flag_spec= +whole_archive_flag_spec= +thread_safe_flag_spec= +hardcode_into_libs=no +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no +hardcode_shlibpath_var=unsupported +runpath_var= +link_all_deplibs=unknown +always_export_symbols=no +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' +# include_expsyms should be a list of space-separated symbols to be *always* +# included in the symbol list +include_expsyms= +# exclude_expsyms can be an egrep regular expression of symbols to exclude +# it will be wrapped by ` (' and `)$', so one must not match beginning or +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', +# as well as any symbol that contains `d'. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_" +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out +# platforms (ab)use it in PIC code, but their linkers get confused if +# the symbol is explicitly referenced. Since portable code cannot +# rely on this symbol name, it's probably fine to never include it in +# preloaded symbol tables. +extract_expsyms_cmds= + +case $host_os in +cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; +openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX, the GNU linker is very broken + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=yes + + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ + test -f $output_objdir/impgen.exe || (cd $output_objdir && \ + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ + else $CC -o impgen impgen.c ; fi)~ + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' + + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' + + # cygwin and mingw dlls have different entry points and sets of symbols + # to exclude. + # FIXME: what about values for MSVC? + dll_entry=__cygwin_dll_entry@12 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ + case $host_os in + mingw*) + # mingw values + dll_entry=_DllMainCRTStartup@12 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ + ;; + esac + + # mingw and cygwin differ, and it's simplest to just exclude the union + # of the two symbol sets. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 + + # recent cygwin and mingw systems supply a stub DllMain which the user + # can override, but on older systems we have to supply one (in ltdll.c) + if test "x$lt_cv_need_dllmain" = "xyes"; then + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' + else + ltdll_obj= + ltdll_cmds= + fi + + # Extract the symbol export list from an `--export-all' def file, + # then regenerate the def file from the symbol export list, so that + # the compiled dll only exports the symbol export list. + # Be careful not to strip the DATA tag left be newer dlltools. + export_symbols_cmds="$ltdll_cmds"' + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' + + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is. + # If DATA tags from a recent dlltool are present, honour them! + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname-def; + else + echo EXPORTS > $output_objdir/$soname-def; + _lt_hint=1; + cat $export_symbols | while read symbol; do + set dummy \$symbol; + case \[$]# in + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; + esac; + _lt_hint=`expr 1 + \$_lt_hint`; + done; + fi~ + '"$ltdll_cmds"' + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = yes; then + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + case $host_os in + cygwin* | mingw* | pw32*) + # dlltool doesn't understand --whole-archive et. al. + whole_archive_flag_spec= + ;; + *) + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + ;; + esac + fi +else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + hardcode_direct=yes + archive_cmds='' + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + + shared_flag='-shared' + else + # not using gcc + if test "$host_cpu" = ia64; then + shared_flag='${wl}-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall can do strange things, so it is better to + # generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='${wl}-berok' + # This is a bit strange, but is similar to how AIX traditionally builds + # it's shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[[012]]) + allow_undefined_flag='-undefined suppress' + ;; + *) # Darwin 1.3 on + allow_undefined_flag='-flat_namespace -undefined suppress' + ;; + esac + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. Also zsh mangles + # `"' quotes if we put them in here... so don't! + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' + # We need to add '_' to the symbols in $export_symbols first + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' + hardcode_direct=yes + hardcode_shlibpath_var=no + whole_archive_flag_spec='-all_load $convenience' + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9* | hpux10* | hpux11*) + case $host_os in + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; + esac + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_minus_L=yes # Not in the search PATH, but as the default + # location of the library. + export_dynamic_flag_spec='${wl}-E' + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case "$host_os" in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' + + #Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + sco3.2v5*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + export_dynamic_flag_spec='${wl}-Bexport' + ;; + + solaris*) + # gcc --version < 3.0 without binutils cannot create self contained + # shared libraries reliably, requiring libgcc.a to resolve some of + # the object symbols generated in some cases. Libraries that use + # assert need libgcc.a to resolve __eprintf, for example. Linking + # a copy of libgcc.a into every shared library to guarantee resolving + # such symbols causes other problems: According to Tim Van Holder + # , C++ libraries end up with a separate + # (to the application) exception stack for one thing. + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + case `$CC --version 2>/dev/null` in + [[12]].*) + cat <&2 + +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably +*** create self contained shared libraries on Solaris systems, without +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling +*** -no-undefined support, which will at least allow you to build shared +*** libraries. However, you may find that when you link such libraries +*** into an application without using GCC, you have to manually add +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to +*** upgrade to a newer version of GCC. Another option is to rebuild your +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. + +EOF + no_undefined_flag= + ;; + esac + fi + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5uw7* | unixware7*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac +fi +AC_MSG_RESULT([$ld_shlibs]) +test "$ld_shlibs" = no && can_build_shared=no +## +## END FIXME + +## FIXME: this should be a separate macro +## +# Check hardcoding attributes. +AC_MSG_CHECKING([how to hardcode library paths into programs]) +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var"; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$hardcode_shlibpath_var" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +AC_MSG_RESULT([$hardcode_action]) +## +## END FIXME + +## FIXME: this should be a separate macro +## +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi +## +## END FIXME + +reload_cmds='$LD$reload_flag -o $output$reload_objs' +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +## FIXME: this should be a separate macro +## +# PORTME Fill in your ld.so characteristics +AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}.so$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can + # not hardcode correct soname into executable. Probably we can + # add versioning support to collect2, so additional links can + # be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}.so$major' + fi + shlibpath_var=LIBPATH + fi + hardcode_into_libs=yes + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}.so' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi4*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + export_dynamic_flag_spec=-rdynamic + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + need_version=no + need_lib_prefix=no + case $GCC,$host_os in + yes,cygwin*) + library_names_spec='$libname.dll.a' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog .libs/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + ;; + yes,mingw*) + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` + ;; + yes,pw32*) + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' + ;; + *) + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + # FIXME: Relying on posixy $() will cause problems for + # cross-compilation, but unfortunately the echo tests do not + # yet detect zsh echo's removal of \ escapes. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU/FreeBSD ld.so' + ;; + +freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + *) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + dynamic_linker="$host_os dld.sl" + version_type=sunos + need_lib_prefix=no + need_version=no + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' + soname_spec='${libname}${release}.sl$major' + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) version_type=irix ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux-gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' + soname_spec='${libname}${release}.so$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case "$host_os" in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + ;; + +os2*) + libname_spec='$name' + need_lib_prefix=no + library_names_spec='$libname.dll $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_version=no + need_lib_prefix=no + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + hardcode_into_libs=yes + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' + soname_spec='$libname.so.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no +## +## END FIXME + +## FIXME: this should be a separate macro +## +# Report the final consequences. +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) +## +## END FIXME + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) +## +## END FIXME + +## FIXME: this should be a separate macro +## +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) +## +## END FIXME + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +AC_LIBTOOL_DLOPEN_SELF + +## FIXME: this should be a separate macro +## +if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], + [$rm conftest* + echo 'static int dummy;' > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile); then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_cv_prog_cc_wl + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi]) + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) + ;; + esac +fi +need_lc=${lt_cv_archive_cmds_need_lc-yes} +## +## END FIXME + +## FIXME: this should be a separate macro +## +# The second clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + : +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + test -f Makefile && make "$ltmain" +fi -# Actually configure libtool. ac_aux_dir is where install-sh is found. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ -|| AC_MSG_ERROR([libtool configure failed]) +if test -f "$ltmain"; then + trap "$rm \"${ofile}T\"; exit 1" 1 2 15 + $rm -f "${ofile}T" + + echo creating $ofile + + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS SED \ + AR AR_FLAGS CC LD LN_S NM SHELL \ + reload_flag reload_cmds wl \ + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ + thread_safe_flag_spec whole_archive_flag_spec libname_spec \ + library_names_spec soname_spec \ + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ + old_striplib striplib file_magic_cmd export_symbols_cmds \ + deplibs_check_method allow_undefined_flag no_undefined_flag \ + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ + global_symbol_to_c_name_address \ + hardcode_libdir_flag_spec hardcode_libdir_separator \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do + + case $var in + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done -# Reload cache, that may have been modified by ltconfig -AC_CACHE_LOAD + cat <<__EOF__ > "${ofile}T" +#! $SHELL -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl +# A sed that does not truncate output. +SED=$lt_SED -# Redirect the config.log output again, so that the ltconfig log is not -# clobbered by the next message. -exec 5>>./config.log -]) +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="${SED} -e s/^X//" -AC_DEFUN(AC_LIBTOOL_SETUP, -[AC_PREREQ(2.13)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_RANLIB])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_NM])dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -dnl +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi -case "$target" in -NONE) lt_target="$host" ;; -*) lt_target="$target" ;; -esac +# ### BEGIN LIBTOOL CONFIG -# Check for any special flags to pass to ltconfig. -libtool_flags="" -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], -[libtool_flags="$libtool_flags --enable-dlopen"]) -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[libtool_flags="$libtool_flags --enable-win32-dll"]) -AC_ARG_ENABLE(libtool-lock, - [ --disable-libtool-lock avoid locking (might break parallel builds)]) -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case "$lt_target" in -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case "`/usr/bin/file conftest.o`" in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - rm -rf conftest* - ;; +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -]) -esac -]) +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$need_lc + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# The default C compiler. +CC=$lt_CC + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP="$STRIP" + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_pic_flag +pic_mode=$pic_mode + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_compiler_c_o + +# Can we write directly to a .lo ? +compiler_o_lo=$lt_compiler_o_lo + +# Must we lock files when doing compilation ? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_link_static_flag + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + case $host_os in + aix3*) + cat <<\EOF >> "${ofile}T" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + case $host_os in + cygwin* | mingw* | pw32* | os2*) + cat <<'EOF' >> "${ofile}T" + # This is a source program that is used to create dlls on Windows + # Don't remove nor modify the starting and closing comments +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ + # This is a source program that is used to create import libraries + # on Windows for dlls which lack them. Don't remove nor modify the + # starting and closing comments +# /* impgen.c starts here */ +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. +# +# This file is part of GNU libtool. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# */ +# +# #include /* for printf() */ +# #include /* for open(), lseek(), read() */ +# #include /* for O_RDONLY, O_BINARY */ +# #include /* for strdup() */ +# +# /* O_BINARY isn't required (or even defined sometimes) under Unix */ +# #ifndef O_BINARY +# #define O_BINARY 0 +# #endif +# +# static unsigned int +# pe_get16 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[2]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 2); +# return b[0] + (b[1]<<8); +# } +# +# static unsigned int +# pe_get32 (fd, offset) +# int fd; +# int offset; +# { +# unsigned char b[4]; +# lseek (fd, offset, SEEK_SET); +# read (fd, b, 4); +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# static unsigned int +# pe_as32 (ptr) +# void *ptr; +# { +# unsigned char *b = ptr; +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); +# } +# +# int +# main (argc, argv) +# int argc; +# char *argv[]; +# { +# int dll; +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; +# unsigned long export_rva, export_size, nsections, secptr, expptr; +# unsigned long name_rvas, nexp; +# unsigned char *expdata, *erva; +# char *filename, *dll_name; +# +# filename = argv[1]; +# +# dll = open(filename, O_RDONLY|O_BINARY); +# if (dll < 1) +# return 1; +# +# dll_name = filename; +# +# for (i=0; filename[i]; i++) +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') +# dll_name = filename + i +1; +# +# pe_header_offset = pe_get32 (dll, 0x3c); +# opthdr_ofs = pe_header_offset + 4 + 20; +# num_entries = pe_get32 (dll, opthdr_ofs + 92); +# +# if (num_entries < 1) /* no exports */ +# return 1; +# +# export_rva = pe_get32 (dll, opthdr_ofs + 96); +# export_size = pe_get32 (dll, opthdr_ofs + 100); +# nsections = pe_get16 (dll, pe_header_offset + 4 +2); +# secptr = (pe_header_offset + 4 + 20 + +# pe_get16 (dll, pe_header_offset + 4 + 16)); +# +# expptr = 0; +# for (i = 0; i < nsections; i++) +# { +# char sname[8]; +# unsigned long secptr1 = secptr + 40 * i; +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); +# unsigned long vsize = pe_get32 (dll, secptr1 + 16); +# unsigned long fptr = pe_get32 (dll, secptr1 + 20); +# lseek(dll, secptr1, SEEK_SET); +# read(dll, sname, 8); +# if (vaddr <= export_rva && vaddr+vsize > export_rva) +# { +# expptr = fptr + (export_rva - vaddr); +# if (export_rva + export_size > vaddr + vsize) +# export_size = vsize - (export_rva - vaddr); +# break; +# } +# } +# +# expdata = (unsigned char*)malloc(export_size); +# lseek (dll, expptr, SEEK_SET); +# read (dll, expdata, export_size); +# erva = expdata - export_rva; +# +# nexp = pe_as32 (expdata+24); +# name_rvas = pe_as32 (expdata+32); +# +# printf ("EXPORTS\n"); +# for (i = 0; i> "${ofile}T" || (rm -f "${ofile}T"; exit 1) + + mv -f "${ofile}T" "$ofile" || \ + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") + chmod +x "$ofile" +fi +## +## END FIXME + +])# _LT_AC_LTCONFIG_HACK # AC_LIBTOOL_DLOPEN - enable checks for dlopen support -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) # AC_ENABLE_SHARED - implement the --enable-shared flag # Usage: AC_ENABLE_SHARED[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_SHARED, [dnl -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) @@ -167,21 +3062,22 @@ ]) # AC_DISABLE_SHARED - set the default shared flag to --disable-shared -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no)]) # AC_ENABLE_STATIC - implement the --enable-static flag # Usage: AC_ENABLE_STATIC[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_STATIC, [dnl -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) @@ -200,7 +3096,8 @@ ]) # AC_DISABLE_STATIC - set the default static flag to --disable-static -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no)]) @@ -208,14 +3105,14 @@ # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(fast-install, changequote(<<, >>)dnl << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} -case "$enableval" in +case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) @@ -233,29 +3130,120 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl ]) -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no)]) +# AC_LIBTOOL_PICMODE - implement the --with-pic flag +# Usage: AC_LIBTOOL_PICMODE[(MODE)] +# Where MODE is either `yes' or `no'. If omitted, it defaults to +# `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default)]) + + +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in + /*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; + ?:/*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. + ;; + *) + ac_save_MAGIC_CMD="$MAGIC_CMD" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + egrep "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$ac_save_ifs" + MAGIC_CMD="$ac_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +]) + + +# AC_PATH_MAGIC - find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) + else + MAGIC_CMD=: + fi +fi +]) + + # AC_PROG_LD - find the path to the GNU or non-GNU linker -AC_DEFUN(AC_PROG_LD, +AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH(gnu-ld, [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl ac_prog=ld -if test "$ac_cv_prog_gcc" = yes; then +if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) - ac_prog=`($CC -print-prog-name=ld) 2>&5` - case "$ac_prog" in + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in # Accept absolute paths. -changequote(,)dnl - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' -changequote([,])dnl + [[\\/]]* | [[A-Za-z]]:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do @@ -277,17 +3265,17 @@ else AC_MSG_CHECKING([for non-GNU ld]) fi -AC_CACHE_VAL(ac_cv_path_LD, +AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - ac_cv_path_LD="$ac_dir/$ac_prog" + lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break @@ -296,9 +3284,9 @@ done IFS="$ac_save_ifs" else - ac_cv_path_LD="$LD" # Let the user override the test with a path. + lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) -LD="$ac_cv_path_LD" +LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else @@ -308,56 +3296,255 @@ AC_PROG_LD_GNU ]) -AC_DEFUN(AC_PROG_LD_GNU, -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, +# AC_PROG_LD_GNU - +AC_DEFUN([AC_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then - ac_cv_prog_gnu_ld=yes + lt_cv_prog_gnu_ld=yes else - ac_cv_prog_gnu_ld=no + lt_cv_prog_gnu_ld=no fi]) +with_gnu_ld=$lt_cv_prog_gnu_ld +]) + +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker +# -- PORTME Some linkers may need a different reload flag. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, +[lt_cv_ld_reload_flag='-r']) +reload_flag=$lt_cv_ld_reload_flag +test -n "$reload_flag" && reload_flag=" $reload_flag" +]) + +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], +[AC_CACHE_CHECK([how to recognise dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given egrep regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix4* | aix5*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi4*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin* | mingw* | pw32*) + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' + lt_cv_file_magic_cmd='/usr/bin/file -L' + case "$host_os" in + rhapsody* | darwin1.[[012]]) + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` + ;; + *) # Darwin 1.3 on + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' + ;; + esac + ;; + +freebsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20*|hpux11*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + irix5* | nonstopux*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" + ;; + *) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" + ;; + esac + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux-gnu*) + case $host_cpu in + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k) + lt_cv_deplibs_check_method=pass_all ;; + *) + # glibc up to 2.1.1 does not perform some relocations on ARM + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; + esac + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +openbsd*) + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' + else + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + fi + ;; + +osf3* | osf4* | osf5*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' + lt_cv_file_magic_test_file=/shlib/libc.so + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + lt_cv_file_magic_test_file=/lib/libc.so + ;; + +sysv5uw[[78]]* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method ]) + # AC_PROG_NM - find the path to a BSD-compatible name lister -AC_DEFUN(AC_PROG_NM, -[AC_MSG_CHECKING([for BSD-compatible nm]) -AC_CACHE_VAL(ac_cv_path_NM, +AC_DEFUN([AC_PROG_NM], +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl +AC_MSG_CHECKING([for BSD-compatible nm]) +AC_CACHE_VAL(lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. - ac_cv_path_NM="$NM" + lt_cv_path_NM="$NM" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then + tmp_nm=$ac_dir/${ac_tool_prefix}nm + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -B" + # Tru64's nm complains that /dev/null is an invalid object file + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then + lt_cv_path_NM="$tmp_nm -B" break - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - ac_cv_path_NM="$ac_dir/nm -p" + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + lt_cv_path_NM="$tmp_nm -p" break else - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) -NM="$ac_cv_path_NM" +NM="$lt_cv_path_NM" AC_MSG_RESULT([$NM]) ]) # AC_CHECK_LIBM - check for math library -AC_DEFUN(AC_CHECK_LIBM, +AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= -case "$lt_target" in -*-*-beos* | *-*-cygwin*) +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32*) # These system don't have libm ;; *-ncr-sysv4.3*) @@ -371,37 +3558,41 @@ ]) # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl convenience library and INCLTDL to the include flags for +# the libltdl convenience library and LTDLINCL to the include flags for # the libltdl header and adds --enable-ltdl-convenience to the -# configure arguments. Note that LIBLTDL and INCLTDL are not +# configure arguments. Note that LIBLTDL and LTDLINCL are not # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed -# with '${top_builddir}/' and INCLTDL will be prefixed with +# with '${top_builddir}/' and LTDLINCL will be prefixed with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case "$enable_ltdl_convenience" in +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" ]) # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl installable library and INCLTDL to the include flags for +# the libltdl installable library and LTDLINCL to the include flags for # the libltdl header and adds --enable-ltdl-install to the configure -# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will -# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed # with '${top_srcdir}/' (note the single quotes!). If your package is # not flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, main, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then @@ -413,22 +3604,115 @@ if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" - INCLTDL= + LTDLINCL= fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" ]) -dnl old names -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_executable_p="test -f" +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" + fi + done + done +done -dnl This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL])dnl + # Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/sed$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + _max=0 + _count=0 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris + # along with /bin/sed that truncates output. + for _sed in $_sed_list /usr/xpg4/bin/sed; do + test ! -f ${_sed} && break + cat /dev/null > "$tmp/sed.in" + _count=0 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" + # Check for GNU sed and select it if it is found. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then + lt_cv_path_SED=${_sed} + break + fi + while true; do + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" + mv "$tmp/sed.tmp" "$tmp/sed.in" + cp "$tmp/sed.in" "$tmp/sed.nl" + echo >>"$tmp/sed.nl" + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break + # 40000 chars as input seems more than enough + test $_count -gt 10 && break + _count=`expr $_count + 1` + if test $_count -gt $_max; then + _max=$_count + lt_cv_path_SED=$_sed + fi + done + done + rm -rf "$tmp" +]) +if test "X$SED" != "X"; then + lt_cv_path_SED=$SED +else + SED=$lt_cv_path_SED +fi +AC_MSG_RESULT([$SED]) +]) --- a/Makefile.in +++ b/Makefile.in @@ -119,7 +119,7 @@ DIST_COMMON = README ./stamp-h.in ABOUT-NLS AUTHORS BACKLOG COPYING \ ChangeLog INSTALL Makefile.am Makefile.in NEWS THANKS TODO acconfig.h \ acinclude.m4 aclocal.m4 config.guess config.h.in config.sub configure \ -configure.in install-sh ltconfig ltmain.sh missing mkinstalldirs +configure.in install-sh ltmain.sh missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) debian/patches/09-manpage-name-section0000644000000000000000000000114711763103440014760 0ustar From: Santiago Vila Subject: Fixed NAME section in manpage Bug-Debian: http://bugs.debian.org/368634 X-Debian-version: 3.6-13 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -819,7 +819,7 @@ $(srcdir)/recode.1: recode @if test -r $@ && test ! -w $@; then \ echo "WARNING: Page \`$@' read only, not updated"; \ - elif $(PERL) $(top_srcdir)/doc/help2man --output=$@ ./recode; then \ + elif $(PERL) $(top_srcdir)/doc/help2man --name="converts files between character sets" --output=$@ ./recode; then \ echo "Page \`$@' has been updated"; \ else \ echo "WARNING: Page \`$@' has *not* been updated."; \ debian/patches/series0000644000000000000000000000051111763103440012026 0ustar 01-no-usr-share-info-dir-gz 02-src-libiconv-c-utf8 03-src-task-c-librecode 04-src-hash-h-php4-collision 05-src-request-c-pointer-recalculation 06-libtool-update 07-po-update 08-all-linguas-update 09-manpage-name-section 10-src-recodext-h-gcc-fix 11-src-names-c-memory-leak 12-src-names-c-format-string 99-config-guess-config-sub debian/patches/11-src-names-c-memory-leak0000644000000000000000000000257511763103440015317 0ustar From: Gaël Le Mignot Subject: Fixed memory leak in librecode Bug-Debian: http://bugs.debian.org/242190 X-Debian-version: 3.6-16 --- a/src/names.c +++ b/src/names.c @@ -101,6 +101,21 @@ return strcmp (first->name, second->name) == 0; } +static void +alias_freer (void *param) +{ + RECODE_ALIAS alias = param; + struct recode_surface_list *next = alias->implied_surfaces; + struct recode_surface_list *p; + while (next) + { + p = next->next; + free(next); + next = p; + } + free(alias); +} + bool prepare_for_aliases (RECODE_OUTER outer) { @@ -108,7 +123,7 @@ outer->number_of_symbols = 0; outer->alias_table - = hash_initialize (800, NULL, alias_hasher, alias_comparator, free); + = hash_initialize (800, NULL, alias_hasher, alias_comparator, alias_freer); if (!outer->alias_table) return false; --- a/src/outer.c +++ b/src/outer.c @@ -617,7 +617,14 @@ if (outer->alias_table) hash_free (outer->alias_table); if (outer->argmatch_charset_array) - free (outer->argmatch_charset_array); + { + char **cursor; + for (cursor = outer->argmatch_charset_array; *cursor; cursor++) + free (*cursor); + for (cursor = outer->argmatch_surface_array; *cursor; cursor++) + free (*cursor); + free (outer->argmatch_charset_array); + } if (outer->one_to_same) free ((void *) outer->one_to_same); free (outer); debian/patches/07-po-update0000644000000000000000000172775011763103440012704 0ustar From: Santiago Vila Subject: Update of po files X-Debian-version: 3.6-9 X-Debian-version: 3.6-14 X-Debian-version: 3.6-19 --- /dev/null +++ b/i18n/be.po @@ -0,0 +1,522 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) 2003 Free Software Foundation, Inc. +# Hleb Valoska , 2003. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2003-04-06 23:16+0300\n" +"Last-Translator: Ales Nyakhaychyk \n" +"Language-Team: Belarusian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 0.9.6\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Без памылак" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Некананічнасьць на ўваходзе" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Двухсэнсоўнасьць на выхадзе" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Неперакладальнае на ўваходзе" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Няправільнае на ўваходзе" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Сыстэма выявіла праблему" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Няправільнае ўжываньне бібліятэкі перакадаваньня" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Нутраная памылка перакадаваньня" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Гэтая праграма зьяўляецца свабодным праграмным забесьпячэньнем, яе\n" +"можна распаўсюджваць і/ці зьмяняць паводле ўмоваў Агульнай Публічнай\n" +"Ліцэнзіі (GPL) GNU, надрукаванай Free Software Foundation; другой ці\n" +"(на твой погляд) пазьнейшай вэрсіі.\n" +"\n" +"Гэтая праграма разпаўсюджваецца з надзеяй, што яна будзе карыснай,\n" +"але БЕЗЬ НІЯКАЕ ГАРАНТЫІ; нават без гарантыі КАШТОЎНАСЬЦІ ці\n" +"ПРЫДАТНАСЬЦІ ДЛЯ КАНКРЭТНАЕ МЭТЫ. Глядзі падрабязнасьці ў GNU GPL.\n" +"\n" +"Ты мусіш атрымаць копію Агульнай Публічнай Ліцэнзіі (GPL) GNU разам\n" +"з гэтай праграмай, калі не, напішы на адрас Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Паспрабуй `%s %s', каб атрымаць болей інфармацыі.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Свабодная `recode' зьмяняе знаказбор ці спосаб кадаваньня файла.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Ужывай: %s [ОПЦЫІ]... [ [ЗНАКАЗБОР] | ЗАПЫТ [ФАЙЛ]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Калі парамэтар абавязковы для доўгае опцыі, то ён абавязковы й для\n" +"кароткае опцыі таксама. Аналягічна для неабавязковых парамэтраў.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Адлюстраваньне:\n" +" -l, --list[=ФАРМАТ] паказаць адзін ці ўсе вядомыя знаказборы\n" +" -k, --known=ПАРЫ абмежаваць знаказборы адпаведна сьпісу ПАР\n" +" -h, --header[=[МОВА/]ІМЯ] запісаць табліцу ІМЯ у stdout на МОВЕ й выйсьці\n" +" -F, --freeze-tables запісаць модуль С, які ўтрымлівае ўсе знаказборы\n" +" -T, --find-subsets паведаміць, якія знаказборы зьяўляюцца падмноствам \n" +" іншых\n" +" -C, --copyright надрукаваць зьвесткі аб аўтарскіх правох і ўмовах\n" +" капіяваньня\n" +" --help надрукаваць гэты экран даведкі й выйсьці\n" +" --version надрукаваць зьвесткі аб вэрсіі праграмы й выйсьці\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Рэжымы працы:\n" +" -v, --verbose інфармаваць пра пасьлядоўнасьць крокаў і \n" +" зьдзейсьненую працу\n" +" -q, --quiet, --silent не паведамляць пра незваротныя перакадаваньні\n" +" -f, --force зьдзяйсьняць перакадаваньне нават у выпадку\n" +" атрыманьня незваротнага выніку\n" +" -t, --touch абнавіць час перакадаваных файлаў пасьля іх\n" +" замены\n" +" -i, --sequence=files ужываць часовыя файлы для працы\n" +" --sequence=memory ужываць буфэры памяці для працы\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe ужываць каналы пры апрацоўцы\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe аналягічнае -i (на гэтай сыстэме)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Зьмяненьне парамэтраў працы:\n" +" -s, --strict строгая адпаведнасьць, нават са стратай знакаў\n" +" -d, --diacritics канвэртаваць толькі дыякрытычныя знакі, кшталту\n" +" ўжываных у HTML ці LaTeX\n" +" -S, --source[=МОВА] перакадоўваць толькі радкі й камэнтары МОВЫ\n" +" -c, --colons ужываць двухкроп'е замест двухкосься ў дыякрытычных\n" +" знаках\n" +" -g, --graphics справаць замяніць рамкі IBMPC знакамі ASCII\n" +" -x, --ignore=ЗНАКАЗБОР ігнараваць ЗНАКАЗБОР, абіраючы шлях кадаваньня\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Опцыя -l без ФАРМАТУ ні ЗНАКАЗБОРУ паказвае вядомыя табліцы знакаў і спосабы\n" +"кадаваньня.\n" +"ФАРМАТ -- `decimal', `octal', `hexadecimal' ці `full' (ці адзін з `dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Калі не атачэньне ня мае усталёўкі DEFAULT_CHARSET, то ЗНАКАЗБОР адпавядае\n" +"кадзіроўцы лякалі, якая вызначаецца з LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Опцыя -k адлюстроўвае магчымыя `зыходныя' знаказборы для зададзенага\n" +"`выніковага' ЗНАКАЗБОРУ, з ПАРАМІ перакадаваньня ў фармаце ДА1:ПА1,\n" +"ДА2:ПА2,..., дзе ДА і ПА зьяўляюцца кодамі, зададзенымі дзесятковымі лікамі.\n" +"І зыходныя, і выніковыя знаказборы мусяць быць таблічнымі.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "МОВА задае мову праграмаваньня, прыкладам `c', `perl' ці `po'; даўнята `c'.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"ЗАПЫТ: ПАДЗАПЫТ[,ПАДЗАПЫТ]...; ПАДЗАПЫТ: КАДЗІРОЎКА[..КАДЗІРОЎКА]...;\n" +"КАДЗІРОЎКА: [ЗНАКАЗБОР][/[СПОСАБ КАДАВАНЬНЯ]]...; ЗАПЫТ часта выглядае\n" +"як ПЕРАД..ПАСЬЛЯ, дзе ПЕРАД і ПАСЬЛЯ -- знаказборы. Замест прапушчанага\n" +"ЗНАКАЗБОРУ ужываецца даўняты знаказбор сыстэмы; замест прапушчанага\n" +"СПОСАБУ ўжываецца спосаб, стандартны для ЗНАКАЗБОРА; адзін / без зададзенага\n" +"СПОСАБУ азначае адсутнасьць СПОСАБАЎ увогуле. Глядзі кіраўніцтва.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Калі ня ўжытыя ані -i, ані -p, мяркуецца -p, калі ня дадзены ФАЙЛ, ці -i у \n" +"адваротным выпадку.\n" +"Кожны ФАЙЛ перакадоўваецца паверх самога сябе, зьнішчаючы арыгінал. Калі ФАЙЛ\n" +"ня дадзены, то праграма працуе фільтрам і перакадоўвае з stdin на stdout.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Паведамляй пра памылкі на адрас .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Двухсэнсоўная пасьлядоўнасьць: `%s'" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Невядомая пасьлядоўнасьць: `%s'" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Невядомая мова: `%s'" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Невядомая мова: `%s'" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Двухсэнсоўны фармат: `%s'" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Невядомы фармат: `%s'" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Напісаў: Franc,ois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Гэта свабоднае праграмовае забесьпячэньне; глядзі ўмовы капіяваньня ў\n" +"зыходным кодзе. Няма НІЯКАЕ гарантыі, нават гарантыі КАШТОЎНАСЬЦІ ці\n" +"ПРЫДАТНАСЬЦІ ДЛЯ КАНКРЭТНАЕ МЭТЫ.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Невядомы знак: `%s'" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Знаказбор `%s' невядомы ці двухсэнсоўны" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Прапушчаны патрэбны парамэтар" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Сынтаксыс не найлепшы, ужывай, калі ласка, `%s'" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Памылковы запыт: `%s'" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Перакадаваньне %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " зроблена\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " няўдалае: %s у кроку `%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "Няўдалае %s: %s у кроку `%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s у кроку `%s..%s'" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Знаказбор %s ужо існуе і не зьяўляецца %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Немагчыма адлюстраваць `%s', бо няма імёнаў для гэтага знаказбора" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Дзес Вас Шасн UCS2 Мнэма %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Нажаль няма імёнаў для `%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Працэдура закадаваньня ўжываецца часьцей, як адзін раз для `%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Працэдура раскадаваньня ўжываецца часьцей, як адзін раз для `%s'" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Скончылася віртуальная памяць" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Коды %3d і %3d абодва кадуюцца ў %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Ніводзін знак не кадуецца ў %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Зваротнае пераўтварэньне па дадзенай табліцы `адзін-у-адзін'" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Дыягностыка пераўтварэньня з `%s' у `%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Пара нумар %d: <%3d, %3d> канфліктуе з <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Не магу ўтварыць табліцу з мноства вядомых пар" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Простае перакадаваньне, якому не патрэбная табліца" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Перакадаваньне заскладанае для простай табліцы" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sТабліца перакадаваньня, аўтаматычна створаная з дапамогай GNU `%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%sдля пасьлядоўнасьці %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Няма табліцы для друку" + +#: src/request.c:34 +msgid "reversible" +msgstr "зваротная" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s у %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "байт" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "пераменная" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Недасяжна*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*простая копія*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Скончылася віртуальная памяць!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Няўдалая ініцыялізацыя кроку" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Няўдалая ініцыялізацыя кроку (неапрацаваныя опцыі)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Запыт: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Скарочаны да: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Невядомае імя спосабу кадаваньня `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Немагчыма перакадаваць з `%s' у `%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "У запыце чакалася `..'" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Статус чаканьня даччынага працэсу -- 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Мнэма Апісаньне\n" +"\n" --- a/i18n/da.po +++ b/i18n/da.po @@ -1,12 +1,15 @@ # Danish message catalog for GNU recode. # Copyright (C) 1997 Free Software Foundation, Inc. # Niels Kristian Bech Jensen , 1997-2000. +# Keld Simonsen , 2001. +# +# Reviewed: 2000-09-09: byrial@image.dk # msgid "" msgstr "" -"Project-Id-Version: recode 3.5\n" +"Project-Id-Version: recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 2000-05-31 22:02+02:00\n" +"PO-Revision-Date: 2001-09-12 11:05+02:00\n" "Last-Translator: Niels Kristian Bech Jensen \n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" @@ -19,7 +22,7 @@ #: src/main.c:145 msgid "Non canonical input" -msgstr "Ualmindelige inddata" +msgstr "Unormale inddata" #: src/main.c:148 msgid "Ambiguous output" @@ -62,8 +65,7 @@ "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" msgstr "" "Dette program er fri software; du m redistribuere det og/eller modificere\n" -"det under betingelserne givet i GNU General Public License som publiceret " -"af\n" +"det under betingelserne givet i GNU General Public License som publiceret af\n" "Free Software Foundation; enten version 2, eller (efter dit valg) en senere\n" "version.\n" "\n" @@ -79,22 +81,16 @@ #: src/main.c:233 #, c-format msgid "Try `%s %s' for more information.\n" -msgstr "Prv \"%s %s\" for mere information.\n" +msgstr "Prv '%s %s' for mere information.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -"Fri \"recode\" konverterer filer mellem forskellige tegnst og pakninger.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Fri 'recode' konverterer filer mellem forskellige tegnst og indpakninger.\n" #: src/main.c:241 #, c-format -msgid "" -"\n" -"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" -msgstr "" -"\n" -"Brug: %s [TILVALG]... [ [TEGNST] | FORESPRGSEL [FIL]... ]\n" +msgid "\nUsage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "\nBrug: %s [TILVALG]... [ [TEGNST] | FORESPRGSEL [FIL]... ]\n" #: src/main.c:244 msgid "" @@ -108,13 +104,11 @@ "argumenter.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -145,13 +139,12 @@ " --sequence=memory use memory buffers for sequencing passes\n" msgstr "" "\n" -"Operationsmder:\n" -" -v, --verbose vis rkkeflgen af gennemlb, og rapportr " -"fremskridt\n" -" -q, --quiet, --silent udelad meddelelser om irreversible oversttelser\n" -" -f, --force gennemtving oversttelser, selv hvis de ikke er\n" +"Virkemder:\n" +" -v, --verbose vis rkkeflgen af gennemlb, og rapportr fremskridt\n" +" -q, --quiet, --silent udelad meddelelser om irreversible omkodninger\n" +" -f, --force gennemtving omkodninger, selv hvis de ikke er\n" " reversible\n" -" -t, --touch giv den oversatte fil system-urets tid\n" +" -t, --touch giv den omkodede fil system-urets tid\n" " -i, --sequence=files brug midlertidige filer mellem gennemlbene\n" " --sequence=memory brug hukommelsesbuffere mellem gennemlbene\n" @@ -175,16 +168,14 @@ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" msgstr "" "\n" -"Fintuning:\n" +"Finjustering:\n" " -s, --strict brug kun njagtige tegnst selvom der mistes tegn\n" -" -d, --diacritics overst kun diakritiske/specielle tegn i " -"HTML/LaTeX\n" -" -S, --source[=SPR] begrns omodning til strenge og kommentarer som\n" +" -d, --diacritics omkod kun diakritiske/specielle tegn i HTML/LaTeX\n" +" -S, --source[=SPR] begrns omkodning til strenge og kommentarer som\n" " for SPR\n" -" -c, --colons brug koloner i stedet for anfrselstegn som trema " -"()\n" -" -g, --graphics tilnrm IBMPC linie- og kassetegn med ASCII grafik\n" -" -x, --ignore=TEGNST ignorr TEGNST nr en omkodningssti vlges\n" +" -c, --colons brug koloner i stedet for anfrselstegn som trema ()\n" +" -g, --graphics tilnrm IBMPC linie- og kassetegn med ASCII-grafik\n" +" -x, --ignore=TEGNST ignorr TEGNST nr en omkodningsrute vlges\n" #: src/main.c:296 msgid "" @@ -194,56 +185,47 @@ msgstr "" "\n" "Tilvalg -l uden FORMAT eller TEGNST viser en liste over alle tegnst og\n" -"pakninger. FORMAT er et af ordene 'decimal', 'octal', 'hexadecimal' eller\n" +"indpakninger. FORMAT er et af ordene 'decimal', 'octal', 'hexadecimal' eller\n" "'full' (eller et af bogstaverne d, o, h eller f).\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" -msgstr "Standard TEGNST er \"%s\", med mindre DEFAULT_CHARSET er angivet.\n" +msgstr "" +"Med mindre DEFAULT_CHARSET er angivet i miljet, er\n" +"Standard TEGNST det lokaleafhngige tegnst, bestemt ud fra LC_ALL, LC_CTYPE og LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" -"Med -k vises en liste over mulige fr tegnst for det givne efter TEGNST,\n" -"begge tabellariske tegnst, med PAR af typen " -"\"FR1:EFTER1,FR2:EFTER2,...\"\n" -"hvor FR'er og EFTER'e er tegnkoder givet efter titalssystemet.\n" +"Med -k vises en liste over mulige fr-tegnst for det givne efter-TEGNST,\n" +"begge tabellariske tegnst, med PAR af typen 'FR1:EFTER1,FR2:EFTER2,...'\n" +"hvor FR'er og EFTER'e er givet som decimale tal.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" -"SPR er et programmeringssprog, f.eks. \"c\", \"perl\" eller \"po\"; \"c\" er " -"standard.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "SPR er et programmeringssprog, f.eks. 'c', 'perl' eller 'po'; 'c' er standard.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" -"FORESPRGSEL er UNDERFORESPRGSEL[,UNDERFORESPRGSEL]...; UNDERFORESPRGSEL " -"er\n" -"INDKODNING[..INDKODNING]...; INDKODNING er [TEGNST][/[PAKNING]]...\n" +"FORESPRGSEL er UNDERFORESPRGSEL[,UNDERFORESPRGSEL]...; UNDERFORESPRGSEL er\n" +"INDPAKNING[..INDPAKNING]...; INDPAKNING er [TEGNST][/[INDPAKNING]]...\n" "FORESPRGSEL har ofte formen FR..EFTER, hvor FR og EFTER er tegnst.\n" -"Hvis et TEGNST udelades, anvendes det normale tegnst; hvis [/PAKNING]...\n" +"Hvis et TEGNST udelades, anvendes det normale tegnst; hvis [/INDPAKNING]...\n" "udelades, anvendes den normale pakning af TEGNST; / uden navnet p en\n" -"pakning betyder ingen pakning. Se manualen.\n" +"indpakning betyder ingen indpakninger. Se manualen.\n" #: src/main.c:323 msgid "" @@ -253,65 +235,52 @@ "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" "\n" -"Hvis ingen af -i eller -p er valgt, bruges -p hvis ingen FIL, ellers -i.\n" -"Hver FIL bliver oversat oveni sig selv og overskriver originalen. Hvis " -"ingen\n" -"FIL er valgt, er programmet et filter, der overstter fra std-ind til " -"std-ud.\n" +"Hvis hverken -i eller -p er valgt, bruges -p hvis ingen FIL, ellers -i.\n" +"Hver FIL bliver omkodet oven i sig selv og overskriver originalen. Hvis ingen\n" +"FIL er valgt, er programmet et filter, der omkoder fra std-ind til std-ud.\n" #: src/main.c:329 -msgid "" -"\n" -"Report bugs to .\n" -msgstr "" -"\n" -"Rapportr fejl til .\n" +msgid "\nReport bugs to .\n" +msgstr "\nRapportr fejl til .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Sekvens '%s' er flertydig" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Sekvens '%s' er ukendt" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Sprog '%s' er flertydigt" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Sprog '%s' er ukendt" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Format '%s' er flertydigt" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Format '%s' er ukendt" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Skrevet af Franois Pinard .\n" +msgstr "Skrevet af Franois Pinard .\n" #: src/main.c:624 -msgid "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" -msgstr "" -"\n" -"Ophavsret (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgid "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "\nOphavsret (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" @@ -319,32 +288,31 @@ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Dette er fri software; se kopieringsbetingelserne i kildeteksten. Der gives\n" -"INGEN garanti; end ikke for SALGBARHED eller ANVENDELIGHED TIL NOGET " -"FORML.\n" +"INGEN garanti; end ikke for SALGBARHED eller ANVENDELIGHED TIL NOGET FORML.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Symbol '%s' er ukendt" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Tegnst '%s' er ukendt eller flertydigt" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Krvet argument mangler" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "Forldet syntaks, brug hellere \"%s\"" +msgstr "Forldet syntaks, brug hellere '%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Foresprgsel '%s' er fejlagtig" #: src/main.c:903 #, c-format @@ -356,19 +324,19 @@ msgstr " frdig\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " fejlede: %s i %s..%s\n" +msgstr " fejlede: %s i trin '%s..%s'\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s fejlede: %s i %s..%s" +msgstr "%s fejlede: %s i trin '%s..%s'" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s i %s..%s" +msgstr "%s i trin '%s..%s'" #: src/names.c:335 #, c-format @@ -378,7 +346,7 @@ #: src/names.c:831 #, c-format msgid "Cannot list `%s', no names available for this charset" -msgstr "Kan ikke vise \"%s\", ingen navne tilgngelige for dette tegnst" +msgstr "Kan ikke vise '%s', ingen navne tilgngelige for dette tegnst" #. code counter #. expected value for code counter @@ -392,31 +360,31 @@ #: src/names.c:1049 #, c-format msgid "Sorry, no names available for `%s'" -msgstr "Beklager, ingen navne tilgngelige for \"%s\"" +msgstr "Beklager, ingen navne tilgngelige for '%s'" #: src/outer.c:125 #, c-format msgid "Resurfacer set more than once for `%s'" -msgstr "Genpakker indstillet flere gange for \"%s\"" +msgstr "Genindpakker indstillet flere gange for '%s'" #: src/outer.c:133 #, c-format msgid "Unsurfacer set more than once for `%s'" -msgstr "Udpakker indstillet flere gange for \"%s\"" +msgstr "Udpakker indstillet flere gange for '%s'" #: src/recode.c:115 src/recode.c:127 msgid "Virtual memory exhausted" msgstr "Virtuel hukommelse opbrugt" #: src/recode.c:155 -#, c-format, ycp-format +#, c-format msgid "Codes %3d and %3d both recode to %3d" -msgstr "Tegnkoderne %3d og %3d oversttes begge til %3d" +msgstr "Tegnkoderne %3d og %3d omkodes begge til %3d" #: src/recode.c:169 -#, c-format, ycp-format +#, c-format msgid "No character recodes to %3d" -msgstr "Ingen tegn oversttes til %3d" +msgstr "Ingen tegn omkodes til %3d" #: src/recode.c:170 msgid "Cannot invert given one-to-one table" @@ -425,7 +393,7 @@ #: src/recode.c:224 src/recode.c:236 #, c-format msgid "Following diagnostics for `%s' to `%s'" -msgstr "Flgende fejl er for \"%s\" til \"%s\"" +msgstr "Flgende fejl er for '%s' til '%s'" #: src/recode.c:229 src/recode.c:241 #, c-format @@ -434,7 +402,7 @@ #: src/recode.c:272 msgid "Cannot complete table from set of known pairs" -msgstr "Kan ikke fuldende tabellen udfra mngden af kendte par" +msgstr "Kan ikke fuldende tabellen ud fra mngden af kendte par" #: src/recode.c:497 msgid "Identity recoding, not worth a table" @@ -448,7 +416,7 @@ #: src/recode.c:536 #, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%sOmkodningstabellen er genereret automatisk af Free \"%s\" %s" +msgstr "%sOmkodningstabellen er genereret automatisk af Fri '%s' %s" #: src/recode.c:538 #, c-format @@ -513,16 +481,16 @@ #: src/request.c:823 src/request.c:932 #, c-format msgid "Unrecognised surface name `%s'" -msgstr "Ukendt pakkenavn \"%s\"" +msgstr "Ukendt indpakningsnavn '%s'" #: src/request.c:903 #, c-format msgid "No way to recode from `%s' to `%s'" -msgstr "Umuligt at overstte fra \"%s\" til \"%s\"" +msgstr "Umuligt at omkode fra '%s' til '%s'" #: src/request.c:1013 msgid "Expecting `..' in request" -msgstr "Forventer \"..\" i foresprgsel" +msgstr "Forventer '..' i foresprgsel" #: src/task.c:826 src/task.c:1002 #, c-format @@ -530,33 +498,5 @@ msgstr "Underprocessens ventestatus er 0x%0.2x" #: src/testdump.c:298 -msgid "" -"UCS2 Mne Description\n" -"\n" -msgstr "" -"UCS2 Mne Beskrivelse\n" -"\n" - -#~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "Der findes ikke et standard TEGNST, angiv DEFAULT_CHARSET.\n" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "Flertydig sekvens \"%s\"" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Ukendt sekvens \"%s\"" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Flertydigt sprog \"%s\"" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Ukendt sprog \"%s\"" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "Flertydigt format \"%s\"" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Ukendt format \"%s\"" - -#~ msgid "Erroneous request `%s'" -#~ msgstr "Fejlagtig foresprgsel \"%s\"" +msgid "UCS2 Mne Description\n\n" +msgstr "UCS2 Mnem Beskrivelse\n\n" --- /dev/null +++ b/i18n/eo.po @@ -0,0 +1,514 @@ +# Esperantaj mesaĝoj por recode. +# This file is distributed under the same license as the recode package. +# Copyright (C) 2001 Free Software Foundation, Inc. +# Edmund GRIMLEY EVANS , 2001, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2012-04-04 21:04+0100\n" +"Last-Translator: Edmund GRIMLEY EVANS \n" +"Language-Team: Esperanto \n" +"Language: eo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8-bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Neniu eraro" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Nekanoneca enigo" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Plursenca eligo" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Netradukebla enigo" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Nevalida enigo" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Sistemo trovis problemon" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Misuzo de la rekodado-biblioteko" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Interna eraro dum rekodado" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Ĉi tiu programo estas libera; vi povas pludoni kopiojn kaj modifi\n" +"ĝin sub la kondiĉoj de la Ĝenerala Publika Rajtigilo de GNU,\n" +"kiel tio estas eldonita de Free Software Foundation; aŭ versio 2\n" +"de la Rajtigilo, aŭ (laŭ via elekto) iu sekva versio.\n" +"\n" +"Ĉi tiu programo estas disdonita kun la espero, ke ĝi estos utila,\n" +"sed SEN IA AJN GARANTIO; eĉ sen la implicita garantio de\n" +"KOMERCA KVALITO aŬ ADEKVATECO POR DIFINITA CELO. Vidu la\n" +"Ĝeneralan Publikan Rajtigilon de GNU por pli da detaloj.\n" +"\n" +"Vi devus esti ricevinta kopion de la Ĝenerala Publika Rajtigilo de\n" +"GNU kun ĉi tiu programo; se ne, skribu al Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, Usono.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Provu '%s %s' por pli da informoj.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Libera 'recode' konvertas dosierojn inter diversaj signaroj kaj surfacoj.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Uzado: %s [OPCIO]... [ [SIGNARO] | PETO [DOSIERO]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Se longa opcio montras argumenton kiel devigan, tiam ĝi estas deviga\n" +"ankaŭ por la ekvivalenta mallonga opcio. Simile por nedevigaj argumentoj.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Listigoj:\n" +" -l, --list[=FORMO] Listigi unu aŭ ĉiujn signarojn kaj kromnomojn\n" +" -k, --known=PAROJ Limigi signarojn laŭ konataj PAROJ\n" +" -h, --header[=[LN/]NOMO] Skribi tabelon NOMO al normala eligo per LN\n" +" -F, --freeze-tables Eligi C-modulon kun ĉiuj tabeloj\n" +" -T, --find-subsets Raporti signarojn, kiuj estas subaroj de aliaj\n" +" -C, --copyright Montri kopirajton kaj kopikondiĉojn\n" +" --help Montri ĉi tiun helpon kaj eliri\n" +" --version Montri versiinformon kaj eliri\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Funkcimanieroj:\n" +" -v, --verbose klarigi sinsekvon de paŝoj kaj raporti progreson\n" +" -q, --quiet, --silent subpremi mesaĝojn pri neinversigeblaj rekodadoj\n" +" -f, --force fari rekodadon, ankaŭ kiam ne inversigebla\n" +" -t, --touch fari 'touch' al konvertitaj dosieroj\n" +" -i, --sequence=files uzi dumtempajn dosierojn por internaj paŝoj\n" +" --sequence=memory uzi bufrojn en memoro por internaj paŝoj\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe uzi tubojn (\"pipe\") por internaj paŝoj\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe same kiel -i (en ĉi tiu sistemo)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Fajnaj agordoj:\n" +" -s, --strict uzi striktajn mapojn, eĉ ĉe signoperdo\n" +" -d, --diacritics konverti nur kromsignojn aŭ simile por HTML/LaTeX\n" +" -S, --source[=LN] limigi rekodadon al signoĉenoj kaj komentoj por LN\n" +" -c, --colons uzi ':' anstataŭ '\"' por diarezoj\n" +" -g, --graphics prezenti IBMPC-liniilojn per askiaj bildoj\n" +" -x, --ignore=SIGNARO ignori SIGNAROn dum elekto de rekodado-vojo\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"La opcio -l kun neniu FORMO aŭ SIGNARO listigas ĉiujn disponatajn\n" +"signarojn kaj surfacojn. FORMO estas 'decimal', 'octal', 'hexadecimal'\n" +"aŭ 'full' (aŭ unu el 'dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Se la media variablo DEFAULT_CHARSET ne estas agordita, SIGNARO implicite\n" +"estas tiu de la lokaĵaro, determinita de LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Kun -k, eblaj antaŭaj signaroj por la donita posta SIGNARO estas listigitaj,\n" +"kun PAROJ en la formo 'ANT1:POST1,ANT2,POST2,...', kie ANT-oj kaj POST-oj\n" +"estas kodoj donitaj kiel dekumaj nombroj.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN estas programlingvo, ekzemple 'c', 'perl' aŭ 'po'; implicite estas 'c'.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"PETO estas SUBPETO[,SUBPETO]...; SUBPETO estas KODO[..KODO]...\n" +"KODO estas [SIGNARO][/[SURFACO]]...; PETO ofte aspektas kiel ANTAŬ...POST,\n" +"kie ANTAŬ kaj POST estas signaroj. Ellasita SIGNARO implicas la kutiman\n" +"signaron; ellasita [/SURFACO]... signifas la implicitan surfacon por SIGNARO;\n" +"/ kun malplena surfaco-nomo signifas neniajn surfacojn. Vidu la manlibron.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Se neniu el -i kaj -p estas donita, supozi -p, se neniu DOSIERO, alie -i.\n" +"Ĉiu DOSIERO estas rekodita surloke, anstataŭante la originalon. Se neniu\n" +"DOSIERO estas specifita, agi kiel filtrilo kaj rekodi de la normala enigo\n" +"al la normala eligo.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Raportu cimojn al .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Sinsekvo '%s' estas plursenca" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Sinsekvo '%s' estas nekonata" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Lingvo '%s' estas plursenca" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Lingvo '%s' estas nekonata" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Formo '%s' estas plursenca" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Formo '%s' estas nekonata" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Verkita de François Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Kopirajto (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Ĉi tio estas libera programo; vidu la fonton por kopikondiĉoj. Estas\n" +"NENIA GARANTIO; eĉ ne por KOMERCA KVALITO aŭ ADEKVATECO POR DIFINITA CELO.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Simbolo '%s' estas nekonata" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Signaro '%s' estas nekonata aŭ plursenca" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Bezonata argumento mankas" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Malrekomendata sintakso; bonvolu uzi '%s'" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Peto '%s' estas erara" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Rekodas '%s' ..." + +#: src/main.c:913 +msgid " done\n" +msgstr " preta\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " malsukcesis: %s en paŝo '%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s malsukcesis: %s en paŝo '%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s en paŝo '%s..%s'" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "La signaro %s jam ekzistas kaj ne estas %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Ne povas montri '%s'; neniuj nomoj disponataj por ĉi tiu signaro" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Pardonu, sed neniaj nomoj disponataj por '%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Resurfacigilo agordita pli ol unufoje por '%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Malsurfacigilo por '%s' agordita pli ol unufoje" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Vituala memoro elĉerpiĝis" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "La kodoj %3d kaj %3d estas ambaŭ konvertataj al %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Neniu signo estas konvertata al %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Ne povas inversigi la donitan unusencan tabelon" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Jena diagnozo por konvertado de '%s' al '%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Paro numero %d: <%3d, %3d> konfliktas kun <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Ne povas kompletigi tabelon el aro de konataj paroj" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Senŝanĝa rekodado ne indas je tabelo" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Rekodado estas tro komplika por nura tabelo" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sKonvertotabelo kreita aŭtomate de Free '%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%spor sinsekvo %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Mankas tabelo por eligado" + +#: src/request.c:34 +msgid "reversible" +msgstr "inversigebla" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s al %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "bitoko" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "variablo" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*neebla*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*nura kopio*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Virtuala memoro estas plena!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Komencado de paŝo malsukcesis" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Komencado de paŝo malsukcesis (netraktitaj opcioj)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Peto: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Ŝrumpis ĝis: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Nekonata nomo de surfaco '%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Mankas eblo por konverti de '%s' al '%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Atendas '..' en peto" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Atendostatuso de ido-procezo estas 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Priskribo\n" +"\n" --- a/i18n/es.po +++ b/i18n/es.po @@ -1,12 +1,12 @@ -# Mensajes en espaol para GNU recode. -# Copyright (C) 1999 Free Software Foundation, Inc. -# Santiago Vila Doncel , 1999. +# Mensajes en espaol para Free recode. +# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. +# Santiago Vila Doncel , 1999, 2001, 2002. # msgid "" msgstr "" -"Project-Id-Version: GNU recode 3.4r\n" +"Project-Id-Version: Free recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-05-21 18:45+0200\n" +"PO-Revision-Date: 2002-09-17 00:28+0200\n" "Last-Translator: Santiago Vila Doncel \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" @@ -83,13 +83,9 @@ msgid "Try `%s %s' for more information.\n" msgstr "Pruebe `%s %s' para ms informacin.\n" -# FUZZY. GNU/Free. #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -"GNU `recode' convierte ficheros entre varios juegos de caracteres y " -"facetas.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Free `recode' convierte ficheros entre varios juegos de caracteres y facetas.\n" #: src/main.c:241 #, c-format @@ -112,13 +108,11 @@ "argumentos opcionales.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -128,18 +122,15 @@ msgstr "" "\n" "Listados:\n" -" -l, --list[=FORMATO] muestra uno o todos los juegos conocidos\n" -" -k, --known=PARES restringe los juegos de acuerdo con la lista " -"de\n" +" -l, --list[=FORMATO] muestra uno o todos los juegos y alias conocidos\n" +" -k, --known=PARES restringe los juegos de acuerdo con la lista de\n" " PARES conocidos\n" " -h, --header[=[LN/]NOMBRE escribe la tabla NOMBRE en la salida estndar\n" " usando LN, y finaliza\n" " -F, --freeze-tables escribe un mdulo en C con todas las tablas\n" -" -T, --find-subsets informa acerca de todos los juegos de " -"caracteres\n" +" -T, --find-subsets informa acerca de todos los juegos de caracteres\n" " que son subconjuntos de otros\n" -" -C, --copyright muestra el Copyright y las condiciones de " -"copia\n" +" -C, --copyright muestra el Copyright y las condiciones de copia\n" " --help muestra esta ayuda y finaliza\n" " --version muestra la versin y finaliza\n" @@ -156,13 +147,10 @@ msgstr "" "\n" "Modos de operacin:\n" -" -v, --verbose explica la sucesin de pasos e informa del " -"desarrollo\n" -" -q, --quiet, --silent no muestra mensajes sobre conversiones " -"irreversibles\n" +" -v, --verbose explica la sucesin de pasos e informa del desarrollo\n" +" -q, --quiet, --silent no muestra mensajes sobre conversiones irreversibles\n" " -f, --force realiza la conversin incluso si no es reversible\n" -" -t, --touch toca los ficheros convertidos despus del " -"reemplazo\n" +" -t, --touch toca los ficheros convertidos despus del reemplazo\n" " -i, --sequence=files utiliza ficheros intermedios para las pasadas\n" " --sequence=memory utiliza bfers en memoria para las pasadas\n" @@ -196,15 +184,11 @@ msgstr "" "\n" "Ajuste `fino':\n" -" -s, --strict utiliza correspondencias estrictas, aunque se " -"pierdan\n" +" -s, --strict utiliza correspondencias estrictas, aunque se pierdan\n" " caracteres\n" -" -d, --diacritics convierte solamente acentos y dems para " -"HTML/LaTeX\n" -" -S, --source[=LN] limita la conversin a cadenas y comentarios segn " -"LN\n" -" -c, --colons utiliza dos puntos en vez de comillas para " -"diresis\n" +" -d, --diacritics convierte solamente acentos y dems para HTML/LaTeX\n" +" -S, --source[=LN] limita la conversin a cadenas y comentarios segn LN\n" +" -c, --colons utiliza dos puntos en vez de comillas para diresis\n" " -g, --graphics aproxima grficos IBMPC mediante grficos ASCII\n" " -x, --ignore=JUEGO descarta JUEGO al escoger un camino de conversin\n" @@ -215,61 +199,51 @@ "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" "\n" -"La opcin -l sin FORMATO ni JUEGO muestra los juegos de caracteres y " -"facetas.\n" -"disponibles. FORMATO es `decimal', `octal', `hexadecimal' o `full' (o uno " -"de\n" +"La opcin -l sin FORMATO ni JUEGO muestra los juegos de caracteres y facetas.\n" +"disponibles. FORMATO es `decimal', `octal', `hexadecimal' o `full' (o uno de\n" "entre `dohf').\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" -"A menos que se establezca DEFAULT_CHARSET en el entorno,\n" -"CHARSET es `%s' por omisin.\n" +"A menos que se establezca DEFAULT_CHARSET en el entorno, el valor\n" +"predeterminado de CHARSET es la codificacin de la que depende el locale,\n" +"determinada por LC_ALL, LC_CTYPE, LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" -"Con -k, se muestran los posibles juegos `antes' para el JUEGO `despus' " -"dado,\n" +"Con -k, se muestran los posibles juegos `antes' para el JUEGO `despus' dado,\n" "siendo ambos juegos de caracteres tabulares, con PAREJAS de la forma\n" "`ANT1:DES1,ANT2:DES2,...' y siendo los ANTs y los DESs cdigos dados\n" "como nmeros decimales.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" msgstr "" -"LN es algn lenguage, puede ser `c', `perl' o `po', el valor predeterminado\n" +"LN es algn lenguaje, puede ser `c', `perl' o `po', el valor predeterminado\n" "es `c'\n" # FIXME: [SURFACE]... means the usual surfaces or the usual surface? #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" "PETICIN es SUBPETICIN[,SUBPETICIN]...;\n" "SUBPETICIN es CODIFICACIN[..CODIFICACIN]...\n" "CODIFICACIN es [JUEGO][/[FACETA]]...; PETICIN suele ser ANTES..DESPUS,\n" -"donde ANTES y DESPUS son juegos de caracteres. Un JUEGO omitido implica " -"el\n" +"donde ANTES y DESPUS son juegos de caracteres. Un JUEGO omitido implica el\n" "juego de caracteres usual; una [/FACETA]... omitida significa la faceta\n" "implcita para el JUEGO; una / con una faceta vaca significa que no hay\n" "ninguna faceta. Vase el manual.\n" @@ -284,8 +258,7 @@ "\n" "Si no se especifica ninguna de las opciones -i -p, se supone -p si no\n" "hay ningn FICHERO, o si no, -i. Cada FICHERO se convierte sobre s mismo,\n" -"destruyendo el original. Si no es especifica ningn FICHERO, entonces " -"funciona\n" +"destruyendo el original. Si no es especifica ningn FICHERO, entonces funciona\n" "como filtro y convierte la entrada estndar en la salida estndar.\n" #: src/main.c:329 @@ -294,46 +267,43 @@ "Report bugs to .\n" msgstr "" "\n" -"Comunicar `bugs' a .\n" +"Comunicar bichos a .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "La sucesin `%s' es ambigua" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "La sucesin `%s' es desconocida" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "El idioma `%s' es ambiguo" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "El idioma `%s' es desconocido" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "El formato `%s' es ambiguo" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "El formato `%s' es desconocido" # Se entiende que los usuarios espaoles s tendrn iso-8859-1. #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Escrito por Franois Pinard .\n" +msgstr "Escrito por Franois Pinard .\n" # FIXME: Aadir 1998 (?). #: src/main.c:624 @@ -356,26 +326,26 @@ #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "El smbolo `%s' es desconocido" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "El juego de caracteres `%s' es desconocido o ambiguo" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Falta el argumento requerido" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "Sintaxis antigua, por favor utilice `%s'" +msgstr "La sintaxis es antigua, por favor utilice `%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "La peticin `%s' es errnea" #: src/main.c:903 #, c-format @@ -387,19 +357,19 @@ msgstr " hecho\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " fall: %s en %s..%s\n" +msgstr " fall: %s en el paso %s..%s\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s fall: %s en %s..%s" +msgstr "%s fall: %s en el paso %s..%s" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s en %s..%s" +msgstr "%s en el paso %s..%s" #: src/names.c:335 #, c-format @@ -472,8 +442,7 @@ #: src/recode.c:272 msgid "Cannot complete table from set of known pairs" -msgstr "" -"No se puede completar la tabla a partir del conjunto de pares conocidos" +msgstr "No se puede completar la tabla a partir del conjunto de pares conocidos" #: src/recode.c:497 msgid "Identity recoding, not worth a table" @@ -491,7 +460,7 @@ #: src/recode.c:536 #, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%sTabla de conversin generada automticamente por GNU %s %s" +msgstr "%sTabla de conversin generada automticamente por Free `%s' %s" #: src/recode.c:538 #, c-format @@ -500,7 +469,7 @@ #: src/recode.c:744 msgid "No table to print" -msgstr "No hay tabla que mostrar" +msgstr "No hay ninguna tabla que mostrar" #: src/request.c:34 msgid "reversible" @@ -580,32 +549,6 @@ "UCS2 Nem Descripcin\n" "\n" -#~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "CHARSET no tiene ningn valor predeterminado, defina DEFAULT_CHARSET en el\n" -#~ "entorno.\n" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "Sucesin ambigua `%s'" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Sucesin desconocida `%s'" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Idioma ambiguo `%s'" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Idioma desconocido `%s'" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "Formato ambiguo `%s'" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Formato desconocido `%s'" - -#~ msgid "Erroneous request `%s'" -#~ msgstr "Peticin errnea `%s'" - # Este es difcil. Se admiten sugerencias. # Especialmente de alguien que conozca bien el programa. # Creo que "stats" en este caso es abreviatura de "statistics" @@ -730,12 +673,10 @@ #~ "FORMAT is a word among decimal, octal, hexadecimal or full (which may be\n" #~ "abbreviated to one of `dohf'), it defaults to just the canonical name.\n" #~ "With -k, possible before charsets are listed for the given after CHARSET,\n" -#~ "both being RFC1345 charsets, with PAIRS of the form " -#~ "`BEF1:AFT1,BEF2:AFT2,...\n" +#~ "both being RFC1345 charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...\n" #~ "and BEFs and AFTs being codes. All codes are given as decimal numbers.\n" #~ msgstr "" -#~ "Los argumentos obligatorios u opcionales para las opciones largas tambin " -#~ "son\n" +#~ "Los argumentos obligatorios u opcionales para las opciones largas tambin son\n" #~ "obligatorios u opcionales para las opciones cortas.\n" #~ "\n" #~ " -C, --copyright muestra el Copyright y la condiciones de copia\n" @@ -749,8 +690,7 @@ #~ "\n" #~ "FORMATO es la palabra decimal, octal, hexadecimal o full (que se pueden\n" #~ "abreviar por una de las letras `dohf'), por omisin el nombre cannico.\n" -#~ "Con -k, se muestran los posibles juegos \"antes\" para el JUEGO \"despus\" " -#~ "dado,\n" +#~ "Con -k, se muestran los posibles juegos \"antes\" para el JUEGO \"despus\" dado,\n" #~ "siendo ambos juegos RFC1345, con PARES de la forma `ANT1:DES1,ANT2:DES2,...\n" #~ "donde los ANTs y los DESs son cdigos. Todos los cdigos se dan en decimal\n" @@ -762,8 +702,7 @@ # "Mis juegos favoritos (y los de Pinard :-) son..." # #~ msgid "" -#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the " -#~ "Texinfo\n" +#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the Texinfo\n" #~ "documentation. My preferred charsets are (each user has preferences):\n" #~ "\n" #~ " ascii-bs ASCII (7-bit), using backspace to apply diacritics\n" @@ -772,10 +711,8 @@ #~ " latin1 ISO Latin-1 8-bit extension of ASCII\n" #~ " texte Easy French convention for transmitting email messages\n" #~ msgstr "" -#~ "La opcin -l sin FORMATO ni JUEGO muestra todos los juegos, vase tambin " -#~ "la\n" -#~ "documentacin de Texinfo. Mis juegos favoritos son (cada uno tendr los " -#~ "suyos):\n" +#~ "La opcin -l sin FORMATO ni JUEGO muestra todos los juegos, vase tambin la\n" +#~ "documentacin de Texinfo. Mis juegos favoritos son (cada uno tendr los suyos):\n" #~ "\n" #~ " ascii-bs ASCII (7-bit), utilizando backspace para acentos y dems\n" #~ " ibmpc IBM-PC (8-bit), con retornos de carro adecuados\n" @@ -805,8 +742,7 @@ # De momento no veo qu de malo tiene "pasada". # Si acaso, que modernamente tenga otros significados ("es una pasada!" :-). # -#~ msgid "" -#~ " -o, --sequence=popen use popen machinery for sequencing passes\n" +#~ msgid " -o, --sequence=popen use popen machinery for sequencing passes\n" #~ msgstr " -o, --sequence=popen utiliza popen para las pasadas\n" #~ msgid " -o, --sequence=popen same as -i (on this system)\n" @@ -867,8 +803,5 @@ #~ msgid "Mere copy for the trivial recoding\n" #~ msgstr "Copia pura y simple para la conversin trivial\n" -#~ msgid "UNACHIEVABLE recoding!\n" -#~ msgstr "Conversin IMPOSIBLE!\n" - #~ msgid "You may not explicitly recode from RFC 1345" #~ msgstr "No se puede convertir explcitamente a partir de RFC 1345" --- a/i18n/fr.po +++ b/i18n/fr.po @@ -1,17 +1,18 @@ # Messages franais pour Free recode. -# Copyright 1996, 1998, 1999 Free Software Foundation, Inc. -# Franois Pinard , 1996. +# Copyright 2004 Free Software Foundation, Inc. +# Michel Robitaille , traduction depuis/since 1996. # msgid "" msgstr "" -"Project-Id-Version: Free recode 3.5\n" +"Project-Id-Version: Free recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-08-17 14:14-04:00\n" -"Last-Translator: Franois Pinard \n" +"PO-Revision-Date: 2004-05-10 08:00-0500\n" +"Last-Translator: Michel Robitaille \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/main.c:142 msgid "No error" @@ -27,7 +28,7 @@ #: src/main.c:151 msgid "Untranslatable input" -msgstr "Entre non traductible" +msgstr "Entre non traduisible" #: src/main.c:154 msgid "Invalid input" @@ -78,14 +79,11 @@ #: src/main.c:233 #, c-format msgid "Try `%s %s' for more information.\n" -msgstr "Pour plus d'information, essayez %s %s.\n" +msgstr "Pour plus d'information, essayez %s %s .\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -" Free recode transforme les jeux de caractres et les surfaces de " -"fichiers\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr " Free recode transforme les jeux de caractres et les surfaces de fichiers\n" #: src/main.c:241 #, c-format @@ -103,20 +101,16 @@ "for the equivalent short option also. Similarly for optional arguments.\n" msgstr "" "\n" -"Un paramtre obligatoire pour une option de forme longue l'est aussi pour " -"une\n" -"option de forme courte. La mme rgle s'applique un paramtre indiqu " -"comme\n" +"Un paramtre obligatoire pour une option de forme longue l'est aussi pour une\n" +"option de forme courte. La mme rgle s'applique un paramtre indiqu comme\n" "tant optionnel.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -126,16 +120,11 @@ msgstr "" "\n" "Listes:\n" -" -l, --list[=FORMAT] afficher un charset donn, ou fournir toute la " -"liste\n" -" -k, --known=PAIRES choisir les charsets selon quelques PAIRES " -"connues\n" -" -h, --header[=[LN/]NOM] tabuler NOM sur stdout, utilisant LN, puis " -"terminer\n" -" -F, --freeze-tables produire un module C contenant toutes les " -"tables\n" -" -T, --find-subsets lister tout charset qui est sous-ensemble d'un " -"autre\n" +" -l, --list[=FORMAT] afficher un charset donn, ou fournir toute la liste\n" +" -k, --known=PAIRES choisir les charsets selon quelques PAIRES connues\n" +" -h, --header[=[LN/]NOM] tabuler NOM sur stdout, utilisant LN, puis terminer\n" +" -F, --freeze-tables produire un module C contenant toutes les tables\n" +" -T, --find-subsets lister tout charset qui est sous-ensemble d'un autre\n" " -C, --copyright afficher les conditions de copie, puis terminer\n" " --help fournir ce message d'aide, puis terminer\n" " --version identifier la programme, puis terminer\n" @@ -153,20 +142,16 @@ msgstr "" "\n" "Modes d'opration:\n" -" -v, --verbose afficher les tapes prvues, suivre la " -"progression\n" -" -q, --quiet, --silent taire les messages sur les recodages " -"irrversibles\n" +" -v, --verbose afficher les tapes prvues, suivre la progression\n" +" -q, --quiet, --silent taire les messages sur les recodages irrversibles\n" " -f, --force effectuer mme les recodages irrversibles\n" -" -t, --touch toucher les fichiers aprs leur remplacement\n" -" -i, --sequence=files fabriquer des fichiers pour ordonnancer les " -"passes\n" +" -t, --touch toucher les fichiers aprs leur remplacement\n" +" -i, --sequence=files fabriquer des fichiers pour ordonnancer les passes\n" " --sequence=memory utiliser des tampons pour ordonnancer les passes\n" #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr "" -" -p, --sequence=pipe utiliser pipe pour ordonnancer les passes\n" +msgstr " -p, --sequence=pipe utiliser pipe pour ordonnancer les passes\n" #: src/main.c:280 msgid " -p, --sequence=pipe same as -i (on this system)\n" @@ -188,8 +173,8 @@ " -s, --strict recoder strictement, perte possible de caractres\n" " -d, --diacritics se restreindre aux diacritiques pour HTML/LaTeX\n" " -S, --source[=LN] ne recoder que les chanes et les commentaires LN\n" -" -c, --colons utiliser : plutt que \\\" pour les trmas\n" -" -g, --graphics convertir au mieux possible les rulers IBMPC\n" +" -c, --colons utiliser : plutt que \\\" pour les trmas\n" +" -g, --graphics convertir au mieux possible les rulers IBMPC\n" " -x, --ignore=CHARSET ignorer CHARSET durant le choix des tapes\n" #: src/main.c:296 @@ -199,60 +184,48 @@ "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" "\n" -"L'option -l sans FORMAT ni CHARSET donne les charsets et surfaces " -"disponibles.\n" -"FORMAT vaut decimal, octal, hexadecimal ou full, ou encore un " -"caractre\n" -"dans dohf.\n" +"L'option -l sans FORMAT ni CHARSET donne les charsets et surfaces disponibles.\n" +"FORMAT vaut decimal , octal , hexadecimal ou full , ou encore un caractre\n" +"dans dohf .\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" -"%s est prsum sii DEFAULT_CHARSET n'est pas dfini dans l'environnement.\n" +" moins que DEFAULT_CHARSET ne soit initialis dans l'environnement,\n" +"le CHARSET par dfaut est locale selon l'encodage, dtermin par LC_ALL, LC_CTYPE, LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" "Avec -k, les charsets antcdents possibles sont lists pour le CHARSET\n" "consquent, tous deux tant des charsets RFC1345, restreints par les PAIRES\n" -"dites selon la syntaxe AVANT1:APRS1,AVANT2:APRS2,...; chaque code AVANT\n" +"dites selon la syntaxe AVANT1:APRS1,AVANT2:APRS2,... ; chaque code AVANT\n" "et APRS est exprim en dcimal.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" -"LN est un langage de programmation, valant `c' (implicite), `perl' ou `po'.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN est un langage de programmation, valant c (implicite), perl ou po .\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" -"DEMANDE est SOUS-DEMANDE[,SOUS-DEMANDE]...; SOUS-DEMANDE est " -"CODAGE[..CODAGE]...\n" -"CODAGE est [CHARSET][/[SURFACE]]...; DEMANDE ressemble souvent " -"AVANT..APRs,\n" +"DEMANDE est SOUS-DEMANDE[,SOUS-DEMANDE]...; SOUS-DEMANDE est CODAGE[..CODAGE]...\n" +"CODAGE est [CHARSET][/[SURFACE]]...; DEMANDE ressemble souvent AVANT..APRs,\n" "AVANT et APRS tant des charsets. Un CHARSET omis sous-entend le charset\n" "habituel; une [/SURFACE]... omise sous-entend les surfaces habituelles pour\n" -"CHARSET; un / sans surface indique l'absence de toute surface. Voir le " -"manuel!\n" +"CHARSET; un / sans surface indique l'absence de toute surface. Voir le manuel!\n" #: src/main.c:323 msgid "" @@ -262,10 +235,9 @@ "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" "\n" -"En l'absence de -i ou -p, choisir -i avec FICHIER, sinon -p.\n" +"En l'absence de -i ou -p , choisir -i avec FICHIER, sinon -p .\n" "Chaque FICHIER est recod sur lui-mme, dtruisant l'original. Si aucun\n" -"FICHIER n'est donn, alors agir comme un filtre et recoder stdin sur " -"stdout.\n" +"FICHIER n'est donn, alors agir comme un filtre et recoder stdin sur stdout.\n" #: src/main.c:329 msgid "" @@ -273,46 +245,42 @@ "Report bugs to .\n" msgstr "" "\n" -"Rapporter tout disfonctionnement mailto:recode-bugs@iro.umontreal.ca;\n" -"et rapporter les problmes de francisation mailto:traduc@traduc.org.\n" +"Rapporter toutes anomalies .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Squence %s est ambigu" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Squence %s est inconnue" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Langage %s est ambigu" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Langage %s est inconnu" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Format %s est ambigu" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Format %s est inconnu" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"crit par Franois Pinard .\n" +msgstr "crit par Franois Pinard .\n" #: src/main.c:624 msgid "" @@ -334,50 +302,50 @@ #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Symbole %s est inconnu" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Charset %s est inconnu ou ambigu" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Argument requis est manquant" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "Syntaxe dsute, veuillez prfrer %s" +msgstr "Syntaxe dsute, veuillez prfrer %s " #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Requte %s est errone" #: src/main.c:903 #, c-format msgid "Recoding %s..." -msgstr "Recodage de %s..." +msgstr "Recodage de %s ..." #: src/main.c:913 msgid " done\n" msgstr " complt\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " non-russi: %s dans %s..%s\n" +msgstr " non-russi: %s dans %s..%s \n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s non-russi: %s dans %s..%s" +msgstr "%s non-russi: %s dans %s..%s " #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s dans %s..%s" +msgstr "%s dans %s..%s " #: src/names.c:335 #, c-format @@ -387,7 +355,7 @@ #: src/names.c:831 #, c-format msgid "Cannot list `%s', no names available for this charset" -msgstr "Incapable de lister %s: les noms n'y sont pas disponibles" +msgstr "Incapable de lister %s : les noms n'y sont pas disponibles" #. code counter #. expected value for code counter @@ -401,17 +369,17 @@ #: src/names.c:1049 #, c-format msgid "Sorry, no names available for `%s'" -msgstr "Dsol, aucun nom disponible pour %s" +msgstr "Dsol, aucun nom disponible pour %s " #: src/outer.c:125 #, c-format msgid "Resurfacer set more than once for `%s'" -msgstr "Plus d'un re-surfaceur pour `%s'" +msgstr "Plus d'un re-surfaceur pour %s " #: src/outer.c:133 #, c-format msgid "Unsurfacer set more than once for `%s'" -msgstr "Plus d'un d-surfaceur pour `%s'" +msgstr "Plus d'un d-surfaceur pour %s " #: src/recode.c:115 src/recode.c:127 msgid "Virtual memory exhausted" @@ -434,7 +402,7 @@ #: src/recode.c:224 src/recode.c:236 #, c-format msgid "Following diagnostics for `%s' to `%s'" -msgstr "Les diagnostics suivants s'appliquent pour %s vers %s" +msgstr "Les diagnostics suivants s'appliquent pour %s vers %s " #: src/recode.c:229 src/recode.c:241 #, c-format @@ -457,12 +425,12 @@ #: src/recode.c:536 #, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%sTable de conversion engendre mcaniquement par Free %s %s" +msgstr "%sTable de conversion engendre mcaniquement par Free %s %s" #: src/recode.c:538 #, c-format msgid "%sfor sequence %s.%s" -msgstr "%spour squence %s.%s" +msgstr "%spour squence %s .%s" #: src/recode.c:744 msgid "No table to print" @@ -531,12 +499,12 @@ #: src/request.c:1013 msgid "Expecting `..' in request" -msgstr "Chane `..' attendue dans la demande" +msgstr "Chane .. attendue dans la demande" #: src/task.c:826 src/task.c:1002 #, c-format msgid "Child process wait status is 0x%0.2x" -msgstr "Le constat wait du processus fils est 0x%0.2x" +msgstr "L'tat du processus fils en attente est 0x%0.2x" #: src/testdump.c:298 msgid "" @@ -547,8 +515,7 @@ "\n" #~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "CHARSET ne peut tre omis, dfinir DEFAULT_CHARSET dans l'environment.\n" +#~ msgstr "CHARSET ne peut tre omis, dfinir DEFAULT_CHARSET dans l'environment.\n" #~ msgid "Ambiguous sequence `%s'" #~ msgstr "La squence %s est ambigu" @@ -611,5 +578,4 @@ #~ msgstr "Recodage irrversible" #~ msgid "BEFORE and AFTER both default to `%s' when needed.\n" -#~ msgstr "" -#~ "AVANT et APRS ont implicitement la valeur canonique %s, lorsqu'absents.\n" +#~ msgstr "AVANT et APRS ont implicitement la valeur canonique %s, lorsqu'absents.\n" --- a/i18n/gl.po +++ b/i18n/gl.po @@ -4,9 +4,9 @@ # msgid "" msgstr "" -"Project-Id-Version: recode 3.5\n" +"Project-Id-Version: recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 2000-05-06 01:44+02:00\n" +"PO-Revision-Date: 2001-06-09 17:28+0200\n" "Last-Translator: Jacobo Tarro Barreiro \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" @@ -81,20 +81,13 @@ msgstr "Escriba `%s %s' para obter mis informacin.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -"O `recode' libre convirte ficheiros entre varios xogos de caracteres e " -"superficies.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "O `recode' libre convirte ficheiros entre varios xogos de caracteres e superficies.\n" #: src/main.c:241 #, c-format -msgid "" -"\n" -"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" -msgstr "" -"\n" -"Uso: %s [OPCIN]... [ [XOGO-DE-CARACTERES] | PETICIN [FICHEIRO]... ]\n" +msgid "\nUsage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "\nUso: %s [OPCIN]... [ [XOGO-DE-CARACTERES] | PETICIN [FICHEIRO]... ]\n" #: src/main.c:244 msgid "" @@ -104,18 +97,15 @@ msgstr "" "\n" "Se unha opcin longa amosa un parmetro como obrigatorio, entn tamn \n" -"obrigatorio para a opcin curta equivalente. Do mesmo xeito para " -"parmetros\n" +"obrigatorio para a opcin curta equivalente. Do mesmo xeito para parmetros\n" "opcionais.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -125,15 +115,13 @@ msgstr "" "\n" "Listados:\n" -" -l, --list[=FORMATO] listar un ou tdolos xogos de caracteres " -"coecidos\n" -" -k, --known=PARES restrinxi-los xogos de acordo coa lista de " -"PARES\n" +" -l, --list[=FORMATO] listar un ou tdolos xogos de caracteres e alias\n" +" coecidos\n" +" -k, --known=PARES restrinxi-los xogos de acordo coa lista de PARES\n" " coecidos\n" " -h, --header[=[LN/]NOME] escribi-la tboa NOME na sada estndar usando\n" " LN, e logo sair\n" -" -F, --freeze-tables escribir un mdulo en C que contn tdalas " -"tboas\n" +" -F, --freeze-tables escribir un mdulo en C que contn tdalas tboas\n" " -T, --find-subsets informar dos xogos que son subconxuntos doutros\n" " -C, --copyright amosa-lo copyright e as condicins de copia\n" " --help amosar esta axuda e sair\n" @@ -160,14 +148,12 @@ " reversibles\n" " -t, --touch toca-los ficheiros recodificados despois de\n" " cambialos\n" -" -i, --sequence=files usar ficheiros intermedios para pasos " -"secuenciais\n" +" -i, --sequence=files usar ficheiros intermedios para pasos secuenciais\n" " --sequence=memory usa-la memoria para pasos secuenciais\n" #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr "" -" -p, --sequence=pipe usar canalizacins para pasos secuenciais\n" +msgstr " -p, --sequence=pipe usar canalizacins para pasos secuenciais\n" #: src/main.c:280 msgid " -p, --sequence=pipe same as -i (on this system)\n" @@ -188,13 +174,10 @@ "Axustes finos:\n" " -s, --strict usar mapeados estrictos, incluso perder caracteres\n" " -d, --diacritics converter s diacrticos ou similares para HTML/LaTeX\n" -" -S, --source[=LN] limita-la recodificacin a cadeas e comentarios para " -"LN\n" -" -c, --colon usar dous puntos no canto de comias dobres para " -"direse\n" +" -S, --source[=LN] limita-la recodificacin a cadeas e comentarios para LN\n" +" -c, --colon usar dous puntos no canto de comias dobres para direse\n" " -g, --graphics aproxima-las lias de IBMPC con grficos ASCII\n" -" -x, --ignore=XOGO ignora-lo XOGO ao escoller unha rota de " -"recodificacin\n" +" -x, --ignore=XOGO ignora-lo XOGO ao escoller unha rota de recodificacin\n" #: src/main.c:296 msgid "" @@ -208,20 +191,15 @@ "letra entre `dofh'.\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" -msgstr "" -"A menos que se estableza a variable DEFAULT_CHARSET, XOGO `%s' se non se " -"indica o contrario.\n" +msgstr "A menos que se estableza a variable de ambiente DEFAULT_CHARSET, XOGO o do `locale'.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" "Con -k, os posibles xogos iniciais lstanse para o XOGO final indicado,\n" @@ -229,31 +207,25 @@ "e os cdigos INI e FIN dndose coma nmeros decimais.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" msgstr "LN unha linguaxe, pode ser `c', `perl' ou `po'; `c' por defecto.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" "PETICIN SUBPETICIN[,SUBPETICIN]...; SUBPETICIN \n" "CODIFICACIN[..CODIFICACIN]...; CODIFICACIN [XOGO][/[SUPERFICIE]]...;\n" "PETICIN adoita parecer INICIAL..FINAL, sendo INICIAL e FINAL uns xogos de\n" -"caracteres. Se non se indica un XOGO tmase o xogo normal; se non se " -"indica\n" +"caracteres. Se non se indica un XOGO tmase o xogo normal; se non se indica\n" "unha [/SUPERFICIE]... tmanse as superficies implicadas en XOGO; cunha /\n" -"cun nome de superficie baleiro non se toma ningunha superficie. Lea o " -"manual.\n" +"cun nome de superficie baleiro non se toma ningunha superficie. Lea o manual.\n" #: src/main.c:323 msgid "" @@ -263,98 +235,84 @@ "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" "\n" -"Se non se indica -i nin -p, suponse -p se non se indica un FICHEIRO, senn " -"-i.\n" +"Se non se indica -i nin -p, suponse -p se non se indica un FICHEIRO, senn -i.\n" "Cada FICHEIRO recodifcase sobre si mesmo, destrundose o orixinal. Se non\n" "se indica un FICHEIRO, traballa coma un filtro e recodifica stdin a stdout.\n" #: src/main.c:329 -msgid "" -"\n" -"Report bugs to .\n" -msgstr "" -"\n" -"Informe dos erros en .\n" +msgid "\nReport bugs to .\n" +msgstr "\nInforme dos erros en .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "A secuencia `%s' ambigua" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "A secuencia `%s' descoecida" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "A linguaxe `%s' ambigua" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "A linguaxe `%s' descoecida" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "O formato `%s' ambiguo" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "O formato `%s' descoecido" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Escrito por Franois Pinard .\n" +msgstr "Escrito por Franois Pinard .\n" #: src/main.c:624 -msgid "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" -msgstr "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgid "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" -"Isto software libre; vexa o cdigo fonte polas condicins de copia. NON " -"hai\n" -"garanta; nin sequera de COMERCIABILIDADE ou APTITUDE PARA UN FIN " -"DETERMINADO.\n" +"Isto software libre; vexa o cdigo fonte polas condicins de copia. NON hai\n" +"garanta; nin sequera de COMERCIABILIDADE ou APTITUDE PARA UN FIN DETERMINADO.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "O smbolo `%s' descoecido" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Xogo de caracteres `%s' descoecido ou ambiguo" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Falla o argumento requirido" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" msgstr "Sintaxe a estinguir, prefrese `%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "A peticin `%s' errnea" #: src/main.c:903 #, c-format @@ -366,19 +324,19 @@ msgstr " feito\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " fallou: %s en %s..%s\n" +msgstr " fallou: %s no paso `%s..%s'\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s fallou: %s en %s..%s" +msgstr "%s fallou: %s no paso `%s..%s'" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s en %s..%s" +msgstr "%s no paso `%s..%s'" #: src/names.c:335 #, c-format @@ -419,12 +377,12 @@ msgstr "Memoria virtual esgotada" #: src/recode.c:155 -#, c-format, ycp-format +#, c-format msgid "Codes %3d and %3d both recode to %3d" msgstr "mbolos dous cdigos %3d e %3d recodifcanse a %3d" #: src/recode.c:169 -#, c-format, ycp-format +#, c-format msgid "No character recodes to %3d" msgstr "Non hai caracteres que se recodifiquen a %3d" @@ -540,17 +498,11 @@ msgstr "O estado de espera do proceso fillo 0x%0.2x" #: src/testdump.c:298 -msgid "" -"UCS2 Mne Description\n" -"\n" -msgstr "" -"UCS2 Mne Descripcin\n" -"\n" +msgid "UCS2 Mne Description\n\n" +msgstr "UCS2 Mne Descripcin\n\n" #~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "XOGO non ten valor por defecto, defina a variable de ambiente " -#~ "DEFAULT_CHARSET.\n" +#~ msgstr "XOGO non ten valor por defecto, defina a variable de ambiente DEFAULT_CHARSET.\n" #~ msgid "Ambiguous sequence `%s'" #~ msgstr "Secuencia `%s' ambigua" --- /dev/null +++ b/i18n/he.po @@ -0,0 +1,500 @@ +# Hebrew messages for Free recode -*- coding: hebrew-iso-8bit -*- +# Copyright (C) 2001 Free Software Foundation, Inc. +# Eli Zaretskii , 2001. +# +msgid "" +msgstr "" +"Project-Id-Version: Free recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2001-05-27 17:06+0300\n" +"Last-Translator: Eli Zaretskii \n" +"Language-Team: Hebrew \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-8\n" +"Content-Transfer-Encoding: 8-bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr " " + +#: src/main.c:145 +msgid "Non canonical input" +msgstr " " + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "- " + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr " " + +#: src/main.c:154 +msgid "Invalid input" +msgstr " " + +#: src/main.c:157 +msgid "System detected problem" +msgstr " " + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr " " + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr " " + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +" / ; \n" +" \" ,GNU General Public License \n" +" , 2 ;Free Software Foundation\n" +" . ( )\n" +"\n" +" , \n" +" - ; \n" +" , . \n" +" .GNU General Public License- \n" +"\n" +";GNU General Public License \n" +" Free Software Foundation, Inc.- , \n" +" .59 Temple Place - Suite 330, Boston, MA 02111-1307, USA\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr ".`%s %s' , \n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr " . Free `recode' \n" + +#: src/main.c:241 +#, c-format +msgid "\nUsage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "\n%s []... [ [ | []... ] : \n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +" , \n" +" . . \n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +" :\n" +" -l, --list[=]\n" +" -k, --known=\n" +" LN NAME -h, --header[=[LN/]NAME]\n" +" C -F, --freeze-tables\n" +" - -T, --find-subsets\n" +" -C, --copyright\n" +" --help\n" +" --version\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +" : \n" +" -v, --verbose\n" +" - -q, --quiet, --silent\n" +" -f, --force\n" +" -t, --touch\n" +" -i, --sequence=files\n" +" --sequence=memory\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " (pipe) -p, --sequence=pipe\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " ( ) -i -p, --sequence=pipe\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +" \n" +" , -s, --strict\n" +" LaTeX- HTML -d, --diacritics\n" +" LN -S, --source[=LN]\n" +" -c, --colons\n" +" ASCII \" IBM -g, --graphics\n" +" CHARSET -x, --ignore=CHARSET\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +". -l \n" +" ) `full' `hexadecimal' ,`octal' ,`decimal' \n" +" .(`dohf' \n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +" , DEFAULT_CHARSET \n" +".LANG, LC_CTYPE, LC_ALL \" \n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +" ,-k \n" +". AFT- BEF- ,`BEF1:AFT1,BEF2:AFT2,...'- \n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr " .`c' ;`po' ,`perl' ,`c' : LN\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +": SUBREQUEST SUBREQUEST[,SUBREQUEST]...: (REQUEST) \n" +" .[CHARSET][/[SURFACE]]... : () ENCODING .ENCODING[..ENCODING]...\n" +" . AFTER- BEFORE ;BEFORE..AFTER- \"\n" +" [/SURFACE] ; CHARSET \n" +" / . \n" +" . , .\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +".-i ,FILE -p ,-p -i \n" +" . , FILE \n" +" . : ,FILE\n" + +#: src/main.c:329 +msgid "\nReport bugs to .\n" +msgstr "\n . (bugs) \n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "--sequence - `%s'" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "--sequence `%s'" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr " - `%s'" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr " `%s'" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr " - `%s'" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr " `%s'" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr ".Franc,ois Pinard \" \n" + +#: src/main.c:624 +msgid "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "\nFree Software Foundation- (C) 1990,92,93,94,96,97,99\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +" ; . , ; \n" +" . - \n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr " `%s'" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr " - `%s'" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr " " + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "`%s' , " + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr " `%s' " + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "`%s' " + +# FIXME: this is lame! The method of printing "Frobbing...done" +# does not lend itself to good translations into languages where +# such sentences have a different structure, and should be rethought. +#: src/main.c:913 +msgid " done\n" +msgstr " \n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr "%s : `%s..%s' \n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s %s `%s..%s' " + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s :`%s..%s' " + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr " (alias) %s %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr " ,`%s' " + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr " `%s' ," + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "`%s' " + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "`%s' " + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr " " + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "%3d- %3d %3d " + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "%3d- " + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr " " + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "`%s'- `%s'- " + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "%d <%3d, %3d> <%3d, %3d> " + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr " " + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr " ,() " + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr " " + +# FIXME: this goes into a comment; is it really worth translating? +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sFree `%s' %s \" " + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%s .%s %s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr " " + +#: src/request.c:34 +msgid "reversible" +msgstr "" + +# FIXME: these assume left-to-right direction. What else can I do? +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s -> %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "byte" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "variable" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr " -*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "* *" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "! " + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr " " + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "( ) " + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "%s :\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "%s -: \n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr " `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "`%s'- `%s'- " + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "`..' " + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "0x%0.2x - " + +#: src/testdump.c:298 +msgid "UCS2 Mne Description\n\n" +msgstr "UCS2 \n\n" --- /dev/null +++ b/i18n/id.po @@ -0,0 +1,511 @@ +# recode 3.6 (Indonesian) +# Copyright (C) 2001 Free Software Foundation, Inc. +# Tedi Heriyanto , 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2002-10-08 14:29GMT+0700\n" +"Last-Translator: Tedi Heriyanto \n" +"Language-Team: Indonesian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 0.9.5\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Tidak ada kesalahan" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Input non kanonikal" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Output ambigu" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Input tak dapat diterjemahkan" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Input tidak valid" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Sistem mendeteksi masalah" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Kesalahan penggunaan library recoding" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Bug recoding internal" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Coba `%s %s' untuk informasi lengkap.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Free `recode' mengkonversi file antar berbagai set karakter dan permukaan.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Jika sebuah option long menunjukkan argumen sebagai mandatori, maka ia mandatori\n" +"juga option short yang ekivalen. Demikian pula untuk argumen optional.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] tampilkan satu atau semua charset dan alias yang dikenal\n" +" -k, --known=PAIRS batasi charset sesuai daftar PAIRS yang dikenal\n" +" -h, --header[=[LN/]NAME] tulis tabel NAME ke stdout menggunakan LN, kemudian keluar\n" +" -F, --freeze-tables tulis sebuah modul C yang menyimpan semua tabel\n" +" -T, --find-subsets laporkan semua charset yang menjadi subset yang lain\n" +" -C, --copyright tampilkan kondisi Copyright dan copying\n" +" --help tampilkan bantuan ini dan keluar\n" +" --version tampilkan informasi versi dan keluar\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Mode operasi:\n" +" -v, --verbose jelaskan urutan langkah dan laporkan kemajuan\n" +" -q, --quiet, --silent tiadakan pesan tentang recoding yang tidak dapat dikembalikan\n" +" -f, --force paksa recoding bahkan bila tidak dapat dikembalikan\n" +" -t, --touch touch file ter-recoded setelah penggantian\n" +" -i, --sequence=files gunakan file perantara untuk urutan pelewatan\n" +" --sequence=memory gunakan buffer memori untuk urutan pelewatan\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe gunakan mesin pipa untuk urutan pelewatan\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe sama seperti -i (pada sistem ini)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Fine tuning:\n" +" -s, --strict gunakan mapping yang ketat, bahkan hilangkan karakter\n" +" -d, --diacritics konversi hanya diacritics atau yang serupa untuk HTML/LaTeX\n" +" -S, --source[=LN] batasi recoding untuk string dan komentar sama seperti LN\n" +" -c, --colons gunakan titik koma alih-alih kuotasi ganda untuk diaeresis\n" +" -g, --graphics dekati penggaris IBMPC dengan grafik ASCII\n" +" -x, --ignore=CHARSET abatikan CHARSET saat memilih jalur recoding\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT adalah `decimal', `octal', `hexadecimal' atau `full' (atau satu `dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Kecuali DEFAULT_CHARSET diset dalam environment, CHARSET bakunya adalah lokal\n" +"tergantung enkoding, yang ditentukan oleh LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Dengan -k, yang mungkin sebelum charset ditampilkan setelah CHARSET,\n" +"keduanya charset tabular, dengan PAIRS dalam bentuk `BEF1:AFT1,BEF2:AFT2,...'\n" +"dan BEF dan AFT adalah kode yang diberikan dalam bilangan desimal.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN adalah bahasa, mungkin berupa `c', `perl' atau `po'; `c' adalah bakunya.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Jika tidak diberikan -i dan -p, asumsikan -p jika tidak ada FILE, sebaliknya -i.\n" +"Setiap FILE direcode dengan dirinya, menghancurkan aslinya. Jika tidak dispesifikasikan\n" +"FILE, maka berfungsi sebagai filter dan recode stdin ke stdout.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Report bugs to .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Urutan `%s' ambigu" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Urutan `%s' tidak dikenal" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Bahasa `%s' ambigu" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Bahasa `%s' tidak dikenal" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Format `%s' ambigu" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Format `%s' tidak dikenal" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Ditulis oleh Franc,ois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Simbol `%s' tidak dikenal" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Charset `%s' tidak dikenal atau ambigu" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Argumen yang dibutuhkan hilang" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Sintaks tidak digunakan lagi, silakan pilih `%s'" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Permintaan `%s' salah" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Merecoding %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " selesai\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " gagal: %s di langkah `%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s gagal: %s di langkah `%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s di langkah `%s..%s'" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Charset %s sudah ada dan bukan %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Tidak dapat medaftarkan `%s', tidak ada nama yang tersedia untuk charset ini" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Maaf, tidak ada tersedia untuk `%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Resurfacer set lebih dari satu untuk `%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Unsurfacer set lebih dari satu untuk `%s'" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Memori virtual habis" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Kode %3d dan %3d kedua direcode ke %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Tidak ada karakter recode ke %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Tidak dapat membalik saat diberikan tabel satu-ke-satu" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Berikut ini diagnostik untuk `%s' ke `%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Pasangan no %d: <%3d,%3d> konflik dengan <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Tidak dapat menyelesaikan tabel dari sejumlah pasangan dikenal" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Recoding identitas, tidak perlu tabel" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Recoding terlalu kompleks untuk tabel" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sTabel konversi dihasilkan secara mekanis dengan Free `%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%suntuk urutan %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Tidak ada tabel untuk dicetak" + +#: src/request.c:34 +msgid "reversible" +msgstr "dapat dikembalikan" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s ke %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "byte" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "variabel" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Tidak dapat dicapai*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*mere copy*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Memori virtual habis!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Gagal langkah inisialisasi" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Gagal langkah inisialisasi (option tidak diproses)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Permintaan: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Diperkecil jadi: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Nama surface tidak dikenal `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Tidak ada cara merecode dari `%s' ke `%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Mengharapkan `..' dalam permintaan" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Status tunggu proses anak adalah 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Description\n" +"\n" --- a/i18n/it.po +++ b/i18n/it.po @@ -1,6 +1,6 @@ -# MESSAGGI IN ITALIANO PER GNU RECODE. -# Copyright (C) 1999 Free Software Foundation, Inc. -# Lorenzo Cappelletti , 1999. +# PO FILE FOR GNU'S RECODE. +# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. +# Lorenzo Cappelletti , 1999, 2000, 2001. # # table -> tabella # character set -> insieme di caratteri @@ -10,11 +10,11 @@ # msgid "" msgstr "" -"Project-Id-Version: GNU recode 3.5\n" +"Project-Id-Version: GNU recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-11-19 23:30+01:00\n" -"Last-Translator: Lorenzo Cappelletti \n" -"Language-Team: Italian \n" +"PO-Revision-Date: 2001-07-01 09:41+02:00\n" +"Last-Translator: Lorenzo Cappelletti \n" +"Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" @@ -86,22 +86,16 @@ msgid "Try `%s %s' for more information.\n" msgstr "Usare `%s %s' per ulteriori informazioni.\n" -# Libero `recode' non mi piace -# Cosa sono le surfaces in questo contesto? +# I dislike "Libero `recode'" as tranlation +# What does surface mean in this context? #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -"`recode' gratuito converte file fra vari insiemi di caratteri e surface.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "`recode' gratuito converte file fra vari insiemi di caratteri e surface.\n" #: src/main.c:241 #, c-format -msgid "" -"\n" -"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" -msgstr "" -"\n" -"Uso: %s [OPZIONI]... [ [CHARSET] | RICHIESTA [FILE]... ]\n" +msgid "\nUsage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "\nUso: %s [OPZIONI]... [ [CHARSET] | RICHIESTA [FILE]... ]\n" #: src/main.c:244 msgid "" @@ -115,13 +109,11 @@ "opzionali.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -131,16 +123,14 @@ msgstr "" "\n" "Elenchi:\n" -" -l, --list[=FORMATO] lista uno o tutti i charset conosciuti\n" -" -k, --known=COPPIE restringe i charset secondo le COPPIE " -"conosciute\n" +" -l, --list[=FORMATO] lista uno o tutti i charset e alias conosciuti\n" +" -k, --known=COPPIE restringe i charset secondo le COPPIE conosciute\n" " -h, --header[=[LN/]NOME] scrive la tabella NOME sullo stdout usando LN,\n" -" poi esce\n" -" -F, --freeze-tables riporta un modulo C contenente tutte le " -"tabelle\n" +" quindi esce\n" +" -F, --freeze-tables riporta un modulo C contenente tutte le tabelle\n" " -T, --find-subsets riporta tutti i charset sottoinsiemi di altri\n" -" -C, --copyright mostra le condizioni del Copyright e " -"riproduzione\n" +" charset\n" +" -C, --copyright mostra le condizioni di Copyright e riproduzione\n" " --help mostra questo aiuto ed esce\n" " --version informazioni sulla versione ed uscita\n" @@ -157,8 +147,7 @@ msgstr "" "\n" "Modi operativi:\n" -" -v, --verbose spiega le sequenze dei passi e riporta i " -"progressi\n" +" -v, --verbose spiega le sequenze dei passi e riporta i progressi\n" " -q, --quiet, --silent inibisce i messaggi di ricodifiche inreversibili\n" " -f, --force forza le ricodifiche anche quando non reversibili\n" " -t, --touch touch dei file ricodificati dopo la sostituzione\n" @@ -167,8 +156,7 @@ #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr "" -" -p, --sequence=pipe usa il sistema dei pipe per i passi sequenziali\n" +msgstr " -p, --sequence=pipe usa il sistema dei pipe per i passi sequenziali\n" #: src/main.c:280 msgid " -p, --sequence=pipe same as -i (on this system)\n" @@ -187,17 +175,12 @@ msgstr "" "\n" "Regolazioni fini:\n" -" -s, --strict usa mappature strettamente conformi, anche con " -"caratteri slegati\n" -" -d, --diacritics converte solo segni diacritici o simili per " -"HTML/LaTeX\n" -" -S, --source[=LN] limita la ricodifica a stringhe e commenti come per " -"LN\n" -" -c, --colons usa i due punti al posto delle virgolette per le " -"dieresi\n" +" -s, --strict usa mappature strettamente conformi, anche con caratteri slegati\n" +" -d, --diacritics converte solo segni diacritici o simili per HTML/LaTeX\n" +" -S, --source[=LN] limita la ricodifica a stringhe e commenti come per LN\n" +" -c, --colons usa i due punti al posto delle virgolette per le dieresi\n" " -g, --graphics approssima le regole IBMPC con grafica ASCII\n" -" -x, --ignore=CHARSET ignora CHARSET quando sceglie un percorso di " -"ricodifica\n" +" -x, --ignore=CHARSET ignora CHARSET quando sceglie un percorso di ricodifica\n" #: src/main.c:296 msgid "" @@ -211,46 +194,33 @@ "`esadecimale'(h) o `pieno'(f) (oppure uno tra `dohf').\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" -msgstr "" -"Se DEFAULT_CHARSET non specificato nell'ambiente, il CHARSET predefinito\n" -" `%s`.\n" +msgstr "A meno che DEFAULT_CHARSET non sia specificato nell'ambiente, il CHARSET viene predefinito secondo la codifica locale, determinata da LC_ALL, LC_TYPE, LANG.\n" -# Non riesco assolutamente a capire la costruzione logica di questa frase +# I am not able to understand the logical structure of this sentence. #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" -"Con -k, possibile prima, charset vengono listati per quelli dati dopo " -"CHARSET,\n" -"entrambi essendo charset tabulari, con COPPIE nella foram " -"`BEF1:AFT1,BEF2:AFT2,...',\n" +"Con -k, possibile prima, charset vengono listati per quelli dati dopo CHARSET,\n" +"entrambi essendo charset tabulari, con COPPIE nella foram `BEF1:AFT1,BEF2:AFT2,...',\n" "dove BEF e AFT sono codici forniti come numeri decimali.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" -"LN qualche lingua, pu essere `c', `perl' o `po'; quella predefinita " -"`c'.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN qualche lingua, pu essere `c', `perl' o `po'; quella predefinita `c'.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" @@ -269,66 +239,53 @@ "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" "\n" -"Se non dato -i n -p, si presume -p se FILE non presente, altrimenti " -"-i.\n" -"Ogni FILE ricodificato su se stesso, ditruggendo l'originale. Se non " -"viene\n" +"Se non dato -i n -p, si presume -p se FILE non presente, altrimenti -i.\n" +"Ogni FILE ricodificato su se stesso, ditruggendo l'originale. Se non viene\n" "specificato nessun FILE, allora si comporta come un filtro ricodificando lo\n" "stdin sullo stdout.\n" #: src/main.c:329 -msgid "" -"\n" -"Report bugs to .\n" -msgstr "" -"\n" -"Segnalare i bug a .\n" +msgid "\nReport bugs to .\n" +msgstr "\nSegnalare i bug a .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "La sequenza `%s' ambigua" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "La sequenza `%s' sconosciuta" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Il linguaggio `%s' ambiguo" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Il linguaggio `%s' sconosciuto" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Il formato `%s' ambiguo" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Il formato `%s' sconosciuto" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Scritto da Franc,ois Pinard .\n" +msgstr "Scritto da Franc,ois Pinard .\n" #: src/main.c:624 -msgid "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" -msgstr "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgid "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" @@ -342,26 +299,26 @@ #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Il simbolo `%s' sconosciuto" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Il charset `%s' sconosciuto o ambiguo" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Manca un argomento indispensabile" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "Sintassi sconsigliata, si preferisca `%s'" +msgstr "La sintassi sconsigliata, si preferisca `%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "La richiesta `%s' errata" #: src/main.c:903 #, c-format @@ -373,19 +330,19 @@ msgstr " fatto\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " fallito: %s in %s..%s\n" +msgstr " fallito: %s al passo `%s..%s'\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s fallito: %s in %s..%s" +msgstr "%s fallito: %s al passo `%s..%s'" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s in %s..%s" +msgstr "%s al passo `%s..%s'" #: src/names.c:335 #, c-format @@ -426,12 +383,12 @@ msgstr "Memoria virtuale esaurita" #: src/recode.c:155 -#, c-format, ycp-format +#, c-format msgid "Codes %3d and %3d both recode to %3d" msgstr "Entrambi i codici %3d e %3d si ricodificano in %3d" #: src/recode.c:169 -#, c-format, ycp-format +#, c-format msgid "No character recodes to %3d" msgstr "Nessun carattere si ricodifica in %3d" @@ -453,7 +410,6 @@ msgid "Cannot complete table from set of known pairs" msgstr "Impossibile completare la tabella dall'insieme delle coppie conosciute" -# Una forma migliore per identity recoding? #: src/recode.c:497 msgid "Identity recoding, not worth a table" msgstr "Sto ricodificando nell'identit, tabella non significativa" @@ -490,7 +446,7 @@ msgid "byte" msgstr "byte" -# Verificare il significato della sigla +# Chech out the meaning of the acronym #: src/request.c:38 src/request.c:40 msgid "ucs2" msgstr "ucs2" @@ -549,14 +505,11 @@ msgstr "Lo stato di attesa del processo figlio 0x%0.2x" #: src/testdump.c:298 -msgid "" -"UCS2 Mne Description\n" -"\n" +msgid "UCS2 Mne Description\n\n" msgstr "UCS2 Mne Descrizione\n" #~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "Nessun CHARSET predefinito, definire DEFAULT_CHARSET nell'ambiente.\n" +#~ msgstr "Nessun CHARSET predefinito, definire DEFAULT_CHARSET nell'ambiente.\n" #~ msgid "Ambiguous sequence `%s'" #~ msgstr "Sequenza ambigua `%s'" --- /dev/null +++ b/i18n/pt_BR.po @@ -0,0 +1,522 @@ +# recode: translation to Brazilian Portuguese (pt_BR) +# Copyright (C) 2002 Free Software Foundation, Inc. +# Alexandre Folle de Menezes , 2002. +# based on the translation to Portuguese (pt) by +# Vitor Duarte , maio de 1996. +# also based on the translation to Galician (gl) by +# Jacobo Tarro Barreiro , 2000. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2002-12-14 02:00-0300\n" +"Last-Translator: Alexandre Folle de Menezes \n" +"Language-Team: Brazilian Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8-bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Sem erro" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Entrada no-cannica" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Sada ambgua" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Entrada intraduzvel" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Entrada invlida" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "O sistema detectou um problema" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Uso incorreto da biblioteca de recodificao" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Erro interno de recodificao" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Este programa software livre; a sua redistribuio e/ou modificao\n" +"nos termos da Licena Geral Pblica GNU como publicada pela\n" +"Free Software Foundation, permitida; de acordo com a verso 2 ou\n" +"(opcionalmente) qualquer outra verso posterior.\n" +"\n" +"Este programa distribudo na esperana de que possa ser til, mas\n" +"SEM QUALQUER GARANTIA; sem mesmo a garantia implcita de COMERCIABILIDADE ou\n" +"ADEQUAO QUALQUER FINALIDADE PARTICULAR. Veja a Licena Geral Pblica GNU\n" +"para mais detalhes.\n" +"\n" +"Deve ter sido recebida uma cpia da Licena Geral Pblica GNU\n" +"junto com este programa; seno, escreva para a Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Tente `%s %s' para obter mais informaes.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "O `recode' converte arquivos entre vrios conjuntos de caracteres e superfcies.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Uso: %s [OPO]... [ [CHARSET] | REQUISIO [ARQUIVO]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Os argumentos obrigatrios para as opes longas so tambm obrigatrios\n" +"para as opes curtas. O mesmo vale para argumentos opcionais\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Listagens:\n" +" -l, --list[=FORMATO] lista um ou todos os conjuntos de caracteres e\n" +" apelidos conhecidos\n" +" -k, --known=PARES restringe os conjuntos de caracteres com a lista\n" +" de PARES conhecidos\n" +" -h, --header[=[LN/]NOME] escreve a tabela NOME na sada padro usando LN,\n" +" depois sai\n" +" -F, --freeze-tables escreve um mdulo C contendo todas as tabelas\n" +" -T, --find-subsets reporta todos os conjuntos de carcteres que so\n" +" subconjuntos de outros\n" +" -C, --copyright exibe Copyright e condies de cpia\n" +" --help exibe esta ajuda e sai\n" +" --version mostra informaes de verso e sai\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Modos de operao:\n" +" -v, --verbose Explica a sequncia de passos e relata o progresso\n" +" -q, --quiet, --silent inibe mensagens sobre recodificaes irreversveis\n" +" -f, --force fora recodificaes mesmo quando irreversveis\n" +" -t, --touch atualiza horrio dos arquivos processados\n" +" -i, --sequence=files usa arquivos intermedirios na seqncia de passos\n" +" --sequence=memory usa buffers na memria na seqncia de passos\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe usa redirecionamentos para seqenciar os passos\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe o mesmo que -i (neste sistema)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Ajuste fino:\n" +" -s, --strict usa mapeamentos estritos, mesmo perdendo caracteres\n" +" -d, --diacritics converte apenas os diacrticos ou semelhantes\n" +" para HTML/LaTeX\n" +" -S, --source[=LN] limita a recodificao strings e comentrios, como\n" +" para o LN\n" +" -c, --colons usa dois pontos em vez de aspas para o trema\n" +" -g, --graphics aproxima os grficos do IBMPC com grficos ASCII\n" +" -x, --ignore=CHARSET ignora o CHARSET na escolha da rota de recodificao\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"A opo -l sem FORMATO ou CHARSET lista conjuntos de carcteres disponveis.\n" +"FORMATO `decimal', `octal', `hexadecimal' ou `full' (ou uma letra de `dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"A menos que DEFAULT_CHARSET esteja setado no ambiente, o CHARSET padro o\n" +"local, determinado por LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Com -k, so listados os conjuntos de caracteres de entrada possveis para o\n" +"CHARSET charset fornecido, com PARES no formato `INI1:FIN1,INI2:BEF2,...'\n" +"sendo INIs e FINs os respectivos cdigos em notao decimal.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN alguma linguagem, pode ser `c', `perl' ou `po'; `c' o padro.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"REQUEST SUBREQUEST[,SUBREQUEST]...; SUBREQUEST ENCODING[..ENCODING]...\n" +"ENCODING [CHARSET][/[SURFACE]]...; REQUEST geralmente BEFORE..AFTER,\n" +"sendo BEFORE e AFTER conjuntos de caracters. Se CHARSET for omitido, \n" +"assumido o conjunto de caracteres usual; se [/SURFACE]... for omitida, so\n" +"assumidas as superfcies implicadas para o CHARSET; uma / com um nome vazio de\n" +"superfcie significa nenhuma superfcie. Veja a documentao.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Na ausncia de -i e -p, assumir -p se no houver ARQUIVO, ou ento -i.\n" +"Cada ARQUIVO recodificado para ele nesmo, destruindo o original. Se no for\n" +"indicado ARQUIVO, atua como um filtro convertendo do stdin para stdout.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Informe os erros para .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "A seqencia `%s' ambgua" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "A seqencia `%s' desconhecida" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "A linguagem `%s' ambgua" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "A linguagem `%s' desconhecida" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "O formato `%s' ambguo" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "O formato `%s' desconhecido" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Escrito por Franois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Este programa software livre; veja o cdigo fonte para condies de cpia.\n" +"NO H GARANTIA; nem mesmo de COMERCIABILIDADE ou ADEQUAO A QUALQUER\n" +"FIM PARTICULAR.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "O smbolo `%s' desconhecido" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "O conjunto de caracteres `%s' desconhecido ou ambguo" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Falta argumento obrigatrio" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Sintaxe obsoleta, por favor use `%s'" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Requisio `%s' est errada" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Recodificando %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " feito\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " falhou: %s no passo `%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s falhou: %s no passo `%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s no passo %s..%s" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "O conjunto de caracteres %s j existe e no %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Impossvel listar `%s', no existem nomes disponveis para este charset" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Desculpe, no existem nomes disponveis para `%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Resurfacer setado mais de uma vez para `%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Unsurfacer setado mais de uma vez para `%s'" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Memria virtual esgotada" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Ambos os cdigos %3d e %3d so recodificados para %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Nenhum caracter recodificado para %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Impossvel inverter a tabela um-para-um fornecida" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Os seguintes diagnsticos aplica-se de `%s' para `%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Par n %d: <%3d, %3d> em conflito com <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Impossvel completar a tabela a partir do conjunto de pares conhecidos" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "A recodificao identidade no precisa de uma tabela" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Recodificao muito complexa para uma mera tabela" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sTabela de converso gerada automaticamente por Free `%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%spara a sequncia %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Nenhuma tabela para imprimir" + +#: src/request.c:34 +msgid "reversible" +msgstr "reversvel" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s para %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "byte" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "varivel" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Impossvel*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*simples cpia*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Memria virtual esgotada!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "A inicializao dos passos falhou" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "A inicializao dos passos falhou (opes no foram processadas)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Requisio: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Encolhido para: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Nome de superfcie `%s' no reconhecido" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Impossvel recodificar de `%s' para `%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Esperado `..' na requisio" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "O estado de espera do processo filho 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Descrio\n" +"\n" --- /dev/null +++ b/i18n/ro.po @@ -0,0 +1,517 @@ +# Mesajele n limba romn pentru pachetul recode. +# Copyright (C) 2003 Free Software Foundation, Inc. +# Eugen Hoanca , 2003. +# +msgid "" +msgstr "" +"Project-Id-Version: recode-3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2003-05-04 08:45+0300\n" +"Last-Translator: Eugen Hoanca \n" +"Language-Team: Romanian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Nici o eroare" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Intrare(input) non canonic" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Output ambiguu" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Intrare(input) intraductibil" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Input invalid" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Sistemul a detectat o problem" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Folosire necorespunztoare a bibliotecii de recoding" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Bug intern de recoding" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Acest program este free software; putei s-l redistribuii i/sau\n" +"modificai sub termenii Licenei Publice Generale GNU publicat de\n" +"Free Software Foundation; ori versiunea 2, sau (opiunea dumneavoastr)\n" +"orice versiune ulterioar.\n" +"\n" +"Acest program este distribuit n sperana c va fi de folos,\n" +"dar FR NICI O GARANIE; chiar fr presupusa garanie a\n" +"VANDABILITII sau MODIFICRII PENTRU UN SCOP PRIVAT. Citii\n" +"Licena Public General GNU pentru mai multe detalii.\n" +"\n" +"Ar fi trebuit s fi primit o copie a Licenei Publice Generale GNU\n" +"mpreun cu acest program; dac nu, scriei la Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "ncercai `%s %s' pentru mai multe informaii.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "`recode' este free i convertete fiiere ntre diferite seturi de caractere i nfiri(surfaces).\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Folosire: %s [OPIUNE]... [ [SET_CARACTERE] | CERERE [FIIER]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Dac o opiune lung afieaz un parametru obligatoriu, atunci este\n" +"obligatoriu i pentru opiunea scurt echivalent. Similar i n cazul\n" +"parametrilor opionali.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Listri:\n" +" -l, --list[=FORMAT] listeaz unul sau toate seturile de caractere i aliasurile cunoscute\n" +" -k, --known=PERECHI restricioneaza seturile de caractere potrivit listei de PERECHIcunoscute\n" +" -h, --header[=[LN/]NUME] scrie tabelul NUME la stdout folosind LN, apoi termin\n" +" -F, --freeze-tables scrie un modul C ce pstreaz toate tabelele\n" +" -T, --find-subsets raporteaz toate seturile de caractere care sunt subseturi ale altora\n" +" -C, --copyright afieaz Copyright i condiii de copiere\n" +" --help afieaz acest ajutor i termin\n" +" --version afieaz informaii versiune i termin\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Moduri operaie:\n" +" -v, --verbose explic secvena de pai i raporteaz desfurarea\n" +" -q, --quiet, --silent suprim mesajele despre recodinguri ireversibile\n" +" -f, --force foreaz recodingurile chiar i cnd nu sunt reversibile\n" +" -t, --touch efectueaz `touch' pe fiierele recodate dup nlocuire\n" +" -i, --sequence=files folosete fiiere intermediare pentru treceri secveniale\n" +" --sequence=memory folosete bufferele de memorie pentru trecerile secveniale\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe folosete mecanismul de `pipe' pentru treceri secveniale\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe la fel ca -i(pe acest system)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Setri de precizie(fine tuning):\n" +" -s, --strict folosete mapri stricte, chiar dac se pierd caractere\n" +" -d, --diacritics convertete doar diacritice sau asemntor pentru HTML/LaTeX\n" +" -S, --source[=LN] limiteaz recodinguri n iruri i comentarii ca pentru LN\n" +" -c, --colons folosete coloane n loc de ghilimele pentru diaeresis\n" +" -g, --graphics aproximeaz rigle(rulers) IBMPC prin grafic ASCII\n" +" -x, --ignore=SET_CARACTERE ignor SET_CARACTERE n alegerea cilor de recoding\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Opiunea -l fr FORMAT sau SET_CARACTERE listeaz seturile de caractere i\n" +"nfirile(surfaces) disponibile. FORMAT is `decimal', `octal',\n" +"`hexadecimal' sau `full' (sau unul din `dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Dac DEFAULT_CHARSET nu este setat n mediu (environment) CHARSET va fi encodarea specific\n" +"determinat de LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Cu -k, seturile de caractere posibile dinainte sunt listate dup\n" +"SET_CARACTERE specificat, ambele fiind seturi de caractere tabulare,\n" +"cu PERECHI de forma `BEF1:AFT1,BEF2: AFT2,...'\n" +"unde BEF i AFT sunt coduri ce trebuie date ca numere zecimale.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN e un limbaj de programare, poate fi `c', `perl' sau `po'; `c' este implicit.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"CERERE(REQUEST) este SUBCERERE[,SUBCERERE]...; SUBCERERE este ENCODING[..ENCODING]...\n" +"ENCODING is [SET_CARACTERE][/[NFIARE]]...; CERERE se prezint ca\n" +"PRECEDENT..ULTERIOR, cu PRECEDENT i ULTERIOR fiind seturi de caractere.\n" +"Un SET_CARACTERE omis sugereaz setul de caractere obinuit; o [/NFIARE]\n" +"omis reprezint infiarea sugerat pentru SET_CARACTERE; un /\n" +"fr nume de nfiare nseamn fr nfiri. Vedei manualul.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Dac nu sunt dai nici unul dintre-i i -p, se presupune -p dac nu FIIER,\n" +"altfel -i. Fiecare FIIER este recodat(recoded) peste sine, originalul\n" +"pierzndu-se. Dac nu este specificat FIIER, atunci se comport ca un\n" +"filtru i recodeaz stdin n stdout.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Raportai bug-urile la .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Secvena `%s' este ambigu" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Secvena `%s' nu este cunoscut" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Limba `%s' este ambigu" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Limba `%s' nu este cunoscut" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Formatul `%s' este ambiguu" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Formatul `%s' nu este cunoscut" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Scris de Franc,ois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Acesta este free software; vedei sursele pentur condiiile de copiere.\n" +"NU exist NICI o garanie; nici mcar pentru VANDABILITATE sau MODIFICARE\n" +"PENTRU UN SCOP PRIVAT.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Simbolul `%s' nu este cunoscut" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Setul de caractere `%s' nu este cunoscut sau este ambiguu" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Lipsete parametrul solicitat" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Sintax nvechit(deprecated), utilizai `%s'" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Cererea `%s' este greit" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Recodare %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " finalizat\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " euat: %s n pasul `%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s a euat: %s n pasul `%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s n pasul `%s..%s'" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Setul de caractere %s exist deja i nu este %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Nu se poate lista `%s', nici un nume disponibil pentru acest set de caractere" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Zec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Ne pare ru, nici un nume disponibil pentru `%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Schimbtorul de nfiri(resurfacer) setat mai multe dect o dat pentru `%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Schimbtorul de nfiri(unsurfacer) setat mai mult dect o dat pentru `%s'" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Memorie virtual plin" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Codurile %3d i %3d ambele recodate n %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Nici un caracter recodat n %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Nu se poate inversa tabela unu la unu dat" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Se urmresc diagnosticele pentru `%s' n `%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Perechea numrul %d <%3d, %3d> n conflict cu <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Nu s-a putut completa tabelul din setul de perechi cunoscute" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Recodare de identitate, nu necesit tabel" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Recodarea este prea complex pentru un tabel simplu" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sTabelul de conversie generat mecanic de `%s' Free %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%s pentru secvena %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Nu exist tabel de tiprit" + +#: src/request.c:34 +msgid "reversible" +msgstr "reversibil" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s n %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "octet" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "variabil()" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Nendeplinibil*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*copiere-simpl*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Memorie virtual plin!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Pas de iniializare euat" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Pas de iniializare euat (opiuni neprocesate)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Cerere: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Micorat la: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Nume nfiare necunoscut: `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Nici o ans de recodare din `%s' n `%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Se ateapt `..' n cerere" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Starea de ateptare a procesului derivat(child) este 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Descriere\n" +"\n" --- a/i18n/sl.po +++ b/i18n/sl.po @@ -2,13 +2,13 @@ # Copyright (C) 1996 Free Software Foundation, Inc. # Primoz Peterlin , 1996. # -# $Id: recode-3.5.sl.po,v 1.2 1999/12/21 16:04:38 peterlin Exp peterlin $ +# $Id: recode-3.6.sl.po,v 1.2 2001/06/08 10:41:42 peterlin Exp $ # msgid "" msgstr "" -"Project-Id-Version: recode 3.5\n" +"Project-Id-Version: recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-12-21 17:01 MET\n" +"PO-Revision-Date: 2001-06-08 12:41+02:00\n" "Last-Translator: Primoz Peterlin \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" @@ -67,11 +67,9 @@ msgstr "" "Ta program je prosta programska oprema; lahko ga redistribuirate in/ali\n" "spreminjate po pogojih, doloenih v ,,GNU General Public License``, izdani\n" -"pri Free Software Foundation; 2. izdaja (ali noveja, e razpolagate z " -"njo).\n" +"pri Free Software Foundation; 2. izdaja (ali noveja, e razpolagate z njo).\n" "\n" -"Ta program se distribuira v upanju, da je uporaben, vendar BREZ " -"KAKRNEGAKOLI\n" +"Ta program se distribuira v upanju, da je uporaben, vendar BREZ KAKRNEGAKOLI\n" "JAMSTVA; vkljuno z impliciranim jamstvom prodajnosti ali uporabnosti za\n" "izbrani namen. Za podrobnosti si oglejte ,,GNU General Public License``.\n" "\n" @@ -85,20 +83,13 @@ msgstr "Poskusite ,%s %s` za dodatne informacije.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -"Prosti ,recode` pretvarja datoteke med razlinimi kodnimi nabori in " -"prerkovanji.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Prosti ,recode` pretvarja datoteke med razlinimi kodnimi nabori in prerkovanji.\n" #: src/main.c:241 #, c-format -msgid "" -"\n" -"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" -msgstr "" -"\n" -"Uporaba: %s [IZBIRA]... [ [NABOR] | ZAHTEVA [DATOTEKA]... ]\n" +msgid "\nUsage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "\nUporaba: %s [IZBIRA]... [ [NABOR] | ZAHTEVA [DATOTEKA]... ]\n" #: src/main.c:244 msgid "" @@ -111,13 +102,11 @@ "obveza tudi za kratko obliko. Podobno tudi za neobvezne argumente.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -127,14 +116,11 @@ msgstr "" "\n" "Seznami:\n" -" -l, --list[=OBLIKA] izpii en ali vse kodirane nabore znakov\n" -" -k, --known=PARI izpii nabore, ki ustrezajo podanim PAROM " -"pretvorb\n" -" -h, --header[=[JEZIK/]IME] izpii pretvorno tabelo z danim IMENOM v prog. " -"JEZIKU\n" +" -l, --list[=OBLIKA] izpii enega ali vse kodirane nabore znakov\n" +" -k, --known=PARI izpii nabore, ki ustrezajo podanim PAROM pretvorb\n" +" -h, --header[=[JEZIK/]IME] izpii pretvorno tabelo z danim IMENOM v prog. JEZIKU\n" " -F, --freeze-tables izpii modul v C z vsemi pretvornimi tabelami\n" -" -T, --find-subsets poroaj o vseh naborih, ki so podmnoica " -"drugih\n" +" -T, --find-subsets poroaj o vseh naborih, ki so podmnoica drugih\n" " -C, --copyright izpii dovoljenje za uporabo in razirjanje\n" " --help ta navodila\n" " --version razliica programa\n" @@ -152,8 +138,7 @@ msgstr "" "\n" "Naini dela:\n" -" -v, --verbose med potekom razlagaj korake in komentiraj " -"napredek\n" +" -v, --verbose med potekom razlagaj korake in komentiraj napredek\n" " -q, --quiet, --silent brez opozoril o neobrnljivih pretvorbah\n" " -f, --force pretvorbo izvedi, etudi ni obrnljiva\n" " -t, --touch pretvorjena datoteka naj nosi datum pretvorbe,\n" @@ -182,16 +167,11 @@ msgstr "" "\n" "Natanneje nastavljanje:\n" -" -s, --strict uporabi strogo pretvorbo, celo na raun izgube " -"znakov\n" -" -d, --diacritics pretvori samo preglaene in podobne znake za " -"HTML/LaTeX\n" -" -S, --source[=JEZIK] omeji pretvorbe na nize in komentarje, kot v " -"JEZIKU\n" -" -c, --colons nadomesti dierezo z dvopijem, ne z dvojnim " -"narekovajem\n" -" -g, --graphics semigrafine znake s PC pribl. nadomestimo z znaki " -"ASCII\n" +" -s, --strict uporabi strogo pretvorbo, celo na raun izgube znakov\n" +" -d, --diacritics pretvori samo preglaene in podobne znake za HTML/LaTeX\n" +" -S, --source[=JEZIK] omeji pretvorbe na nize in komentarje, kot v JEZIKU\n" +" -c, --colons nadomesti dierezo z dvopijem, ne z dvojnim narekovajem\n" +" -g, --graphics semigrafine znake s PC pribl. nadomestimo z znaki ASCII\n" " -x, --ignore=NABOR pri pretvorbi se izogni navedenemu vmesnemu NABORU\n" #: src/main.c:296 @@ -201,26 +181,22 @@ "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" "\n" -"Izbira -l brez podane OBLIKE ali NABORA izpie seznam vseh znanih kodnih " -"naborov\n" -"in prerkovalnih shem. OBLIKA je lahko ,decimal` (desetika), ,octal` " -"(osmika),\n" +"Izbira -l brez podane OBLIKE ali NABORA izpie seznam vseh znanih kodnih naborov\n" +"in prerkovalnih shem. OBLIKA je lahko ,decimal` (desetika), ,octal` (osmika),\n" ",hexadecimal` (estnajstika) ali ,full` (polna), ali ena od rk ,dohf`.\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" -"e ni doloena spremenljivka DEFAULT_CHARSET, je privzeti NABOR ,%s`.\n" +"e ni doloena spremenljivka DEFAULT_CHARSET, se privzame NABOR,\n" +"doloen s spremenljivkami LC_ALL, LC_CTYPE ali LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" "Pri izbiri -k se izpiejo vsi moni startni nabori za podani ciljni nabor.\n" @@ -229,30 +205,24 @@ "znakov v startnem in ciljnem kodnem naboru.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" msgstr "JEZIK je lahko ,c`, ,perl` ali ,po`; privzeto je ,c`.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" "ZAHTEVEK ima obliko PODZAHTEVEK[,PODZAHTEVEK]...; PODZAHTEVEK ima obliko\n" "KODIRANJE[,KODIRANJE]...; KODIRANJE ima obliko [NABOR][/[SHEMA]]. ZAHTEVEK\n" -"ima pogosto obliko PREJ..POTEM, kjer sta PREJ in POTEM kodirana nabora " -"znakov.\n" +"ima pogosto obliko PREJ..POTEM, kjer sta PREJ in POTEM kodirana nabora znakov.\n" "Izpueni NABOR pomeni privzetega; izpuena [/SHEMA] pomeni privzeto\n" -"prerkovalno shemo za dani NABOR. Poevnica / brez sheme pomeni brez " -"prerkovalne\n" +"prerkovalno shemo za dani NABOR. Poevnica / brez sheme pomeni brez prerkovalne\n" "sheme. Podrobnosti so v prironiku.\n" #: src/main.c:323 @@ -265,96 +235,83 @@ "\n" "e nista podana niti -i niti -p, se uporabi -p, kadar ni podana DATOTEKA, \n" "sicer pa -i. Pretvorba vsake DATOTEKE se zapie prek izvorne razliice. e\n" -"DATOTEKA ni podana, recode deluje kot filter med standardnim vhodom in " -"izhodom.\n" +"DATOTEKA ni podana, recode deluje kot filter med standardnim vhodom in izhodom.\n" #: src/main.c:329 -msgid "" -"\n" -"Report bugs to .\n" -msgstr "" -"\n" -"Sporoila o napakah javite na .\n" +msgid "\nReport bugs to .\n" +msgstr "\nSporoila o napakah javite na .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Zaporedje ,%s` je dvoumno" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Zaporedje ,%s` je neznano" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Jezik ,%s` je dvoumen" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Jezik ,%s` je neznan" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Oblika ,%s` je dvoumna" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Oblika ,%s` je neznana" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Avtor Franc,ois Pinard .\n" +msgstr "Avtor Franc,ois Pinard .\n" #: src/main.c:624 -msgid "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" -msgstr "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgid "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" -"To je prost program; pogoji, pod katerimi ga lahko uporabljate, " -"razmnoujete\n" +"To je prost program; pogoji, pod katerimi ga lahko uporabljate, razmnoujete\n" "in razirjate so navedeni v izvorni kodi. Za program ni NOBENEGA jamstva,\n" "niti jamstev USTREZNOSTI ZA PRODAJO ali PRIMERNOSTI ZA UPORABO.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Znak ,%s` je neznan" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Nabor znakov ,%s` je neznan ali dvoumen" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Zahtevani argument manjka" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "Neodobravana skladnja: prosimo, uporabljajte ,%s`" +msgstr "Neodobravana skladnja; prosimo, uporabljajte ,%s`" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Zahteva ,%s` je napana" #: src/main.c:903 #, c-format @@ -366,19 +323,19 @@ msgstr " opravljeno\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " neuspeno: %s v %s..%s\n" +msgstr " neuspeno: %s v koraku ,%s..%s`\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s neuspeno: %s v %s..%s" +msgstr "%s neuspeno: %s v koraku ,%s..%s`" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s v %s..%s" +msgstr "%s v koraku ,%s..%s`" #: src/names.c:335 #, c-format @@ -419,12 +376,12 @@ msgstr "Virtualni pomnilnik porabljen" #: src/recode.c:155 -#, c-format, ycp-format +#, c-format msgid "Codes %3d and %3d both recode to %3d" msgstr "Kodi %3d in %3d se obe preslikata v %3d" #: src/recode.c:169 -#, c-format, ycp-format +#, c-format msgid "No character recodes to %3d" msgstr "Noben znak se ne preslika v %3d" @@ -540,17 +497,11 @@ msgstr "akalni status procesa potomca je 0x%0.2x" #: src/testdump.c:298 -msgid "" -"UCS2 Mne Description\n" -"\n" -msgstr "" -"UCS2 Mne Opis\n" -"\n" +msgid "UCS2 Mne Description\n\n" +msgstr "UCS2 Mne Opis\n\n" #~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "NABOR nima privzete vrednosti; doloite spremenljivko okolja " -#~ "DEFAULT_CHARSET.\n" +#~ msgstr "NABOR nima privzete vrednosti; doloite spremenljivko okolja DEFAULT_CHARSET.\n" #~ msgid "Ambiguous sequence `%s'" #~ msgstr "Dvoumno zaporedje ,%s`" @@ -613,8 +564,7 @@ #~ msgstr "Za zdaj je izbira -s ignorirana, kadar je izbrano -g" #~ msgid "Hash stats: %d names using %d buckets out of %d\n" -#~ msgstr "" -#~ "Statistika za razpritveno tabelo: %d imen porabilo %d od %d koev\n" +#~ msgstr "Statistika za razpritveno tabelo: %d imen porabilo %d od %d koev\n" #~ msgid "Internal error - strategy undecided" #~ msgstr "Interna napaka - neodloen o strategiji" @@ -649,8 +599,7 @@ #~ msgid " -o, --sequence=popen same as -i (on this system)\n" #~ msgstr " -o, --sequence=popen isto kot -I (na tem sistemu)\n" -#~ msgid "" -#~ " -o, --sequence=popen use popen machinery for sequencing passes\n" +#~ msgid " -o, --sequence=popen use popen machinery for sequencing passes\n" #~ msgstr " -o, --sequence=popen uporabi mehanizem ,popen'\n" #~ msgid "" @@ -665,22 +614,19 @@ #~ "FILE is specified, then act as a filter and recode stdin to stdout.\n" #~ msgstr "" #~ " -q, --quiet, --silent brez sporoil o neobrnljivih pretvorbah\n" -#~ " -s, --strict striktna pretvorba, tudi na kodo izgubljenih " -#~ "znakov\n" -#~ " -t, --touch konna datoteka naj nosi datum pretvorbe, ne " -#~ "nastanka\n" +#~ " -s, --strict striktna pretvorba, tudi na kodo izgubljenih znakov\n" +#~ " -t, --touch konna datoteka naj nosi datum pretvorbe, ne nastanka\n" #~ " -v, --verbose z razlago poteka pretvorbe\n" #~ " -x, --ignore=NABOR izpusti NABOR pri izbiri poti pretvorbe\n" #~ "\n" -#~ "e ni podan -i, -o, ali -p, se privzame -p, kadar ni podana DATOTEKA, sicer " -#~ "-i.\n" +#~ "e ni podan -i, -o, ali -p, se privzame -p, kadar ni podana DATOTEKA, sicer -i.\n" #~ "Vsaka DATOTEKA se pretvori ez samo sebe in unii izvirnik. e DATOTEKA\n" #~ "ni podana, deluje kot filter in pretvarja podatke z vhoda na izhod.\n" #~ msgid "BEFORE and AFTER both default to `%s' when needed.\n" #~ msgstr "e nabor PREJ ali POTEM ni podan, se nadomesti z ,%s'\n" -# POZOR +#~ # POZOR #~ msgid "" #~ "Mandatory or optional arguments to long options are mandatory or optional\n" #~ "for short options too.\n" @@ -695,12 +641,10 @@ #~ "FORMAT is a word among decimal, octal, hexadecimal or full (which may be\n" #~ "abbreviated to one of `dohf'), it defaults to just the canonical name.\n" #~ "With -k, possible before charsets are listed for the given after CHARSET,\n" -#~ "both being RFC1345 charsets, with PAIRS of the form " -#~ "`BEF1:AFT1,BEF2:AFT2,...\n" +#~ "both being RFC1345 charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...\n" #~ "and BEFs and AFTs being codes. All codes are given as decimal numbers.\n" #~ msgstr "" -#~ "Argumenti, ki so obvezni za dolge oblike izbir so obvezni tudi za kratke " -#~ "oblike,\n" +#~ "Argumenti, ki so obvezni za dolge oblike izbir so obvezni tudi za kratke oblike,\n" #~ "in enako velja za neobvezne argumente.\n" #~ "\n" #~ " -C, --copyright obvestilo avtorskih pravicah\n" @@ -710,18 +654,14 @@ #~ " --help ta navodila\n" #~ " --version verzija programa\n" #~ "\n" -#~ "FORMAT izpisa je eden od naslednjih: decimal, octal, hexadecimal ali full " -#~ "(mona\n" -#~ "je okrajava na prvo rko: dohf), privzeta izbira je samo kanonino ime " -#~ "nabora.\n" +#~ "FORMAT izpisa je eden od naslednjih: decimal, octal, hexadecimal ali full (mona\n" +#~ "je okrajava na prvo rko: dohf), privzeta izbira je samo kanonino ime nabora.\n" #~ "With -k, possible before charsets are listed for the given after CHARSET,\n" -#~ "both being RFC1345 charsets, with PAIRS of the form " -#~ "`BEF1:AFT1,BEF2:AFT2,...\n" +#~ "both being RFC1345 charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...\n" #~ "and BEFs and AFTs being codes. All codes are given as decimal numbers.\n" #~ msgid "" -#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the " -#~ "Texinfo\n" +#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the Texinfo\n" #~ "documentation. My preferred charsets are (each user has preferences):\n" #~ "\n" #~ " ascii-bs ASCII (7-bit), using backspace to apply diacritics\n" @@ -730,10 +670,8 @@ #~ " latin1 ISO Latin-1 8-bit extension of ASCII\n" #~ " texte Easy French convention for transmitting email messages\n" #~ msgstr "" -#~ "Izbira -l brez podanih FORMAT ali NABOR d seznam vseh naborov, oglejte si " -#~ "e\n" -#~ "dokumentacijo v Texinfo. Moji priljubljeni nabori (vsak uporabnik ima " -#~ "svoje):\n" +#~ "Izbira -l brez podanih FORMAT ali NABOR d seznam vseh naborov, oglejte si e\n" +#~ "dokumentacijo v Texinfo. Moji priljubljeni nabori (vsak uporabnik ima svoje):\n" #~ "\n" #~ " ascii-bs 7-bitni ASCII, z uporabo Backspace za tisk diakritinih znakov\n" #~ " ibmpc 8-bitni nabor IBM-PC, zakljuek vrstice CR LF\n" @@ -760,12 +698,8 @@ #~ " -h, --header[=NAME] write C code with table NAME on stdout, then exit\n" #~ " -i, --sequence=files use intermediate files for sequencing passes\n" -#~ msgid "" -#~ "\n" -#~ "Usage: %s [OPTION]... [BEFORE]:[AFTER] [FILE]...\n" -#~ msgstr "" -#~ "\n" -#~ "Uporaba: %s [IZBIRA]... [PREJ]:[POTEM] [DATOTEKA]...\n" +#~ msgid "\nUsage: %s [OPTION]... [BEFORE]:[AFTER] [FILE]...\n" +#~ msgstr "\nUporaba: %s [IZBIRA]... [PREJ]:[POTEM] [DATOTEKA]...\n" #~ msgid "many to many" #~ msgstr "ve v ve" --- a/i18n/sv.po +++ b/i18n/sv.po @@ -1,13 +1,13 @@ # Swedish messages for recode -# Copyright 1996, 1998 Free Software Foundation, Inc. -# Jan Djrv , 1996, 1998. -# $Revision: 1.14 $ +# Copyright 1996, 1998, 2001 Free Software Foundation, Inc. +# Jan Djrv , 1996, 1998, 2001. +# Revision: 1.16 # msgid "" msgstr "" -"Project-Id-Version: recode 3.5\n" +"Project-Id-Version: recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-10-16 13:42 +02:00\n" +"PO-Revision-Date: 2001-06-12 12:54+0100\n" "Last-Translator: Jan Djrv \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" @@ -66,8 +66,7 @@ "informativt syfte. Fr alla juridiska tolkningar gller den engelska\n" "originaltexten.\n" "\n" -"Detta program r fri programvara. Du kan distribuera den och/eller " -"modifiera\n" +"Detta program r fri programvara. Du kan distribuera den och/eller modifiera\n" "den under villkoren i GNU General Public License, publicerad av\n" "Free Software Foundation, antingen version 2 eller (om du s vill)\n" "ngon senare version.\n" @@ -78,8 +77,7 @@ "Public License fr ytterligare information.\n" "\n" "Du br ha ftt en kopia av GNU General Public License\n" -"tillsammans med detta program. Om inte, skriv till Free Software " -"Foundation,\n" +"tillsammans med detta program. Om inte, skriv till Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" #: src/main.c:233 @@ -88,19 +86,13 @@ msgstr "Frsk med \"%s %s\" fr mer information\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -"Fria \"recode\" konverterar filer mellan olika teckenuppsttningar och ytor\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Fria \"recode\" konverterar filer mellan olika teckenuppsttningar och ytor.\n" #: src/main.c:241 #, c-format -msgid "" -"\n" -"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" -msgstr "" -"\n" -"Anvndning: %s [FLAGGA]... [ [TECKENUPPSTTNING] | BEGRAN [FIL]...]\n" +msgid "\nUsage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "\nAnvndning: %s [FLAGGA]... [ [TECKENUPPSTTNING] | BEGRAN [FIL]...]\n" #: src/main.c:244 msgid "" @@ -110,17 +102,14 @@ msgstr "" "\n" "Om en lng flagga har ett obligatoriskt argument s r argumentet ven\n" -"obligatoriskt fr motsvarade korta flagga. Motsvarande fr valfria " -"argument.\n" +"obligatoriskt fr motsvarade korta flagga. Motsvarande fr valfria argument.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -131,15 +120,13 @@ "\n" "Listningar:\n" " -l, --list[=FORMAT] visa en eller alla knda teckenuppsttningar\n" -" -k, --known=PAR begrnsa teckenuppsttningar till de i PAR " -"listan\n" +" -k, --known=PAR begrnsa teckenuppsttningar till de i PAR-listan\n" " -h, --header[=[LN/]NAMN] skriv tabell NAMN fr LN till standard ut\n" " och avsluta.\n" " -F, --freeze-tables skriv ut en C modul med alla tabeller\n" " -T, --find-subsets skriv ut teckenuppsttningar som r delmngder\n" " av andra\n" -" -C, --copyright visa copyrightinformation och " -"kopieringsvillkor\n" +" -C, --copyright visa copyrightinformation och kopieringsvillkor\n" " --help visa denna hjlptext och avsluta\n" " --version visa versionsinformation och avsluta\n" @@ -157,11 +144,9 @@ "\n" "Exekveringsalternativ:\n" " -v, --verbose frklara delsteg och rapportera framsteg\n" -" -q, --quiet, --silent undertryck meddelanden om irreversibla " -"omkodningar\n" +" -q, --quiet, --silent undertryck meddelanden om irreversibla omkodningar\n" " -f, --force gr omkodning ven nr den r irreversibel\n" -" -t, --touch gr \"touch\" p filer som omkodas ver sig " -"sjlva\n" +" -t, --touch gr \"touch\" p filer som omkodas ver sig sjlva\n" " -i, --sequence=files anvnd temporrfiler mellan delsteg\n" " --sequence=memory anvnd minnesbuffertar mellan delsteg\n" @@ -204,25 +189,22 @@ msgstr "" "\n" "Flagga -l utan FORMAT och TECKENUPPSTTNING visar alla tillgngliga\n" -"teckenuppsttningar och ytor. FORMAT r \"decimal\", \"octal\", " -"\"hexadecimal\"\n" +"teckenuppsttningar och ytor. FORMAT r \"decimal\", \"octal\", \"hexadecimal\"\n" "eller \"full\" (eller en av \"dohf\").\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" "Om miljvariabeln DEFAULT_CHARSET inte r satt blir standardvrdet fr\n" -"TECKENUPPSTTNING \"%s\"\n" +"TECKENUPPSTTNING den lokalspecifika kodningen, som bestms av\n" +"miljvariablerna LC_ALL, LC_CTYPE och LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" "Med -k, mjliga startuppsttningar visas fr den givna slutuppsttningen,\n" @@ -231,28 +213,21 @@ "som anges med decimala tal.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" -"LN r ett sprk, det kan vara \"c\", \"perl\" eller \"po\"; \"c\" r " -"standardvrde.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN r ett sprk, det kan vara \"c\", \"perl\" eller \"po\"; \"c\" r standardvrde.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" "BEGRAN r DELBEGRAN[,DELBEGRAN]..., DELBEGRAN r KODNING[..KODNING]...\n" -"KODNING r [TECKENUPPSTTNING][/[YTA]].... BEGRAN ser ofta ut som " -"START..SLUT,\n" +"KODNING r [TECKENUPPSTTNING][/[YTA]].... BEGRAN ser ofta ut som START..SLUT,\n" "dr START och SLUT r teckenuppsttningar. Ett utelmnat TECKENUPPSTTNING\n" "innebr den normala teckenuppsttningen,\n" "en utelmnad [/YTA]... innebr den normala ytan fr TECKENUPPSTTNING.\n" @@ -272,9 +247,7 @@ "till standard ut.\n" #: src/main.c:329 -msgid "" -"\n" -"Report bugs to .\n" +msgid "\nReport bugs to .\n" msgstr "" "\n" "Rapportera fel till .\n" @@ -283,48 +256,41 @@ #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Sekvens \"%s\" r tvetydig" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Sekvens \"%s\" r oknd" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Sprk \"%s\" r tvetydigt" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Sprk \"%s\" r oknt" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Format \"%s\" r tvetydigt" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Format \"%s\" r oknt" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Skriven av Franois Pinard .\n" +msgstr "Skriven av Franois Pinard .\n" #: src/main.c:624 -msgid "" -"\n" -"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" -msgstr "" -"\n" -"Copyright 1990, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc.\n" +msgid "\nCopyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "\nCopyright 1990, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" @@ -338,26 +304,26 @@ #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Symbol \"%s\" r oknd" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Teckenuppsttning \"%s\" r oknd eller tvetydig" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Obligatoriskt argument saknas" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" msgstr "Frldrad syntax, anvnd hellre \"%s\"" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Begran \"%s\" r felaktig" #: src/main.c:903 #, c-format @@ -369,19 +335,19 @@ msgstr " klart\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " misslyckades: %s i %s..%s\n" +msgstr " misslyckades: %s i steg \"%s..%s\"\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s misslyckades: %s i %s..%s" +msgstr "%s misslyckades: %s i steg \"%s..%s\"" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s i %s..%s" +msgstr "%s i steg \"%s..%s\"" #: src/names.c:335 #, c-format @@ -391,8 +357,7 @@ #: src/names.c:831 #, c-format msgid "Cannot list `%s', no names available for this charset" -msgstr "" -"Kan inte visa \"%s\", inga namn tillgngliga fr denna teckenuppsttning" +msgstr "Kan inte visa \"%s\", inga namn tillgngliga fr denna teckenuppsttning" #. code counter #. expected value for code counter @@ -423,12 +388,12 @@ msgstr "Virtuellt minne slut" #: src/recode.c:155 -#, c-format, ycp-format +#, c-format msgid "Codes %3d and %3d both recode to %3d" msgstr "Teckenkoderna %3d och %3d omkodas bda till %3d" #: src/recode.c:169 -#, c-format, ycp-format +#, c-format msgid "No character recodes to %3d" msgstr "Inget tecken omkodas till %3d" @@ -504,7 +469,7 @@ #: src/request.c:246 msgid "Virtual memory exhausted!" -msgstr "Virtuellt minne slut" +msgstr "Virtuellt minne slut!" #: src/request.c:265 msgid "Step initialisation failed" @@ -527,7 +492,7 @@ #: src/request.c:823 src/request.c:932 #, c-format msgid "Unrecognised surface name `%s'" -msgstr "Oknt ytnamn: \"%s\"" +msgstr "Oknt ytnamn \"%s\"" #: src/request.c:903 #, c-format @@ -541,38 +506,8 @@ #: src/task.c:826 src/task.c:1002 #, c-format msgid "Child process wait status is 0x%0.2x" -msgstr "Barnprocess slutstatus r 0x%0.2x" +msgstr "Barnprocessens slutstatus r 0x%0.2x" #: src/testdump.c:298 -msgid "" -"UCS2 Mne Description\n" -"\n" -msgstr "" -"UCS2 Mne Beskrivning\n" -"\n" - -#~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "TECKENUPPSTTNING har inget standardvrde, stt miljvariabeln " -#~ "DEFAULT_CHARSET.\n" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "Tvetydig sekvens \"%s\"" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Oknd sekvens \"%s\"" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Tvetydigt sprk \"%s\"" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Oknt sprk \"%s\"" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "Tvetydigt format \"%s\"" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Oknt format \"%s\"" - -#~ msgid "Erroneous request `%s'" -#~ msgstr "Felaktig begran \"%s\"" +msgid "UCS2 Mne Description\n\n" +msgstr "UCS2 Mne Beskrivning\n\n" --- /dev/null +++ b/i18n/tr.po @@ -0,0 +1,517 @@ +# Recode Turkish Translation +# Copyright (C) 2002 Free Software Foundation, Inc. +# İrfan Macit , 2002. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2002-06-20 11:00EET\n" +"Last-Translator: İrfan Macit \n" +"Language-Team: Turkish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Hata yok" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Ana biçem olmayan girdi" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Belirsiz çıktı" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Çevrilemeyen girdi" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Geçersiz girdi" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Sistem hata buldu" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Yeniden kodlama kitaplığı hatalı kullanılmış" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "İçsel yeniden kodlama hatası" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Bu bir serbest yazılımdır; Free Software Foundation tarafından yayınlanan\n" +"GNU Genel Kamu Lisansı'nın 2. veya (sizin tercihinize bağlı olarak) daha\n" +"sonraki bir sürümü altında yeniden dağıtabilir ve/veya değiştirebilirsiniz\n" +"\n" +"Bu yazılım faydalı olacağı umularak dağıtılmaktadır, fakat\n" +"HİÇ BİR GARANTİSİ YOKTUR; SATILABİLİRLİĞİ veya\n" +"HERHANGİ BİR AMACA UYGUNLUĞU için dahi zımni bir garanti\n" +"içermez. Daha fazla bilgi için GNU Genel Kamu Lisansı'na bakın.\n" +"\n" +"Bu yazılımla birlikte GNU Genel Kamu Lisansı'nın bir kopyası gelmiş\n" +"olmalıdır; eğer yok ise, lütfen Free Software Foundation, Inc., 59 Temple\n" +"Place - Suite 330, Boston, MA 02111-1307, USA/ABD adresine yazın.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Daha fazla bilgi için '%s %s'.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Serbest `recode', dosyaları değişik karakter kümeleri ve yüzeylere dönüştürür.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Kullanım: %s [SEÇENEK]...[[KARKÜME] | İSTEK [DOSYA]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Uzun seçenekler için zorunlu olan argümanlar kısa seçenekler için de\n" +"zorunludur. Aynı şey bütün argümanlar için geçerlidir.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Seçenekler:\n" +" -l, --list[=BİÇEM] bilinen karakter kümeleri ve rumuzların birini ya da hepsini listeler\n" +" -k, --known=ÇİFT karakter kümelerini bilinen ÇİFT listesine göre sınırlar.\n" +" -h, --header[=[LN/]İSİM] standart çıktıya LN'i kullanarak tablonun İSMİ'ni yazar ve çıkar\n" +" -F, --freeze-tables bütün tabloları içeren bir C modülü yazdırır\n" +" -T, --find-subsets bir başka kümenin alt kümesi olan bütün karakter kümelerini raporlar\n" +" -C, --copyright telif hakkı ve kopyalama koşullarını gösterir\n" +" --help bu yardımı gösterir ve çıkar\n" +" --version sürüm bilgisini gösterir ve çıkar\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Çalışma Kipleri:\n" +" -v, --verbose adım sıralarını anlatır ve durum bilgisi gösterir\n" +" -q, --quiet, --silent geri dönüşsüz yeniden kodlamalar hakkında bilgi vermez\n" +" -f, --force geri dönüşsüz bile olsa yeniden kodlamaları yapar\n" +" -t, --touch değişiklikten sonra yeniden kodlanmış dosyalara `touch' uygular\n" +" -i, --sequence=files çevrimleri sıralamak için ara dosyalar kullanır\n" +" --sequence=memory çevrimleri sıralamak için bellek yastıkları kullanır\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe çevrimleri sıralamak için veriyolu (pipe) kullanır\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe (bu sistemde) -i ile aynı\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"İnce ayar:\n" +" -s, --strict kesin olmayan harflerde bile kesin eşlemeler kullanır\n" +" -d, --diacritics HTML/LaTeX için yalnız aksan v.b.'yi yeniden kodlar\n" +" -S, --source[=LN] yeniden kodlamayı dizgeler ve LN gibi açıklamalarla sınırlar\n" +" -c, --colons ö,ü'nin iki noktası için çift tırnak yerine iki nokta üstüste kullanır\n" +" -g, --graphics IBMPC cetvellerini ASCII grafikleriyle değiştirir\n" +" -x, --ignore=KARKÜME yeniden kodlama seçilirken KARKÜME dikkate alınmaz\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"-l seçeneği, BİÇEM veya KARKÜME verilmezse mevcut karakter kümelerini listeler\n" +"BİÇEM, `decimal' (onluk), `octal' (sekizlik), `hexadecimal' (onaltılık), \n" +"`full' (tam) veya `dohf' seçeneklerinden birisi olabilir.\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Eğer DEFAULT_CHARSET çevre değişkeni atanmamışsa, KARKÜME yerel\n" +"ayarlarına bağlı kodlama olarak atanır ve LC_ALL, LC_CTYPE, LANG çevre\n" +"değişkenlerinden etkilenir.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"-k seçeneği ile, dönüşecek karakter kümeleri, dönüştürülecek karakter kümeleri\n" +"ile birlikte ÇİFT'ler halinde listelenir: `ÖNC1:SON1,ÖNC2:SON2,...'\n" +"ÖNC ve SON karakter kümesi isimleri, ondalık sayı halinde kodlardan oluşur.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN bir bilgisayar dilidir, `c', `perl' veya `po' olabilir; öntanımlı: `c'\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"İSTEK: ALTİSTEK,[ALTİSTEK]...; ALTİSTEK ise KODLAMA[..KODLAMA]...\n" +"KODLAMA: [KARKÜME][/YÜZEY]]...; İSTEK genelde ÖNCE..SONRA\n" +"biçeminde olur, ÖNCE ve SONRA karakter kümeleridir. Belirtilmemiş bir\n" +"karakter kümesi öntanımlı karakter kümesinin kullanılacağına işaret eder.\n" +"Belirtilmemiş [/YÜZEY]..., o KARKÜME için öntanımlı yüzeyin kullanılacağına\n" +"işaret eder. Yalnız / kullanılır ve yüzey belirtilmezse, hiç yüzey kullanılmaz.\n" +"Lütfen el kitabını inceleyin.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Eğer -i ve -p'nin hiç birisi verilmemiş ve DOSYA yok ise, -p, aksi\n" +"halde -i varsayılır. Her DOSYA kendi üstüne yeniden kodlanır ve orjinali\n" +"yok edilir. Eğer DOSYA verilmemişse, bir filtre görevi yapar ve standart\n" +"girdiyi, standart çıktıya yeniden kodlar.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Yazılım hatalarını adresine,\n" +"Çeviri hatalarını adresine yollayın.\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "`%s' sırası belirsiz" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "`%s' sırası bilinmiyor" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "`%s' dili belirsiz" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "`%s' dili bilinmiyor" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "`%s' biçemi belirsiz" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "`%s' biçemi bilinmiyor" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Yazan: François Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Telif Hakkı (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Bu bir serbest yazılımdır; kopyalama koşulları için kaynak koduna bakınız.\n" +"HİÇ BİR GARANTİSİ YOKTUR; SATILABİLİRLİĞİ veya\n" +"HERHANGİ BİR AMACA UYGUNLUĞU için dahi zımni bir garanti\n" +"içermez.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "`%s' sembolü bilinmiyor" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "`%s' karakter kümesi bilinmiyor veya belirsiz" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Zorunlu argüman eksik" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Biçem eski, lütfen `%s'i tercih edin" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "`%s' isteği hatalı" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "%s yeniden kodlanıyor..." + +#: src/main.c:913 +msgid " done\n" +msgstr " bitti\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr "başarısız: `%2$s..%3$s' adımında %1$s\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%1$s başarısız: `%3$s..%4$s' adımında %2$s" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "`%2$s..%3$s' adımında %1$s" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "%s karakter kümesi zaten mevcut ve %s değil" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "`%s' listelenemiyor, bu karakter kümesi için isim yok" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Ond Sek OnaltıUCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "`%s' için hiç isim mevcut değil" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "`%s' için yüzeyleyici birden fazla defa atanmış" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "`%s' için yüzey yokedici birden fazla defa atanmış" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Sanal bellek tükendi" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "%3d ve %3d kodlarının ikisi de %3d'ye yeniden kodluyor" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "%3d'ye yeniden kodlanan harf yok" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Verilen birebir eşlemeli tablo tersine çevrilemez" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "`%s'den `%s'e durum bildirimleri inceleniyor" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "%d no'lu çift <%3d, %3d>, <%3d, %3d> ile çakışıyor" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Tablo bilinen çiftler kümesinden tamamlanamıyor" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Birebir yeniden kodlama, tabloya gerek yok" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Yeniden kodlama bir tablo için fazla karmaşık" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sDönüşüm tablosu mekanik olarak Free `%s' %s tarafından oluşturulmuştur" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%2$s.%3$s sırası için %1$s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Yazdırılacak tablo yok" + +#: src/request.c:34 +msgid "reversible" +msgstr "geri dönüşümlü" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s'den %s'e" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "bayt" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "değişken" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Ulaşılamaz*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*yalnızca kopya*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Sanal bellek tükendi!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Adım başlangıcı başarısız" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Adım başlangıcı başarısız (işlenmemiş seçenekler)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "İstek: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "%s'e küçüldü\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Bilinmeyen yüzey adı `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "`%s'den `%s'e yeniden kodlamanın yolu yok" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "İstekte `..' bekleniyordu" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Ast işlem bekleme durumu: 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Açıklama\n" +"\n" --- /dev/null +++ b/i18n/ca.po @@ -0,0 +1,578 @@ +# Catalan translation of GNU recode. +# Copyright 2002, 2003 Free Software Foundation, Inc. +# Jordi Mallach , 2002, 2003. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2003-08-30 16:48+0200\n" +"Last-Translator: Jordi Mallach \n" +"Language-Team: Catalan \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 0.9.6\n" + +#: src/main.c:142 +msgid "No error" +msgstr "No hi ha cap error" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "L'entrada no s cannica" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "L'eixida s ambigua" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "L'entrada no s convertible" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "L'entrada s invlida" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "El sistema ha detectat un problema" + +# El verb "to misuse" vol dir "desaprofitar" o tamb "fer mal s". Crec +# que en aquest cas la traducci ms correcta seria: "Mal s de la +# biblioteca de recodificaci" o, si es prefereix, "s incorrecte de +# la biblioteca de recodificaci". mvs +# B, les teues frases sn en "indi", que diem Ivan i jo... +# es a dir, no sn frases completes. No veig massa diferncia entre +# s incorrecte de la biblioteca de recodificaci i la forma que he +# fet servir jo... jm +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "L's de la biblioteca de recodificaci s incorrecte" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "S'ha produt un error intern de recodificaci" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"A s programari lliure; podeu redistribuir-lo i/o modificar-lo\n" +"sota els termes de la Llicncia Pblica General GNU tal i com ha estat\n" +"publicada per la Free Software Foundation; b sota la versi 2 de la\n" +"Llicncia o b (si ho preferiu) sota qualsevol versi posterior.\n" +"\n" +"Aquest programa es distribueix amb l'expectativa de que ser til,\n" +"per SENSE CAP GARANTIA; ni tan sols la garantia implcita de\n" +"COMERCIABILITAT o ADEQUACI PER UN PROPSIT PARTICULAR. Vegeu la\n" +"Llicncia Pblica General GNU per obtenir-ne ms detalls.\n" +"\n" +"Haureu d'haver rebut una cpia de la Llicncia Pblica General GNU\n" +"juntament amb aquest programa; en cas contrari, escriviu a la Free\n" +"Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,\n" +"MA 02111, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Proveu %s %s per a obtindre ms informaci.\n" + +# On posa "entre varios", a no s un castellanisme?. +# Em sembla que seria ms correcte posar "diversos" en voltes de "varios". mvs +# I tant... jm +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "El recode lliure converteix fitxers entre diversos jocs de carcters i superfcies.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Forma d's: %s [OPCI]... [ [JOC DE CARCTERS] | PETICI [FITXER]... ]\n" + +# Aquest programa s'executa en terminal o en un +# servidor x?. Si s per a una terminal potser caldria respectar +# un salt de lnia fins la columna nm. 70. S'edita el missatge +# a un editor de textos que aplique salt de lnia automticament, +# i el copiem al programa traductor (si feu servir kbabel, no +# oblideu d'afegir "\n" al final de cada lnia). mvs +# S, s en mode text, i corregit. El kbabel us fa ficar el salt +# de lnia a ma? Qu mal... :) jm +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Si una opci llarga mostra un argument com requerit, aleshores tamb s\n" +"requerit per a l'opci curta equivalent, i de forma similar per als\n" +"arguments opcionals.\n" + +# Que tal si traduim "copyright", per "drets reservats"?. +# Tamb on posa "copying conditions", aix no vol dir +# "condicions de l'autor" en voltes de "condicions de cpia"? mvs +# copyright != drets reservats, aix seria all rights reserved +# o similar. Crec que copying conditions s l'evident: condicions +# de cpia. El tema de traduir o no copyright s'ha discutit alguna +# vegada si no recorde mal, i sempre s'ha preferit no traduir-ho. jm +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Llistats:\n" +" -l, --list[=FORMAT] llista un o tots els jocs de carcters i lies\n" +" coneguts\n" +" -k, --known=PARELLES limita els jocs de carcters d'acord amb la\n" +" llista de PARELLES conegudes\n" +" -h, --header=[={LN/}NOM} mostra la taula NOM a l'eixida estndard\n" +" utilitzant LN, i surt a continuaci\n" +" -F, --freeze-tables mostra un mdul de C contenint totes les taules\n" +" -T, --find-subsets informa de tots els jocs de carcters que sn\n" +" subconjunts d'altres\n" +" -C, --copyright mostra el Copyright i les condicions de cpia\n" +" --help mostra aquesta ajuda i ix\n" +" --version mostra la informaci sobre la versi i ix\n" + +# Una "passa" no s un "pas". "Passa" es un sinnim de +# epidmia. Per tant, hauria de posar-se "passos" i no "passes". +# Concretant: +# "step" s "pas" ("passos") o "iteraci" +# "pass" s "passi" ("passis"), sinnim de perms +# ("cinema session pass" = "passi de sessi de cinema"). mvs +# Uff. Aquesta errada l'arrossegue en altres traduccions, aleshores. +# Caldr fer una bonica sessi de greps. jm +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Modes d'operaci:\n" +" -v, --verbose explica la seqncia de passos i informa del progrs\n" +" -q, --quiet, --silent inhabilita els missatges sobre recodificacions\n" +" irreversibles\n" +" -f, --force fora les recodificacions incls si sn irreversibles\n" +" -t, --touch toca els fitxers recodificats desprs del reempla\n" +" -i, --sequence=files utilitza fitxers intermedis per als passos\n" +" --sequence=memory utilitza bfers de memria per als passos\n" + +# Vegeu la mateixa observaci que vaig fer al missatge nm 15. mvs +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr "" +" -p, --sequence=pipe utilitza conductes per als passos de\n" +" seqncies\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe el mateix que -i (en aquest sistema)\n" + +# A l'opci "-g" has obviat la paraula "rules", que +# voldria dir "normes". Aix, "IBMPC rulers" voldria dir +# "normes IBMPC", encara que no estic del tot segur. mvs +# No, he tradut rules per grfics. Es refereix als carcters +# amb els que es dibuixen les caixetes i tal. jm +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Ajustament afinat:\n" +" -s, --strict utilitza coincidncies estrictes, encara que es\n" +" perden carcters\n" +" -d, --diacritics converteix noms els accents o pareguts per a\n" +" HTML/LaTeX\n" +" -S, --source[=LN] limita la recodificaci a cadenes i comentaris\n" +" segons LN\n" +" -c, --colons utilitza dos punts en comptes de cometes dobles\n" +" per a la diresis\n" +" -g, --graphics aproxima els grfics IBMPC amb grfics ASCII\n" +" -x, --ignore=JOC descarta JOC al escollir un cam de recodificaci\n" + +# "L'opci "-l" sense cap FORMAT ni JOC DE CARACTERS llista..." mvs +# Fet. jm +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"L'opci -l sense cap FORMAT o JOC DE CARCTERS llista els jocs de carcters\n" +"i facetes disponibles. FORMAT s decimal, octal, hexadecimal o full\n" +"(o un de dohf).\n" + +# "... de la que depn...", aix s un castellanisme. +# El correcte s dir: "... de la qual depn...", o +# "... de qu depn...", (ull!: amb laccent tancat). mvs +# Oops. Volia haver ficat de la qual. jm +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"A no ser que s'establisca DEFAULT_CHARSET a l'entorn, el valor\n" +"predeterminat de CHARSET s la codificaci de la qual depen el locale,\n" +"determinat per LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Amb -k, es mostren els possibles jocs de carcters abans per al JOC\n" +"desprs donat, sent ambds jocs de carcters tabulars, amb PARELLES de la\n" +"forma ABAN1:DESP1,ABAN2:DESP2,... i sent els ABAN i DESP codis donats com\n" +"nmeros decimals.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN s un llenguatge, pot ser c, perl o po; c s el predeterminat.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"PETICI s SUBPETICI[,SUBPETICI]...;\n" +"SUBPETICI s CODIFICACI[..CODIFICACI]...\n" +"CODIFICACI s [JOC DE CARCTERS[/[FACETA]]...;\n" +"PETICI sovint s ABANS..DESPRS,\n" +"amb ABANS i DESPRS sent jocs de carcters. Un JOC DE CARCTERS oms\n" +"implica el joc de carcters habitual; una [/FACETA] omesa vol dir la faceta\n" +"implcita per al JOC DE CARCTERS; un / amb una faceta buida vol dir que no\n" +"hi ha faceta. Vegeu el manual.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Si no es dona cap de -i i -p, es suposa -p si no hi ha cap FITXER, si no, -i.\n" +"Cada FITXER es recodifica damunt d'ell mateix, destrunt l'original. Si no\n" +"s'especifica cap FITXER, aleshores actua com un filtre i recodifica\n" +"l'entrada estndard a l'eixida estndard.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Informeu dels errors a .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "La seqncia %s s ambgua" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "La seqncia %s s desconeguda" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "El llenguatge %s s ambigu" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "El llenguatge %s s desconegut" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "El format %s s ambigu" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "El format %s s desconegut" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Escrit per Franois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"A s Programari Lliure; vegeu el codi font per les condicions de\n" +"cpia. NO hi ha CAP garantia; ni tan sols de COMERCIABILITAT o ADEQUACI\n" +"PER UN PROPSIT DETERMINAT.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "El smbol %s s desconegut" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "El joc de carcters %s s desconegut o ambigu" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Manca un argument requerit" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Aquesta sintaxi s desaconsellada, si us plau, utilitzeu %s" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "La petici %s s errnia" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "S'est recodificant %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " fet\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " ha fallat: %s al pas %s..%s\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s ha fallat: %s al pas %s..%s" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s al pas %s..%s" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "El joc de carcters %s ja existeix i no s %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "" +"No es pot llistar %s, no hi ha noms disponibles per a aquest\n" +"joc de carcters" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "No hi ha noms disponibles per a %s" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "S'ha establert resurfacer ms d'una vegada per a %s" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "S'ha establert unsurfacer ms d'una vegada per a %s" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "La memria virtual s'ha exhaurit" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Els codis %3d i %3d es recodifiquen ambds a %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Cap carcter es recodifica a %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "No es pot invertir la taula un-a-un donada" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "S'estan seguint els diagnstics per %s a %s" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "La parella no. %d: <%3d, %3d> s conflictiu amb <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "No es pot completar la taula des del joc de parelles conegudes" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Recodificaci identitat, no mereix una taula" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "La recodificaci s massa complexa per a una simple taula" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sTaula de conversi generada mecnicament per Free %s %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%sper la seqncia %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "No hi ha cap taula a imprimir" + +#: src/request.c:34 +msgid "reversible" +msgstr "reversible" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s a %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "byte" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "variable" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Impossible*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*simple cpia*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "La memria virtual s'ha exhaurit!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "L'inicialitzaci del pas ha fallat" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "L'inicialitzaci del pas ha fallat (opcions no processades)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Petici: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Encogit a: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "El nom de faceta %s s desconegut" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "No hi ha manera de recodificar de %s a %s" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "S'esperava .. a la petici" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "L'estat d'espera del procs fill s 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "UCS2 Mne Descripci\n" --- a/i18n/de.po +++ b/i18n/de.po @@ -1,18 +1,18 @@ # recode. -# Copyright (C) 1995, 1996 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996, 2006 Free Software Foundation, Inc. # Ulrich Drepper , 1995. -# Karl Eichwalder , 1996 +# Karl Eichwalder , 1996, 2006 # msgid "" msgstr "" -"Project-Id-Version: recode 3.5\n" +"Project-Id-Version: recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-09-14 22:51+01:00\n" -"Last-Translator: Daniel Naber \n" -"Language-Team: German \n" +"PO-Revision-Date: 2006-12-09 19:25+0100\n" +"Last-Translator: Karl Eichwalder \n" +"Language-Team: German \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-1\n" -"Content-Transfer-Encoding: 8-bit\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" #: src/main.c:142 msgid "No error" @@ -20,7 +20,7 @@ #: src/main.c:145 msgid "Non canonical input" -msgstr "Keine gltige Eingabe" +msgstr "Keine gültige Eingabe" #: src/main.c:148 msgid "Ambiguous output" @@ -28,15 +28,15 @@ #: src/main.c:151 msgid "Untranslatable input" -msgstr "Nicht bersetzbare Eingabe" +msgstr "Nicht übersetzbare Eingabe" #: src/main.c:154 msgid "Invalid input" -msgstr "Ungltige Eingabe" +msgstr "Ungültige Eingabe" #: src/main.c:157 msgid "System detected problem" -msgstr "Das System ist auf ein Problem gestossen" +msgstr "Das System ist auf ein Problem gestoßen" #: src/main.c:160 msgid "Misuse of recoding library" @@ -62,23 +62,22 @@ "along with this program; if not, write to the Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" msgstr "" -"Der folgende Text ist eine nicht berprfte bersetzung, die zur\n" +"Der folgende Text ist eine nicht überprüfte Übersetzung, die zur\n" "Information dient; in rechtlichen Fragen ist immer das englische\n" "Original ausschlaggebend.\n" "\n" -"Dieses Program ist freie Software; Sie knnen es nach den Bedingungen\n" +"Dieses Programm ist freie Software; Sie können es nach den Bedingungen\n" "der von der Free Software Foundation als \"GNU General Public License\"\n" -"verffentlichten Lizenz weitergeben und/oder verndern; dabei gilt\n" -"die Version 2 oder (frei nach ihrer Wahl) jede sptere Version.\n" +"veröffentlichten Lizenz weitergeben und/oder verändern; dabei gilt\n" +"die Version 2 oder (frei nach ihrer Wahl) jede spätere Version.\n" "\n" -"Dieses Programm wird in der Hoffnung verteilt, da es ntzlich ist,\n" +"Dieses Programm wird in der Hoffnung verteilt, daß es nützlich ist,\n" "jedoch OHNE JEGLICHE GARANTIE; sogar ohne die implizite Garantie der\n" -"MARKTFHIGKEIT oder der ERFLLUNG EINES BESTIMMTEN ZWECKES. In der\n" -"\"GNU General Public License\" knnen weitere Einzelheiten nachgelesen\n" +"MARKTFÄHIGKEIT oder der ERFÜLLUNG EINES BESTIMMTEN ZWECKES. In der\n" +"\"GNU General Public License\" können weitere Einzelheiten nachgelesen\n" "werden.\n" "\n" -"Sie sollten mit diesem Programm eine Kopie der \"GNU General Public " -"License\"\n" +"Sie sollten mit diesem Programm eine Kopie der \"GNU General Public License\"\n" "erhalten haben; wenn nicht, schreiben Sie an die Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" @@ -88,10 +87,9 @@ msgstr "`%s %s' zeigt weitere Informationen.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" msgstr "" -"`recode' konvertiert Dateien zwischen diversen Zeichenstzen und\n" +"`recode' konvertiert Dateien zwischen diversen Zeichensätzen und\n" "-formaten.\n" #: src/main.c:241 @@ -110,18 +108,16 @@ "for the equivalent short option also. Similarly for optional arguments.\n" msgstr "" "\n" -"Wenn eine Option ein Argument zwingend braucht, gilt das unabhngig\n" +"Wenn eine Option ein Argument zwingend braucht, gilt das unabhängig\n" "davon, ob die Kurz- oder Langschreibweise der Option benutzt wird.\n" -"Entsprechendes gilt fr optionale Argumente.\n" +"Entsprechendes gilt für optionale Argumente.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -131,15 +127,12 @@ msgstr "" "\n" "Auflistungen:\n" -" -l, --list[=FORMAT] Einen oder alle bekannten Zeichenstze " -"auflisten\n" -" -k, --known=PAARE Zeichenstze auf Liste bekannter PAARE " -"beschrnken\n" -" -h, --header[=[LN/]NAME] LN-Code fr Tabelle NAME ausgeben\n" +" -l, --list[=FORMAT] Einen oder alle bekannten Zeichensätze auflisten\n" +" -k, --known=PAARE Zeichensätze auf Liste bekannter PAARE beschränken\n" +" -h, --header[=[LN/]NAME] LN-Code für Tabelle NAME ausgeben\n" " -F, --freeze-tables Ein C-Modul mit allen Tabellen ausgeben\n" -" -T, --find-subsets Alle Zeichenstze ausgeben, die Untermengen " -"von\n" -" anderen Zeichenstzen sind\n" +" -T, --find-subsets Alle Zeichensätze ausgeben, die Untermengen von\n" +" anderen Zeichensätzen sind\n" " -C, --copyright Copyright und Kopierbedingungen anzeigen\n" " --help Diese Hilfe anzeigen\n" " --version Versionsnummer ausgeben\n" @@ -157,23 +150,18 @@ msgstr "" "\n" "Funktionsmodi:\n" -" -v, --verbose Reihenfolge der Umkodierungsschritte und " -"Fortschritt\n" +" -v, --verbose Reihenfolge der Umkodierungsschritte und Fortschritt\n" " anzeigen\n" -" -q, --quiet, --silent Keine Meldungen ber nicht umkehrbare " -"Umkodierungen\n" -" -f, --force Umkodierung vornehmen, auch wenn sie nicht " -"umkehrbar ist\n" -" -t, --touch Nach der Umkodierung ein 'touch' auf die " -"umkodierte\n" -" Datei ausfhren\n" -" -i, --sequence=files Fr Zwischenschritte temporre Dateien anlegen\n" -" --sequence=memory Fr Zwischenschritte Speicherpuffer verwenden\n" +" -q, --quiet, --silent Keine Meldungen über nicht umkehrbare Umkodierungen\n" +" -f, --force Umkodierung vornehmen, auch wenn sie nicht umkehrbar ist\n" +" -t, --touch Nach der Umkodierung ein 'touch' auf die umkodierte\n" +" Datei ausführen\n" +" -i, --sequence=files Für Zwischenschritte temporäre Dateien anlegen\n" +" --sequence=memory Für Zwischenschritte Speicherpuffer verwenden\n" #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr "" -" -p, --sequence=pipe benutze \"pipe\" fr Abarbeitung der Schritte\n" +msgstr " -p, --sequence=pipe benutze \"pipe\" für Abarbeitung der Schritte\n" #: src/main.c:280 msgid " -p, --sequence=pipe same as -i (on this system)\n" @@ -192,19 +180,14 @@ msgstr "" "\n" "Feineinstellungen:\n" -" -s, --strict Strikte Abbildung benutzen, auch bei " -"Zeichenverlust\n" -" -d, --diacritics Nur Akzente/Umlaute umkodieren (z.B. fr " -"HTML/LaTeX)\n" +" -s, --strict Strikte Abbildung benutzen, auch bei Zeichenverlust\n" +" -d, --diacritics Nur Akzente/Umlaute umkodieren (z.B. für HTML/LaTeX)\n" " -S, --source[=LN] Bei LN nur Zeichenketten und Kommentare umkodieren\n" -" -c, --colons benutze ':' statt '\"' fr Umlaute (z.B. 'fu:r' " -"statt\n" +" -c, --colons benutze ':' statt '\"' für Umlaute (z.B. 'fu:r' statt\n" " ('fu\"r')\n" -" -g, --graphics 'Linienzeichen' des IBMPC-Zeichensatzes durch " -"hnliche\n" +" -g, --graphics 'Linienzeichen' des IBMPC-Zeichensatzes durch ähnliche\n" " ASCII-Zeichen darstellen\n" -" -x, --ignore=ZEISATZ ZEISATZ bei der Wahl der Kodierungsschritte " -"ignorieren\n" +" -x, --ignore=ZEISATZ ZEISATZ bei der Wahl der Kodierungsschritte ignorieren\n" #: src/main.c:296 msgid "" @@ -213,36 +196,30 @@ "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" "\n" -"Die Option -l ohne FORMAT und ZEISATZ listet alle Zeichenstze und -formate\n" -"auf. FORMAT ist `decimal', `octal', `hexadecimal' oder `full' (knnen durch " -"den\n" -"Anfangsbuchstaben abgekrzt werden)\n" +"Die Option -l ohne FORMAT und ZEISATZ listet alle Zeichensätze und -formate\n" +"auf. FORMAT ist `decimal', `octal', `hexadecimal' oder `full' (können durch den\n" +"Anfangsbuchstaben abgekürzt werden)\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" -"Wenn die Umgebungsvariable DEFAULT_CHARSET nicht gesetzt ist,\n" -"gilt fr ZEISATZ ist die Voreinstellung `%s'.\n" +"Wenn die Umgebungsvariable DEFAULT_CHARSET nicht gesetzt ist, gilt für ZEISATZ\n" +"die lokale-abhängiges Kodierung, festgelegt von LC_ALL, LC_CTYPE. LANG wird.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" -"Mit '-k' werden mgliche 'Vorher'-Zeichenstze fr den 'Nachher'-ZEISATZ\n" -"ausgegeben, mit PAAREn der Form 'VOR1:NACH1,VOR2:NACH2,...', wobei die VORs " -"und\n" +"Mit '-k' werden mögliche 'Vorher'-Zeichensätze für den 'Nachher'-ZEISATZ\n" +"ausgegeben, mit PAAREn der Form 'VOR1:NACH1,VOR2:NACH2,...', wobei die VORs und\n" "NACHs Kodes sind. Alle Kodes werden als Dezimalzahlen angegeben.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" msgstr "" "LN ist eine Programmiersprache, z.B. `c', `perl' oder `po', wobei `c' die\n" "Voreinstellung ist.\n" @@ -250,24 +227,18 @@ #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" -"ANFRAGE ist UNTERANFRAGE[,UNTERANFRAGE]...; UNTERANFRAGE ist " -"KODIERUNG[..KODIERUNG]...\n" -"KODIERUNG ist [ZEISATZ][/[SURFACE]]...; ANFRAGE ist meistens " -"VORHER..NACHHER,\n" -"wobei VORHER und NACHHER Zeichenstze sind. Ohne ZEISATZ wird der bliche\n" -"Zeichensatz benutzt; ohne [/SURFACE]... wird das fr ZEISATZ bliche Format\n" -"angenommen; ein / ohne Angabe eines Formats heisst, dass kein Format " -"angenommen\n" +"ANFRAGE ist UNTERANFRAGE[,UNTERANFRAGE]...; UNTERANFRAGE ist KODIERUNG[..KODIERUNG]...\n" +"KODIERUNG ist [ZEISATZ][/[SURFACE]]...; ANFRAGE ist meistens VORHER..NACHHER,\n" +"wobei VORHER und NACHHER Zeichensätze sind. Ohne ZEISATZ wird der übliche\n" +"Zeichensatz benutzt; ohne [/SURFACE]... wird das für ZEISATZ übliche Format\n" +"angenommen; ein / ohne Angabe eines Formats heißt, dass kein Format angenommen\n" "wird. Siehe Anleitung.\n" #: src/main.c:323 @@ -280,7 +251,7 @@ "\n" "Wenn weder -i noch -p angegeben sind, wird -p angenommen wenn keine DATEI\n" "angegeben ist, sonst -i.\n" -"Jede DATEI wird bei mit der umkodierten Datei berschrieben. Wenn keine\n" +"Jede DATEI wird bei mit der umkodierten Datei überschrieben. Wenn keine\n" "DATEI angegen ist wird die Standardeingabe umkodiert und auf der\n" "Standardausgabe ausgegeben.\n" @@ -290,45 +261,42 @@ "Report bugs to .\n" msgstr "" "\n" -"Berichte ber Programmfehler bitte an .\n" +"Berichte über Programmfehler bitte an .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Abfolge »%s« ist zweideutig" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Abfolge »%s« ist unbekannt" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Sprache »%s« ist zweideutig" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Sprache »%s« ist unbekannt" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Format »%s« ist zweideutig" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Format »%s« ist unbekannt" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Geschrieben von Franc,ois Pinard .\n" +msgstr "Geschrieben von François Pinard .\n" #: src/main.c:624 msgid "" @@ -344,33 +312,33 @@ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Dieses Programm ist freie Software; die genauen Nutzungsbedingungen\n" -"sind der Datei COPYING in den Quellen zu entnehmen.\n" -"Es wird keinerlei Gewhrleistung bernommen; auch nicht fr gewerbliche\n" +"sind der Datei »COPYING« in den Quellen zu entnehmen.\n" +"Es wird keinerlei Gewährleistung übernommen; auch nicht für gewerbliche\n" "Nutzbarkeit oder Tauglichkeit zu einem anderen Zweck.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Symbol »%s« ist unbekannt" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Zeichensatz »%s« ist unbekannt oder zweideutig" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Erforderliches Argument fehlt" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "Veraltete Syntax, bitte `%s' benutzen" +msgstr "Veraltete Syntax, bitte »%s« bevorzugen" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Anfrage »%s« ist fehlerhaft" #: src/main.c:903 #, c-format @@ -382,19 +350,19 @@ msgstr " fertig\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " fehlgeschlagen: %s in %s..%s\n" +msgstr " fehlgeschlagen: %s bei Schritt »%s..%s«\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s fehlgeschlagen: %s in %s..%s" +msgstr "%s fehlgeschlagen: %s bei Schritt »%s..%s«" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s bei %s..%s" +msgstr "%s bei Schritt »%s..%s«" #: src/names.c:335 #, c-format @@ -405,8 +373,8 @@ #, c-format msgid "Cannot list `%s', no names available for this charset" msgstr "" -"Kann `%s' nicht anzeigen, keine Namen fr diesen Zeichensatz\n" -" verfgbar" +"Kann `%s' nicht anzeigen, keine Namen für diesen Zeichensatz\n" +" verfügbar" #. code counter #. expected value for code counter @@ -420,17 +388,17 @@ #: src/names.c:1049 #, c-format msgid "Sorry, no names available for `%s'" -msgstr "Tut mir leid, aber es sind fr `%s' keine Namen verfgbar" +msgstr "Tut mir leid, aber es sind für `%s' keine Namen verfügbar" #: src/outer.c:125 #, c-format msgid "Resurfacer set more than once for `%s'" -msgstr "`Resurfacer' fr `%s' mehr als einmal gesetzt." +msgstr "`Resurfacer' für `%s' mehr als einmal gesetzt." #: src/outer.c:133 #, c-format msgid "Unsurfacer set more than once for `%s'" -msgstr "`Unsurfacer' fr `%s' mehr als einmal gesetzt." +msgstr "`Unsurfacer' für `%s' mehr als einmal gesetzt." #: src/recode.c:115 src/recode.c:127 msgid "Virtual memory exhausted" @@ -453,7 +421,7 @@ #: src/recode.c:224 src/recode.c:236 #, c-format msgid "Following diagnostics for `%s' to `%s'" -msgstr "Folgende Diagnose fr Konvertierung von `%s' nach `%s'" +msgstr "Folgende Diagnose für Konvertierung von `%s' nach `%s'" #: src/recode.c:229 src/recode.c:241 #, c-format @@ -462,27 +430,26 @@ #: src/recode.c:272 msgid "Cannot complete table from set of known pairs" -msgstr "" -"Kann die Tabelle aus der Menge der bekannten Paare nicht vervollstndigen" +msgstr "Kann die Tabelle aus der Menge der bekannten Paare nicht vervollständigen" #: src/recode.c:497 msgid "Identity recoding, not worth a table" -msgstr "Umkodierung ohne nderung, zu trivial fr eine Tabelle" +msgstr "Umkodierung ohne Änderung, zu trivial für eine Tabelle" #: src/recode.c:504 msgid "Recoding is too complex for a mere table" -msgstr "Umkodierung ist fr eine einfache Tabelle zu kompliziert" +msgstr "Umkodierung ist für eine einfache Tabelle zu kompliziert" #. Print the header of the header file. #: src/recode.c:536 #, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%sKonvertierung automatisch generiert von GNU %s %s" +msgstr "%sKonvertierung automatisch generiert von »GNU %s %s«" #: src/recode.c:538 #, c-format msgid "%sfor sequence %s.%s" -msgstr "%sfr Folge %s.%s" +msgstr "%sfür Folge %s.%s" #: src/recode.c:744 msgid "No table to print" @@ -511,7 +478,7 @@ #: src/request.c:111 msgid "*Unachievable*" -msgstr "*unmglich*" +msgstr "*unmöglich*" #: src/request.c:113 msgid "*mere copy*" @@ -547,7 +514,7 @@ #: src/request.c:903 #, c-format msgid "No way to recode from `%s' to `%s'" -msgstr "Keine Mglichkeit, von `%s' nach `%s' umzukodieren" +msgstr "Keine Möglichkeit, von `%s' nach `%s' umzukodieren" #: src/request.c:1013 msgid "Expecting `..' in request" @@ -565,29 +532,3 @@ msgstr "" "UCS2 Mne Beschreibung\n" "\n" - -#~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "Fr ZEISATZ existiert keine Voreinstellung, bitte die Umgebungsvariable\n" -#~ "DEFAULT_CHARSET setzen.\n" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "Mehrdeutige Folge `%s'" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Unbekannte Folge `%s'" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Mehrdeutiger Zeichensatz `%s'" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Unbekannter Zeichensatz `%s'" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "Mehrdeutiges Format `%s'" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Unbekanntes Format `%s'" - -#~ msgid "Erroneous request `%s'" -#~ msgstr "Fehlerhafte Anfrage `%s'" --- a/i18n/el.po +++ b/i18n/el.po @@ -1,57 +1,57 @@ # Greek messages for GNU recode -# Copyright (C) 1999 Free Software Foundation, Inc. -# Simos Xenitellis , 1999. +# Copyright (C) 1999, 2008 Free Software Foundation, Inc. +# Simos Xenitellis , 1999, 2008. # msgid "" msgstr "" -"Project-Id-Version: GNU recode 3.4r\n" +"Project-Id-Version: GNU recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-06-13 01:30+0000\n" -"Last-Translator: Simos Xenitellis \n" -"Language-Team: Greek \n" +"PO-Revision-Date: 2008-02-13 01:30+0000\n" +"Last-Translator: Simos Xenitellis \n" +"Language-Team: Greek \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-7\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" # src/main.c:157 #: src/main.c:142 msgid "No error" -msgstr " " +msgstr "Κανένα σφάλμα" # src/main.c:160 #: src/main.c:145 msgid "Non canonical input" -msgstr " " +msgstr "Μη κανονικοποιημένη είσοδος" # src/main.c:163 #: src/main.c:148 msgid "Ambiguous output" -msgstr " " +msgstr "Ασαφής έξοδος" # src/main.c:166 #: src/main.c:151 msgid "Untranslatable input" -msgstr " " +msgstr "Μη μεταφράσιμη είσοδος" # src/main.c:169 #: src/main.c:154 msgid "Invalid input" -msgstr " " +msgstr "Μη έγκυρη είσοδος" # src/main.c:172 #: src/main.c:157 msgid "System detected problem" -msgstr " " +msgstr "Το σύστημα διαπίστωσε πρόβλημα" # src/main.c:175 #: src/main.c:160 msgid "Misuse of recoding library" -msgstr " recode" +msgstr "Κακή χρήση της βιβλιοθήκης recode" # src/main.c:178 #: src/main.c:163 msgid "Internal recoding bug" -msgstr " (recoding)" +msgstr "Εσωτερικό σφάλμα (recoding)" # src/main.c:454 #: src/main.c:208 @@ -70,33 +70,30 @@ "along with this program; if not, write to the Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" msgstr "" -" \n" -"/ \n" -" GNU Free Software Foundation \n" -" 2 ( ) .\n" -"\n" -" ,\n" -" ; \n" -" .\n" -" GNU General Public License .\n" +"Αυτό το πρόγραμμα είναι ελεύθερο λογισμικό· μπορείτε να το αναδιανείμετε\n" +"και/ή να το τροποποιήσετε σύμφωνα με τους κανόνες της Γενικής Δημόσιας\n" +"Άδειας GNU όπως εκδίδεται από το Free Software Foundation· είτε την\n" +"έκδοση 2 είτε (κατά την προτίμησή σας) οποιασδήποτε μεταγενέστερης έκδοσης.\n" +"\n" +"Αυτό το πρόγραμμα διανέμεται με την ελπίδα ότι θα είναι χρήσιμο,\n" +"αλλά ΧΩΡΙΣ ΚΑΜΙΑ ΕΓΓΫΗΣΗ· χωρίς ούτε έμμεση εγγύηση\n" +"ΛΕΙΤΟΥΡΓΙΚΟΤΗΤΑΣ ή ΚΑΤΑΛΛΗΛΟΤΗΤΑΣ ΓΙΑ ΕΝΑ ΣΥΓΚΕΚΡΙΜΕΝΟ ΣΚΟΠΟ.\n" +"Αναφερθείτε στο GNU General Public License για περισσότερες λεπτομέρειες.\n" "\n" -" GNU\n" -" , Free Software Foundation,\n" +"Θα πρέπει να έχεται λάβει ένα αντίγραφο της Γενικής Δημόσιας Άδειας GNU\n" +"μαζί με αυτό το πρόγραμμα εάν όχι· γράψτε στο Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" # src/main.c:479 #: src/main.c:233 #, c-format msgid "Try `%s %s' for more information.\n" -msgstr " `%s %s' .\n" +msgstr "Δοκιμάστε `%s %s' για περισσότερες πληροφορίες.\n" # src/main.c:483 #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" -" `recode' " -" .\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Το ελεύθερο `recode' μετατρέπει αρχεία μεταξύ ποικίλων συνόλων χαρακτήρων και επιφανειών.\n" # src/main.c:486 #: src/main.c:241 @@ -106,7 +103,7 @@ "Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" msgstr "" "\n" -": %s []... [ [Թ] | []...\n" +"Χρήση: %s [ΕΠΙΛΟΓΗ]... [ [ΣΥΝΟΛΟΧΑΡΑΚΤΉΡΩΝ] | ΑΙΤΗΣΗ [ΑΡΧΕΙΟ]...\n" # src/main.c:489 #: src/main.c:244 @@ -116,9 +113,9 @@ "for the equivalent short option also. Similarly for optional arguments.\n" msgstr "" "\n" -" , \n" -" . \n" -" .\n" +"Αν μια μακρά επιλογή αναφέρει μια παράμετρο σαν υποχρεωτική, τότε είναι\n" +"υποχρεωτική και για την αντίστοιχη σύντομη επιλογή επίσης. Το ίδιο\n" +"και για τις προαιρετικές παραμέτρους.\n" # src/main.c:494 #: src/main.c:250 @@ -127,8 +124,7 @@ "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -137,18 +133,17 @@ " --version output version information and exit\n" msgstr "" "\n" -":\n" -" -l, --list[=] \n" -" -k, --known= \n" -" . -h, " -"--header[=[LN/]] \n" -" LN, \n" -" -F, --freeze-tables C \n" -" -T, --find-subsets \n" -" \n" -" -C, --copyright Copyright \n" -" --help \n" -" --version \n" +"Εμφανίσεις:\n" +" -l, --list[=ΜΟΡΦΗ] εμφάνιση ένα ή όλα τα γνωστά σύνολα χαρακτήρων\n" +" -k, --known=ΖΕΥΓΗ περιορισμός των συνόλων χαρακτήρων σύμφωνα με\n" +" τη λίστα από γνωστά ΖΕΥΓΗ. -h, --header[=[LN/]ΟΝΟΜΑ] εμφάνιση του πίνακα ΟΝΟΜΑ στην κανονική έξοδο\n" +" με χρήση του LN, μετά έξοδος\n" +" -F, --freeze-tables εμφάνιση σε κώδικα C με όλους τους πίνακες\n" +" -T, --find-subsets αναφορά όλων των συνόλων χαρακτήρων που είναι\n" +" υποσύνολα σε άλλα\n" +" -C, --copyright εμφάνιση του Copyright και κανόνων αντιγραφής\n" +" --help εμφάνιση αυτής της βοήθειας και έξοδος\n" +" --version εμφάνιση πληροφοριών έκδοσης και έξοδος\n" # src/main.c:506 #: src/main.c:263 @@ -163,26 +158,24 @@ " --sequence=memory use memory buffers for sequencing passes\n" msgstr "" "\n" -" :\n" -" -v, --verbose \n" -" -q, --quiet, --silent - \n" -" -f, --force " -"\n" -" -t, --touch " -"\n" -" \n" -" -i, --sequence=files \n" -" --sequence=memory \n" +"Καταστάσεις λειτουργίας:\n" +" -v, --verbose αναφορά διαδοχής βημάτων και προόδου\n" +" -q, --quiet, --silent απόκρυψη μηνυμάτων μη-αντιστρεπτών μετατροπών\n" +" -f, --force επιβολή μετατροπών ακόμα και αν είναι μη αντιστρεπτές\n" +" -t, --touch ενημέρωση της ημερομηνίας των μετατρεπομένων αρχείων\n" +" μετά την αντικατάσταση\n" +" -i, --sequence=files χρήση ενδιάμεσων αρχείων στα διαδοχικά περάσματα\n" +" --sequence=memory χρήση ενταμιευτών μνήμης στα διαδοχικά περάσματα\n" # src/main.c:517 #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr " -p, --sequence=pipe \n" +msgstr " -p, --sequence=pipe χρήση σωλήνωσης στα διαδοχικά περάσματα\n" # src/main.c:521 #: src/main.c:280 msgid " -p, --sequence=pipe same as -i (on this system)\n" -msgstr " -p, --sequence=pipe -i ( )\n" +msgstr " -p, --sequence=pipe το ίδιο με -i (σε αυτό το σύστημα)\n" # src/main.c:525 #: src/main.c:285 @@ -197,18 +190,14 @@ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" msgstr "" "\n" -":\n" -" -s, --strict , " -"\n" -" -d, --diacritics " -"HTML/LaTeX\n" -" -S, --source[=LN] \n" -" LN\n" -" -c, --colons " -"\n" -" -g, --graphics IBMPC ASCII \n" -" -x, --ignore= () " -" \n" +"Ρυθμίσεις:\n" +" -s, --strict χρήση αυστηρών συσχετίσεων, ακόμα και ελεύθερων χαρακτήρων\n" +" -d, --diacritics μετατροπή μόνο διακριτικών ή παρόμοιων για HTML/LaTeX\n" +" -S, --source[=LN] περιορισμός μετατροπών σε αλφαριθμητικά και σχόλια\n" +" κάτα το LN\n" +" -c, --colons χρήση κολώνων αντί διπλών εισαγωγικών για τη διαίρεση\n" +" -g, --graphics προσέγγιση κανόνων IBMPC με ASCII γραφικά\n" +" -x, --ignore=ΠΙΝΧΑΡ αγνόηση πίνακα χαρακτήρων (ΠΙΝΧΑΡ) στην επιλογή μονοπατιού μετατροπών\n" # src/main.c:294 #: src/main.c:296 @@ -218,66 +207,54 @@ "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" "\n" -" -l , , \n" -" . `decimal', `octal', `hexadecimal'\n" -" `full' ( `dohf').\n" +"Η επιλογή -l χωρίς ΜΟΡΦΗ, ούτε ΠΙΝΧΑΡ, απαριθμεί τους διαθέσιμους πίνακες\n" +"χαρακτήρων και επιφάνειες. ΜΟΡΦΗ είναι `decimal', `octal', `hexadecimal'\n" +"ή `full' (ή ένα από τα `dohf').\n" # src/main.c:302 #: src/main.c:302 #, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" -" DEFAULT_CHARSET,\n" -" (CHARSET) ' `%s'.\n" +"Εκτός και αν έχει οριστεί η μεταβλητή περιβάλλοντος DEFAULT_CHARSET,\n" +"ο πίνακας χαρακτήρων (CHARSET) είναι ως προεπιλογή το `%s'.\n" # src/main.c:540 #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" -" -k, \n" -" (CHARSET), ,\n" -" `1:1,1:2,...'\n" -" , , .\n" +"Με -k, πιθανοί προηγούμενοι πίνακες χαρακτήρων εμφανίζονται για το δοθέν\n" +"επόμενο πίνακα χαρακτήρων (CHARSET), όντας και τα δύο σε μορφή πεδίων,\n" +"σε ΖΕΥΓΗ της μορφής `ΠΡΟΗΓ1:ΕΠΟΜΕΝ1,ΠΡΟΗΓ1:ΕΠΟΜΕΝ2,...'\n" +"και τα ΠΡΟΗΓ και ΕΠΟΜΕΝ, όντας κωδικοί, δίνονται ως αριθμοί.\n" # src/main.c:318 #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" -"LN , `c', `perl' `po' ' " -"`c'.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN είναι μια γλώσσα, μπορεί να είναι `c', `perl' ή `po'· προεπιλογή είναι το `c'.\n" # src/main.c:321 #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" -" [,]... " -"[...]...\n" -" [][/[]]... " -"...,\n" -" . \n" -" , " -"[/]...\n" -" , /\n" -" . " -".\n" +"ΑΙΤΗΣΗ είναι ΥΠΟΑΙΤΗΣΗ[,ΥΠΟΑΙΤΗΣΗ]...· ΥΠΟΑΙΤΗΣΗ είναι ΚΩΔΙΚΟΠΟΙΗΣΗ[...ΚΩΔΙΚΟΠΟΙΗΣΗ]...\n" +"ΚΩΔΙΚΟΠΟΙΗΣΗ είναι [ΠΙΝΧΑΡ][/[ΕΠΙΦΑΝΕΙΑ]]...· ΑΙΤΗΣΗ συνήθως μοιάζει με ΠΡΟΗΓΟΥΜΕΝΟ...ΕΠΟΜΕΝΟ,\n" +"με ΠΡΟΗΓΟΥΜΕΝΟ και ΕΠΟΜΕΝΟ να είναι πίνακες χαρακτήρων. Ένας ΠΙΝΧΑΡ που\n" +"έχει παραληφθεί, υποδηλώνει το συνήθες πίνακα χαρακτήρων· ένα [/ΕΠΙΦΑΝΕΙΑ]...\n" +"που έχει παραληφθεί, σημαίνει τις υποδηλωμένες επιφάνειες του ΠΙΝΧΑΡ ένα /\n" +"χωρίς όνομα επιφάνειας σημαίνει χωρίς καθόλου επιφάνειες. Κοιτάξτε το εγχειρίδιο.\n" # src/main.c:556 #: src/main.c:323 @@ -288,11 +265,10 @@ "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" "\n" -" -i -p , -p , " -" -i.\n" -" , .\n" -" , \n" -" .\n" +"Αν κανένα από τα -i και -p δε δίδονται, θεώρησε -p αν δεν υπάρχει ΑΡΧΕΙΟ, αλλιώς -i.\n" +"Κάθε ΑΡΧΕΙΟ μετατρέπεται πάνω στον εαυτό του, καταστρέφοντας το πρωτότυπο.\n" +"Αν κανένα ΑΡΧΕΙΟ δεν έχει οριστεί, τότε φέρσου σαν φίλτρο και μετέτρεψε\n" +"την κανονική είσοδο στην κανονική έξοδο.\n" # src/main.c:562 #: src/main.c:329 @@ -301,7 +277,7 @@ "Report bugs to .\n" msgstr "" "\n" -" .\n" +"Αναφέρατε σφάλματα στο .\n" #: src/main.c:430 #, c-format @@ -336,11 +312,8 @@ # src/main.c:854 #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -" Franc,ois Pinard .\n" +msgstr "Γραμμένο από τον Franc,ois Pinard .\n" # src/main.c:622 #: src/main.c:624 @@ -357,10 +330,9 @@ "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" -" " -".\n" -" \n" -" .\n" +"Αυτό είναι ελεύθερο λογισμικό· δείτε το πηγαίο κώδικα για τους κανόνες αντιγραφής.\n" +"ΔΕΝ υπάρχει εγγύηση· ούτε ακόμα για ΧΡΗΣΙΜΟΤΗΤΑ ή ΚΑΤΑΛΛΗΛΟΤΗΤΑ ΓΙΑ ΕΝΑ\n" +"ΣΥΓΚΕΚΡΙΜΕΝΟ ΣΚΟΠΟ.\n" #: src/main.c:669 #, c-format @@ -380,7 +352,7 @@ #: src/main.c:797 #, fuzzy, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr " , `%s'" +msgstr "Μη συνιστώμενη σύνταξη, παρακαλώ προτιμίστε `%s'" #: src/main.c:803 #, c-format @@ -391,44 +363,42 @@ #: src/main.c:903 #, c-format msgid "Recoding %s..." -msgstr " %s..." +msgstr "Μετατροπή του %s..." # src/main.c:1108 #: src/main.c:913 msgid " done\n" -msgstr " \n" +msgstr " έγινε\n" # src/main.c:1142 #: src/main.c:954 #, fuzzy, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " : %s %s..%s\n" +msgstr " απέτυχε: %s σε %s..%s\n" # src/main.c:1149 #: src/main.c:961 #, fuzzy, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s : %s %s..%s" +msgstr "%s απέτυχε: %s σε %s..%s" # src/main.c:1172 #: src/main.c:984 #, fuzzy, c-format msgid "%s in step `%s..%s'" -msgstr "%s %s..%s" +msgstr "%s σε %s..%s" # src/names.c:259 #: src/names.c:335 #, c-format msgid "Charset %s already exists and is not %s" -msgstr " %s %s" +msgstr "Ο πίνακας χαρακτήρων %s υπάρχει ήδη και δεν είναι το %s" # src/names.c:754 #: src/names.c:831 #, c-format msgid "Cannot list `%s', no names available for this charset" -msgstr "" -" `%s', " -" " +msgstr "Αδυναμία εμφάνισης του `%s', δεν υπάρχουν ονόματα διαθέσιμα για αυτόν τον πίνακα χαρακτήρων" # src/names.c:974 src/names.c:1020 #. code counter @@ -444,99 +414,97 @@ #: src/names.c:1049 #, c-format msgid "Sorry, no names available for `%s'" -msgstr ", `%s'" +msgstr "Συγνώμη, δεν υπάρχουν διαθέσιμα ονόματα για το `%s'" # src/outer.c:95 #: src/outer.c:125 #, c-format msgid "Resurfacer set more than once for `%s'" -msgstr "" -" `%s'" +msgstr "Ο επανατοποθετητής επιφάνειας έχει τεθεί περισσότερο από μια φορά για το `%s'" # src/outer.c:102 #: src/outer.c:133 #, c-format msgid "Unsurfacer set more than once for `%s'" -msgstr "" -" `%s'" +msgstr "Ο αντιτοποθετητής επιφάνειας έχει τεθεί περισσότερο από μια φορά για το `%s'" # src/recode.c:117 src/recode.c:129 #: src/recode.c:115 src/recode.c:127 msgid "Virtual memory exhausted" -msgstr " " +msgstr "Η ιδεατή μνήμη εξαντλήθηκε" # src/recode.c:157 #: src/recode.c:155 #, c-format, ycp-format msgid "Codes %3d and %3d both recode to %3d" -msgstr " %3d %3d %3d" +msgstr "Και οι δύο κωδικοί %3d και %3d μετατρέπονται σε %3d" # src/recode.c:171 #: src/recode.c:169 #, c-format, ycp-format msgid "No character recodes to %3d" -msgstr " %3d" +msgstr "Κανένας χαρακτήρας δεν μετατρέπεται σε %3d" # src/recode.c:172 #: src/recode.c:170 msgid "Cannot invert given one-to-one table" -msgstr " 1-1 " +msgstr "Αδυναμία αντιστροφής δοθέντος 1-1 πίνακα" # src/recode.c:226 src/recode.c:238 #: src/recode.c:224 src/recode.c:236 #, c-format msgid "Following diagnostics for `%s' to `%s'" -msgstr " `%s' `%s'" +msgstr "Ακολουθούν διαγνωστικά για `%s' σε `%s'" # src/recode.c:231 src/recode.c:243 #: src/recode.c:229 src/recode.c:241 #, c-format msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" -msgstr ". %d: <%3d, %3d> <%3d, %3d>" +msgstr "Αριθμ. ζεύγους %d: <%3d, %3d> συγκρούεται με <%3d, %3d>" # src/recode.c:274 #: src/recode.c:272 msgid "Cannot complete table from set of known pairs" -msgstr " " +msgstr "Αδυναμία συμπλήρωσης πίνακα από το σύνολο γνωστών ζευγών" # src/recode.c:504 #: src/recode.c:497 msgid "Identity recoding, not worth a table" -msgstr " , " +msgstr "Μηδαμηνή μετατροπή, δεν χρειάζεται πίνακα" # src/recode.c:512 #: src/recode.c:504 msgid "Recoding is too complex for a mere table" -msgstr " " +msgstr "Η μετατροπή είναι πολύ περίπλοκη για ένα μόνο πίνακα" # src/recode.c:544 #. Print the header of the header file. #: src/recode.c:536 #, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%s `%s' %s" +msgstr "%sΠίνακας μετατροπής δημιουργήθηκε μηχανικά από το Ελεύθερο `%s' %s" # src/recode.c:546 #: src/recode.c:538 #, c-format msgid "%sfor sequence %s.%s" -msgstr "%s %s.%s" +msgstr "%sγια διαδοχή %s.%s" # src/recode.c:736 #: src/recode.c:744 msgid "No table to print" -msgstr " " +msgstr "Κανένας πίνακας για εκτύπωση" # src/request.c:35 #: src/request.c:34 msgid "reversible" -msgstr "" +msgstr "αντιστρεπτό" # src/request.c:37 #: src/request.c:36 #, c-format msgid "%s to %s" -msgstr "%s %s" +msgstr "%s σε %s" # src/request.c:38 src/request.c:40 #: src/request.c:37 src/request.c:39 @@ -551,67 +519,67 @@ # src/request.c:39 src/request.c:41 #: src/request.c:38 src/request.c:40 msgid "variable" -msgstr "" +msgstr "μεταβλητή" # src/request.c:112 #: src/request.c:111 msgid "*Unachievable*" -msgstr "* *" +msgstr "*Μη κατορθωτό*" # src/request.c:114 #: src/request.c:113 msgid "*mere copy*" -msgstr "* *" +msgstr "*απλή αντιγραφή*" # src/request.c:244 #: src/request.c:246 msgid "Virtual memory exhausted!" -msgstr " !" +msgstr "Η ιδεατή μνήμη εξαντλήθηκε!" # src/request.c:263 #: src/request.c:265 msgid "Step initialisation failed" -msgstr " " +msgstr "Το βήμα αρχικοποίησης απέτυχε" # src/request.c:270 #: src/request.c:272 msgid "Step initialisation failed (unprocessed options)" -msgstr " ( )" +msgstr "Το βήμα αρχικοποίησης απέτυχε (επιλογές που δεν έχουν επεξεργαστεί)" # src/request.c:566 #: src/request.c:568 #, c-format msgid "Request: %s\n" -msgstr ": %s\n" +msgstr "Αίτηση: %s\n" # src/request.c:702 #: src/request.c:720 #, c-format msgid "Shrunk to: %s\n" -msgstr " %s\n" +msgstr "Συρρίκνωση σε %s\n" # src/request.c:806 src/request.c:912 #: src/request.c:823 src/request.c:932 #, c-format msgid "Unrecognised surface name `%s'" -msgstr " `%s'" +msgstr "Μη αναγνωρίσημο όνομα επιφάνειας `%s'" # src/request.c:884 #: src/request.c:903 #, c-format msgid "No way to recode from `%s' to `%s'" -msgstr " `%s' `%s'" +msgstr "Κανένας τρόπος να μετατραπεί από `%s' σε `%s'" # src/request.c:992 #: src/request.c:1013 msgid "Expecting `..' in request" -msgstr " `..' " +msgstr "Αναμένεται `..' στην αίτηση" # src/task.c:751 src/task.c:915 #: src/task.c:826 src/task.c:1002 #, c-format msgid "Child process wait status is 0x%0.2x" -msgstr " 0x%0.2x" +msgstr "Η κατάσταση παραμονής της θυγατρικής διεργασίας είναι 0x%0.2x" # src/debug.c:287 #: src/testdump.c:298 @@ -619,39 +587,39 @@ "UCS2 Mne Description\n" "\n" msgstr "" -"UCS2 Mne \n" +"UCS2 Mne Περιγραφή\n" "\n" # src/main.c:308 #~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" #~ msgstr "" -#~ "O ( CHARSET) ' ,\n" -#~ " DEFAULT_CHARSET.\n" +#~ "O ΠΙΝΧΑΡ (πίνακας χαρακτήρων ή CHARSET) δεν έχει εξ' ορισμού τιμή,\n" +#~ "ορίστε τη μεταβλητή περιβάλλοντος DEFAULT_CHARSET.\n" # src/main.c:659 #~ msgid "Ambiguous sequence `%s'" -#~ msgstr " `%s'" +#~ msgstr "Ασαφής συμβολοσειρά `%s'" # src/main.c:663 #~ msgid "Unknown sequence `%s'" -#~ msgstr " `%s'" +#~ msgstr "Άγνωστη συμβολοσειρά `%s'" # src/main.c:693 src/main.c:747 #~ msgid "Ambiguous language `%s'" -#~ msgstr " `%s'" +#~ msgstr "Ασαφής γλώσσα `%s'" # src/main.c:697 src/main.c:751 #~ msgid "Unknown language `%s'" -#~ msgstr " `%s'" +#~ msgstr "Άγνωστη γλώσσα `%s'" # src/main.c:785 #~ msgid "Ambiguous format `%s'" -#~ msgstr " `%s'" +#~ msgstr "Ασαφής μορφή `%s'" # src/main.c:789 #~ msgid "Unknown format `%s'" -#~ msgstr " `%s'" +#~ msgstr "Άγνωστη μορφή `%s'" # src/main.c:1005 #~ msgid "Erroneous request `%s'" -#~ msgstr " `%s'" +#~ msgstr "Εσφαλμένη αίτηση `%s'" --- /dev/null +++ b/i18n/ga.po @@ -0,0 +1,520 @@ +# Irish translations for recode. +# Copyright (C) 2005 Free Software Foundation, Inc. +# Kevin Patrick Scannell , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2005-09-13 18:45-0500\n" +"Last-Translator: Kevin Patrick Scannell \n" +"Language-Team: Irish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr "N raibh aon earrid" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Ionchur neamhchannta" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Aschur dbhroch" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Aschur neamh-inaistrithe" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Ionchur neamhbhail" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Bhraith an cras fadhb" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "M-sid den leabharlann ath-ionchdaithe" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Fabht inmhenach ath-ionchdaithe" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Is saorbhogearra an romhchlr seo; is fidir leat a scaipeadh agus/n\n" +"a athr de rir na gcoinnollacha den GNU General Public License mar at\n" +"foilsithe ag an Free Software Foundation; faoi leagan 2 den cheadnas,\n" +"n (ms mian leat) aon leagan nos dana.\n" +"\n" +"Scaiptear an romhchlr seo le sil go mbeidh s isiil,\n" +"ach GAN AON BARNTA; go fi gan an barntas intuigthe de\n" +"INDOLTACHT n FEILINACHT DO FHEIDHM AR LEITH. Fach ar an\n" +"GNU General Public License chun nos m sonra a fhil.\n" +"\n" +"Ba chomhair go mbeife tar is cip den GNU General Public License a fhil in\n" +"ineacht leis an romhchlr seo; mura bhfuair, scrobh chuig an Free Software\n" +"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Bain triail as `%s %s' chun tuilleadh eolais a fhil.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Tiontaonn saorbhogearra `recode' comhaid idir tacair charachtar agus craicne agsla.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"sid: %s [ROGHA]... [ [TACAR] | IARRATAS [COMHAD]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Is riachtanach le rogha ghearr aon argint at riachtanach\n" +"leis an rogha fhada, agus ar an ns canna leis na hargint roghnacha.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Liost:\n" +" -l, --list[=FORMID] taispein tacair charachtar agus ailiasanna ar eolas\n" +" -k, --known=PIR sid tacair charachtar n liosta PIR amhin\n" +" -h, --header[=[TN/]AINM] scrobh tbla AINM ar stdout le TN, agus scoir\n" +" -F, --freeze-tables scrobh modl C le gach tbla ann\n" +" -T, --find-subsets taispein gach tacar carachtar at i gceann eile\n" +" -C, --copyright taispein Cipcheart agus coinnollacha cipela\n" +" --help taispein an chabhair seo agus scoir\n" +" --version taispein eolas faoin leagan agus scoir\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Mid oibrochta:\n" +" -v, --verbose taispein na cimeanna agus dul chun cinn\n" +" -q, --quiet, --silent n taispein teachtaireachta maidir le\n" +" ath-ionchduithe dochlaithe\n" +" -f, --force frsil ath-ionchd fi ms dochlaithe \n" +" -t, --touch teagmhil na comhaid ath-ionchdaithe tar is\n" +" iad a athshuomh\n" +" -i, --sequence=comhaid sid comhaid idirmhenacha le linn seicheamhaithe\n" +" --sequence=cuimhne sid maolin chuimhne le linn seicheamhaithe\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=popa sid popa le linn seicheamhaithe\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=popa ar comhbhr le -i (ar an gcras seo)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Mionchoigeart:\n" +" -s, --strict sid dianmhapil, fi le carachtair neamhchruinn\n" +" -d, --diacritics tiontaigh diaicritic amhin le haghaidh HTML/LaTeX\n" +" -S, --source[=TN] ath-ionchdaigh teaghrin agus nta amhin, mar le TN\n" +" -c, --colons sid idirstadanna in ionad \" le haghaidh dirise\n" +" -g, --graphics neasaigh rialir IBMPC le grafaic ASCII\n" +" -x, --ignore=TACAR n hsid TACAR agus conair ath-ionchdaithe roghn\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Taispenann rogha -l (gan FORMID gan TACAR) gach tacar carachtar agus\n" +"gach craiceann at ar fil. Is FORMID ceann de `decimal', `octal',\n" +"`hexadecimal' n `full' (n ceann de `dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Mura bhfuil DEFAULT_CHARSET socraithe mar athrg thimpeallachta, sid an\n" +"t-ionchd n logchaighden mar luach ramhshocraithe ar CHARSET;\n" +"socratear an t-ionchd seo leis na hathrga LC_ALL, LC_CTYPE, agus LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Le -k, taispentar gach tacar tosaithe gur fidir a sid leis\n" +"an TACAR deiridh, gach ina tacar tblach. Is san fhoirm\n" +"`TOS1:DEIR1,TOS2:DEIR2,...' iad na PIR, agus na cid TOS1, DEIR1,\n" +"srl. tugtha mar uimhreacha deachlacha.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "Is teanga TN, ceann de `c', `perl' n `po'; is `c' an ramhshocr .\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"Is san fhoirm FOIARRATAS[,FOIARRATAS]... IARRATAS, is san fhoirm\n" +"IONCHD[..IONCHD]... FOIARRATAS, agus is san fhoirm\n" +"[TACARCARACHTAR][/CRAICEANN]]... IONCHD; is IARRATAS cosil le\n" +"TOSACH..DEIREADH go minic, le TOSACH agus DEIREADH ina dtacair\n" +"charachtar. M t TACAR ligthe ar lr, sid an gnth-thacar;\n" +"M t [/CRAICEANN] ar lr, sid an craiceann intuigthe le TACAR;\n" +"Mura bhfuil ach `/' ann gan chraiceann, n hsid craiceann ar chor ar bith.\n" +"Fach ar an lmhleabhar.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Mura bhfuil -i n -p ann, glac le -p mura bhfuil COMHAD ann, agus\n" +"le -i i ngach cs eile. Ath-ionchdatear gach COMHAD anuas air fin,\n" +"agus beidh na bunchipeanna scriosta. Mura bhfuil COMHAD sonraithe,\n" +"oibronn recode mar scagaire, agus ath-ionchdatear stdin go stdout.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Seol tuairisc fabhtanna chuig .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "T an seicheamh `%s' dbhroch" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "T an seicheamh `%s' anaithnid" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "T an teanga `%s' dbhroch" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Teanga anaithnid `%s'" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Formid dhbhroch `%s'" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Formid anaithnid `%s'" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Le Franois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Is saorbhogearra an romhchlr seo; fach ar an bhunchd le haghaidh\n" +"coinnollacha cipela. Nl barnta ar bith ann; go fi nl barnta ann\n" +"d'INDOLTACHT n FEILINACHT DO FHEIDHM AR LEITH.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Siombail anaithnid `%s'" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Tacar carachtar `%s' anaithnid n dbhroch" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Argint riachtanach ar iarraidh" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Comhrir i lig, sid `%s' ina hionad" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Iarratas lochtach `%s'" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "%s ath-ionchd..." + +#: src/main.c:913 +msgid " done\n" +msgstr " crochnaithe\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " teipthe: %s i gcim `%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "theip ar %s: %s i gcim `%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s i gcim `%s..%s'" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "T tacar carachtar %s ann cheana, agus n %s " + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "N fidir `%s' a liost; nl aon ainm ar fil le haghaidh an tacair carachtar seo" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Deach Ocht Heics UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "T brn orm, nl aon ainm ar fil le haghaidh `%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Athchraiceannadir socraithe nos m n uair amhin le haghaidh `%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Feannadir socraithe nos m n uair amhin le haghaidh `%s'" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Cuimhne fhoril dithe" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Ath-ionchdaonn na cid %3d agus %3d go dt %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Nl aon charachtar a ath-ionchdatear go dt %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "N fidir an tbla tugtha aon-le-haon a inbhart" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Diagnisic le haghaidh `%s' go `%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Pire uimh. %d: tagann <%3d, %3d> agus <%3d, %3d> salach ar a chile" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "N fidir an tbla a chur i gcrch le tacar de phir at ar eolas" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Ath-ionchd ionannais; n fi tbla " + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Is rchasta an t-ath-ionchd mura bhfuil ach tbla ann" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sTbla tiontaithe ginte go huathoibroch ag saorbhogearr `%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%sle haghaidh sheichimh %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Nl tbla ann le priontil" + +#: src/request.c:34 +msgid "reversible" +msgstr "inchlaithe" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s go %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "beart" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "athrg" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Dodhanta*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*lomchip*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Cuimhne fhoril dithe!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Theip ar ths na cime" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Theip ar ths na cime (roghanna gan phriseil)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Iarratas: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Crapadh go: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Ainm anaithnid craicinn `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "N fidir `%s' a ath-ionchd mar `%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Bhothas ag sil le `..' san iarratas" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Is 0x%0.2x stdas feithimh le haghaidh an mhacphrisis" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Cur Sos\n" +"\n" --- a/i18n/nl.po +++ b/i18n/nl.po @@ -1,50 +1,54 @@ -# Dutch messages for GNU recode. -# Copyright (C) 1996 Free Software Foundation, Inc. -# Erick Branderhorst , 1996. +# Translation of recode-3.6 to Dutch. +# Copyright (C) 1996, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# This file is distributed under the same license as the recode package. # +# Erick Branderhorst , 1996. +# Taco Witte , 2004, 2005. +# Benno Schulenberg , 2006, 2007. msgid "" msgstr "" -"Project-Id-Version: recode 3.4.2\n" +"Project-Id-Version: recode 3.6\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1996-10-07 10:05 MET DST\n" -"Last-Translator: Erick Branderhorst \n" -"Language-Team: Dutch \n" +"PO-Revision-Date: 2007-10-16 19:30+0200\n" +"Last-Translator: Benno Schulenberg \n" +"Language-Team: Dutch \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-1\n" -"Content-Transfer-Encoding: 8-bit\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" #: src/main.c:142 msgid "No error" -msgstr "" +msgstr "Geen fout" #: src/main.c:145 msgid "Non canonical input" -msgstr "" +msgstr "Niet-canonieke invoer" #: src/main.c:148 -#, fuzzy msgid "Ambiguous output" -msgstr "Dubbelzinnig format `%s'" +msgstr "Niet-eenduidige uitvoer" #: src/main.c:151 msgid "Untranslatable input" -msgstr "" +msgstr "Onvertaalbare invoer" #: src/main.c:154 msgid "Invalid input" -msgstr "" +msgstr "Ongeldige invoer" #: src/main.c:157 msgid "System detected problem" -msgstr "" +msgstr "Systeem heeft fout gevonden" #: src/main.c:160 msgid "Misuse of recoding library" -msgstr "" +msgstr "Verkeerd gebruik van hercoderings-bibliotheek" #: src/main.c:163 msgid "Internal recoding bug" -msgstr "" +msgstr "**Interne fout** bij hercoderen" #: src/main.c:208 msgid "" @@ -62,38 +66,38 @@ "along with this program; if not, write to the Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" msgstr "" -"Dit programma is vrije software; het mag gedistribueerd en/of\n" -"veranderd worden onder de voorwaarden van de GNU General Public\n" -"License zoals gepubliceerd door de Free Software Foundation; versie 2,\n" -"of (als je daar voor kiest) enig latere versie.\n" -"\n" -"Dit programma is gedistribueerd in de hoop dat het bruikbaar is, maar\n" -"ZONDER ENIGE GARANTIE; zelfs zonder de geompliceerde garantie van\n" -"MERCHANTABILITY of GESCHIKTHEID VOOR EEN SPECIFIEK GEBRUIKSDOEL. Zie\n" -"de GNU General Public License voor verdere details.\n" -"\n" -"Samen met dit programma heb je een copie ontvangen van de GNU General\n" -"Public License; zo niet, schrijf dan naar de Free Software Foundation,\n" -"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +"Dit programma is vrije software; u mag het verder verspreiden en/of\n" +"wijzigen onder de voorwaarden van de GNU General Public License zoals\n" +"gepubliceerd door de Free Software Foundation, naar keuze ofwel onder\n" +"versie 2 ofwel onder een nieuwere versie van die licentie.\n" +"\n" +"Dit programma wordt uitgegeven in de hoop dat het nuttig is,\n" +"maar ZONDER ENIGE GARANTIE; zelfs zonder de impliciete garantie\n" +"van VERKOOPBAARHEID of GESCHIKTHEID VOOR EEN BEPAALD DOEL.\n" +"Zie de GNU General Public License voor meer details.\n" +"\n" +"Bij dit programma hoort u een kopie van de GNU General Public License\n" +"ontvangen te hebben; is dit niet het geval, schrijf dan naar\n" +"Free Software Foundation, Inc., 51 Franklin Street, fifth floor,\n" +"Boston, MA 02110-1301, USA.\n" #: src/main.c:233 #, c-format msgid "Try `%s %s' for more information.\n" -msgstr "Probeer `%s %s' voor meer informatie.\n" +msgstr "Typ '%s %s' voor meer informatie.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "'recode' converteert bestanden van en naar allerlei tekensets en oppervlakken.\n" #: src/main.c:241 -#, fuzzy, c-format +#, c-format msgid "" "\n" "Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" msgstr "" "\n" -"Gebruik: %s [OPTIE]... [KARAKTERSET]\n" +"Gebruik: %s [OPTIE]... [ [TEKENSET] | VERZOEK [BESTAND]... ]\n" #: src/main.c:244 msgid "" @@ -101,14 +105,16 @@ "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also. Similarly for optional arguments.\n" msgstr "" +"\n" +"Een argument dat verplicht of optioneel is voor een lange optie, is dat\n" +"ook voor de overeenkomstige korte optie.\n" #: src/main.c:250 msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -116,6 +122,19 @@ " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" +"\n" +"Opsommingen:\n" +" -l, --list[=PRESENTATIE] alle bekende tekensets en aliassen opsommen,\n" +" of een tekenset in tabelvorm presenteren\n" +" -k, --known=PAREN opsomming beperken volgens deze bekende PAREN\n" +" -h, --header[=[TL/]NAAM] tabel NAAM naar standaarduitvoer schrijven\n" +" (in taal TL) en stoppen\n" +" -F, --freeze-tables een C-module schrijven die alle tabellen bevat\n" +" -T, --find-subsets alle tekensets opsommen die deelverzameling van\n" +" anderen zijn\n" +" -C, --copyright auteursrecht en kopieervoorwaarden tonen\n" +" --help deze hulptekst tonen en stoppen\n" +" --version versie-informatie tonen en stoppen\n" #: src/main.c:263 msgid "" @@ -128,20 +147,24 @@ " -i, --sequence=files use intermediate files for sequencing passes\n" " --sequence=memory use memory buffers for sequencing passes\n" msgstr "" +"\n" +"Werkingsmodus:\n" +" -v, --verbose tussenstappen uitleggen en voortgang tonen\n" +" -q, --quiet, --silent niets zeggen over onomkeerbare hercoderingen\n" +" -f, --force hercodering afdwingen, ook als deze onomkeerbaar is\n" +" -t, --touch tijdsstempel van gehercodeerde bestanden aanpassen\n" +" -i, --sequence=files tijdelijke bestanden gebruiken voor tussenstappen\n" +" --sequence=memory geheugenbuffers gebruiken voor tussenstappen\n" #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr "" -" -p, --sequence=pipe gebruik pipe machinery for sequencing passes " -"(FIXME)\n" +msgstr " -p, --sequence=pipe 'pipes' gebruiken voor tussenstappen\n" #: src/main.c:280 -#, fuzzy msgid " -p, --sequence=pipe same as -i (on this system)\n" -msgstr " -p, --sequence=pipe zelfde als -o (op dit systeem)\n" +msgstr " -p, --sequence=pipe hetzelfde als -i (op dit systeem)\n" #: src/main.c:285 -#, fuzzy msgid "" "\n" "Fine tuning:\n" @@ -153,21 +176,16 @@ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" msgstr "" "\n" -" -c, --colons gebruik punt in plaats van dubbele kwoots \n" -" voor diakritische tekens\n" -" -d, --diacritics limiteer conversie naar diakritische tekens of " -"zoals \n" -" voor LaTeX\n" -" -f, --force forceer omzetting zelfs als deze niet omkeerbaar " -"is\n" -" (LET OP: in deze versie, wordt altijd -f " -"gebruikt)\n" -" -g, --graphics benadering IBMPC lijnen met ASCII grafische " -"tekens\n" -" -h, --header[=NAAM] schrijf C code met tabel NAAM naar " -"standaarduitvoer\n" -" -i, --sequence=files gebruik tussen bestanden voor achtereenvolgende \n" -" sessies\n" +"Fijnafstelling:\n" +" -s, --strict strikt converteren, ook als dit tekens verliest\n" +" -d, --diacritics alleen diakritische tekens en dergelijke converteren\n" +" voor HTML/LaTeX\n" +" -S, --source[=TL] hercoderen beperken tot commentaar en tekenreeksen\n" +" als in taal TL ('c', 'perl', of 'po')\n" +" -c, --colons voor een trema een dubbele punt in plaats van een\n" +" dubbel aanhalingsteken gebruiken\n" +" -g, --graphics IBMPC-lijntjes benaderen met ASCII-tekens\n" +" -x, --ignore=TEKENSET TEKENSET negeren bij keuze van hercodeertraject\n" #: src/main.c:296 msgid "" @@ -175,39 +193,49 @@ "Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" +"\n" +"Optie -l zonder PRESENTATIE of TEKENSET somt de beschikbare tekensets en\n" +"oppervlakken op. PRESENTATIE is 'decimal', 'octal', 'hexadecimal' of\n" +"'full' (volledig), die afgekort mogen worden tot 'd', 'o', 'h' en 'f'.\n" #: src/main.c:302 msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" +"Tenzij omgevingsvariabele DEFAULT_CHARSET is ingesteld, gebruikt TEKENSET\n" +"standaard de taalafhankelijke codering, bepaald door LC_ALL, LC_CTYPE, LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" +"Met optie -k worden voor de gegeven NA-tekenset de mogelijke VOOR-tekensets\n" +"opgesomd, als tabel van PAREN in de vorm 'VOOR1:NA1,VOOR2:NA2,...', waarbij\n" +"de VOORs en NAs als decimale getallen gegeven worden.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "TL is een taal, en kan 'c', 'perl' of 'po' zijn; 'c' is standaard.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" +"\n" +"VERZOEK is DEELVERZOEK[,DEELVERZOEK]...; DEELVERZOEK is CODERING[..CODERING]...\n" +"CODERING is [TEKENSET][/[OPPERVLAK]]...; VERZOEK ziet er vaak uit als VOOR..NA,\n" +"waarbij VOOR en NA tekensets zijn. Een weggelaten TEKENSET impliceert de\n" +"gebruikelijke tekenset; een weggelaten [/OPPERVLAK]... betekent de impliciete\n" +"oppervlakken voor TEKENSET; een / met een lege oppervlaknaam betekent helemaal\n" +"geen oppervlak. Zie ook de handleiding.\n" #: src/main.c:323 msgid "" @@ -216,200 +244,201 @@ "Each FILE is recoded over itself, destroying the original. If no\n" "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" +"\n" +"Als er geen -i of -p gegeven is, wordt -p aangenomen als er geen BESTAND\n" +"gegeven is, anders -i. Elk BESTAND wordt over zichzelf gehercodeerd; het\n" +"origineel wordt dus overschreven.\n" +"Als er geen BESTAND gegeven is, functioneert 'recode' als een filter en\n" +"wordt van standaardinvoer naar standaarduitvoer gehercodeerd.\n" #: src/main.c:329 -#, fuzzy msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" -"Meld fouten via .\n" +"Rapporteer gebreken in het programma aan ;\n" +"meld fouten in de vertaling aan .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Reeks '%s' is niet eenduidig" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Reeks '%s' is onbekend" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Taal '%s' is niet eenduidig" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Taal '%s' is onbekend" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Presentatie '%s' is niet eenduidig" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Presentatie '%s' is onbekend" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Geschreven door Franois Pinard .\n" +msgstr "Geschreven door François Pinard .\n" #: src/main.c:624 -#, fuzzy msgid "" "\n" "Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" msgstr "" "\n" -"Copyright (C) 1990, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" -"Dit is vrije programmatuur; zie de broncode voor kopieer condities.\n" +"Dit is vrije software; zie de programmatekst voor de kopieervoorwaarden.\n" "Er is GEEN garantie; zelfs niet voor VERKOOPBAARHEID of GESCHIKTHEID\n" -"VOOR EEN BEPAALDE TOEPASSING.\n" +"VOOR EEN BEPAALD DOEL.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Symbool '%s' is onbekend" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Tekenset '%s' is onbekend of niet eenduidig" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Een vereist argument ontbreekt" #: src/main.c:797 #, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "" +msgstr "Deze syntax is verouderd; gebruik liever '%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Verzoek '%s' is onjuist" #: src/main.c:903 #, c-format msgid "Recoding %s..." -msgstr "Omzetten %s..." +msgstr "Hercoderen van %s..." #: src/main.c:913 msgid " done\n" -msgstr " klaar\n" +msgstr " voltooid\n" #: src/main.c:954 #, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr "" +msgstr " mislukt: %s in stap '%s..%s'\n" #: src/main.c:961 #, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "" +msgstr "%s mislukt: %s in stap '%s..%s'" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%svoor reeks %s.%s" +msgstr "%s in stap '%s..%s'" #: src/names.c:335 #, c-format msgid "Charset %s already exists and is not %s" -msgstr "Karakterset %s bestaat reeds en is niet %s" +msgstr "Tekenset '%s' bestaat al en is niet %s" #: src/names.c:831 -#, fuzzy, c-format +#, c-format msgid "Cannot list `%s', no names available for this charset" -msgstr "" -"Kan `%s' niet tonen, geen RFC 1345 namen beschikbaar voor deze karakterset" +msgstr "Kan '%s' niet opsommen; geen namen beschikbaar voor deze tekenset" #. code counter #. expected value for code counter #. insert a while line before printing #. Print the long table according to explode data. #: src/names.c:984 src/names.c:1030 -#, fuzzy, c-format +#, c-format msgid "Dec Oct Hex UCS2 Mne %s\n" -msgstr "dec oct hex ch %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" #: src/names.c:1049 -#, fuzzy, c-format +#, c-format msgid "Sorry, no names available for `%s'" -msgstr "Sorry, geen RFC 1345 namen beschikbaar voor `%s'" +msgstr "Sorry, geen namen beschikbaar voor '%s'" #: src/outer.c:125 #, c-format msgid "Resurfacer set more than once for `%s'" -msgstr "" +msgstr "Her-oppervlakker is meer dan eens gezet voor '%s'" #: src/outer.c:133 #, c-format msgid "Unsurfacer set more than once for `%s'" -msgstr "" +msgstr "Ont-oppervlakker is meer dan eens gezet voor '%s'" #: src/recode.c:115 src/recode.c:127 msgid "Virtual memory exhausted" -msgstr "" +msgstr "Onvoldoende geheugen beschikbaar" #: src/recode.c:155 #, c-format, ycp-format msgid "Codes %3d and %3d both recode to %3d" -msgstr "Code %3d en %3d beide omgezet naar %3d" +msgstr "Codes %3d en %3d hercoderen beide naar %3d" #: src/recode.c:169 #, c-format, ycp-format msgid "No character recodes to %3d" -msgstr "Geen karakter omzetting naar %3d" +msgstr "Geen teken hercodeert naar %3d" #: src/recode.c:170 msgid "Cannot invert given one-to-one table" -msgstr "Kan een-op-een tabel niet inverteren" +msgstr "Kan de gegeven één-op-één tabel niet omkeren" #: src/recode.c:224 src/recode.c:236 #, c-format msgid "Following diagnostics for `%s' to `%s'" -msgstr "Volg diagnostiek (FIXME) van `%s' naar `%s'" +msgstr "Foutmeldingen voor '%s' naar '%s'" #: src/recode.c:229 src/recode.c:241 -#, fuzzy, c-format +#, c-format msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" -msgstr "Paar nummer %d: { %3d, %3d } conflictueerd met { %3d, %3d }" +msgstr "Paarnummer %d: <%3d, %3d> conflicteert met <%3d, %3d>" #: src/recode.c:272 msgid "Cannot complete table from set of known pairs" -msgstr "Kan tabel niet compleet maken uit set van bekende paren" +msgstr "Kan tabel niet afmaken met de verzameling bekende paren" #: src/recode.c:497 msgid "Identity recoding, not worth a table" -msgstr "Codering is identiek, geen tabel waardig" +msgstr "Identiteitshercodering; is geen tabel waard" #: src/recode.c:504 msgid "Recoding is too complex for a mere table" -msgstr "Omzetting is te complex voor een mere tabel (FIXME)" +msgstr "Hercoderen is te complex voor slechts een tabel" #. Print the header of the header file. #: src/recode.c:536 -#, fuzzy, c-format +#, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%sConversietabel mechanisch gegenereerd door GNU %s %s" +msgstr "%sConversietabel gegenereerd door '%s' %s" #: src/recode.c:538 #, c-format @@ -418,261 +447,82 @@ #: src/recode.c:744 msgid "No table to print" -msgstr "Geen tabel om te tonen" +msgstr "Geen tabel om weer te geven" #: src/request.c:34 msgid "reversible" msgstr "omkeerbaar" #: src/request.c:36 -#, fuzzy, c-format +#, c-format msgid "%s to %s" -msgstr "%svoor reeks %s.%s" +msgstr "%s naar %s" #: src/request.c:37 src/request.c:39 msgid "byte" -msgstr "" +msgstr "byte" #: src/request.c:38 src/request.c:40 msgid "ucs2" -msgstr "" +msgstr "ucs2" #: src/request.c:38 src/request.c:40 -#, fuzzy msgid "variable" -msgstr "omkeerbaar" +msgstr "variabel" #: src/request.c:111 msgid "*Unachievable*" -msgstr "*Onmogelijk*" +msgstr "*Kan niet*" #: src/request.c:113 msgid "*mere copy*" -msgstr "*gewone kopie*" +msgstr "*simpele kopie*" #: src/request.c:246 msgid "Virtual memory exhausted!" -msgstr "" +msgstr "Onvoldoende geheugen beschibaar!" #: src/request.c:265 msgid "Step initialisation failed" -msgstr "" +msgstr "Stap-initialisatie is mislukt" #: src/request.c:272 msgid "Step initialisation failed (unprocessed options)" -msgstr "" +msgstr "Stap-initialisatie is mislukt (onverwerkte opties)" #: src/request.c:568 #, c-format msgid "Request: %s\n" -msgstr "" +msgstr "Verzoek: %s\n" #: src/request.c:720 #, c-format msgid "Shrunk to: %s\n" -msgstr "" +msgstr "Gekrompen tot: %s\n" #: src/request.c:823 src/request.c:932 #, c-format msgid "Unrecognised surface name `%s'" -msgstr "" +msgstr "Onbekende oppervlaknaam '%s'" #: src/request.c:903 -#, fuzzy, c-format +#, c-format msgid "No way to recode from `%s' to `%s'" -msgstr "Geen mogelijkheid voor omzetting van %s naar %s" +msgstr "Er is geen manier om te hercoderen van '%s' naar '%s'" #: src/request.c:1013 msgid "Expecting `..' in request" -msgstr "" +msgstr "'..' werd verwacht in verzoek" #: src/task.c:826 src/task.c:1002 #, c-format msgid "Child process wait status is 0x%0.2x" -msgstr "Wacht status proces kind is 0x%0.2x" +msgstr "Wachtstatus van dochterproces is 0x%0.2x" #: src/testdump.c:298 msgid "" "UCS2 Mne Description\n" "\n" msgstr "" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "Dubbelzinnig `sequence' `%s'" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Onbekende `sequence' `%s' (FIXME)" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Dubbelzinnige taal `%s'" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Onbekende taal `%s'" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "Dubbelzinnig format `%s'" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Onbekende format `%s'" - -#~ msgid "Hash stats: %d names using %d buckets out of %d\n" -#~ msgstr "Hash stats: %d names using %d buckets out of %d (FIXME)\n" - -#~ msgid "Currently, -s is ignored when -g is selected" -#~ msgstr "Op dit moment wordt -s genegeerd als -g is geselecteerd" - -#~ msgid "one to one" -#~ msgstr "een op een" - -#~ msgid "one to many" -#~ msgstr "een naar veel (FIXME)" - -#~ msgid "many to one" -#~ msgstr "veel naar een (FIXME)" - -#~ msgid "many to many" -#~ msgstr "veel te veel" - -#~ msgid "MAX_CHARSETS is too small" -#~ msgstr "MAX_CHARSETS is te klein" - -#~ msgid "Ambiguous charset or encoding `%s'" -#~ msgstr "Dubbelzinnige karakterset of codering `%s'" - -#~ msgid "Unknown charset or encoding `%s'" -#~ msgstr "Onbekende karakterset of codering `%s'" - -#~ msgid "Simplified to: %s\n" -#~ msgstr "Versimpeld naar: %s\n" - -#~ msgid "Unbalanced quotes in request" -#~ msgstr "Niet overeenkomstige kwoots in vraag" - -#~ msgid "Illegal backslash" -#~ msgstr "Ongeldige backslash" - -#~ msgid "Internal error - strategy undecided" -#~ msgstr "Interne fout - besluiteloze strategie" - -#~ msgid "ONE to SAME" -#~ msgstr "ONE naar SAME" - -#~ msgid "steps: %d" -#~ msgstr "stappen: %d" - -#~ msgid ", %d saved by merging" -#~ msgstr ", %d bewaard door samenvoegen" - -#~ msgid " UNACHIEVABLE\n" -#~ msgstr " ONBEREIKBAAR\n" - -#~ msgid "Cannot auto check the ignored charset" -#~ msgstr "Kan de genegeerde karakterset niet automatisch kontroleren" - -#~ msgid "Cannot auto check on %s" -#~ msgstr "Kan %s niet automatisch kontroleren" - -#~ msgid "" -#~ "Mandatory or optional arguments to long options are mandatory or optional\n" -#~ "for short options too.\n" -#~ "\n" -#~ " -C, --copyright display Copyright and copying conditions\n" -#~ " -a, --auto-check report about some or all recoding paths, then exit\n" -#~ " -l, --list[=FORMAT] list one or all known charsets\n" -#~ " -k, --known=PAIRS restrict charsets according to known PAIRS list\n" -#~ " --help display this help and exit\n" -#~ " --version output version information and exit\n" -#~ "\n" -#~ "FORMAT is a word among decimal, octal, hexadecimal or full (which may be\n" -#~ "abbreviated to one of `dohf'), it defaults to just the canonical name.\n" -#~ "With -k, possible before charsets are listed for the given after CHARSET,\n" -#~ "both being RFC1345 charsets, with PAIRS of the form " -#~ "`BEF1:AFT1,BEF2:AFT2,...\n" -#~ "and BEFs and AFTs being codes. All codes are given as decimal numbers.\n" -#~ msgstr "" -#~ "Verplichte of optionele argumenten bij lange opties, zijn ook\n" -#~ "verplicht of optioneel bij korte opties.\n" -#~ "\n" -#~ " -C, --copyright toon Copyright en copieer kondities\n" -#~ " -a, --auto-check bericht over sommige of alle omzettingstrajecten\n" -#~ " -l, --list[=FORMAT] toon een of alle bekende karaktersets\n" -#~ " -k, --known=PAREN beperk karaktersets volgens bekende PAREN lijst\n" -#~ " --help toon hulp-tekst en bekindig programma\n" -#~ " --version toon versie-informatie en bekindig programma\n" -#~ "\n" -#~ "FORMAT is een woord zoals decimaal, octaal, hexadecimaal of volledig\n" -#~ "(full) (wat mag worden afgekort als een van `dohf'), gewoonlijk wordt\n" -#~ "de standaardnaam gebruikt.\n" -#~ "\n" -#~ "(FIXME) With -k, possible before charsets are listed for the given\n" -#~ "after CHARSET, both being RFC1345 charsets, with PAIRS of the form\n" -#~ "`BEF1:AFT1,BEF2:AFT2,... and BEFs and AFTs being codes. All codes\n" -#~ "are given as decimal numbers.\n" - -#~ msgid "" -#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the " -#~ "Texinfo\n" -#~ "documentation. My preferred charsets are (each user has preferences):\n" -#~ "\n" -#~ " ascii-bs ASCII (7-bit), using backspace to apply diacritics\n" -#~ " ibmpc IBM-PC 8-bit characters, with proper newlines\n" -#~ " latex LaTeX coding of foreign and diacriticized characters\n" -#~ " latin1 ISO Latin-1 8-bit extension of ASCII\n" -#~ " texte Easy French convention for transmitting email messages\n" -#~ msgstr "" -#~ "Optie -l met geen FORMAT noch CHARSET laat alle karaktersets zien, zie\n" -#~ "ook de Texinfo documentatie. Mijn preferente karaktersets zijn (elke\n" -#~ "gebruiker heeft voorkeuren):\n" -#~ "\n" -#~ " ascii-bs ASCII (7-bit), gebruik backspace to apply diacritics\n" -#~ " ibmpc IBM-PC 8-bit karakter, met juiste nieuwe regels\n" -#~ " latex LaTeX codering van vreemde en dia-kritische karrakters\n" -#~ " latin1 ISO Latin-1 8-bit uitbreiding van ASCII\n" -#~ " texte Makkelijk franse conventie voor versturen email berichten\n" - -#~ msgid "" -#~ "\n" -#~ "Usage: %s [OPTION]... [BEFORE]:[AFTER] [FILE]...\n" -#~ msgstr "" -#~ "\n" -#~ "Gebruik: %s [OPTIE]... [VOOR]:[NA] [BESTAND]...\n" - -#~ msgid "" -#~ " -o, --sequence=popen use popen machinery for sequencing passes\n" -#~ msgstr "" -#~ " -o, --sequence=popen gebruiken popen machinery for sequencing passes " -#~ "(FIXME)\n" - -#~ msgid " -o, --sequence=popen same as -i (on this system)\n" -#~ msgstr " -o, --sequence=popen zelfde als -i (op dit systeem)\n" - -#~ msgid "" -#~ " -q, --quiet, --silent inhibit messages about irreversible recodings\n" -#~ " -s, --strict use strict mappings, even loose characters\n" -#~ " -t, --touch touch the recoded files after replacement\n" -#~ " -v, --verbose explain sequence of steps and report progress\n" -#~ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" -#~ "\n" -#~ "If none of -i, -o and -p are given, presume -p if no FILE, else -i.\n" -#~ "Each FILE is recoded over itself, destroying the original. If no\n" -#~ "FILE is specified, then act as a filter and recode stdin to stdout.\n" -#~ msgstr "" -#~ " -q, --quiet, --silent laat meldingen over onomkeerbaarheid achterwege\n" -#~ " -s, --strict gebruik strikte omzetting, zelfs voor loose chars\n" -#~ " -t, --touch verander de tijd van omgezette bestanden\n" -#~ " -v, --verbose laat zien wat er gebeurt\n" -#~ " -x, --ignore=CHARSET negeer CHARSET bij kiezen van omzettingstraject\n" -#~ "\n" -#~ "Als geen van -i, -o en -p gegeven zijn, veronderstel -p als geen\n" -#~ "BESTAND, anders -i. Elk BESTAND is omgezet over zichzelf, het\n" -#~ "origineel vernietigend. Als geen BESTAND is gespecificeerd, werk dan\n" -#~ "als een filter en zet standaardinvoer om naar standaarduitvoer.\n" - -#~ msgid "BEFORE and AFTER both default to `%s' when needed.\n" -#~ msgstr "VOOR en NA beiden `%s' indien noodzakelijk.\n" - -#~ msgid "%s: Recoding is not reversible" -#~ msgstr "%s: Omzetting is niet omkeerbaar" - -#~ msgid "Recoding is not reversible" -#~ msgstr "Omzetting is niet omkeerbaar" +"UCS2 Mne Omschrijving\n" +"\n" --- a/i18n/pl.po +++ b/i18n/pl.po @@ -1,14 +1,15 @@ # Polish translations for the GNU recode messages # Copyright (C) 1996 Free Software Foundation, Inc. -# Pawe Krawczyk , 1996, 1997, 1998, 1999 +# Pawe Krawczyk , 1996, 1997, 1998, 1999. +# Jakub Bogusz , 2002. # msgid "" msgstr "" -"Project-Id-Version: recode 3.4r\n" +"Project-Id-Version: recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1999-05-26 14:49+02:00\n" -"Last-Translator: Pawe Krawczyk \n" -"Language-Team: Polish \n" +"PO-Revision-Date: 2002-10-27 12:22+0100\n" +"Last-Translator: Jakub Bogusz \n" +"Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8-bit\n" @@ -81,13 +82,12 @@ msgstr "Polecenie `%s %s' wywietli wicej informacji.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" +msgid "Free `recode' converts files between various character sets and surfaces.\n" msgstr "" "Program `recode' konwertuje pliki pomidzy rnymi zestawami znakw\n" "i sposobami kodowania.\n" -# REQUEST tumacz wszdzie konsekwentnie jako POLECENIE, a nie 'danie' +# REQUEST tumacz wszdzie konsekwentnie jako POLECENIE, a nie 'danie' --pk #: src/main.c:241 #, c-format msgid "" @@ -108,13 +108,11 @@ "obowizkowe dla krtkich wersji. Analogicznie dla argumentw opcjonalnych.\n" #: src/main.c:250 -#, fuzzy msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -125,7 +123,7 @@ "\n" "Listy:\n" " -l, --list[=FORMAT] wywietla jeden lub wszystkie znane zestawy\n" -" znakw\n" +" znakw i aliasy\n" " -k, --known=PARY ogranicza list zestaww do znanych PAR\n" " -h, --header[=[LN/]NAZWA] wywietla tablic NAZWA na standardowe wyjcie\n" " uywajc LN i koczy prac\n" @@ -135,8 +133,8 @@ " innych zestaww\n" " -C, --copyright wywietla informacje o prawach autorskich\n" " oraz warunkach kopiowania\n" -" --version wywietla wersj programu i koczy prac\n" " --help wywietla ten tekst pomocy i koczy prac\n" +" --version wywietla wersj programu i koczy prac\n" #: src/main.c:263 msgid "" @@ -187,8 +185,7 @@ " znakw\n" " -d, --diacritics konwertuje tylko znaki diakrytyczne oraz symbole\n" " znakw (takie jak w HTML i LaTeX)\n" -" -c, --colons uywa dwukropkw zamiast cudzysoww dla " -"oznaczenia\n" +" -c, --colons uywa dwukropkw zamiast cudzysoww dla oznaczenia\n" " umlautu\n" " -g, --graphics prbuje przyblia ramki IBMPC znakami ASCII\n" " -x, --ignore=ZESTAW ignoruje ZESTAW znakw podczas okrelania drogi\n" @@ -206,20 +203,18 @@ "(lub jedna z liter `dohf').\n" #: src/main.c:302 -#, fuzzy msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" "Jeli zmienna rodowiskowa DEFAULT_CHARSET nie jest ustawiona, domylnym\n" -"zestawem znakw jest `%s'.\n" +"zestawem znakw jest kodowanie zalene od lokalizacji, okrelonej przez\n" +"zmienne LC_ALL, LC_CTYPE i LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" "Jeli podano opcj -k, program wywietla zestawy znakw z ktrych mona\n" @@ -228,8 +223,7 @@ "SKD i DOKD s kodami podanymi jako liczby dziesitne.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" msgstr "" "LN jest jzykiem programowania, do wyboru `c', `perl' lub `po'.\n" "Domyln wartoci jest `c'.\n" @@ -237,13 +231,10 @@ #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" "\n" @@ -279,40 +270,37 @@ #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "Sekwencja `%s' jest niejednoznaczna" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "Sekwencja `%s' jest nieznana" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "Jzyk `%s' jest niejednoznaczny" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "Jzyk `%s' jest nieznany" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "Format `%s' jest niejednoznaczny" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "Format `%s' jest nieznany" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Autorem jest Franc,ois Pinard .\n" +msgstr "Autorem jest Franois Pinard .\n" #: src/main.c:624 msgid "" @@ -327,57 +315,57 @@ "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" -"Oprogramowanie darmowe; warunki jego kopiowania znajdziesz w kodzie\n" +"Oprogramowanie darmowe; warunki jego kopiowania znajduj si w kodzie\n" "rdowym. Nie podlega adnej gwarancji, nawet gwarancji przydatnoci\n" "do jakiegokolwiek zastosowania lub sprzeday.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "Symbol `%s' jest nieznany" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "Zestaw znakw `%s' jest nieznany lub niejednoznaczny" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Brak wymaganego parametru" #: src/main.c:797 -#, fuzzy, c-format +#, c-format msgid "Syntax is deprecated, please prefer `%s'" msgstr "Odradza si stosowanie tej skadni, prosz uywa `%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "Polecenie `%s' jest bdne" #: src/main.c:903 #, c-format msgid "Recoding %s..." -msgstr "Przekodowanie %s..." +msgstr "Przekodowywanie %s..." #: src/main.c:913 msgid " done\n" msgstr " skoczone\n" #: src/main.c:954 -#, fuzzy, c-format +#, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr " nie powiodo si: %s w %s..%s\n" +msgstr " nie powiodo si: %s w `%s..%s'\n" #: src/main.c:961 -#, fuzzy, c-format +#, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "%s nie powiodo si: %s w %s..%s" +msgstr "%s nie powiodo si: %s w `%s..%s'" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%s w %s..%s" +msgstr "%s w `%s..%s'" #: src/names.c:335 #, c-format @@ -531,7 +519,7 @@ #: src/request.c:1013 msgid "Expecting `..' in request" -msgstr "Spodziewane `..' w poleceniu" +msgstr "Oczekiwano `..' w poleceniu" #: src/task.c:826 src/task.c:1002 #, c-format @@ -545,236 +533,3 @@ msgstr "" "UCS2 Mne Description\n" "\n" - -#~ msgid "CHARSET has no default, define DEFAULT_CHARSET in the environment.\n" -#~ msgstr "" -#~ "ZESTAW znakw nie ma wartoci domylnej, ustaw zmienn rodowiskow\n" -#~ "DEFAULT_CHARSET.\n" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "Nierozpoznana sekwencja `%s'" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Nieznana sekwencja `%s'" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Nierozpoznany jzyk `%s'" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Nieznany jzyk `%s'" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "Nierozpoznany format `%s'" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Nieznany format `%s'" - -#~ msgid "Erroneous request `%s'" -#~ msgstr "Bdne polecenie `%s'" - -#~ msgid " Each input char transforms into an output string,\n" -#~ msgstr " Kady znak wejciowy jest konwertowany na acuch wyjciowy,\n" - -#~ msgid " Each input char transforms into an output string.\n" -#~ msgstr " Kady znak wejciowy jest konwertowany na acuch wyjciowy.\n" - -#~ msgid " Programming is needed to handle multichar input.\n" -#~ msgstr "" -#~ " Do obsugi kodw wieloznakowych potrzebna jest umiejtno " -#~ "programowania.\n" - -#~ msgid " The recoding might not be reversible.\n" -#~ msgstr " Konwersja moe by nieodwracalna.\n" - -#~ msgid " The recoding should be reversible.\n" -#~ msgstr " Konwersja powinna by odwracalna.\n" - -#~ msgid " programming is needed to handle multichar input.\n" -#~ msgstr "" -#~ " do obsugi kodw wieloznakowych potrzebna jest umiejtno " -#~ "programowania.\n" - -#~ msgid " UNACHIEVABLE\n" -#~ msgstr " NIEOSIGALNE\n" - -#~ msgid "%s: Recoding is not reversible" -#~ msgstr "%s: Konwersja jest nieodwracalna" - -#~ msgid ", %d saved by merging" -#~ msgstr ", %d zachowane przez zczenie" - -#~ msgid "/* Conversion table from `%s' charset to `%s' charset.\n" -#~ msgstr "/* Tablica konwersji zestawow znakow `%s' na `%s'.\n" - -#~ msgid "Cannot auto check on %s" -#~ msgstr "Nie mog automatycznie sprawdzi %s" - -#~ msgid "Cannot auto check the ignored charset" -#~ msgstr "Nie mog automatycznie sprawdzi ignorowanego zestawu znakw" - -#~ msgid "Currently, -s is ignored when -g is selected" -#~ msgstr "Opcja -s jest wyczana przez opcj -g" - -#~ msgid "Hash stats: %d names using %d buckets out of %d\n" -#~ msgstr "Wyniki przeszukiwania: %d uywa %d spord %d zbiorw\n" - -#~ msgid "Internal error - strategy undecided" -#~ msgstr "Bd wewntrzy - niezdecydowana strategia" - -#~ msgid "MAX_CHARSETS is too small" -#~ msgstr "MAX_CHARSETS jest za mae" - -#~ msgid "MAX_SEQUENCE is too small" -#~ msgstr "MAX_SEQUENCE jest za mae" - -#~ msgid "MAX_SINGLE_STEPS is too small" -#~ msgstr "MAX_SINGLE_STEPS jest za mae" - -#~ msgid "Mere copy for the trivial recoding\n" -#~ msgstr "Zwyka kopia do prostego przekodowania\n" - -#~ msgid "ONE to SAME" -#~ msgstr "ONE na SAME" - -#~ msgid "Recoding is not reversible" -#~ msgstr "Przekodowanie jest nieodwracalne" - -#~ msgid "Simplified to: " -#~ msgstr "Uproszczone do: " - -#~ msgid "UNACHIEVABLE recoding!\n" -#~ msgstr "NIEOSIGALNE przekodowanie!\n" - -#~ msgid "You may not explicitly recode from RFC 1345" -#~ msgstr "Nie ma potrzebt cisego przekodowania z RFC 1345" - -#~ msgid " -o, --sequence=popen same as -i (on this system)\n" -#~ msgstr " -o, --sequence=popen identyczne jak -i (w tym systemie)\n" - -#~ msgid "" -#~ " -o, --sequence=popen use popen machinery for sequencing passes\n" -#~ msgstr "" -#~ " -o, --sequence=popen uycie techniki popen w przebiegach sekwencyjnych\n" - -#~ msgid "" -#~ " -q, --quiet, --silent inhibit messages about irreversible recodings\n" -#~ " -s, --strict use strict mappings, even loose characters\n" -#~ " -t, --touch touch the recoded files after replacement\n" -#~ " -v, --verbose explain sequence of steps and report progress\n" -#~ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" -#~ "\n" -#~ "If none of -i, -o and -p are given, presume -p if no FILE, else -i.\n" -#~ "Each FILE is recoded over itself, destroying the original. If no\n" -#~ "FILE is specified, then act as a filter and recode stdin to stdout.\n" -#~ msgstr "" -#~ " -q, --quiet, --silent blokuj komunikaty o nieodwracalnych konwersjach\n" -#~ " -s, --strict uywaj cisych odwzorowa, nawet dla wtpliwych " -#~ "znakw\n" -#~ " -t, --touch uaktualnij dat przekodowanego, podstawionego " -#~ "pliku\n" -#~ " -v, --verbose pokazuj kolejne kroki i postp konwersji\n" -#~ " -x, --ignore=ZESTAW ignoruj ZESTAW znakw przy wyborze konwersji\n" -#~ "\n" -#~ "Jeli nie wybrano adnej z opcji -i, -o lub -p, i nie ma agumentu PLIK,\n" -#~ "domylnie przyjmowana jest opcja -p, w przeciwnym wypadku -i. Kady PLIK\n" -#~ "po konwersji jest zapisywany pod t sam nazw, z usuniciem oryginau.\n" -#~ "Jeli brak PLIKu, recode dziaa jak filtr i konwertuje z stdin na stdout.\n" - -#~ msgid "BEFORE and AFTER both default to `%s' when needed.\n" -#~ msgstr "PRZED i PO w razie potrzeby s ustawiane domylnie na `%s'.\n" - -#~ msgid "" -#~ "Mandatory or optional arguments to long options are mandatory or optional\n" -#~ "for short options too.\n" -#~ "\n" -#~ " -C, --copyright display Copyright and copying conditions\n" -#~ " -a, --auto-check report about some or all recoding paths, then exit\n" -#~ " -l, --list[=FORMAT] list one or all known charsets\n" -#~ " -k, --known=PAIRS restrict charsets according to known PAIRS list\n" -#~ " --help display this help and exit\n" -#~ " --version output version information and exit\n" -#~ "\n" -#~ "FORMAT is a word among decimal, octal, hexadecimal or full (which may be\n" -#~ "abbreviated to one of `dohf'), it defaults to just the canonical name.\n" -#~ "With -k, possible before charsets are listed for the given after CHARSET,\n" -#~ "both being RFC1345 charsets, with PAIRS of the form " -#~ "`BEF1:AFT1,BEF2:AFT2,...\n" -#~ "and BEFs and AFTs being codes. All codes are given as decimal numbers.\n" -#~ msgstr "" -#~ "Obowizkowe lub opcjonalne argumenty dugich form opcji maj tak sam\n" -#~ "posta dla krtkich form.\n" -#~ "\n" -#~ " -C, --copyright wywietl informacje licencyjne i warunki kopiowania\n" -#~ " -a, --auto-check wywietl cieki konwersji i zakocz prac\n" -#~ " -l, --list[=FORMAT] wywietl znane zestawy znakw\n" -#~ " -k, --known=PARY ogranicz zestawy znakw wg. podanych PAR\n" -#~ " --help wywietl ten tekst pomocy i zakocz prac\n" -#~ " --version wywietl wersj programu i zakocz prac\n" -#~ "\n" -#~ "FORMAT jest jednym z: decimal, octal, hexadecimal oraz full (skrty: dohf)\n" -#~ "Domylnie wywietlane s tylko nazwy kanoniczne wszystkich standardw.\n" -#~ "Dla opcj -k podaje si dla danego zestawu PO pary decymalnych kodw znakw\n" -#~ "z zestaww RFC1345, postaci: PRZED1:PO2,PRZED2:PO2,...\n" - -#~ msgid "" -#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the " -#~ "Texinfo\n" -#~ "documentation. My preferred charsets are (each user has preferences):\n" -#~ "\n" -#~ " ascii-bs ASCII (7-bit), using backspace to apply diacritics\n" -#~ " ibmpc IBM-PC 8-bit characters, with proper newlines\n" -#~ " latex LaTeX coding of foreign and diacriticized characters\n" -#~ " latin1 ISO Latin-1 8-bit extension of ASCII\n" -#~ " texte Easy French convention for transmitting email messages\n" -#~ msgstr "" -#~ "Opcja -l bez podania FORMATu i ZESTAWu wywietla list wszystkich zestaww\n" -#~ "(szczegy w dokumentacji). Ulubione zestawy Autora to:\n" -#~ "\n" -#~ " ascii-bs ASCII (7-bitowy), znak BS uywany do dodawania ogonkw\n" -#~ " ibmpc IBM-PC 8-bitowe znaki, z odpowiednimi znakami nowej linii\n" -#~ " latex kodowanie znakw diakrytycznych w formacie LaTeXa\n" -#~ " latin1 ISO Latin-1 8-bitowe rozszerzenie ASCII\n" -#~ " texte popularny francuski standard stosowany w emailu\n" - -#~ msgid "" -#~ "\n" -#~ " -c, --colons use colons instead of double quotes for diaeresis\n" -#~ " -d, --diacritics limit conversion to diacritics or alike for LaTeX\n" -#~ " -f, --force force recodings even if they are not reversible\n" -#~ " (BEWARE: in this version, -f is always selected)\n" -#~ " -g, --graphics approximate IBMPC rulers by ASCII graphics\n" -#~ " -h, --header[=NAME] write C code with table NAME on stdout, then exit\n" -#~ " -i, --sequence=files use intermediate files for sequencing passes\n" -#~ msgstr "" -#~ "\n" -#~ " -c, --colons uywaj dwukropkw zamiast cudzysoww\n" -#~ " -d, --diacritics ogranicz konwersj do zn. diakryt. itp. dla " -#~ "LaTeXa\n" -#~ " -f, --force wymuszaj konwersje, nawet jeli s nieodwracalne\n" -#~ " (UWAGA: w tej wersji -f zawsze obowizuje)\n" -#~ " -g, --graphics przybliaj ramki IBMPC za pomoc znakw ASCII\n" -#~ " -h, --header[=NAZWA] wypisz zestaw NAZWA w postaci kodu C na stdout\n" -#~ " -i, --sequence=pliki uywaj plikw porednich do przebiegw " -#~ "sekwencyjnych\n" - -#~ msgid "" -#~ "\n" -#~ "Usage: %s [OPTION]... [BEFORE]:[AFTER] [FILE]...\n" -#~ msgstr "" -#~ "\n" -#~ "Skadnia: %s [OPCJA]... [PRZED]:[PO] [PLIK]...\n" - -#~ msgid "many to many" -#~ msgstr "wiele na wiele" - -#~ msgid "many to one" -#~ msgstr "wiele na jeden" - -#~ msgid "one to many" -#~ msgstr "jeden na wiele" - -#~ msgid "one to one" -#~ msgstr "jeden na jeden" - -#~ msgid "steps: %d" -#~ msgstr "krokw: %d" --- a/i18n/pt.po +++ b/i18n/pt.po @@ -2,50 +2,50 @@ # Copyright (C) 1996 Free Software Foundation, Inc. # Vitor Duarte , Maio de 1996. # Thanks to Nuno Oliveira , 1996. +# Helder Correia , 2005. # msgid "" msgstr "" -"Project-Id-Version: GNU recode 3.4.3\n" +"Project-Id-Version: GNU recode 3.6\n" "POT-Creation-Date: 2001-01-02 22:35+0100\n" -"PO-Revision-Date: 1996-11-25 10:00-0000\n" -"Last-Translator: Vitor Duarte \n" -"Language-Team: Portuguese \n" +"PO-Revision-Date: 2005-11-13 15:20+0000\n" +"Last-Translator: Helder Correia \n" +"Language-Team: Portuguese \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-1\n" -"Content-Transfer-Encoding: 8-bit\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" #: src/main.c:142 msgid "No error" -msgstr "" +msgstr "Sem erros" #: src/main.c:145 msgid "Non canonical input" -msgstr "" +msgstr "Entrada não canónica" #: src/main.c:148 -#, fuzzy msgid "Ambiguous output" -msgstr "O formato %s ambiguo" +msgstr "Saída ambígua" #: src/main.c:151 msgid "Untranslatable input" -msgstr "" +msgstr "Entrada não traduzível" #: src/main.c:154 msgid "Invalid input" -msgstr "" +msgstr "Entrada inválida" #: src/main.c:157 msgid "System detected problem" -msgstr "" +msgstr "O sistema detectou um problema" #: src/main.c:160 msgid "Misuse of recoding library" -msgstr "" +msgstr "Uso incorrecto da biblioteca de recodificação" #: src/main.c:163 msgid "Internal recoding bug" -msgstr "" +msgstr "Erro de recodificação interno" #: src/main.c:208 msgid "" @@ -63,38 +63,37 @@ "along with this program; if not, write to the Free Software Foundation,\n" "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" msgstr "" -"Este programa free software; pode redistribuir-lo e/ou modific-lo\n" -"nos termos previstos na licena da GNU (GNU General Public License),\n" -"publicada pela Free Software Foundation; de acordo com a verso 2 ou,\n" -"se preferir, alguma mais recente.\n" -"\n" -"Este programa distribuido na esperana de que lhe seja til, mas\n" -"SEM QUALQUER GARANTIA; nem mesmo a garantia implcita de COMERCIABILIDADE\n" -"ou UTILIDADE PARA QUALQUER UTILIZAO. Para mais informaes consulte a\n" -"GNU General Public License.\n" +"Este programa é livre; pode redistribuí-lo e/ou modificá-lo\n" +"nos termos previstos na Licença Pública Geral GNU,\n" +"publicada pela Free Software Foundation; de acordo com a versão 2 ou,\n" +"se preferir, alguma versão mais recente.\n" +"\n" +"Este programa é distribuído na esperança que seja útil, mas\n" +"SEM QUALQUER GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE\n" +"ou UTILIDADE PARA UM PROPÓSITO PARTICULAR. Para mais informações consulte a\n" +"Licença Pública Geral GNU.\n" "\n" -"Deve ter recebido uma cpia da licena GNU General Public License junto\n" -"com este programa; se assim no for, escreva para Free Software\n" +"Deve ter recebido uma cópia da Licença Pública Geral GNU junttamente\n" +"com este programa; se assim não for, escreva para Free Software\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, EUA.\n" #: src/main.c:233 #, c-format msgid "Try `%s %s' for more information.\n" -msgstr "Para mais informao tente %s %s.\n" +msgstr "Para mais informação, tente '%s %s'.\n" #: src/main.c:237 -msgid "" -"Free `recode' converts files between various character sets and surfaces.\n" -msgstr "" +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Free 'recode' converte ficheiros entre vários conjuntos de caracteres e superfícies.\n" #: src/main.c:241 -#, fuzzy, c-format +#, c-format msgid "" "\n" "Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" msgstr "" "\n" -"Uso: %s [OPO]... [CHARSET]\n" +"Utilização: %s [OPÇÃO]... [ [CONJCAR] | PEDIDO [FICHEIRO]... ]\n" #: src/main.c:244 msgid "" @@ -102,14 +101,16 @@ "If a long option shows an argument as mandatory, then it is mandatory\n" "for the equivalent short option also. Similarly for optional arguments.\n" msgstr "" +"\n" +"Se uma opção longa mostrar um argumento como mandatório, então é igualmente\n" +"mandatório para a versão curta. Similarmente para argumentos opcionais.\n" #: src/main.c:250 msgid "" "\n" "Listings:\n" " -l, --list[=FORMAT] list one or all known charsets and aliases\n" -" -k, --known=PAIRS restrict charsets according to known PAIRS " -"list\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" " -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" " -F, --freeze-tables write out a C module holding all tables\n" " -T, --find-subsets report all charsets being subset of others\n" @@ -117,6 +118,16 @@ " --help display this help and exit\n" " --version output version information and exit\n" msgstr "" +"\n" +"Listagens:\n" +" -l, --list[=FORMATO] listar um ou todos os conj. caracteres conhecidos e pseudónimos\n" +" -k, --known=PARES restringir conj. caracteres de acordo com lista de PARES conhecidos\n" +" -h, --header[=[LN/]NOME] escrever NOME tabela usando LN e sair\n" +" -F, --freeze-tables escrever um módulo C com todas as tabelas\n" +" -T, --find-subsets reportar conj. de caracteres subconj. de outros\n" +" -C, --copyright exibir direitos de autor e condições de cópia\n" +" --help exibir esta ajuda e sair\n" +" --version exibir versão e sair\n" #: src/main.c:263 msgid "" @@ -129,18 +140,24 @@ " -i, --sequence=files use intermediate files for sequencing passes\n" " --sequence=memory use memory buffers for sequencing passes\n" msgstr "" +"\n" +"Modos de operação:\n" +" -v, --verbose explicar sequência de passos e relatar progresso\n" +" -q, --quiet, --silent inibir mensagens acerca de recodificações irreversíveis\n" +" -f, --force forçar recodificações mesmo quando irreversíveis\n" +" -t, --touch actualizar data dos ficheiros após recodificação\n" +" -i, --sequence=files usar ficheiros intermédios para passos sequenciais\n" +" --sequence=memory usar memória para passos sequenciais\n" #: src/main.c:275 msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" -msgstr " -p, --sequence=pipe usar pipe para sequenciar os passos\n" +msgstr " -p, --sequence=pipe usar pipe para sequenciar os passos\n" #: src/main.c:280 -#, fuzzy msgid " -p, --sequence=pipe same as -i (on this system)\n" -msgstr " -p, --sequence=pipe o mesmo que -o (neste sistema)\n" +msgstr " -p, --sequence=pipe o mesmo que -i (neste sistema)\n" #: src/main.c:285 -#, fuzzy msgid "" "\n" "Fine tuning:\n" @@ -152,16 +169,13 @@ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" msgstr "" "\n" -" -c, --colons usa : em vez de \" para o trema\n" -" -d, --diacritics restringir a converso aos diacrilicos do LaTeX\n" -" -f, --force efectuar mesmo as converses irreversveis\n" -" (ATENO: actualmente -f sempre assumido)\n" -" -g, --graphics aproxima as caixas do IBMPC com caracteres " -"ASCII\n" -" -h, --header[=NAME] produzir apenas, no stdout, a tabela NAME em\n" -" cdigo C\n" -" -i, --sequence=files usar ficheiros intermdios para os passos " -"sucessivos\n" +"Afinação:\n" +" -s, --strict usar mapeamentos severos, até perder caracteres\n" +" -d, --diacritics converter apenas diacríticos ou afins para HTML/LaTeX\n" +" -S, --source[=LN] limitar recodificação de expressões e comentários como para LN\n" +" -c, --colons usar dois pontos em vez de aspas para diérese\n" +" -g, --graphics aproximar réguas IBMPC por gráficos ASCII\n" +" -x, --ignore=CONJCAR ignorar CONJCAR ao escolher um caminho a recodificar\n" #: src/main.c:296 msgid "" @@ -169,39 +183,47 @@ "Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" "FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" msgstr "" +"\n" +"A opção -l sem FORMATO nem CONJCAR lista os conjuntos de caracteres e superfícies disponíveis.\n" +"FORMATO é 'decimal', 'octal', 'hexadecimal' ou 'full' (ou um de 'dohf').\n" #: src/main.c:302 msgid "" -"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the " -"locale\n" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" "dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" msgstr "" +"A não ser que DEFAULT_CHARSET esteja definido no ambiente, CONJCAR toma o valor\n" +"da codificação por omissão da localização, determinado por LC_ALL, LC_CTYPE, LANG.\n" #: src/main.c:307 msgid "" "With -k, possible before charsets are listed for the given after CHARSET,\n" -"both being tabular charsets, with PAIRS of the form " -"`BEF1:AFT1,BEF2:AFT2,...'\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" "and BEFs and AFTs being codes are given as decimal numbers.\n" msgstr "" +"Com -k, possível antes de conj. caracteres serem listados para dados após CONJCAR,\n" +"sendo ambos tabulares, com PARES da forma `BEF1:AFT1,BEF2:AFT2,...'\n" +"e BEFs e AFTs sendo códigos são dados como números decimais.\n" #: src/main.c:312 -msgid "" -"LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" -msgstr "" +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN é uma linguagem, podendo ser 'c', 'perl' ou 'po'; 'c' é predefinido.\n" #: src/main.c:315 msgid "" "\n" -"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is " -"ENCODING[..ENCODING]...\n" -"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like " -"BEFORE..AFTER,\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" "with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" -"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a " -"/\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" "with an empty surface name means no surfaces at all. See the manual.\n" msgstr "" +"\n" +"PEDIDO é SUBPEDIDO[,SUBPEDIDO]...; SUBPEDIDO é CODIFICAÇÃO[..CODIFICAÇÃO]...\n" +"CODIFICAÇÃO é [CONJCAR][/[SUPERFÍCIE]]...; PEDIDO pode parecer-se com ANTES..DEPOIS,\n" +"com ANTES e DEPOIS sendo conjuntos de caracteres. Um CONJCAR omitido implica o conjunto\n" +"habitual; um [/SURFACE]... omitido implica as superfćies para CONJCAR; um /\n" +"com um nome de superfície vazio significa ausência de superfícies. Veja o manual manual.\n" #: src/main.c:323 msgid "" @@ -210,95 +232,93 @@ "Each FILE is recoded over itself, destroying the original. If no\n" "FILE is specified, then act as a filter and recode stdin to stdout.\n" msgstr "" +"\n" +"Se nem -i nem -p forem dados, presume-se -p sem FICHEIRO, senão -i.\n" +"Cada FICHEIRO é recodificado sobre si próprio, destruindo-se o original. Se\n" +"FICHEIRO não for especificado, actue-se como um filtro e recidifique-se a entrada padrão para a saída padrão.\n" #: src/main.c:329 -#, fuzzy msgid "" "\n" "Report bugs to .\n" msgstr "" "\n" -"Reporte os bugs para .\n" +"Reporte erros para .\n" #: src/main.c:430 #, c-format msgid "Sequence `%s' is ambiguous" -msgstr "" +msgstr "A sequência '%s' é ambígua" #: src/main.c:434 #, c-format msgid "Sequence `%s' is unknown" -msgstr "" +msgstr "A sequência '%s' é desconhecida" #: src/main.c:464 src/main.c:522 #, c-format msgid "Language `%s' is ambiguous" -msgstr "" +msgstr "A linguagem '%s' é ambígua" #. -1 #: src/main.c:468 src/main.c:526 #, c-format msgid "Language `%s' is unknown" -msgstr "" +msgstr "A linguagem '%s' é desconhecida" #: src/main.c:560 #, c-format msgid "Format `%s' is ambiguous" -msgstr "" +msgstr "O formato '%s' é ambíguo" #: src/main.c:564 #, c-format msgid "Format `%s' is unknown" -msgstr "" +msgstr "O formato '%s' é desconhecido" #: src/main.c:621 -#, fuzzy msgid "Written by Franc,ois Pinard .\n" -msgstr "" -"\n" -"Escrito por Franc,ois Pinard .\n" +msgstr "Escrito por François Pinard .\n" #: src/main.c:624 -#, fuzzy msgid "" "\n" "Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" msgstr "" "\n" -"Copyright (C) 1990, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" #: src/main.c:628 msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" -"Este programa free software; veja o cdigo fonte para saber em que\n" -"condies o pode copiar. SEM GARANTIA; nem mesmo de COMERCIABILIDADE ou\n" -"de UTILIDADE PARA QUALQUER UTILIZAO.\n" +"Este programa é livre; veja o código fonte para saber as condições de cópia.\n" +"NÃO HÁ GARANTIA; nem mesmo de COMERCIABILIDADE ou de UTILIDADE PARA UM PROPÓSITO PARTICULAR.\n" #: src/main.c:669 #, c-format msgid "Symbol `%s' is unknown" -msgstr "" +msgstr "O símbolo '%s' é desconhecido" #: src/main.c:709 src/main.c:723 #, c-format msgid "Charset `%s' is unknown or ambiguous" -msgstr "" +msgstr "O conjunto de caracteres '%s' é desconhecido ou ambíguo" #: src/main.c:754 msgid "Required argument is missing" -msgstr "" +msgstr "Argumento requerido em falta" #: src/main.c:797 #, c-format msgid "Syntax is deprecated, please prefer `%s'" -msgstr "" +msgstr "A sintaxe está desaprovada, por favor prefira '%s'" #: src/main.c:803 #, c-format msgid "Request `%s' is erroneous" -msgstr "" +msgstr "O pedido '%s' é erróneo" #: src/main.c:903 #, c-format @@ -312,359 +332,181 @@ #: src/main.c:954 #, c-format msgid " failed: %s in step `%s..%s'\n" -msgstr "" +msgstr " falhou: %s no passo '%s..%s'\n" #: src/main.c:961 #, c-format msgid "%s failed: %s in step `%s..%s'" -msgstr "" +msgstr "%s falhou: %s no passo '%s..%s'" #: src/main.c:984 -#, fuzzy, c-format +#, c-format msgid "%s in step `%s..%s'" -msgstr "%spara a sequncia %s.%s" +msgstr "%s no passo '%s..%s'" #: src/names.c:335 #, c-format msgid "Charset %s already exists and is not %s" -msgstr "O conjunto de caracteres %s j existe e no %s" +msgstr "O conjunto de caracteres %s j�existe e n� �%s" #: src/names.c:831 -#, fuzzy, c-format +#, c-format msgid "Cannot list `%s', no names available for this charset" -msgstr "" -" impossvel listar %s. No existem nomes no `RFC 1345' para os caracteres" +msgstr "Não é possível listar '%s', sem nomes para este conjunto de caracteres" #. code counter #. expected value for code counter #. insert a while line before printing #. Print the long table according to explode data. #: src/names.c:984 src/names.c:1030 -#, fuzzy, c-format +#, c-format msgid "Dec Oct Hex UCS2 Mne %s\n" -msgstr "dec oct hex ch %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" #: src/names.c:1049 -#, fuzzy, c-format +#, c-format msgid "Sorry, no names available for `%s'" -msgstr "Desculpe, no existem nomes `RFC 1345' para %s" +msgstr "Desculpe, sem nomes para '%s'" #: src/outer.c:125 #, c-format msgid "Resurfacer set more than once for `%s'" -msgstr "" +msgstr "Repolidor definido mais do que uma vez para '%s'" #: src/outer.c:133 #, c-format msgid "Unsurfacer set more than once for `%s'" -msgstr "" +msgstr "Despolidor definido mais do que uma vez para '%s'" #: src/recode.c:115 src/recode.c:127 msgid "Virtual memory exhausted" -msgstr "" +msgstr "Memória virtual esgotada" #: src/recode.c:155 #, c-format, ycp-format msgid "Codes %3d and %3d both recode to %3d" -msgstr "Ambos os cdigos %3d e %3d so convertidos em %3d" +msgstr "Ambos os c�igos %3d e %3d s� convertidos em %3d" #: src/recode.c:169 #, c-format, ycp-format msgid "No character recodes to %3d" -msgstr "Nenhum carcter convertido em %3d" +msgstr "Nenhum car�ter �convertido em %3d" #: src/recode.c:170 msgid "Cannot invert given one-to-one table" -msgstr "No se pode inverter a tabela de um-para-um dada" +msgstr "N� se pode inverter a tabela de um-para-um dada" #: src/recode.c:224 src/recode.c:236 #, c-format msgid "Following diagnostics for `%s' to `%s'" -msgstr "Os diagnosticos seguintes aplicam-se de %s para %s" +msgstr "Os diagnosticos seguintes aplicam-se de %s para %s" #: src/recode.c:229 src/recode.c:241 -#, fuzzy, c-format +#, c-format msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" -msgstr "Par n %d: { %3d, %3d } em conflito com { %3d, %3d }" +msgstr "Par nº %d: <%3d, %3d> em conflito com <%3d, %3d>" #: src/recode.c:272 msgid "Cannot complete table from set of known pairs" -msgstr "No posso completar a tabela a partir do conjunto de pares conhecidos" +msgstr "Não é possível completar a tabela a partir do conjunto de pares conhecidos" #: src/recode.c:497 msgid "Identity recoding, not worth a table" -msgstr "A converso no necessita de tabela" +msgstr "Recodificação identidade, tabela desnecessária" #: src/recode.c:504 msgid "Recoding is too complex for a mere table" -msgstr "Converso demasiado complexa para uma simples tabela" +msgstr "A recodificação é demasiado complexa para uma mera tabela" #. Print the header of the header file. #: src/recode.c:536 -#, fuzzy, c-format +#, c-format msgid "%sConversion table generated mechanically by Free `%s' %s" -msgstr "%sTabela de converso gerada automaticamente por GNU %s %s" +msgstr "%sTabela de conversão gerada mecanicamente por Free '%s' %s" #: src/recode.c:538 #, c-format msgid "%sfor sequence %s.%s" -msgstr "%spara a sequncia %s.%s" +msgstr "%spara a sequência %s.%s" #: src/recode.c:744 msgid "No table to print" -msgstr "Nenhuma tabela a imprimir" +msgstr "Nenhuma tabela para exibir" #: src/request.c:34 msgid "reversible" -msgstr "reversvel" +msgstr "reversível" #: src/request.c:36 -#, fuzzy, c-format +#, c-format msgid "%s to %s" -msgstr "%spara a sequncia %s.%s" +msgstr "%s para %s" #: src/request.c:37 src/request.c:39 msgid "byte" -msgstr "" +msgstr "byte" #: src/request.c:38 src/request.c:40 msgid "ucs2" -msgstr "" +msgstr "ucs2" #: src/request.c:38 src/request.c:40 -#, fuzzy msgid "variable" -msgstr "reversvel" +msgstr "variável" #: src/request.c:111 msgid "*Unachievable*" -msgstr "*Impossvel*" +msgstr "*Impossível*" #: src/request.c:113 msgid "*mere copy*" -msgstr "*simples cpia*" +msgstr "*mera cópia*" #: src/request.c:246 msgid "Virtual memory exhausted!" -msgstr "" +msgstr "Memória virtual esgotada!" #: src/request.c:265 msgid "Step initialisation failed" -msgstr "" +msgstr "A inicialização falhou" #: src/request.c:272 msgid "Step initialisation failed (unprocessed options)" -msgstr "" +msgstr "A inicialização falhou (opções não processadas)" #: src/request.c:568 #, c-format msgid "Request: %s\n" -msgstr "" +msgstr "Pedido: %s\n" #: src/request.c:720 #, c-format msgid "Shrunk to: %s\n" -msgstr "" +msgstr "Diminuição para: %s\n" #: src/request.c:823 src/request.c:932 #, c-format msgid "Unrecognised surface name `%s'" -msgstr "" +msgstr "Nome de superfície '%s' não reconhecido" #: src/request.c:903 -#, fuzzy, c-format +#, c-format msgid "No way to recode from `%s' to `%s'" -msgstr " impossvel passar de %s para %s" +msgstr "Não é possível recodificar de '%s' para '%s'" #: src/request.c:1013 msgid "Expecting `..' in request" -msgstr "" +msgstr "À espera de '..' no pedido" #: src/task.c:826 src/task.c:1002 #, c-format msgid "Child process wait status is 0x%0.2x" -msgstr "O processo filho terminou com estado 0x%0.2x" +msgstr "O estado de espera do processo filho é 0x%0.2x" #: src/testdump.c:298 msgid "" "UCS2 Mne Description\n" "\n" msgstr "" - -#~ msgid "Ambiguous sequence `%s'" -#~ msgstr "A sequncia %s ambgua" - -#~ msgid "Unknown sequence `%s'" -#~ msgstr "Sequncia %s desconhecida" - -#~ msgid "Ambiguous language `%s'" -#~ msgstr "Linguagem %s ambgua" - -#~ msgid "Unknown language `%s'" -#~ msgstr "Lingua %s desconhecida" - -#~ msgid "Ambiguous format `%s'" -#~ msgstr "O formato %s ambiguo" - -#~ msgid "Unknown format `%s'" -#~ msgstr "Formato %s desconhecido" - -#~ msgid "Hash stats: %d names using %d buckets out of %d\n" -#~ msgstr "Estatsticas de disperso: %d nomes, usando %d de %d posies\n" - -#~ msgid "Currently, -s is ignored when -g is selected" -#~ msgstr "Actualmente, -s ignorado quando -g seleccionado" - -#~ msgid "one to one" -#~ msgstr "de um para um" - -#~ msgid "one to many" -#~ msgstr "de um para vrios" - -#~ msgid "many to one" -#~ msgstr "de vrios para um" - -#~ msgid "many to many" -#~ msgstr "de vrios para vrios" - -#~ msgid "MAX_CHARSETS is too small" -#~ msgstr "MAX_CHARSETS demasiado pequeno" - -#~ msgid "Ambiguous charset or encoding `%s'" -#~ msgstr "Caracteres ou codificao %s ambiguos" - -#~ msgid "Unknown charset or encoding `%s'" -#~ msgstr "Conjunto de caracteres ou codificao %s desconhecido" - -#~ msgid "Simplified to: %s\n" -#~ msgstr "Reduzido a: %s\n" - -#~ msgid "Unbalanced quotes in request" -#~ msgstr "Plicas desemparelhadas no pedido" - -#~ msgid "Illegal backslash" -#~ msgstr "Barra invertida ilegal" - -#~ msgid "Internal error - strategy undecided" -#~ msgstr "Erro interno - estratgia no decidvel" - -#~ msgid "ONE to SAME" -#~ msgstr "UM para o MESMO" - -#~ msgid "steps: %d" -#~ msgstr "passos: %d" - -#~ msgid ", %d saved by merging" -#~ msgstr ", %d gravado por fuso" - -#~ msgid " UNACHIEVABLE\n" -#~ msgstr " IMPOSSVEL\n" - -#~ msgid "Cannot auto check the ignored charset" -#~ msgstr "" -#~ "Verificao automtica do conjunto de caracteres ignorados impossvel" - -#~ msgid "Cannot auto check on %s" -#~ msgstr "Verificao automtica em %s impossvel" - -#~ msgid "" -#~ "Mandatory or optional arguments to long options are mandatory or optional\n" -#~ "for short options too.\n" -#~ "\n" -#~ " -C, --copyright display Copyright and copying conditions\n" -#~ " -a, --auto-check report about some or all recoding paths, then exit\n" -#~ " -l, --list[=FORMAT] list one or all known charsets\n" -#~ " -k, --known=PAIRS restrict charsets according to known PAIRS list\n" -#~ " --help display this help and exit\n" -#~ " --version output version information and exit\n" -#~ "\n" -#~ "FORMAT is a word among decimal, octal, hexadecimal or full (which may be\n" -#~ "abbreviated to one of `dohf'), it defaults to just the canonical name.\n" -#~ "With -k, possible before charsets are listed for the given after CHARSET,\n" -#~ "both being RFC1345 charsets, with PAIRS of the form " -#~ "`BEF1:AFT1,BEF2:AFT2,...\n" -#~ "and BEFs and AFTs being codes. All codes are given as decimal numbers.\n" -#~ msgstr "" -#~ "Os argumentos obrigatrios ou opcionais na forma longa das opes, tambm " -#~ "oso nas respectivas formas abreviadas.\n" -#~ "\n" -#~ " -C, --copyright afixar os direitos e condies de cpia\n" -#~ " -a, --auto-check verificar os passos para a converso e terminar\n" -#~ " -l, --list[=FORMAT] listar os conjuntos de caracteres conhecidos\n" -#~ " -k, --known=PAIRES restringir os conjuntos de caracteres com PAIRES\n" -#~ " --help afixar esta ajuda e terminar\n" -#~ " --version afixar a verso do programa e terminar\n" -#~ "\n" -#~ "FORMAT decimal, octal, hexadecimal ou full (que pode abreviar\n" -#~ "usando uma letra de `dohf'), se omitido, o nome cannico assumido.\n" -#~ "Com -k, so listados os caracteres possveis para cada CHARSET de sada,\n" -#~ "de acordo com o RFC1345, com PAIRES da forma BEF1:AFT1,BEF2:AFT2,...\n" -#~ "sendo BEFs e AFTs os respectivos cdigos em notao decimal.\n" - -#~ msgid "" -#~ "Option -l with no FORMAT nor CHARSET list all charsets, also see the " -#~ "Texinfo\n" -#~ "documentation. My preferred charsets are (each user has preferences):\n" -#~ "\n" -#~ " ascii-bs ASCII (7-bit), using backspace to apply diacritics\n" -#~ " ibmpc IBM-PC 8-bit characters, with proper newlines\n" -#~ " latex LaTeX coding of foreign and diacriticized characters\n" -#~ " latin1 ISO Latin-1 8-bit extension of ASCII\n" -#~ " texte Easy French convention for transmitting email messages\n" -#~ msgstr "" -#~ "A opo -l sem FORMAT nem CHARSET lista todos os conjuntos de caracteres\n" -#~ "(ver manual). Alguns conjuntos de caracteres bastante comuns:\n" -#~ "\n" -#~ " ascii-bs ASCII (7-bit), usando backspace para a acentuao\n" -#~ " ibmpc IBM-PC (8-bit), com CR LF a marcar o fim das linhas\n" -#~ " latex codificao LaTeX para os caracteres acentuados e outros\n" -#~ " latin1 ISO Latin-1 8-bits (extenso do ASCII)\n" -#~ " texte convenso Easy French para mensagens email\n" - -#~ msgid "" -#~ "\n" -#~ "Usage: %s [OPTION]... [BEFORE]:[AFTER] [FILE]...\n" -#~ msgstr "" -#~ "\n" -#~ "Uso: %s [OPO]... [BEFORE]:[AFTER] [FILE]...\n" - -#~ msgid "" -#~ " -o, --sequence=popen use popen machinery for sequencing passes\n" -#~ msgstr " -o, --sequence=popen usar popen para sequenciar os passos\n" - -#~ msgid " -o, --sequence=popen same as -i (on this system)\n" -#~ msgstr " -o, --sequence=popen o mesmo que -i (neste sistema)\n" - -#~ msgid "" -#~ " -q, --quiet, --silent inhibit messages about irreversible recodings\n" -#~ " -s, --strict use strict mappings, even loose characters\n" -#~ " -t, --touch touch the recoded files after replacement\n" -#~ " -v, --verbose explain sequence of steps and report progress\n" -#~ " -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" -#~ "\n" -#~ "If none of -i, -o and -p are given, presume -p if no FILE, else -i.\n" -#~ "Each FILE is recoded over itself, destroying the original. If no\n" -#~ "FILE is specified, then act as a filter and recode stdin to stdout.\n" -#~ msgstr "" -#~ " -q, --quiet, --silent no afixar mensagens sobre converses " -#~ "irreversveis\n" -#~ " -s, --strict converso estrita, podendo perder alguns " -#~ "caracteres\n" -#~ " -t, --touch actualizar a hora dos ficheiros processados\n" -#~ " -v, --verbose afixar a sequncia de passos e relatar o " -#~ "progresso\n" -#~ " -x, --ignore=CHARSET ignorar CHARSET na escolha da sequncia de passos\n" -#~ "\n" -#~ "Na ausncia de -i, -o e -p, assumir -i se no der FILE, ou ento -p.\n" -#~ "Cada FILE convertido para ele nesmo, destruindo o original. Se no " -#~ "indicar\n" -#~ "qualquer FILE, actuar como um filtro convertendo do stdin para stdout.\n" - -#~ msgid "BEFORE and AFTER both default to `%s' when needed.\n" -#~ msgstr "BEFORE e AFTER so ambos assumidos como %s quando necessrio.\n" - -#~ msgid "%s: Recoding is not reversible" -#~ msgstr "%s: Converso irreversvel" - -#~ msgid "Recoding is not reversible" -#~ msgstr "Converso irreversvel" +"UCS2 Mne Descrição\n" +"\n" --- /dev/null +++ b/i18n/vi.po @@ -0,0 +1,512 @@ +# Vietnamese translation for recode-3.6. +# Copyright (C) 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2005-02-20 18:44+0950\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Không có lỗi" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Dữ liệụ gõ không đúng tiêu chuẩn" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Dữ liệu xuất là mơ hồ" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Dữ liệu gõ không dịch được" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Dữ liệu gõ không hợp lệ" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Hệ thống mới gặp lỗi" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Không sử dụng thư viện mã hóa lại cho đúng" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Lỗi mã hóa lại nội bộ" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Chương trình này là phần mềm tự do; bạn có thể phân phối và/hay sửa đổí\n" +"nó với điều kiện cua Quyền Công Chung Gnu (GPL) như được xuất do\n" +"Free Software Foundation; hoặc phiên bản 2, hoặc (tùy chọn)\n" +"bất cứ phiên bản sau nào.\n" +"\n" +"Chúng tôi phân phối chương trình này vì mong nó có ích, nhưng\n" +"không bảo đảm gì cả, không bảo đảm một cách ngụ ý\n" +"khả năng bán hay khả năng làm việc dứt khoát. Hãy xem\n" +"Quyền Công Chung Gnu để tim thấy chi tiết thêm.\n" +"\n" +"Bạn nên được nhận một bản Quyền Công Chung Gnu với\n" +"chương trình này; nếu không thì hãy viết thư cho Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA (Mỹ).\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Thử lệnh `%s %s' để tìm thấy thông tin thêm.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Chương trình `recode' (mã hóa lại) tự do thì chuyển đổi tập tin giữa nhiều bộ ký tự và mặt khác nhau.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Cách sử dụng: %s [TÙY_CHỌN]... [ [BỘ_KÝ_TỰ] | LỜI_YÊU_CẦU [TẬP_TIN]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Nếu tùy chọn dài phải có đối số thì tùy chọn ngắn thích hợp cũng vậy.\n" +"Đối với đối số tùy chọn thì cách giống nhau.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Danh sách:\n" +" -l, --list[=DẠNG] _ghi danh sach_ một hay tất cả bộ ký tự và biệt hiệu được biết\n" +" -k, --known=CẶP hạn chế bộ ký tự theo danh sách CẶP _được biết_\n" +" -h, --header[=[NGÔN_NGỮ/]TÊN] ghi TÊN bảng ra thiết bị xuất chuẩn bằng sử dụng ngôn ngữ ấy rồi thoát (_đầu đề_)\n" +" -F, --freeze-tables ghi ra mô-đun C chứa tất cả _bảng_ (_làm đông đặc_)\n" +" -T, --find-subsets thông báo tât cả bộ ký tự là _nhóm phụ_ của bộ khác (_tìm_)\n" +" -C, --copyright hiển thị các điều kiện _bản quyền_ và sao chép\n" +" --help hiển thị _trợ giúp_ này rồi thoát\n" +" --version xuất thông tin _phiên bản_ rồi thoát\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Chế độ thi hành:\n" +" -v, --verbose giải thích dãy bước và thông báo tiến trình (_chi tiết_)\n" +" -q, --quiet, --silent thu hồi các thông điệp về việc mã hóa lại không hoàn tác (_im_)\n" +" -f, --force _buộc_ tất cả việc mã hóa lại ngay cả khi không thể hoàn tác\n" +" -t, --touch _sờ_ mọi tập tin được mã hóa lại sau khi thay thế\n" +" -i, --sequence=files sử dụng _tâp tin_ trung cấp cho việc _sắp xếp_ \n" +" --sequence=memory sử dụng bộ đệm _nhớ_ cho việc _sắp xếp_\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe sử dụng thiết bị _ống_ cho việc _sắp xếp_\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe bằng cờ -i (trên hệ điều hành này)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Điều hưởng tinh:\n" +" -s, --strict sử dụng ánh xạ _chặt chẽ_, ngay cả ký tự phóng\n" +" -d, --diacritics chuyển đổi chỉ _dấu phụ_ hay điều như nhau đối với HTML/LaTeX\n" +" -S, --source[=NGÔN_NGỮ] hạn chế việc ma hóa lại nên chỉ xử lý chuỗi và chú thích như ngôn ngữ ấy (_nguồn_)\n" +" -c, --colons sử dụng _dấu hai chấm_ thay thế dấu nháy kép cho dấu tách đôi\n" +" -g, --graphics ước các thước đo IBMPC bằng _đồ họa_ ASCII\n" +" -x, --ignore=BÔ_KÝ_TỰ _bỏ qua_ bộ ký tự ấy khi chọn đường dẫn mã hóa lại\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Khi tùy chọn -l không có DẠNG hay BỘ KÝ TỰ thi ghi danh sách tất cả bộ ký tự và mặt sẵn sàng.\n" +"DẠNG là `decimal' (thập phân), `octal' (bát phân), `hexadecimal' (thập lục phân) hay `full' (toàn) (hay một của chữ đầu `dohf').\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Nếu chưa lập BỘ_KÝ_TỰ_MẶC_ĐỊNH trong môi trường thì LC_ALL, LC_CTYPE, LANG\n" +"quyết định biên mã phụ thuộc vào miền địa phương, là BỘ_KÝ_TỰ mặc định\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Có thể sử dụng tùy chọn -k trước khi ghi danh sách bộ ký tự sau BỘ_KÝ_TỰ,\n" +"cả hai bộ ký tự ấy có dạng bảng, có mọi đôi dạng `BEF1:AFT1,BEF2:AFT2,...'\n" +"và cả hai BEF và AFT là mã dạng số thập phân.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN hay NGÔN_NGỮ là một ngôn ngữ, có thể `c', `perl' hay `po'; còn `c' là mặc định.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"LỜI_YÊU_CẦU là PHỤ_LỜI_YÊU_CẦU[,PHỤ_LỜI_YÊU_CẦU]...;\n" +"PHỤ_LỜI_YÊU_CẦU là BIÊN_MÃ [..BIÊN_MÃ]... BIÊN_MÃ là [BỘ_KÝ_TỰ][/[MẶT]]...;\n" +"LỜI_YÊU_CẦU thường hình như TRƯỚC..SAU, mà cả hai TRƯỚC và SAU là bô ký tự.\n" +"Khi không nhập BỘ_KÝ_TỰ nên sử dụng bộ ký tự thường; khi không nhập [/MẶT]...\n" +"nên sử dụng những mặt ngụ ý cho BỘ_KÝ_TỰ; ký tự / có tên mặt trống có nghĩa là\n" +"không có mặt nào. Hãy xem sổ hướng dẫn.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Nếu chưa nhận -i và -p thì giả sử -p nếu không có TẬP_TIN, nếu có thì -i.\n" +"Sẽ mã hóa lại mỗi TẬP_TIN trên mình nên xóa bỏ điều trước. Nếu chưa ghi rõ TẬP_TIN\n" +"thì thay quyền trình lọc và mã hóa lại dữ liệu gõ chuẩn ra thiết bị xuất chuẩn.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Hãy thông báo lỗi cho .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Dãy `%s' mơ hồ" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Chưa biết dãy `%s' " + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Ngôn ngữ `%s' mơ hồ" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Chưa biết ngôn ngữ `%s'" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Dạng `%s' mơ hồ" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Chưa biết dạng `%s' " + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Tác giả: François Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Bản quyền (C) năm 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Đây là phần mềm tự do; hãy xem mã nguồn để thấy điều kiện sao chép.\n" +"Không bảo đảm gì cả, dù khả năng bán hay khả năng làm việc dứt khoát.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Chưa biết ký hiệu `%s' " + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Bộ ký tự `%s' là chưa được biệt hoặc mơ hồ" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Thiếu đốí số bắt buộc" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Phản đối cú pháp ấy, hãy sử dụng `%s' thay thế" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Lời yêu cầu `%s' không đúng" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Đang mã hóa lại %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " xong rồi\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " không xong được: %s trong bước `%s..%s'\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s không xong được: %s trong bước `%s..%s'" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s trong bước `%s..%s'" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Bộ ký tự %s tồn tại rồi, không là %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Không ghi `%s' được vì không có tên nào cho bộ ký tự này" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Hệ2 Hệ8 Hệ16 UCS2 Nhớ %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Tiếc là không có tên nào cho `%s'" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Đã lập việc tạo mặt lại hơn một lần cho `%s'" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Đã lập việc bỏ mặt hơn một lần cho `%s'" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Hết bộ nhớ ảo rồì" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Có mã hóa lại cả hai mã %3d và %3d thành %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Không mã hóa lại ký tự nào thành %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Không đảo được bảng một-đối-một đã cho" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Đang theo phương pháp chẩn đoán cho `%s' đến `%s'" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Số cặp %d: <%3d, %3d> xung đột với <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Không thể xong tạo bảng từ bộ cặp được biết" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Việc mã hóa lại chỉ giống hệt, không cần bảng toàn" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Việc mã hóa lại quá phức tạp đối với bảng" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sBảng chuyển đổi được tạo ra tự động do Free (Tự do) `%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%sđối với dãy %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Không có bảng nào để in" + +#: src/request.c:34 +msgid "reversible" +msgstr "có thể hoàn tác" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s thành %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "byte" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "biến đổi" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Không xong đươc*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*chỉ bản sao*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Hết bộ nhớ ảo rồi." + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Không khởi động bước được" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Không khởi động bước được (chưa xử lý tùy chọn)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Lời yêu cầu: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Đã co lại cho: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Chưa chấp nhận tên mặt `%s'" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Không có cách mã hóa lại tư `%s' sang `%s'" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Đang ngờ `..' trong lời yêu cầu" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Trạng thái đời của xử lý con là 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Nhớ Mô tả\n" +"\n" --- /dev/null +++ b/i18n/zh_CN.po @@ -0,0 +1,509 @@ +# Simplified Chinese translation for recode. +# Copyright (C) 2005 Free Software Foundation, Inc. +# Meng Jie , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2005-12-03 21:43+0800\n" +"Last-Translator: Meng Jie \n" +"Language-Team: Chinese (simplified) \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: z:\\recode-3.6\n" + +#: src/main.c:142 +msgid "No error" +msgstr "没有错误" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "不正规的输入" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "有歧义的输出" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "无法翻译的输入" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "无效的输入" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "系统问题" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "对重新编码库的使用不正确" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "内部重新编码缺陷" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"此程序是自由软件;您可以在自由软件基金会发布的 GNU 通用公共许\n" +"可证的条款下重新分发和(或)修改它;您可以选择使用 GPL 第二版,\n" +"或(按照您的意愿)任何更新的版本。\n" +"\n" +"该程序分发的目的是为了其他人可以使用它,但是没有任何担保;也没\n" +"有对其适销性和某一特定目的下的适用性的担保。请查阅 GNU 通用公\n" +"共许可证来获得更多的信息。\n" +"\n" +"你应该已经跟本程序一起收到一份 GNU 通用公共许可证;如果没有,\n" +"请写信至:Free Software Foundation, Inc., \n" +"59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "请尝试执行‘%s %s’以得到更多信息。\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "自由的‘recode’将文件在不同的字符集和外在编码间转换。\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"用法:%s [选项]... [ [字符集] | 请求 [文件]...]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"长选项必须带的参数在使用与之等价的短选项时也是必须的。可选参数亦是如此。\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"列表:\n" +" -l,--list[=格式] 列出某个或所有已知的字符集和别名\n" +" -k,--known=映射 仅列出匹配已知“映射”列表的字符集\n" +" -h,--header[=[语言/]表名] 在标准输出上输出符合某语言语法的转换表,然后退出\n" +" -F,--freeze-tables 输出一个包括所有转换表的 C 模块\n" +" -T,--find-subsets 报告所有是其他字符集子集的字符集\n" +" -C,--copyright 显示版权信息和复制条件\n" +" --help 显示本帮助信息后退出\n" +" --version 输出版本信息后退出\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"操作模式:\n" +" -v,--verbose 报告转换步骤序列和过程\n" +" -q,--quiet,--silent 不报告不可逆的重新编码\n" +" -f,--force 强制进行不可逆的重新编码\n" +" -t,--touch 在替换之后 touch 重新编码的文件\n" +" -i,--sequence=files 为系列转换使用中间文件\n" +" --sequence=memory 为系列转换使用内存缓冲区\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p,--sequence=pipe 为系列转换使用管道机制\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p,--sequence=pipe 在此系统下与 -i 等效\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"细节调整:\n" +" -s,--strict 即使为可放松的字符也使用严格映射\n" +" -d,--diacritics 只为 HTML/LaTeX 转换变音记号等\n" +" -S,--source[=语言] 将重新编码的范围限制在某编程语言的字符串和注释中\n" +" -c,--colons 使用冒号而不是双引号来表示分音符\n" +" -g,--graphics 用 ASCII 符号模拟 IBMPC 标尺\n" +" -x,--ignore=字符集 在选择重新编码途径时忽略某字符集\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"选项 -l 后如果没有指定“格式”或“字符集”,则列出所有可用的字符集和外在编码。\n" +"“格式”可以为‘decimal’、‘octal’、‘hexadecimal’或‘full’(或者‘dohf’\n" +"中的任一个字母)。\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"如果没有设置 DEFAULT_CHARSET 环境变量,字符集默认为区域选项的编码,由 LC_ALL、\n" +"LC_CTYPE、LANG 决定。\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"使用 -k 时,目标字符集可能对应的所有的源字符集都将列出,两者均为表格化的字符\n" +"集,“映射”具有‘源1:目标1,源2:目标2,...’的形式,其中“源x”和“目标x”均\n" +"须以十进制数的形式给出。\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "“语言”是某种编码语言,可以为‘c’、‘perl’或‘po’,‘c’为默认值。\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"“请求”格式为“子请求[,子请求]...”;“子请求”格式为“编码[..编码]...”\n" +"“编码”格式为“[字符集][/[外在编码]]...”;“请求”一般有“源..目的”的形式,\n" +"“源”和“目的”均为字符集名。如果省略“字符集”,则表示通常的字符集;如果省略\n" +"“[/外在编码]...”则表示“字符集”默认的外在编码;只给出“/”而在其后不给出任\n" +"何外在编码则表示没有任何外在编码。详情请参见手册。\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"如果没有给出 -i 或 -p,当命令行中有文件时使用 -p,否则使用 -i。\n" +"为每个文件就地重新编码,丢弃其原始内容。如果没有在命令行中指定文件,\n" +"则将标准输入的内容重新编码为标准输出。\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"请向 报告程序缺陷。\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "序列‘%s’意义不明确" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "序列‘%s’未知" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "语言‘%s’意义不明确" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "语言‘%s’未知" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "格式‘%s’意义不明确" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "格式‘%s’未知" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "由 Francois Pinard 编写。\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"版权所有 (C) 1990,92,93,94,96,97,99 自由软件基金会。\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"本程序是自由软件;请参看源代码的版权声明。本软件不提供任何担保;\n" +"包括没有适销性和某一专用目的下的适用性担保。\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "符号‘%s’未知" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "字符集‘%s’未知或有歧义" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "缺少需要的参数" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "语法已过时,请改用‘%s’" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "请求‘%s’有错误" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "重新编码 %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " 完成\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " 失败:%s 在步骤‘%s..%s’中\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s 失败:%s 在步骤‘%s..%s’中" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s 在步骤‘%s..%s’中" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "字符集 %s 已存在且并非 %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "无法列出‘%s’,此字符集没有可用的字符名" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "十 八 十六 UCS2 助记 %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "对不起,‘%s’没有可用的字符名" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "为‘%s’施加了多于一个的外在编码" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "为‘%s’去除了多于一个的外在编码" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "虚拟内存耗尽" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "代码 %3d 和 %3d 都将被重新编码为 %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "没有字符集可重新编码到 %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "无法求出给定的一一对应转换表的逆" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "‘%s’到‘%s’的诊断信息" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "第 %d 号映射:<%3d,%3d> 与 <%3d,%3d> 冲突" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "无法从已知映射集中形成完整的转换表" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "恒等变换,不需要转换表" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "重新编码太过复杂,无法以一张转换表表示" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sConversion table generated mechanically by Free `%s' %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%s为转换系列 %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "没有可以打印的转换表" + +#: src/request.c:34 +msgid "reversible" +msgstr "可逆的" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s 到 %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "字节" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "变量" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*无法到达*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*仅复制*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "虚拟内存耗尽!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "步骤初始化失败" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "步骤初始化失败(未处理的选项)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "请求:%s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "缩减到:%s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "无法识别的外在编码‘%s’" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "没有从‘%s’重新编码至‘%s’的途径" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "请求中要有‘..’" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "子进程等待状态为 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 助记 描述\n" +"\n" --- /dev/null +++ b/i18n/cs.po @@ -0,0 +1,521 @@ +# Czech translation of recode. +# This file is distributed under the same license as the recode package. +# Copyright (C) 2009 Free Software Foundation, Inc. +# Petr Pisar , 2009. +# +# surface → povrch +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2009-07-26 20:49+0200\n" +"Last-Translator: Petr Pisar \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Žádná chyba" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Nekanonický vstup" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Nejednoznačný výstup" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Nepřeložitelný vstup" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Neplatný vstup" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Problém nalezený systémem" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Nesprávné použití převodní knihovny" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Vnitřní chyba převodu" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Tento program je svobodné programové vybavení. Můžete jej šířit a/nebo\n" +"upravovat podle podmínek Obecné veřejné licence GNU (GPL), která byla\n" +"vydána Free Software Foundation, a to buď podle verze 2, nebo (podle vašeho\n" +"uvážení) jakékoliv pozdější verze.\n" +"\n" +"Tento program je šířen v naději, že bude užitečný, avšak BEZ JAKÉKOLIV\n" +"ZÁRUKY, a to dokonce bez odvozené záruky OBCHODOVATELNOSTI nebo VHODNOSTI\n" +"PRO DANÝ ÚČEL. Podrobnosti naleznete v Obecně veřejné licenci GNU (GPL).\n" +"\n" +"Spolu s tímto program byste měli obdržet kopii Obecné veřejné licence GNU\n" +"(GPL). Není-li tomu tak, napište na adresu Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Podrobnosti získáte pomocí „%s %s“.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Svobodný „recode“ převádí soubory mezi rozličnými znakovými sadami a povrchy.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Použití: %s [PŘEPÍNAČE…] [ [ZNAKOVÁ_SADA] | POŽADAVEK [SOUBOR…] ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Pokud dlouhý přepínač označuje argument za povinný, pak je povinný i pro\n" +"odpovídající krátký přepínač. Obdobné pravidlo platí pro volitelné argumenty.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Výpisy:\n" +" -l, --list[=FORMÁT] vypíše jednu nebo všechny známé znakové sady\n" +" a aliasy\n" +" -k, --known=PÁRY omezí znakové sady na seznam známých PÁRŮ\n" +" -h, --header[=[JZ/]NÁZEV] vypíše tabulku NÁZEV pomocí JZ, pak skončí\n" +" -F, --freeze-tables vypíše všechny tabulky jako modul v C\n" +" -T, --find-subsets nahlásí všechny znakové sady, které jsou\n" +" podmnožinou jiných sad\n" +" -C, --copyright zobrazí Copyright a podmínky užití\n" +" --help zobrazí tuto nápovědu a skončí\n" +" --version vypíše informace o verzi a skončí\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Režimy běhu:\n" +" -v, --verbose vysvětlí posloupnost kroků a vyznačí postup běhu\n" +" -q, --quiet, --silent potlačí zprávy o nevratných převodech\n" +" -f, --force vynutí převody, i když budou nevratné\n" +" -t, --touch po nahrazení převedených souborů změní i jejich časy\n" +" -i, --sequence=files mezi průchody odkládá data do dočasných souborů\n" +" --sequence=memory mezi průchody odkládá data do paměťových bufferů\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe data mezi průchody propojí pomocí rour\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe stejné jako -i (na tomto systému)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Drobná nastavení\n" +" -s, --strict použije přísné mapování, může ztratit některé znaky\n" +" -d, --diacritics převádí jen diakritiku a podobné znaky u HTML/LaTeXu\n" +" -S, --source[=JZ] omezí převod na řetězce a komentáře jazyka JZ\n" +" -c, --colons pro apostrofy použije dvojtečky namísto dvojitých\n" +" uvozovek\n" +" -g, --graphics aproximuje čáry IBMPC pomocí ASCII grafiky\n" +" -x, --ignore=SADA ignoruje znakovou SADU při výběru cesty převodu\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Přepínač -l bez FORMÁTU a bez SADY vypíše dostupné znakové sady a povrchy.\n" +"FORMÁT je „decimal“ (desítkový), „octal“ (osmičkový), „hexadecimal“\n" +"(šestnáctkový) nebo „full“ (plný) nebo jeden ze znaků „dohf“.\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Není-li nastavena proměnná prostředí DEFAULT_CHARSET, jako implicitní\n" +"kódování SADY se použije kódování národního prostředí určené podle LC_ALL,\n" +"LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Pomocí -k lze určit možné sady před pro zadanou ZNAKOVOU_SADU po, obě jsouce\n" +"tabulkovými znakovými sadami, PÁRY jsouce tvaru „PŘED1:PO1,PŘED2:PO2,…“.\n" +"PŘED a PO jsou kódy zadané jako desítkové číslo.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "JZ představuje jazyk, nabývá hodnot „c“, „perl“ nebo „po“, implicitní je „c“.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"POŽADAVEK je PODPOŽADAVEK[,PODPOŽADAVEK…]; PODPOŽADAVEK je\n" +"KÓDOVÁNÍ[..KÓDOVÁNÍ…]. KÓDOVÁNÍ je [ZNAKOVÁ_SADA][/[POVRCH]…]; POŽADAVEK často\n" +"vypadá jako PŘED..POTOM, kde PŘED a POTOM jsou znakové sady. Vynechaná\n" +"ZNAKOVÁ_SADA implikuje obvyklou znakovou sadu, vynechaný [/POVRCH…] znamená\n" +"implicitní povrch dané ZNAKOVÉ_SADY, „/“ s prázdným názvem povrchu značí žádný\n" +"povrch. Vizte manuál.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Není-li zadáno ani -i, ani -p, předpokládá se -p, nebyl-li zadán SOUBOR,\n" +"jinak -i. Každý SOUBOR se převádí sám do sebe, takže zničí originál. Není-li\n" +"zadán žádný SOUBOR, pak se recode chová jako filtr a převádí standardní vstup\n" +"na standardní výstup.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Chyby programu hlaste anglicky na , chyby\n" +"v překladu česky na \n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Posloupnost „%s“ není jednoznačná" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Posloupnost „%s“ není známa" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Jazyk „%s“ není jednoznačný" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Jazyk „%s“ není znám" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Formát „%s“ není jednoznačný" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Formát „%s“ není znám" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Napsal François Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright © 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Toto je svobodné programové vybavení, pro podmínky rozmnožování vizte zdrojové\n" +"kódy. Není zde ŽÁDNÁ záruka, ani na OBCHODOVATELNOST, ani na VHODNOST PRO\n" +"URČITÝ ÚČEL.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Symbol „%s“ není znám" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Znaková sada „%s“ není známa nebo není jednoznačná" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Požadovaný argument chybí" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Syntaxe je zastaralá, prosím, používejte „%s“" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Požadavek „%s“ chybný" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "%s se převádí…" + +#: src/main.c:913 +msgid " done\n" +msgstr " hotovo\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " chyba: %s v kroku „%s..%s“\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s selhalo: %s v kroku „%s..%s“" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s v kroku „%s..%s“" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Znaková sada %s již existuje a není %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "„%s“ nelze vypsat, pro tuto sadu neexistují žádná jména" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Des Osm Šest UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Je nám líto, ale pro „%s“ není žádný název" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Změna povrchu u %s“ nastavena více než jednou" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Odstranění povrchu u „%s“ nastaveno více než jednou" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Virtuální paměť vyčerpána" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Oba kódy %3d a %3d vedou na %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Žádný znak nevede na %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Zadanou tabulku 1:1 nelze invertovat" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Následuje diagnostika pro „%s“ do „%s“" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Pár č. %d: <%3d, %3d> je v rozporu s <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Z množiny známých párů nelze sestavit tabulku" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Tabulka identity, ne příliš užitečná tabulka" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Převod je na pouhou tabulku příliš složitý" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sPřevodní tabulka mechanicky vytvořena pomocí svobodného „%s“ %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%spro posloupnost %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Žádná tabulka na vytištění" + +#: src/request.c:34 +msgid "reversible" +msgstr "vratný" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s do %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "bajt" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "UCS2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "proměnná" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Nedosažitelný*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "čistá kopie" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Virtuální paměť vyčerpána!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Inicializace kroku selhala" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Inicializace kroku selhala (nezpracované přepínače)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Požadavek: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Zkráceno na: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Nerozpoznaný název povrchu „%s“" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Neexistuje způsob, jak převést „%s“ na „%s“" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "V požadavku očekáváno „..“" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Proces potomka zakončen ve stavu 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Popis\n" +"\n" --- /dev/null +++ b/i18n/fi.po @@ -0,0 +1,514 @@ +# Finnish messsages for recode. +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the recode package. +# Jorma Karvonen , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2010-03-10 20:54+0200\n" +"Last-Translator: Jorma Karvonen \n" +"Language-Team: Finnish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Ei virhettä" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Ei-kanoninen syöte" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Ei yksiselitteinen tuloste" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Kääntökelvoton syöte" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Virheellinen syöte" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Järjestelmän havaitsema pulma" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Koodauskirjaston väärinkäyttö" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Sisäinen koodausvirhe" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Tämä ohjelma on ilmainen; voit jakaa sitä edelleen ja/tai muokata\n" +"sitä Free Software Foundationin julkaiseman GNU General Public License\n" +"-lisenssin alaisena; joko versiona 2, tai (valintasi mukaan)\n" +"minä tahansa myöhäisempänä versiona.\n" +"\n" +"Tätä ohjelmaa jaetaan toivossa, että se on hyödyllinen,\n" +"mutta ILMAN MITÄÄN TAKUUTA; ilman pientäkään vihjausta takuusta\n" +"KAUPALLISUUTEEN tai SOVELTUVUUDESTA JOHONKIN TARKOITUKSEEN. Lisätietoja\n" +"GNU General Public License-lisenssistä.\n" +"\n" +"Sinun pitäisi saada kopion GNU General Public License-lisenssistä\n" +"tämän ohjelman mukana; jos näin ei ole, kirjoita osoittteeseen Free Software\n" +"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Lisätietoja komennolla ”%s %s”.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "Ilmainen ”recode” muuntaa tiedostot eri merkistöjen ja pintojen välillä.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Käyttö: %s [VALITSIN]... [ [MERKISTÖ] | PYYNTÖ [TIEDOSTO]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Jos pitkä valitsin näyttää argumentin pakollisena, niin se on pakollinen\n" +"myös lyhyillä valitsimilla. Sama koskee valitsinargumentteja.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Luettelot:\n" +" -l, --list[=MUOTO] luettele yksi tai kaikki tunnetut merkistöt ja aliakset\n" +" -k, --known=PARIT rajoita merkistöt tunnetun PARIT-luettelon mukaan\n" +" -h, --header[=[LN/]NIMI] kirjoita taulukon NIMI vakiotulosteeseen käyttäen LN-kieltä, poistu sitten\n" +" -F, --freeze-tables kirjoita C moduuliin säilyttäen kaikki taulut\n" +" -T, --find-subsets raportoi kaikki merkistöt, jotka ovat muiden alijoukkoja\n" +" -C, --copyright näytä Copyright-tiedot ja kopiointiehdot\n" +" --help näytä tämä opaste ja poistu\n" +" --version tulosta versiontiedot ja poistu\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Toimintatilat:\n" +" -v, --verbose selitä vaiheiden sekvenssi ja kerro edistymisestä\n" +" -q, --quiet, --silent estä sanomat peruuttamattomista uudelleenkoodauksista\n" +" -f, --force pakota uudelleenkoodaukset vaikka ne eivät ole peruttavissa\n" +" -t, --touch tee touch-toiminta uudelleenkoodatuille tiedostoille sijoituksen jälkeen\n" +" -i, --sequence=files käytä väliaikaistiedostoja peräkkäisiin vaiheisiin\n" +" --sequence=memory käytä muistipuskureita peräkkäisiin vaiheisiin\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe käytä putkimekanismia peräkkäisiin ajoihin\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe sama kuin -i (tässä järjestelmässä)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Hienosäätö:\n" +" -s, --strict käytä strict-uudelleenkoodausta, salli merkkien katoaminen\n" +" -d, --diacritics muunna vain tarkemerkit ja vastaavat HTML/LaTeX-ohjelmia varten\n" +" -S, --source[=LN] rajoita uudelleenkoodaukset merkkijonoihin ja kommentteihin kuten LN-kielelle\n" +" -c, --colons käytä kaksoispisteitä kaksoissuljemerkin sijasta tarkemerkkeihin\n" +" -g, --graphics likimääräistä linjat IBMPC:ssä ASCII-grafiikalla\n" +" -x, --ignore=MERKISTÖ älä välitä MERKISTÖstä valittaessa uudelleenkoodauspolkua\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Valitsin -l ilman MUOTO- tai MERKISTÖ-asetusta luettelee käytettävissä oleva merkistöt ja pinnat.\n" +"MUOTO on ’decimal’, ’octal’, ’hexadecimal’ tai ’full’ (tai yksi kirjaimista ”dohf”).\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Jollei DEFAULT_CHARSET-muuttujaa ole asetettu ympäristössä, MERKISTÖ-oletuksena on paikallis-\n" +"asetuksesta riippuvainen koodaus, joka määritellään muuttujissa LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Valitsimella -k, mahdolliset aloitusmerkistöt luetellaan tiettyille lopetusmerkistöille,\n" +"joissa molemmat ovat taulukkomuodossa ”ALKU1:LOPPU1,ALKU2:LOPPU2,...”-muotoisina pareina'\n" +"ja ALKU- ja LOPPU-parametrit ovat desimaalilukuina annettuja koodeja.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "LN on joku kieli, se saattaa olla ’c’, ’perl’ tai ’po’; ’c’ on oletus.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"PYYNTÖ on ALIPYYNTÖ[,ALIPYYNTÖ]...; ALIPYYNTÖ on KOODAUS[..KOODAUS]...\n" +"KOODAUS on [MERKISTÖ][/[PINTA]]...; PYYNTÖ näyttää usein kuin ALKU..LOPPU,\n" +"joissa ALKU ja LOPPU ovat merkistöjä. Poisjätetty MERKISTÖ merkitsee tavallista\n" +"merkistöä; poisjätetty [/PINTA]... tarkoittaa epäsuoraa pintaa MERKISTÖlle; ”/”-merkki\n" +"tyhjän pintanimen kanssa tarkoittaa, että pintaa ei ole ollenkaan. Katso käsikirjaa.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Jos kumpaakaan valitsimista -i ja -p ei ole annettu, otaksu valitsin -p, jos\n" +"ei ole TIEDOSTOa, muuten -i. Jokainen TIEDOSTO koodataan uudelleen itsensä\n" +"päälle, mikä tuhoaa alkuperäisen. Jos TIEDOSTOa ei ole määritelty, toimi silloin\n" +"kuin suodatin ja vakiosyöte koodataan uudelleen vakiotulosteeseen.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Ilmoita virheistä (englanniksi) osoitteeseen .\n" +"Ilmoita käännösvirheistä osoitteeseen .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Sekvenssi ”%s” ei ole yksiselitteinen" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Sekvenssi ”%s” on tuntematon" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Kieli ”%s” ei ole yksiselitteinen" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Kieli ”%s” on tuntematon" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Muoto ”%s” ei ole yksiselitteinen" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Muoto ”%s” on tuntematon" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Kirjoittaja: François Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright © 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Tämä on ilmainen ohjelmisto; katso lähdekoodista kopiointiehdot. Ohjelmalle EI\n" +"ole takuuta; ei edes KAUPALLISUUDELLE tai SOPIVUUDELLE TIETTYYN TARKOITUKSEEN.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Symboli ”%s” on tuntematon" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Merkistö ”%s” on tuntematon tai ei ole yksiselitteinen" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Vaadittu argumentti puuttuu" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Syntaksi on vanhentunut, parempana pidetään syntaksia ”%s”" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Pyyntö ”%s” on virheellinen" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Uudelleenkoodataan %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " valmis\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " epäonnistui: %s vaiheessa ”%s..%s”\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s epäonnistui: %s vaiheessa ”%s..%s”" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s vaiheessa ”%s..%s”" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Merkistö %s on jo olemassa ja se ei ole %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Ei voida luetella ”%s”, tälle merkistölle ei ole nimeä" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Des Okt Heksa UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Kohteelle ”%s” ei ole nimeä" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Pintakoodaus on asetettu useammin kuin kerran kohteelle ”%s”" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Pinnanpoistokoodaus on asetettu useammin kuin kerran kohteelle ”%s”" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Virtuaalimuisti loppui" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Koodit %3d ja %3d koodataan kumpikin uudelleen koodiksi %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Ei merkkiuudelleenkoodausta kohteeseen %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Ei voida kääntää nurinpäin tiettyä yksi-yhteen-taulua" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Seuraava diagnostiikka kohteelta ”%s” kohteelle ”%s”" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Pari nro %d: <%3d, %3d> on ristiriidassa parin <%3d, %3d> kanssa" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Ei voida muodostaa taulua tunnettujen parien joukosta" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Identtinen uudelleenkoodaus, ei ole taulun arvoinen" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Uudelleenkoodaus on liian mutkikas yksinkertaiselle taululle" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sMuunnostaulun on luonut automaattisesti ilmainen ”%s” %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%ssekvensille %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Ei taulua kirjoitettavana" + +#: src/request.c:34 +msgid "reversible" +msgstr "palautuva" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s kohteeseen %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "tavu" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "muuttuja" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Mahdoton*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*vain kopiointi*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Virtuaalimuisti loppui!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Vaihealustus epäonnistui" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Vaihealustus epäonnistui (työstämättömiä valitsimia)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Pyyntö: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Kutistui kohteeseen %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Tunnistamaton pintanimi ”%s”" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Ei tapaa koodata uudelleen kohteesta ”%s” kohteeseen ”%s”" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "Odotetaan ”..” pyynnössä" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Lapsiprosessin odotustila on 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Kuvaus\n" +"\n" --- /dev/null +++ b/i18n/hu.po @@ -0,0 +1,532 @@ +# Hungarian translation of recode +# Copyright (C) 2002, 2012 Free Software Foundation, Inc. +# This file is distributed under the same license as the recode package. +# +# Andras Timar , 2002. +# Gabor Kelemen , 2012. +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2012-04-26 23:19+0200\n" +"Last-Translator: Gabor Kelemen \n" +"Language-Team: Hungarian \n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Hibátlan" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Nem kanonikus bemenet" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Nem egyértelmű kimenet" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Lefordíthatatlan bemenet" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Érvénytelen bemenet" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Rendszerhiba" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Az átkódoló könyvtár téves használata" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Belső átkódolási hiba" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Ez egy szabad szoftver, terjesztheti és/vagy módosíthatja a Free Software\n" +"Foundation által kiadott GNU General Public License második (vagy bármely\n" +"későbbi) változatában foglaltak alapján.\n" +"\n" +"Ezt a programot abban a reményben terjesztjük, hogy hasznos lesz, de nem\n" +"vállalunk SEMMIFÉLE GARANCIÁT, még olyan értelemben sem, hogy a program\n" +"alkalmas-e a KÖZREADÁSRA vagy EGY BIZONYOS FELADAT ELVÉGZÉSÉRE. További\n" +"részletekért tanulmányozza a GNU GPL licencet.\n" +"\n" +"Ehhez a programhoz a GNU General Public License egy példánya is jár,\n" +"ha nem kapta meg, írjon a Free Software Foundation Inc.-nek. Levélcímük:\n" +"51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "További információkért adja ki a következőt: „%s %s”.\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "A „recode” karakterkészletek és felületek közötti konverziót tesz lehetővé.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Használat: %s [KAPCSOLÓK]... [ [KARAKTERKÉSZLET] | KÉRÉS [FÁJL]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Ha a hosszú kapcsolóhoz kötelező argumentumot megadni, akkor az a megfelelő\n" +"rövid kapcsolóra is vonatkozik. Hasonló a helyzet a választható\n" +"argumentumokkal.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Listák:\n" +" -l, --list[=FORMÁTUM] az összes ismert karakterkészlet kiírása\n" +" -k, --known=PÁROK karakterkészletek korlátozása az ismert PÁROKRA\n" +" -h, --header[=[LN/]NÉV] a NÉV tábla kiírása az LN használatával, és kilépés\n" +" -F, --freeze-tables C modul kiírása az összes táblával\n" +" -T, --find-subsets kiírja azokat a karakterkészleteket, amelyeket\n" +" mások magukba foglalnak\n" +" -C, --copyright a copyright és a másolási feltételek kiírása\n" +" --help ezen súgó kiírása, és kilépés\n" +" --version a verzióinformációk kiírása, és kilépés\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Működési módok:\n" +" -v, --verbose a lépések és az előrehaladás kiírása\n" +" -q, --quiet, --silent nem ír ki üzeneteket visszafordíthatatlan\n" +" átkódolás esetén\n" +" -f, --force átkódolás kényszerítése visszafordíthatatlan\n" +" esetben is\n" +" -t, --touch az átkódolt fájlok dátumának módosítása\n" +" -i, --sequence=files közbülső fájlok használata az egymást követő\n" +" lépésekhez\n" +" --sequence=memory memóriában elhelyezkedő pufferek használata az\n" +" egymást követő lépésekhez\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe adatcsatornák használata az egymást követő lépésekhez\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe ugyanaz, mint a -i (ezen a rendszeren)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Finomhangolás:\n" +" -s, --strict szigorú leképezés használata, akár karaktervesztés\n" +" árán is\n" +" -d, --diacritics csak a nemzeti karakterek átkódolása HTML/LaTeX\n" +" formátumhoz\n" +" -S, --source[=NYELV] csak a NYELV által meghatározott karakterláncokat\n" +" és megjegyzéseket kódolja át\n" +" -c, --colons „:” használata a „\"” helyett a kétpontos ékezet\n" +" jelölésére az Easy French (egyfajta repülő ékezet)\n" +" kódolásban\n" +" -g, --graphics az IBMPC vonalrajzoló karakterek helyettesítése\n" +" ASCII grafikával\n" +" -x, --ignore=KARKÉSZL a KARKÉSZL mellőzése átkódolási útvonal választásánál\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"A -l FORMÁTUM és KARKÉSZL nélkül felsorolja az elérhető karakterkészleteket\n" +"és felületeket. A FORMÁTUM is a „decimal”, „octal”, „hexadecimal” vagy „full”\n" +"egyike (vagy a „dohf” egyike).\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Ha a DEFAULT_CHARSET nincs beállítva a környezetben, a KARKÉSZL a területi\n" +"beállítástól függő kódolást használja az LC_ALL, LC_CTYPE, LANG alapján.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"A -k kapcsolóval a lehetséges ELŐTTE karakterkészletek felsorolásra kerülnek\n" +"az adott UTÁNA karakterkészlethez, ahol mindkettő táblázatos karakterkészlet,\n" +"„ELŐ1:UTÁN1,ELŐ2:UTÁN2,...” formátumban, és az ELŐ és UTÁN decimális számokként\n" +"megadott kódok.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "" +"A NYELV valamilyen programnyelv, lehet „c”, „perl” vagy „po”; a „c” az alap-\n" +"értelmezett.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"A KÉRÉS = ALKÉRÉS[,ALKÉRÉS]...; az ALKÉRÉS = KÓDOLÁS[..KÓDOLÁS]...\n" +"A KÓDOLÁS = [KARAKTERKÉSZLET][/[FELSZÍN]]...; a KÉRÉS gyakran ELŐTTE..UTÁNA\n" +"alakú, ahol az ELŐTTE és UTÁNA is karakterkészlet. A kihagyott KARAKTERKÉSZLET\n" +"a megszokott karakterkészlettel egyenlő, a kihagyott [/FELÜLET]... a\n" +"KARKÉSZLETBŐL következő felületeket jelenti, az üres felületnévvel álló\n" +"/ letiltja a felület használatát. Nézze meg a kézikönyvet is.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Ha a -i és -p egyike sincs megadva, akkor a FÁJL hiányában a -p, egyébként a -i\n" +"használata a feltételezett. Minden FÁJL önmagába kerül átkódolásra, az eredeti\n" +"megsemmisül. Ha nincs megadva FÁJL, akkor szűrőként működik, és a szabványos\n" +"bemenetet kódolja át a szabványos kimenetre.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"A hibákat a címen jelentheti.\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "A sorozat nem egyértelmű: „%s”" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "A sorozat ismeretlen: „%s”" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "A nyelv nem egyértelmű: „%s”" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "A nyelv ismeretlen: „%s”" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "A formátum nem egyértelmű: „%s”" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "A formátum ismeretlen: „%s”" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Írta Francois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Ez szabad szoftver; lásd a forrást a terjesztési feltételekért. Nincs\n" +"garancia, még az eladhatóságra vagy egy adott célra való megfelelésre sem.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "A jel ismeretlen: „%s”" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "A karakterkészlet ismeretlen vagy nem egyértelmű: „%s”" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Hiányzik egy kötelező argumentum" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "A szintaxis elavult, használja inkább ezt: „%s”" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "A kérés hibás: „%s”" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "%s átkódolása..." + +#: src/main.c:913 +msgid " done\n" +msgstr " kész\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " sikertelen: %s a(z) „%s..%s” lépésben\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s sikertelen: %s a(z) „%s..%s” lépésben" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s a(z) „%s..%s” lépésben" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "%s karakterkészlet már létezik és nem %s." + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "„%s” nem sorolható fel, nem érhető el név ehhez a karakterkészlethez" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Oct Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Elnézést, nem érhető el név ehhez: „%s”" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "A „resurfacer” többször lett beállítva ehhez: „%s”" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Az „unsurfacer” többször lett beállítva ehhez: „%s”" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "A virtuális memória betelt" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "A(z) %3d és %3d kódok egyaránt %3d kódra változnak" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Nincs átkódolható karakter ezzé: %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Nem fordítható meg a megadott egy-az-egyhez tábla" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "„%s” diagnosztikájának követése ehhez: „%s”" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "A(z) %d. pár: <%3d, %3d> ütközik ezzel: <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Nem egészíthető ki a tábla az ismert párok halmazából" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Azonosság-újrakódolás, nem ér meg egy táblát" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Az átkódolás túl összetett egyetlen táblához" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sMechanikusan előállított konverziós tábla a Free „%s” %s által" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%sa következő sorozathoz: %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Nincs nyomtatható táblázat" + +#: src/request.c:34 +msgid "reversible" +msgstr "visszafordítható" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s -> %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "bájt" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "változó" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Lehetetlen*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*egyszerű másolás*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "A virtuális memória betelt!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "A lépés inicializálása sikertelen" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "A lépés inicializálása sikertelen (feldolgozatlan kapcsolók)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Kérés: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Szűkítve erre: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Ismeretlen felületnév „%s”" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Nem lehetséges az átkódolás „%s” és „%s” között." + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "„..”-t kell megadni a kérésben" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "A gyermekfolyamat várakozási állapota 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne leírás\n" +"\n" --- /dev/null +++ b/i18n/sk.po @@ -0,0 +1,513 @@ +# Slovak translation of recode +# Copyright (C) 2001 Free Software Foundation, Inc. +# This file is distributed under the same license as the recode package. +# Ivan Masár , 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: recode 3.6\n" +"POT-Creation-Date: 2001-01-02 22:35+0100\n" +"PO-Revision-Date: 2008-04-18 10:24+0100\n" +"Last-Translator: Ivan Masár \n" +"Language-Team: Slovak \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" + +#: src/main.c:142 +msgid "No error" +msgstr "Žiadna chyba" + +#: src/main.c:145 +msgid "Non canonical input" +msgstr "Chýba kanonický vstup" + +#: src/main.c:148 +msgid "Ambiguous output" +msgstr "Nejednoznačný výstup" + +#: src/main.c:151 +msgid "Untranslatable input" +msgstr "Nepreložiteľný vstup" + +#: src/main.c:154 +msgid "Invalid input" +msgstr "Neplatný vstup" + +#: src/main.c:157 +msgid "System detected problem" +msgstr "Systém zistil problém" + +#: src/main.c:160 +msgid "Misuse of recoding library" +msgstr "Chybné použitie knižnice na zmenu kódovania" + +#: src/main.c:163 +msgid "Internal recoding bug" +msgstr "Vnútorná chyba zmeny kódovania" + +#: src/main.c:208 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2, or (at your option)\n" +"any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software Foundation,\n" +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" +"Tento program je slobodný softvér; môžete ho šíriť a modifikovať\n" +"podľa podmienok GNU General Public License, ktorú publikovala\n" +"Free Software Foundation; buď verzie 2 alebo (podľa vášho\n" +"rozhodnutia) ktorejkoľvek neskoršej verzie.\n" +"\n" +"Tento program je rozširovaný v nádeji, že bude užitočný, avšak BEZ AKEJKOĽVEK\n" +"ZÁRUKY; neposkytujú sa ani odvodené záruky PREDAJNOSTI alebo VHODNOSTI NA\n" +"KONKRÉTNY ÚČEL. Ďalšie podrobnosti nájdete v GNU General Public License.\n" +"\n" +"Kópia GNU General Public License mala byť dodaná spolu s týmto\n" +"programom; pokiaľ sa tak nestalo, napíšte do Free Software Foundation, Inc.,\n" +"59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" + +#: src/main.c:233 +#, c-format +msgid "Try `%s %s' for more information.\n" +msgstr "Skúste viac informácií pomocou „%s %s“\n" + +#: src/main.c:237 +msgid "Free `recode' converts files between various character sets and surfaces.\n" +msgstr "„recode“ prevádza súbory medzi rôznymi znakovými sadami a povrchmi.\n" + +#: src/main.c:241 +#, c-format +msgid "" +"\n" +"Usage: %s [OPTION]... [ [CHARSET] | REQUEST [FILE]... ]\n" +msgstr "" +"\n" +"Použitie: %s [VOĽBA]... [ [ZNAKSAD] | CIEĽ [SÚBOR]... ]\n" + +#: src/main.c:244 +msgid "" +"\n" +"If a long option shows an argument as mandatory, then it is mandatory\n" +"for the equivalent short option also. Similarly for optional arguments.\n" +msgstr "" +"\n" +"Ak je pri dlhej voľbe zobrazený argument ako povinný, je povinný aj\n" +"pri zodpovedajúcej krátkej voľbe. Obdobne pre voliteľné argumenty.\n" + +#: src/main.c:250 +msgid "" +"\n" +"Listings:\n" +" -l, --list[=FORMAT] list one or all known charsets and aliases\n" +" -k, --known=PAIRS restrict charsets according to known PAIRS list\n" +" -h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n" +" -F, --freeze-tables write out a C module holding all tables\n" +" -T, --find-subsets report all charsets being subset of others\n" +" -C, --copyright display Copyright and copying conditions\n" +" --help display this help and exit\n" +" --version output version information and exit\n" +msgstr "" +"\n" +"Výpisy:\n" +" -l, --list[=FORMÁT] vypísať jednu alebo všetky známe znakové sady a aliasy\n" +" -k, --known=PÁRY obmedziť znakové sady podľa známeho zoznamu PÁRov\n" +" -h, --header[=[JA/]MENO] zapísať na štand. výstup tabuľku MENO pomocou JA, potom skončiť\n" +" -F, --freeze-tables zapísať C modul obsahujúci všetky tabuľky\n" +" -T, --find-subsets oznamovať všetky znakové sady ako podmnožiny iných\n" +" -C, --copyright zobraziť autorské práva a podmienky šírenia\n" +" --help zobraziť tohto pomocníka a skončiť\n" +" --version zobraziť informácie o verzii a skončiť\n" + +#: src/main.c:263 +msgid "" +"\n" +"Operation modes:\n" +" -v, --verbose explain sequence of steps and report progress\n" +" -q, --quiet, --silent inhibit messages about irreversible recodings\n" +" -f, --force force recodings even when not reversible\n" +" -t, --touch touch the recoded files after replacement\n" +" -i, --sequence=files use intermediate files for sequencing passes\n" +" --sequence=memory use memory buffers for sequencing passes\n" +msgstr "" +"\n" +"Režimy prevádzky:\n" +" -v, --verbose vysvetliť postupnosť krokov a oznamovať priebeh\n" +" -q, --quiet, --silent potlačiť správy o nevratnej zmene kódovania\n" +" -f, --force vynútiť zmenu kódovania aj ak je nevratná\n" +" -t, --touch po zmene aktualizovať dátum súboru\n" +" -i, --sequence=files pri následných prechodoch použiť dočasné súbory\n" +" --sequence=memory pri následných prechodoch použiť odkladanie v pamäti\n" + +#: src/main.c:275 +msgid " -p, --sequence=pipe use pipe machinery for sequencing passes\n" +msgstr " -p, --sequence=pipe pri následných prechodoch použiť mechanizmus rúr\n" + +#: src/main.c:280 +msgid " -p, --sequence=pipe same as -i (on this system)\n" +msgstr " -p, --sequence=pipe ekvivalent -i (na tomto systéme)\n" + +#: src/main.c:285 +msgid "" +"\n" +"Fine tuning:\n" +" -s, --strict use strict mappings, even loose characters\n" +" -d, --diacritics convert only diacritics or alike for HTML/LaTeX\n" +" -S, --source[=LN] limit recoding to strings and comments as for LN\n" +" -c, --colons use colons instead of double quotes for diaeresis\n" +" -g, --graphics approximate IBMPC rulers by ASCII graphics\n" +" -x, --ignore=CHARSET ignore CHARSET while choosing a recoding path\n" +msgstr "" +"\n" +"Dolaďovanie:\n" +" -s, --strict použiť prísne mapovanie, povoliť stratu znakov\n" +" -d, --diacritics previesť iba diakritiku alebo pod. pre HTML/LaTeX\n" +" -S, --source[=JA] obmedziť zmenu kódovania na reťazce a komentáre podľa JA\n" +" -c, --colons použiť na mieste úvodzoviek apostrofy namiesto dvojitých apostrofov\n" +" -g, --graphics aproximovať IBMPC okraje pomocou ASCII grafiky\n" +" -x, --ignore=ZNAKSAD ignorovať ZNAKSAD pri výbere cesty zmeny kódovania\n" + +#: src/main.c:296 +msgid "" +"\n" +"Option -l with no FORMAT nor CHARSET list available charsets and surfaces.\n" +"FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf').\n" +msgstr "" +"\n" +"Voľba -l bez FORMÁTu a ZNAKSAD zobrazí dostupné znakové sady a povrchy.\n" +"FORMÁT je „decimal“, „octal“, „hexadecimal“ alebo „full“ (alebo jedno z „dohf“).\n" + +#: src/main.c:302 +msgid "" +"Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale\n" +"dependent encoding, determined by LC_ALL, LC_CTYPE, LANG.\n" +msgstr "" +"Ak nie je v prostredí nastavená premenná DEFAULT_CHARSET, ZNAKSAD bude\n" +"štandardne kódovanie závislé na lokálnom nastavení, ktoré určujú LC_ALL, LC_CTYPE, LANG.\n" + +#: src/main.c:307 +msgid "" +"With -k, possible before charsets are listed for the given after CHARSET,\n" +"both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...'\n" +"and BEFs and AFTs being codes are given as decimal numbers.\n" +msgstr "" +"Voľba -k zobrazí pre danú ZNAKSAD možné znakové sady PRED kde obe sú,\n" +"tabuľkové znakové sady s PÁRMIO v tvare „PRED1:PO1,PRED2:PO2,...“\n" +"a PRED a PO sú kódy uvedené ako desiatkové čísla.\n" + +#: src/main.c:312 +msgid "LN is some language, it may be `c', `perl' or `po'; `c' is the default.\n" +msgstr "JA je nejaký jazyk. Môže to byť „c“, „perl“ alebo „po“; štandardne je to „c“.\n" + +#: src/main.c:315 +msgid "" +"\n" +"REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]...\n" +"ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER,\n" +"with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual\n" +"charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a /\n" +"with an empty surface name means no surfaces at all. See the manual.\n" +msgstr "" +"\n" +"POŽIADAVKA je PODPOŽIADAVKA[,PODPOŽIADAVKA]...; PODPOŽIADAVKA je KÓDOVANIE[..KÓDOVANIE]...\n" +"KÓDOVANIE je [ZNAKSAD][/[POVRCH]]...; POŽIADAVKA často vyzerá nasledovne: PRED..PO,\n" +"kde PRED a PO sú znakové sady. Vynechaná ZNAKSAD znamená zvyčajnú\n" +"znakovú sadu; vynechaný [/POVRCH]... znamená zvyčajné povrchy ZNAKSAD;/\n" +"prázdny názov povrchu znamená žiadny povrch. Pozri príručku.\n" + +#: src/main.c:323 +msgid "" +"\n" +"If none of -i and -p are given, presume -p if no FILE, else -i.\n" +"Each FILE is recoded over itself, destroying the original. If no\n" +"FILE is specified, then act as a filter and recode stdin to stdout.\n" +msgstr "" +"\n" +"Ak nie je zadaná žiadna z volieb -i a -p, predpokladá sa -p ak nie je\n" +"SÚBOR, inak -i. Kódovanie každého SÚBORu sa mení na mieste, čím sa\n" +"prepíše originál. Ak nie je zadaný SÚBOR, funguje ako filter a mení\n" +"kódovanie štandardného vstupu na štandardný výstup.\n" + +#: src/main.c:329 +msgid "" +"\n" +"Report bugs to .\n" +msgstr "" +"\n" +"Chyby oznamujte na adresu .\n" + +#: src/main.c:430 +#, c-format +msgid "Sequence `%s' is ambiguous" +msgstr "Postupnosť „%s“ je nejednoznačná" + +#: src/main.c:434 +#, c-format +msgid "Sequence `%s' is unknown" +msgstr "Postupnosť „%s“ je neznáma" + +#: src/main.c:464 src/main.c:522 +#, c-format +msgid "Language `%s' is ambiguous" +msgstr "Jazyk „%s“ je nejednoznačný" + +#. -1 +#: src/main.c:468 src/main.c:526 +#, c-format +msgid "Language `%s' is unknown" +msgstr "Jazyk „%s“ je neznámy" + +#: src/main.c:560 +#, c-format +msgid "Format `%s' is ambiguous" +msgstr "Formát „%s“ je nejednoznačný" + +#: src/main.c:564 +#, c-format +msgid "Format `%s' is unknown" +msgstr "Formát „%s“ je neznámy" + +#: src/main.c:621 +msgid "Written by Franc,ois Pinard .\n" +msgstr "Napísal Franc,ois Pinard .\n" + +#: src/main.c:624 +msgid "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" +msgstr "" +"\n" +"Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.\n" + +#: src/main.c:628 +msgid "" +"This is free software; see the source for copying conditions. There is NO\n" +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" +"Tento program je slobodný softvér; podmienky šírenia nájdete v zdrojovom\n" +"kóde. Neexistuje ŽIADNA ZÁRUKA; neposkytujú sa ani záruky PREDAJNOSTI\n" +"alebo VHODNOSTI NA KONKRÉTNY ÚČEL.\n" + +#: src/main.c:669 +#, c-format +msgid "Symbol `%s' is unknown" +msgstr "Symbol „%s“ je neznámy" + +#: src/main.c:709 src/main.c:723 +#, c-format +msgid "Charset `%s' is unknown or ambiguous" +msgstr "Znaková sada „%s“ je neznáma alebo nejednoznačná" + +#: src/main.c:754 +msgid "Required argument is missing" +msgstr "Chýba povinný argument" + +#: src/main.c:797 +#, c-format +msgid "Syntax is deprecated, please prefer `%s'" +msgstr "Neodporúča sa používať túto syntax, dajte prosím prednosť „%s“" + +#: src/main.c:803 +#, c-format +msgid "Request `%s' is erroneous" +msgstr "Požiadavka „%s“ je chybná" + +#: src/main.c:903 +#, c-format +msgid "Recoding %s..." +msgstr "Mení sa kódovanie %s..." + +#: src/main.c:913 +msgid " done\n" +msgstr " hotovo\n" + +#: src/main.c:954 +#, c-format +msgid " failed: %s in step `%s..%s'\n" +msgstr " zlyhalo: %s v kroku „%s..%s“\n" + +#: src/main.c:961 +#, c-format +msgid "%s failed: %s in step `%s..%s'" +msgstr "%s zlyhalo: %s v kroku „%s..%s“" + +#: src/main.c:984 +#, c-format +msgid "%s in step `%s..%s'" +msgstr "%s v kroku „%s..%s“" + +#: src/names.c:335 +#, c-format +msgid "Charset %s already exists and is not %s" +msgstr "Znaková sada %s už existuje a nie je %s" + +#: src/names.c:831 +#, c-format +msgid "Cannot list `%s', no names available for this charset" +msgstr "Nemožno vypísať „%s“, táto znaková sada nemá dostupné žiadne názvy" + +#. code counter +#. expected value for code counter +#. insert a while line before printing +#. Print the long table according to explode data. +#: src/names.c:984 src/names.c:1030 +#, c-format +msgid "Dec Oct Hex UCS2 Mne %s\n" +msgstr "Dec Okt Hex UCS2 Mne %s\n" + +#: src/names.c:1049 +#, c-format +msgid "Sorry, no names available for `%s'" +msgstr "Prepáčte, pre „%s“ nie sú dostupné žiadne názvy" + +#: src/outer.c:125 +#, c-format +msgid "Resurfacer set more than once for `%s'" +msgstr "Zmena povrchu nastavená viac než raz pre „%s“" + +#: src/outer.c:133 +#, c-format +msgid "Unsurfacer set more than once for `%s'" +msgstr "Odstránenie povrchu nastavené viac než raz pre „%s“" + +#: src/recode.c:115 src/recode.c:127 +msgid "Virtual memory exhausted" +msgstr "Virtuálna pamäť je vyčerpaná" + +#: src/recode.c:155 +#, c-format, ycp-format +msgid "Codes %3d and %3d both recode to %3d" +msgstr "Kódy %3d a %3d sa oba menia na kód %3d" + +#: src/recode.c:169 +#, c-format, ycp-format +msgid "No character recodes to %3d" +msgstr "Žiadny znak sa nemení na kód %3d" + +#: src/recode.c:170 +msgid "Cannot invert given one-to-one table" +msgstr "Nie je možné invertovať danú tabuľku jedna k jednej" + +#: src/recode.c:224 src/recode.c:236 +#, c-format +msgid "Following diagnostics for `%s' to `%s'" +msgstr "Nasleduje diagnostika „%s“ na „%s“" + +#: src/recode.c:229 src/recode.c:241 +#, c-format +msgid "Pair no. %d: <%3d, %3d> conflicts with <%3d, %3d>" +msgstr "Č. páru %d: <%3d, %3d> je v konflikte s <%3d, %3d>" + +#: src/recode.c:272 +msgid "Cannot complete table from set of known pairs" +msgstr "Nie je možné dokončiť tabuľku z množiny známych párov" + +#: src/recode.c:497 +msgid "Identity recoding, not worth a table" +msgstr "Identická zmena kódovania, na to sa neoplatí používať tabuľku" + +#: src/recode.c:504 +msgid "Recoding is too complex for a mere table" +msgstr "Zmena kódovanie je príliš zložitá než aby sa dala jednoducho použiť tabuľka" + +#. Print the header of the header file. +#: src/recode.c:536 +#, c-format +msgid "%sConversion table generated mechanically by Free `%s' %s" +msgstr "%sKonverznú tabuľku vytvoril automaticky program „%s“ %s" + +#: src/recode.c:538 +#, c-format +msgid "%sfor sequence %s.%s" +msgstr "%sza postupnosť %s.%s" + +#: src/recode.c:744 +msgid "No table to print" +msgstr "Niet žiadnej tabuľky na výpis" + +#: src/request.c:34 +msgid "reversible" +msgstr "vratná" + +#: src/request.c:36 +#, c-format +msgid "%s to %s" +msgstr "%s na %s" + +#: src/request.c:37 src/request.c:39 +msgid "byte" +msgstr "bajt" + +#: src/request.c:38 src/request.c:40 +msgid "ucs2" +msgstr "ucs2" + +#: src/request.c:38 src/request.c:40 +msgid "variable" +msgstr "premenná" + +#: src/request.c:111 +msgid "*Unachievable*" +msgstr "*Nedosiahnuteľné*" + +#: src/request.c:113 +msgid "*mere copy*" +msgstr "*prosté kopírovanie*" + +#: src/request.c:246 +msgid "Virtual memory exhausted!" +msgstr "Virtuálna pamäť je vyčerpaná!" + +#: src/request.c:265 +msgid "Step initialisation failed" +msgstr "Inicializácia kroku zlyhala" + +#: src/request.c:272 +msgid "Step initialisation failed (unprocessed options)" +msgstr "Inicializácia kroku zlyhala (nespracované voľby)" + +#: src/request.c:568 +#, c-format +msgid "Request: %s\n" +msgstr "Požiadavka: %s\n" + +#: src/request.c:720 +#, c-format +msgid "Shrunk to: %s\n" +msgstr "Zmrštené na: %s\n" + +#: src/request.c:823 src/request.c:932 +#, c-format +msgid "Unrecognised surface name `%s'" +msgstr "Nerozpoznaný názov povrchu „%s“" + +#: src/request.c:903 +#, c-format +msgid "No way to recode from `%s' to `%s'" +msgstr "Neexistuje spôsob zmeny kódovania z „%s“ na „%s“" + +#: src/request.c:1013 +msgid "Expecting `..' in request" +msgstr "V požiadavke sa očakávalo „..“" + +#: src/task.c:826 src/task.c:1002 +#, c-format +msgid "Child process wait status is 0x%0.2x" +msgstr "Stav čakania detského procesu je 0x%0.2x" + +#: src/testdump.c:298 +msgid "" +"UCS2 Mne Description\n" +"\n" +msgstr "" +"UCS2 Mne Popis\n" +"\n" debian/patches/02-src-libiconv-c-utf80000644000000000000000000000200211763103440014446 0ustar From: Bruno Haible Subject: UTF-8 should now work Bug-Debian: http://bugs.debian.org/94966 X-Debian-version: 3.6-3 --- a/src/libiconv.c +++ b/src/libiconv.c @@ -1,5 +1,5 @@ /* Conversion of files between different charsets and surfaces. - Copyright 1999, 2000 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Franois Pinard , 1999, and Bruno Haible , 2000. @@ -195,12 +195,17 @@ memcpy() doesn't do here, because the regions might overlap. memmove() isn't worth it, because we rarely have to move more than 12 bytes. */ - if (input > input_buffer && input_left > 0) + cursor = input_buffer; + if (input_left > 0) { - cursor = input_buffer; - do - *cursor++ = *input++; - while (--input_left > 0); + if (input > input_buffer) + { + do + *cursor++ = *input++; + while (--input_left > 0); + } + else + cursor += input_left; } } debian/recode-doc.doc-base0000644000000000000000000000124411246546131012575 0ustar Document: recode-doc Title: Free recode manual Author: François Pinard Abstract: This manual documents Free recode. This recoding library converts files between various coded character sets and surface encodings. When this cannot be achieved exactly, it may get rid of the offending characters or fall back on approximations. The library recognises or produces nearly 150 different character sets and is able to convert files between almost any pair. Most RFC 1345 character sets are supported. The `recode' program is a handy front-end to the library. Section: Text Format: HTML Index: /usr/share/doc/recode-doc/index.html Files: /usr/share/doc/recode-doc/*.html debian/shlibs.local0000644000000000000000000000004007442173456011474 0ustar librecode 0 librecode0 (>= 3.6) debian/librecode0.install0000644000000000000000000000003111763103440012557 0ustar usr/lib/*/librecode.so.* debian/changelog0000644000000000000000000001740312226271062011045 0ustar recode (3.6-21) unstable; urgency=low * Switch from texi2html to makeinfo. * Updated config.guess and config.sub. -- Santiago Vila Sat, 12 Oct 2013 18:00:42 +0200 recode (3.6-20) unstable; urgency=low * Set LD_LIBRARY_PATH when required, multiarch and the old libtool do not work together very well. -- Santiago Vila Wed, 06 Jun 2012 13:36:04 +0200 recode (3.6-19) unstable; urgency=low * Updated config.guess and config.sub. * Updated po files from translation project. * Switch to dh for multiarch and hardened build flags. * Tidy up debian/patches. -- Santiago Vila Mon, 04 Jun 2012 23:41:00 +0200 recode (3.6-18) unstable; urgency=low * Switch to 3.0 (quilt) source format. * Fixed several lintian warnings. * Dropped obsolete -D_REENTRANT. * Added missing postrm. -- Santiago Vila Sat, 06 Aug 2011 17:47:12 +0200 recode (3.6-17) unstable; urgency=medium * Do not ignore errors from make distclean. * Changed debian/* files again for new texi2html behaviour. Closes: #552972. -- Santiago Vila Wed, 04 Nov 2009 12:36:08 +0100 recode (3.6-16) unstable; urgency=low * Modified doc/Makefile.in to avoid /usr/share/info/dir.gz. * Handle info files as indicated by policy 3.8.3. * Fixed memory leak in librecode. Closes: #242190. Thanks a lot to Gaël Le Mignot for the patch. * Moved doc-base manual to "Text" section. * Removed useless calls to install-docs. * Updated config.guess and config.sub. * Removed useless *.la files. * Added watch file. -- Santiago Vila Sun, 30 Aug 2009 21:15:42 +0200 recode (3.6-15) unstable; urgency=low * Reduced size of "ignore" element in struct recode_symbol to 1 bit. Should make gcc-4.3 happy. Closes: #462004. -- Santiago Vila Wed, 2 Apr 2008 10:02:30 +0200 recode (3.6-14) unstable; urgency=low * Should build twice in a row. Closes: #424291. * Updated po files from translation project. Closes: #313925, #427366. -- Santiago Vila Thu, 28 Jun 2007 21:25:18 +0200 recode (3.6-13) unstable; urgency=medium * Updated config.guess and config.sub. * Fixed NAME section in manpage (Closes: #368634). * Removed build-dependency on flex (Closes: #402023). -- Santiago Vila Fri, 8 Dec 2006 13:07:44 +0100 recode (3.6-12) unstable; urgency=low * Updated config.guess and config.sub for GNU/kFreeBSD (Closes: #333452). -- Santiago Vila Wed, 12 Oct 2005 17:12:34 +0200 recode (3.6-11) unstable; urgency=low * Fixed FTBFS bug caused by new texi2html behaviour (Closes: #318557). * Updated URL for original source in copyright file. * Changed doc-base and copyright files to UTF-8. -- Santiago Vila Sat, 16 Jul 2005 18:40:54 +0200 recode (3.6-10) unstable; urgency=low * Removed executable bit from librecode.la to make lintian happy. * Added -D_REENTRANT to CFLAGS, since there are libraries here. * Rewritten debian/rules to allow parallel make. -- Santiago Vila Thu, 9 Oct 2003 13:18:56 +0200 recode (3.6-9) unstable; urgency=low * ./configure --without-included-gettext. Messages should now be shown in UTF-8 if that's the charset for the selected locale (Closes: #207736). * Updated a lot of translations from the Free Translation Project (those having all the messages translated). * Added gettext to Build-Depends: accordingly. -- Santiago Vila Fri, 29 Aug 2003 19:22:24 +0200 recode (3.6-8) unstable; urgency=low * Updated libtool stuff (Closes: #201945). Note: The size of the diff is not an error, it's mainly the result of running libtoolize, updating m4/libtool.m4 and acinclude.m4, running aclocal, and running autoconf. * Removed file from Build-Depends, the new libtool should not require it. * Updated/improved description for recode and librecode0 (Closes: #206875). * Moved librecode-dev to Section: libdevel. -- Santiago Vila Thu, 28 Aug 2003 17:05:04 +0200 recode (3.6-7) unstable; urgency=medium * Fixed wrong pointer re-calculation in guarantee_nul_terminator(). Thanks a lot to Enrik Berkhan (Closes: #156635). * Standards-Version: 3.5.7. -- Santiago Vila Sun, 20 Oct 2002 21:23:02 +0200 recode (3.6-6) unstable; urgency=medium * Modified hash.h so that functions hash_lookup, hash_delete, hash_free and hash_insert are prefixed by `recode_' to prevent collisions with php4. Thanks a lot to Steve Langasek and Bruno Haible. Closes: #131080. -- Santiago Vila Fri, 8 Mar 2002 18:44:36 +0100 recode (3.6-5) unstable; urgency=low * Fixed a librecode bug in recode_perform_task (Closes: #134899). Thanks to Frederic Gobry and Enrik Berkhan. -- Santiago Vila Thu, 21 Feb 2002 17:37:56 +0100 recode (3.6-4) unstable; urgency=low * Removed README from the doc directory, since it contains only installation information (Closes: #123000). * Added support for DEB_BUILD_OPTIONS. -- Santiago Vila Sun, 9 Dec 2001 13:04:18 +0100 recode (3.6-3) unstable; urgency=high * UTF-8 should now work. Patch by Bruno Haible. Closes: #94966, #113742, #114850. -- Santiago Vila Sat, 20 Oct 2001 20:01:38 +0200 recode (3.6-2) unstable; urgency=low * Updated config.sub/config.guess for parisc (Closes: #95974). * Made debian/rules to preserve LD_LIBRARY_PATH to allow the build by using fakeroot (Closes: #102358). * Registered HTML docs using doc-base. -- Santiago Vila Sun, 1 Jul 2001 13:14:16 +0200 recode (3.6-1) unstable; urgency=low * New upstream release. * Updated copyright and control files. * Use >= for the shlibs file, just in case. * Build-Depends-Indep: texi2html, not tetex-bin. * Removed .comment and .note sections from shared library. -- Santiago Vila Sat, 10 Mar 2001 15:03:36 +0100 recode (3.5-3) unstable; urgency=medium * Fixed typo in Build-Depends field (Closes: #81211). -- Santiago Vila Thu, 4 Jan 2001 16:18:43 +0100 recode (3.5-2) unstable; urgency=low * Standards-Version: 3.1.1. * Moved librecode0 to libs section. * Moved librecode-dev to devel section. * Build-Depends: flex, file. Build-Depends-Indep: tetex-bin. -- Santiago Vila Sat, 30 Dec 2000 19:00:14 +0100 recode (3.5-1) unstable; urgency=low * New upstream release. * recode(1) is no longer "undocumented". * Created two new packages: librecode0 and librecode-dev. -- Santiago Vila Fri, 18 Jun 1999 10:44:55 +0200 recode (3.4.1-11) unstable; urgency=low * Added HTML docs, in a separate package. -- Santiago Vila Tue, 13 Oct 1998 21:22:43 +0200 recode (3.4.1-10) unstable; urgency=low * More detailed copyright file. * Removed debstd dependency. * First libc6 release. * Pristine source. -- Santiago Vila Sun, 9 Nov 1997 18:36:26 +0100 recode (3.4.1-9) unstable; urgency=low * Some minor debian/rules changes. * Added MD5 sums. -- Santiago Vila Sun, 23 Feb 1997 17:35:41 +0100 recode (3.4.1-8) unstable; urgency=low * Converted to standards 2.1.2.2. * New maintainer. -- Santiago Vila Wed, 29 Jan 1997 00:30:45 +0100 recode (3.4.1-3); * Incremented version number (upload to ftp.debian.org crashed). -- Klee Dienes Sat Jan 27 14:58:57 MST 1996 recode (3.4.1-2); * Changed to add entry for recode into info directory. -- Klee Dienes Sat Jan 27 14:42:54 MST 1996 recode (3.4.1-1); * Initial Release. -- Klee Dienes Thu Jan 25 10:07:24 MST 1996 debian/source/0000755000000000000000000000000011617256770010502 5ustar debian/source/format0000644000000000000000000000001411617256770011710 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000007311245272314010220 0ustar version=3 http://ftp.gnu.org/gnu/recode/recode-(.*).tar.gz debian/recode.install0000644000000000000000000000005511763103440012016 0ustar usr/bin/* usr/share/man/* usr/share/locale/* debian/recode.info0000644000000000000000000000001411763103440011276 0ustar doc/*.info* debian/copyright0000644000000000000000000000304711245271664011135 0ustar This is the Debian prepackaged version of Free recode, a program that converts files between character sets and usages. Free recode was written by François Pinard . This package was first put together by Klee Dienes . It is currently maintained by Santiago Vila , from sources obtained from: http://ftp.gnu.org/gnu/recode/recode-3.6.tar.gz The changes were fairly minimal, and consisted solely of adding various debian/* files to the distribution. Copyright: The entire recode package is Copyright (C) the Free Software Foundation, with the exception of ansi2knr.c, which is Copyright (C) Aladdin Enterprises. The program is distributed under the terms of the GNU General Public License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. The library is distributed under the terms of the GNU Lesser General Public License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL', and the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'.