2 +++ lxpanel-0.5.6/mkinstalldirs
5 +# mkinstalldirs --- make directory hierarchy
7 +scriptversion=2009-04-28.21; # UTC
9 +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
10 +# Created: 1993-05-16
13 +# This file is maintained in Automake, please report
14 +# bugs to <bug-automake@gnu.org> or send patches to
15 +# <automake-patches@gnu.org>.
24 +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
26 +Create each directory DIR (with mode MODE, if specified), including all
27 +leading file name components.
29 +Report bugs to <bug-automake@gnu.org>."
31 +# process command line arguments
32 +while test $# -gt 0 ; do
34 + -h | --help | --h*) # -h for help
40 + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
45 + echo "$0 $scriptversion"
48 + --) # stop option processing
52 + -*) # unknown option
56 + *) # first non-opt arg
64 + if test -d "$file"; then
75 +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
76 +# mkdir -p a/c at the same time, both will detect that a is missing,
77 +# one will create a, then the other will try to create a and die with
78 +# a "File exists" error. This is a problem when calling mkinstalldirs
79 +# from a parallel make. We use --version in the probe to restrict
80 +# ourselves to GNU mkdir, which is thread-safe.
83 + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
84 + echo "mkdir -p -- $*"
85 + exec mkdir -p -- "$@"
87 + # On NextStep and OpenStep, the `mkdir' command does not
88 + # recognize any option. It will interpret all options as
89 + # directories to create, and then abort because `.' already
91 + test -d ./-p && rmdir ./-p
92 + test -d ./--version && rmdir ./--version
96 + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
97 + test ! -d ./--version; then
98 + echo "mkdir -m $dirmode -p -- $*"
99 + exec mkdir -m "$dirmode" -p -- "$@"
101 + # Clean up after NextStep and OpenStep mkdir.
102 + for d in ./-m ./-p ./--version "./$dirmode";
104 + test -d $d && rmdir $d
124 + test "x$d" = x && continue
126 + pathcomp=$pathcomp$d
128 + -*) pathcomp=./$pathcomp ;;
131 + if test ! -d "$pathcomp"; then
132 + echo "mkdir $pathcomp"
134 + mkdir "$pathcomp" || lasterr=$?
136 + if test ! -d "$pathcomp"; then
139 + if test ! -z "$dirmode"; then
140 + echo "chmod $dirmode $pathcomp"
142 + chmod "$dirmode" "$pathcomp" || lasterr=$?
144 + if test ! -z "$lasterr"; then
151 + pathcomp=$pathcomp/
158 +# mode: shell-script
160 +# eval: (add-hook 'write-file-hooks 'time-stamp)
161 +# time-stamp-start: "scriptversion="
162 +# time-stamp-format: "%:y-%02m-%02d.%02H"
163 +# time-stamp-time-zone: "UTC"
164 +# time-stamp-end: "; # UTC"
166 --- lxpanel-0.5.6.orig/config.sub
167 +++ lxpanel-0.5.6/config.sub
169 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
170 # Free Software Foundation, Inc.
172 -timestamp='2009-11-20'
173 +timestamp='2009-06-11'
175 # This file is (in principle) common to ALL GNU software.
176 # The presence of a machine in this file suggests that SOME GNU software
177 @@ -32,16 +32,13 @@ timestamp='2009-11-20'
180 # Please send patches to <config-patches@gnu.org>. Submit a context
181 -# diff and a properly formatted GNU ChangeLog entry.
182 +# diff and a properly formatted ChangeLog entry.
184 # Configuration subroutine to validate and canonicalize a configuration type.
185 # Supply the specified configuration type as an argument.
186 # If it is invalid, we print an error message on stderr and exit with code 1.
187 # Otherwise, we print the canonical config type on stdout and succeed.
189 -# You can get the latest version of this script from:
190 -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
192 # This file is supposed to be the same for all GNU packages
193 # and recognize all the CPU types, system types and aliases
194 # that are meaningful with *any* GNU software.
195 @@ -152,7 +149,7 @@ case $os in
196 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
197 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
198 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
199 - -apple | -axis | -knuth | -cray | -microblaze)
200 + -apple | -axis | -knuth | -cray)
204 @@ -287,7 +284,6 @@ case $basic_machine in
205 | pdp10 | pdp11 | pj | pjl \
206 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
210 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
212 @@ -295,14 +291,13 @@ case $basic_machine in
213 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
215 | tahoe | thumb | tic4x | tic80 | tron \
219 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
221 basic_machine=$basic_machine-unknown
223 - m6811 | m68hc11 | m6812 | m68hc12 | picochip)
224 + m6811 | m68hc11 | m6812 | m68hc12)
225 # Motorola 68HC11/12.
226 basic_machine=$basic_machine-unknown
228 @@ -345,7 +340,7 @@ case $basic_machine in
230 | m32c-* | m32r-* | m32rle-* \
231 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
232 - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
233 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
234 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
236 | mips64-* | mips64el-* \
237 @@ -373,7 +368,7 @@ case $basic_machine in
238 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
239 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
241 - | romp-* | rs6000-* | rx-* \
242 + | romp-* | rs6000-* \
243 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
244 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
245 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
246 @@ -382,7 +377,6 @@ case $basic_machine in
247 | tahoe-* | thumb-* \
248 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
251 | v850-* | v850e-* | vax-* \
253 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
254 @@ -732,9 +726,6 @@ case $basic_machine in
255 basic_machine=ns32k-utek
259 - basic_machine=microblaze-xilinx
262 basic_machine=i386-pc
264 @@ -1256,9 +1247,6 @@ case $os in
265 # First match some system type aliases
266 # that might get confused with valid system types.
267 # -solaris* is a basic system type, with this one exception.
271 -solaris1 | -solaris1.*)
272 os=`echo $os | sed -e 's|solaris1|sunos4|'`
274 @@ -1280,8 +1268,8 @@ case $os in
275 # -sysv* is not here because it comes later, after sysvr4.
276 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
277 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
278 - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
279 - | -sym* | -kopensolaris* \
280 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
282 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
284 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
285 @@ -1302,7 +1290,7 @@ case $os in
286 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
287 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
288 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
289 - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
290 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
291 # Remember, each alternative MUST END IN *, to match a version number.
294 --- lxpanel-0.5.6.orig/Makefile.in
295 +++ lxpanel-0.5.6/Makefile.in
296 @@ -39,8 +39,9 @@ DIST_COMMON = README $(am__configure_dep
297 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
298 $(srcdir)/lxpanel.pc.in $(top_srcdir)/configure \
299 $(top_srcdir)/data/default/panels/panel.in ABOUT-NLS AUTHORS \
300 - COPYING ChangeLog INSTALL NEWS compile config.guess config.sub \
301 - depcomp install-sh ltmain.sh missing
302 + COPYING ChangeLog INSTALL NEWS compile config.guess \
303 + config.rpath config.sub depcomp install-sh ltmain.sh missing \
305 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
306 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
307 $(top_srcdir)/configure.ac
308 @@ -48,7 +49,7 @@ am__configure_deps = $(am__aclocal_m4_de
310 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
311 configure.lineno config.status.lineno
312 -mkinstalldirs = $(install_sh) -d
313 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
314 CONFIG_HEADER = config.h
315 CONFIG_CLEAN_FILES = lxpanel.pc data/default/panels/panel
316 CONFIG_CLEAN_VPATH_FILES =
317 @@ -132,6 +133,8 @@ ACLOCAL = @ACLOCAL@
318 ALL_LINGUAS = @ALL_LINGUAS@
319 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
321 +APPLET_CFLAGS = @APPLET_CFLAGS@
322 +APPLET_LIBS = @APPLET_LIBS@
324 AUTOCONF = @AUTOCONF@
325 AUTOHEADER = @AUTOHEADER@
326 @@ -161,6 +164,8 @@ GMOFILES = @GMOFILES@
329 G_CAST_CHECKS = @G_CAST_CHECKS@
330 +INDICATORDIR = @INDICATORDIR@
331 +INDICATORICONSDIR = @INDICATORICONSDIR@
333 INSTALL_DATA = @INSTALL_DATA@
334 INSTALL_PROGRAM = @INSTALL_PROGRAM@
335 @@ -206,8 +211,6 @@ PACKAGE_URL = @PACKAGE_URL@
336 PACKAGE_VERSION = @PACKAGE_VERSION@
337 PATH_SEPARATOR = @PATH_SEPARATOR@
338 PKG_CONFIG = @PKG_CONFIG@
339 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
340 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
341 PLUGINS_LIST = @PLUGINS_LIST@
344 @@ -263,6 +266,7 @@ libdir = @libdir@
345 libexecdir = @libexecdir@
346 localedir = @localedir@
347 localstatedir = @localstatedir@
351 oldincludedir = @oldincludedir@
353 +++ lxpanel-0.5.6/config.rpath
356 +# Output a system dependent set of variables, describing how to set the
357 +# run time search path of shared libraries in an executable.
359 +# Copyright 1996-2003 Free Software Foundation, Inc.
360 +# Taken from GNU libtool, 2001
361 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
363 +# This program is free software; you can redistribute it and/or modify
364 +# it under the terms of the GNU General Public License as published by
365 +# the Free Software Foundation; either version 2 of the License, or
366 +# (at your option) any later version.
368 +# This program is distributed in the hope that it will be useful, but
369 +# WITHOUT ANY WARRANTY; without even the implied warranty of
370 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
371 +# General Public License for more details.
373 +# You should have received a copy of the GNU General Public License
374 +# along with this program; if not, write to the Free Software
375 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
377 +# As a special exception to the GNU General Public License, if you
378 +# distribute this file as part of a program that contains a
379 +# configuration script generated by Autoconf, you may include it under
380 +# the same distribution terms that you use for the rest of that program.
382 +# The first argument passed to this file is the canonical host specification,
383 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
385 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
386 +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
387 +# should be set by the caller.
389 +# The set of defined variables is at the end of this script.
391 +# Known limitations:
392 +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
393 +# than 256 bytes, otherwise the compiler driver will dump core. The only
394 +# known workaround is to choose shorter directory names for the build
395 +# directory and/or the installation directory.
397 +# All known linkers require a `.a' archive for static linking (except M$VC,
398 +# which needs '.lib').
403 +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
404 +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
405 +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
407 +# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
410 +if test "$GCC" = yes; then
417 + mingw* | pw32* | os2*)
419 + hpux9* | hpux10* | hpux11*)
422 + irix5* | irix6* | nonstopux*)
437 + osf3* | osf4* | osf5*)
448 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
458 +# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
460 +hardcode_libdir_flag_spec=
461 +hardcode_libdir_separator=
466 + cygwin* | mingw* | pw32*)
467 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
468 + # When not using gcc, we currently assume that we are using
469 + # Microsoft Visual C++.
470 + if test "$GCC" != yes; then
480 +if test "$with_gnu_ld" = yes; then
482 + aix3* | aix4* | aix5*)
483 + # On AIX/PPC, the GNU linker is very broken
484 + if test "$host_cpu" != ia64; then
489 + hardcode_libdir_flag_spec='-L$libdir'
490 + hardcode_minus_L=yes
491 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
492 + # that the semantics of dynamic libraries on AmigaOS, at least up
493 + # to version 4, is to share data among multiple programs linked
494 + # with the same dynamic library. Since this doesn't match the
495 + # behavior of shared libraries on other platforms, we can use
500 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
506 + cygwin* | mingw* | pw32*)
507 + # hardcode_libdir_flag_spec is actually meaningless, as there is
508 + # no search path for DLLs.
509 + hardcode_libdir_flag_spec='-L$libdir'
510 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
519 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
521 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
528 + hardcode_direct=yes
531 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
538 + if test "$ld_shlibs" = yes; then
539 + # Unlike libtool, we use -rpath here, not --rpath, since the documented
540 + # option of GNU ld is called -rpath, not --rpath.
541 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
546 + # Note: this linker hardcodes the directories in LIBPATH if there
547 + # are no directories specified by -L.
548 + hardcode_minus_L=yes
549 + if test "$GCC" = yes; then
550 + # Neither direct hardcoding nor static linking is supported with a
552 + hardcode_direct=unsupported
556 + if test "$host_cpu" = ia64; then
557 + # On IA64, the linker does run time linking by default, so we don't
558 + # have to do anything special.
559 + aix_use_runtimelinking=no
561 + aix_use_runtimelinking=no
562 + # Test if we are trying to use run time linking or normal
563 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
564 + # need to do runtime linking.
565 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
566 + for ld_flag in $LDFLAGS; do
567 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
568 + aix_use_runtimelinking=yes
574 + hardcode_direct=yes
575 + hardcode_libdir_separator=':'
576 + if test "$GCC" = yes; then
577 + case $host_os in aix4.[012]|aix4.[012].*)
578 + collect2name=`${CC} -print-prog-name=collect2`
579 + if test -f "$collect2name" && \
580 + strings "$collect2name" | grep resolve_lib_name >/dev/null
582 + # We have reworked collect2
583 + hardcode_direct=yes
585 + # We have old collect2
586 + hardcode_direct=unsupported
587 + hardcode_minus_L=yes
588 + hardcode_libdir_flag_spec='-L$libdir'
589 + hardcode_libdir_separator=
593 + # Begin _LT_AC_SYS_LIBPATH_AIX.
594 + echo 'int main () { return 0; }' > conftest.c
595 + ${CC} ${LDFLAGS} conftest.c -o conftest
596 + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
598 + if test -z "$aix_libpath"; then
599 + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
602 + if test -z "$aix_libpath"; then
603 + aix_libpath="/usr/lib:/lib"
605 + rm -f conftest.c conftest
606 + # End _LT_AC_SYS_LIBPATH_AIX.
607 + if test "$aix_use_runtimelinking" = yes; then
608 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
610 + if test "$host_cpu" = ia64; then
611 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
613 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
618 + hardcode_libdir_flag_spec='-L$libdir'
619 + hardcode_minus_L=yes
620 + # see comment about different semantics on the GNU ld section
625 + cygwin* | mingw* | pw32*)
626 + # When not using gcc, we currently assume that we are using
627 + # Microsoft Visual C++.
628 + # hardcode_libdir_flag_spec is actually meaningless, as there is
629 + # no search path for DLLs.
630 + hardcode_libdir_flag_spec=' '
633 + darwin* | rhapsody*)
634 + if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
639 + hardcode_libdir_flag_spec='-L$libdir'
645 + hardcode_libdir_flag_spec='-R$libdir'
646 + hardcode_direct=yes
649 + hardcode_direct=yes
650 + hardcode_minus_L=yes
653 + hardcode_libdir_flag_spec='-R$libdir'
654 + hardcode_direct=yes
657 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
658 + hardcode_libdir_separator=:
659 + hardcode_direct=yes
660 + # hardcode_minus_L: Not really in the search PATH,
661 + # but as the default location of the library.
662 + hardcode_minus_L=yes
665 + if test "$with_gnu_ld" = no; then
666 + case "$host_cpu" in
668 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
669 + hardcode_libdir_separator=:
673 + hardcode_libdir_flag_spec='-L$libdir'
675 + # hardcode_minus_L: Not really in the search PATH,
676 + # but as the default location of the library.
677 + hardcode_minus_L=yes
680 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
681 + hardcode_libdir_separator=:
682 + hardcode_direct=yes
683 + # hardcode_minus_L: Not really in the search PATH,
684 + # but as the default location of the library.
685 + hardcode_minus_L=yes
690 + irix5* | irix6* | nonstopux*)
691 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
692 + hardcode_libdir_separator=:
695 + hardcode_libdir_flag_spec='-R$libdir'
696 + hardcode_direct=yes
699 + hardcode_direct=yes
700 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
701 + hardcode_libdir_separator=:
704 + hardcode_direct=yes
705 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
706 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
709 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
710 + hardcode_libdir_flag_spec='-R$libdir'
713 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
719 + hardcode_libdir_flag_spec='-L$libdir'
720 + hardcode_minus_L=yes
723 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
724 + hardcode_libdir_separator=:
727 + if test "$GCC" = yes; then
728 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
730 + # Both cc and cxx compiler support -rpath directly
731 + hardcode_libdir_flag_spec='-rpath $libdir'
733 + hardcode_libdir_separator=:
738 + hardcode_libdir_flag_spec='-R$libdir'
741 + hardcode_libdir_flag_spec='-L$libdir'
742 + hardcode_direct=yes
743 + hardcode_minus_L=yes
746 + case $host_vendor in
748 + hardcode_direct=yes # is this really true???
754 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
761 + if test -d /usr/nec; then
766 + hardcode_direct=yes
767 + hardcode_minus_L=no
769 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
772 + hardcode_libdir_flag_spec=
775 + hardcode_libdir_flag_spec='-L$libdir'
783 +# Check dynamic linker characteristics
784 +# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
785 +libname_spec='lib$name'
797 + cygwin* | mingw* | pw32*)
800 + darwin* | rhapsody*)
811 + hpux9* | hpux10* | hpux11*)
812 + case "$host_cpu" in
824 + irix5* | irix6* | nonstopux*)
826 + irix5* | nonstopux*)
827 + libsuff= shlibsuff=
831 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
832 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
833 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
834 + *) libsuff= shlibsuff= ;;
839 + linux*oldld* | linux*aout* | linux*coff*)
852 + libname_spec='$name'
855 + osf3* | osf4* | osf5*)
863 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
871 +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
872 +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
873 +shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
874 +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
876 +sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
878 +# How to pass a linker flag through the compiler.
881 +# Static library suffix (normally "a").
884 +# Shared library suffix (normally "so").
885 +shlibext="$shlibext"
887 +# Flag to hardcode \$libdir into a binary during linking.
888 +# This must work even if \$libdir does not exist.
889 +hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
891 +# Whether we need a single -rpath flag with a separated argument.
892 +hardcode_libdir_separator="$hardcode_libdir_separator"
894 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
896 +hardcode_direct="$hardcode_direct"
898 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
900 +hardcode_minus_L="$hardcode_minus_L"
903 --- lxpanel-0.5.6.orig/aclocal.m4
904 +++ lxpanel-0.5.6/aclocal.m4
905 @@ -19,8 +19,8 @@ You have another version of autoconf. I
906 If you have problems, you may need to regenerate the build system entirely.
907 To do so, use the procedure documented by the package, typically `autoreconf'.])])
909 -# gettext.m4 serial 63 (gettext-0.18)
910 -dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
911 +# gettext.m4 serial 60 (gettext-0.17)
912 +dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
913 dnl This file is free software; the Free Software Foundation
914 dnl gives unlimited permission to copy and/or distribute it,
915 dnl with or without modifications, as long as this notice is preserved.
916 @@ -36,7 +36,7 @@ dnl They are *not* in the public domain.
919 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
920 -dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
921 +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
923 dnl Macro to add for using GNU gettext.
925 @@ -81,8 +81,6 @@ AC_DEFUN([AM_GNU_GETTEXT],
926 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
927 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
929 - ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
930 - [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
931 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
932 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
934 @@ -146,11 +144,11 @@ AC_DEFUN([AM_GNU_GETTEXT],
935 gt_use_preinstalled_gnugettext=no
936 ifelse(gt_included_intl, yes, [
937 AC_MSG_CHECKING([whether included gettext is requested])
938 - AC_ARG_WITH([included-gettext],
939 + AC_ARG_WITH(included-gettext,
940 [ --with-included-gettext use the GNU gettext library included here],
941 nls_cv_force_use_gnu_gettext=$withval,
942 nls_cv_force_use_gnu_gettext=no)
943 - AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
944 + AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
946 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
947 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
948 @@ -290,7 +288,7 @@ return * gettext ("")$gt_expression_test
950 if test "$gt_use_preinstalled_gnugettext" = "yes" \
951 || test "$nls_cv_use_gnu_gettext" = "yes"; then
952 - AC_DEFINE([ENABLE_NLS], [1],
953 + AC_DEFINE(ENABLE_NLS, 1,
954 [Define to 1 if translation of program messages to the user's native language
957 @@ -324,9 +322,9 @@ return * gettext ("")$gt_expression_test
960 dnl For backward compatibility. Some packages may be using this.
961 - AC_DEFINE([HAVE_GETTEXT], [1],
962 + AC_DEFINE(HAVE_GETTEXT, 1,
963 [Define if the GNU gettext() function is already present or preinstalled.])
964 - AC_DEFINE([HAVE_DCGETTEXT], [1],
965 + AC_DEFINE(HAVE_DCGETTEXT, 1,
966 [Define if the GNU dcgettext() function is already present or preinstalled.])
969 @@ -342,9 +340,9 @@ return * gettext ("")$gt_expression_test
972 dnl Make all variables we use known to autoconf.
973 - AC_SUBST([BUILD_INCLUDED_LIBINTL])
974 - AC_SUBST([USE_INCLUDED_LIBINTL])
975 - AC_SUBST([CATOBJEXT])
976 + AC_SUBST(BUILD_INCLUDED_LIBINTL)
977 + AC_SUBST(USE_INCLUDED_LIBINTL)
978 + AC_SUBST(CATOBJEXT)
980 dnl For backward compatibility. Some configure.ins may be using this.
982 @@ -352,36 +350,36 @@ return * gettext ("")$gt_expression_test
984 dnl For backward compatibility. Some Makefiles may be using this.
986 - AC_SUBST([DATADIRNAME])
987 + AC_SUBST(DATADIRNAME)
989 dnl For backward compatibility. Some Makefiles may be using this.
991 - AC_SUBST([INSTOBJEXT])
992 + AC_SUBST(INSTOBJEXT)
994 dnl For backward compatibility. Some Makefiles may be using this.
999 dnl For backward compatibility. Some Makefiles may be using this.
1001 if test "$USE_INCLUDED_LIBINTL" = yes; then
1002 INTLOBJS="\$(GETTOBJS)"
1004 - AC_SUBST([INTLOBJS])
1005 + AC_SUBST(INTLOBJS)
1007 dnl Enable libtool support if the surrounding package wishes it.
1008 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
1009 - AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
1010 + AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
1013 dnl For backward compatibility. Some Makefiles may be using this.
1015 - AC_SUBST([INTLLIBS])
1016 + AC_SUBST(INTLLIBS)
1018 dnl Make all documented variables known to autoconf.
1019 - AC_SUBST([LIBINTL])
1020 - AC_SUBST([LTLIBINTL])
1023 + AC_SUBST(LTLIBINTL)
1028 @@ -1033,8 +1031,7 @@ AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_IN
1029 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1031 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1032 -# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1034 +# 2006, 2007, 2008 Free Software Foundation, Inc.
1035 # Written by Gordon Matzigkeit, 1996
1037 # This file is free software; the Free Software Foundation gives
1038 @@ -1043,8 +1040,7 @@ AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_IN
1040 m4_define([_LT_COPYING], [dnl
1041 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1042 -# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1044 +# 2006, 2007, 2008 Free Software Foundation, Inc.
1045 # Written by Gordon Matzigkeit, 1996
1047 # This file is part of GNU Libtool.
1048 @@ -1071,7 +1067,7 @@ m4_define([_LT_COPYING], [dnl
1049 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1052 -# serial 57 LT_INIT
1053 +# serial 56 LT_INIT
1056 # LT_PREREQ(VERSION)
1057 @@ -1100,7 +1096,6 @@ esac
1058 # ------------------
1060 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1061 -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1062 AC_BEFORE([$0], [LT_LANG])dnl
1063 AC_BEFORE([$0], [LT_OUTPUT])dnl
1064 AC_BEFORE([$0], [LTDL_INIT])dnl
1065 @@ -1117,8 +1112,6 @@ AC_REQUIRE([LTVERSION_VERSION])dnl
1066 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1067 m4_require([_LT_PROG_LTMAIN])dnl
1069 -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1072 _LT_SET_OPTIONS([$0], [$1])
1074 @@ -1155,7 +1148,7 @@ m4_defun([_LT_CC_BASENAME],
1078 -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1079 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1083 @@ -1175,9 +1168,6 @@ m4_defun([_LT_FILEUTILS_DEFAULTS],
1084 m4_defun([_LT_SETUP],
1085 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1086 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1087 -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1088 -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1090 _LT_DECL([], [host_alias], [0], [The host system])dnl
1091 _LT_DECL([], [host], [0])dnl
1092 _LT_DECL([], [host_os], [0])dnl
1093 @@ -1219,6 +1209,7 @@ fi
1096 m4_require([_LT_TAG_COMPILER])dnl
1097 +_LT_PROG_ECHO_BACKSLASH
1101 @@ -1232,6 +1223,23 @@ aix3*)
1105 +# Sed substitution that helps us do robust quoting. It backslashifies
1106 +# metacharacters that are still active within double-quoted strings.
1107 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1109 +# Same as above, but do not quote variable references.
1110 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1112 +# Sed substitution to delay expansion of an escaped shell variable in a
1113 +# double_quote_subst'ed string.
1114 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1116 +# Sed substitution to delay expansion of an escaped single quote.
1117 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1119 +# Sed substitution to avoid accidental globbing in evaled expressions
1120 +no_glob_subst='s/\*/\\\*/g'
1124 can_build_shared=yes
1125 @@ -1272,28 +1280,6 @@ _LT_CONFIG_COMMANDS
1129 -# _LT_PREPARE_SED_QUOTE_VARS
1130 -# --------------------------
1131 -# Define a few sed substitution that help us do robust quoting.
1132 -m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1133 -[# Backslashify metacharacters that are still active within
1134 -# double-quoted strings.
1135 -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1137 -# Same as above, but do not quote variable references.
1138 -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1140 -# Sed substitution to delay expansion of an escaped shell variable in a
1141 -# double_quote_subst'ed string.
1142 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1144 -# Sed substitution to delay expansion of an escaped single quote.
1145 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1147 -# Sed substitution to avoid accidental globbing in evaled expressions
1148 -no_glob_subst='s/\*/\\\*/g'
1153 # Note that this code is called both from `configure', and `config.status'
1154 @@ -1446,7 +1432,7 @@ m4_define([_lt_decl_all_varnames],
1155 # declaration there will have the same value as in `configure'. VARNAME
1156 # must have a single quote delimited value for this to work.
1157 m4_define([_LT_CONFIG_STATUS_DECLARE],
1158 -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1159 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1162 # _LT_CONFIG_STATUS_DECLARATIONS
1163 @@ -1456,7 +1442,7 @@ m4_define([_LT_CONFIG_STATUS_DECLARE],
1164 # embedded single quotes properly. In configure, this macro expands
1165 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1167 -# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1168 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1169 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1170 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1171 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1172 @@ -1555,20 +1541,12 @@ LTCC='$LTCC'
1173 LTCFLAGS='$LTCFLAGS'
1174 compiler='$compiler_DEFAULT'
1176 -# A function that is used when there is no print builtin or printf.
1177 -func_fallback_echo ()
1179 - eval 'cat <<_LTECHO_EOF
1184 # Quote evaled strings.
1185 for var in lt_decl_all_varnames([[ \
1186 ]], lt_decl_quote_varnames); do
1187 - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1188 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1189 *[[\\\\\\\`\\"\\\$]]*)
1190 - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1191 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1195 @@ -1579,9 +1557,9 @@ done
1196 # Double-quote double-evaled strings.
1197 for var in lt_decl_all_varnames([[ \
1198 ]], lt_decl_dquote_varnames); do
1199 - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1200 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1201 *[[\\\\\\\`\\"\\\$]]*)
1202 - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1203 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1207 @@ -1589,38 +1567,16 @@ for var in lt_decl_all_varnames([[ \
1211 +# Fix-up fallback echo if it was mangled by the above quoting rules.
1213 +*'\\\[$]0 --fallback-echo"')dnl "
1214 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1218 _LT_OUTPUT_LIBTOOL_INIT
1221 -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1222 -# ------------------------------------
1223 -# Generate a child script FILE with all initialization necessary to
1224 -# reuse the environment learned by the parent script, and make the
1225 -# file executable. If COMMENT is supplied, it is inserted after the
1226 -# `#!' sequence but before initialization text begins. After this
1227 -# macro, additional text can be appended to FILE to form the body of
1228 -# the child script. The macro ends with non-zero status if the
1229 -# file could not be fully written (such as if the disk is full).
1230 -m4_ifdef([AS_INIT_GENERATED],
1231 -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1232 -[m4_defun([_LT_GENERATED_FILE_INIT],
1233 -[m4_require([AS_PREPARE])]dnl
1234 -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1236 -cat >$1 <<_ASEOF || lt_write_fail=1
1238 -# Generated by $as_me.
1240 -SHELL=\${CONFIG_SHELL-$SHELL}
1243 -cat >>$1 <<\_ASEOF || lt_write_fail=1
1246 -exec AS_MESSAGE_FD>&1
1248 -test $lt_write_fail = 0 && chmod +x $1[]dnl
1249 -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1253 @@ -1630,11 +1586,20 @@ m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_
1254 AC_DEFUN([LT_OUTPUT],
1255 [: ${CONFIG_LT=./config.lt}
1256 AC_MSG_NOTICE([creating $CONFIG_LT])
1257 -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1258 -[# Run this file to recreate a libtool stub with the current configuration.])
1259 +cat >"$CONFIG_LT" <<_LTEOF
1261 +# Generated by $as_me.
1262 +# Run this file to recreate a libtool stub with the current configuration.
1264 -cat >>"$CONFIG_LT" <<\_LTEOF
1266 +SHELL=\${CONFIG_SHELL-$SHELL}
1269 +cat >>"$CONFIG_LT" <<\_LTEOF
1273 +exec AS_MESSAGE_FD>&1
1274 exec AS_MESSAGE_LOG_FD>>config.log
1277 @@ -1660,7 +1625,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_
1278 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1279 configured by $[0], generated by m4_PACKAGE_STRING.
1281 -Copyright (C) 2010 Free Software Foundation, Inc.
1282 +Copyright (C) 2008 Free Software Foundation, Inc.
1283 This config.lt script is free software; the Free Software Foundation
1284 gives unlimited permision to copy, distribute and modify it."
1286 @@ -1705,13 +1670,15 @@ chmod +x "$CONFIG_LT"
1287 # appending to config.log, which fails on DOS, as config.log is still kept
1288 # open by configure. Here we exec the FD to /dev/null, effectively closing
1289 # config.log, so it can be properly (re)opened and appended to by config.lt.
1291 -test "$silent" = yes &&
1292 - lt_config_lt_args="$lt_config_lt_args --quiet"
1293 -exec AS_MESSAGE_LOG_FD>/dev/null
1294 -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1295 -exec AS_MESSAGE_LOG_FD>>config.log
1296 -$lt_cl_success || AS_EXIT(1)
1297 +if test "$no_create" != yes; then
1299 + test "$silent" = yes &&
1300 + lt_config_lt_args="$lt_config_lt_args --quiet"
1301 + exec AS_MESSAGE_LOG_FD>/dev/null
1302 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1303 + exec AS_MESSAGE_LOG_FD>>config.log
1304 + $lt_cl_success || AS_EXIT(1)
1309 @@ -1888,13 +1855,11 @@ AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)
1310 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1311 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1312 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1313 -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1314 dnl aclocal-1.4 backwards compatibility:
1315 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1316 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1317 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1318 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1319 -dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1323 @@ -1999,31 +1964,6 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECK
1324 [lt_cv_ld_exported_symbols_list=no])
1325 LDFLAGS="$save_LDFLAGS"
1327 - AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1328 - [lt_cv_ld_force_load=no
1329 - cat > conftest.c << _LT_EOF
1330 -int forced_loaded() { return 2;}
1332 - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1333 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1334 - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1335 - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1336 - echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1337 - $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1338 - cat > conftest.c << _LT_EOF
1339 -int main() { return 0;}
1341 - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1342 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1344 - if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1345 - lt_cv_ld_force_load=yes
1347 - cat conftest.err >&AS_MESSAGE_LOG_FD
1349 - rm -f conftest.err libconftest.a conftest conftest.c
1350 - rm -rf conftest.dSYM
1353 rhapsody* | darwin1.[[012]])
1354 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1355 @@ -2051,7 +1991,7 @@ _LT_EOF
1357 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1359 - if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1360 + if test "$DSYMUTIL" != ":"; then
1361 _lt_dsymutil='~$DSYMUTIL $lib || :'
1364 @@ -2071,11 +2011,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1365 _LT_TAGVAR(hardcode_direct, $1)=no
1366 _LT_TAGVAR(hardcode_automatic, $1)=yes
1367 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1368 - if test "$lt_cv_ld_force_load" = "yes"; then
1369 - _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1371 - _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1373 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1374 _LT_TAGVAR(link_all_deplibs, $1)=yes
1375 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1376 case $cc_basename in
1377 @@ -2083,7 +2019,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1378 *) _lt_dar_can_shared=$GCC ;;
1380 if test "$_lt_dar_can_shared" = "yes"; then
1381 - output_verbose_link_cmd=func_echo_all
1382 + output_verbose_link_cmd=echo
1383 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1384 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1385 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1386 @@ -2129,65 +2065,170 @@ if test -z "$aix_libpath"; then aix_libp
1387 # _LT_SHELL_INIT(ARG)
1388 # -------------------
1389 m4_define([_LT_SHELL_INIT],
1390 -[m4_divert_text([M4SH-INIT], [$1
1391 -])])# _LT_SHELL_INIT
1393 +[ifdef([AC_DIVERSION_NOTICE],
1394 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1395 + [AC_DIVERT_PUSH(NOTICE)])
1401 # _LT_PROG_ECHO_BACKSLASH
1402 # -----------------------
1403 -# Find how we can fake an echo command that does not interpret backslash.
1404 -# In particular, with Autoconf 2.60 or later we add some code to the start
1405 -# of the generated configure script which will find a shell with a builtin
1406 -# printf (which we can use as an echo command).
1407 +# Add some code to the start of the generated configure script which
1408 +# will find an echo command which doesn't interpret backslashes.
1409 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1410 -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1411 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1412 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1414 -AC_MSG_CHECKING([how to print strings])
1415 -# Test print first, because it will be a builtin if present.
1416 -if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1417 - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1418 - ECHO='print -r --'
1419 -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1420 - ECHO='printf %s\n'
1422 +# Check that we are running under the correct shell.
1423 +SHELL=${CONFIG_SHELL-/bin/sh}
1427 + # Remove one level of quotation (which was required for Make).
1428 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1432 +ECHO=${lt_ECHO-echo}
1433 +if test "X[$]1" = X--no-reexec; then
1434 + # Discard the --no-reexec flag, and continue.
1436 +elif test "X[$]1" = X--fallback-echo; then
1437 + # Avoid inline document here, it may be left over
1439 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1440 + # Yippee, $ECHO works!
1443 - # Use this function as a fallback that always works.
1444 - func_fallback_echo ()
1446 - eval 'cat <<_LTECHO_EOF
1450 - ECHO='func_fallback_echo'
1451 + # Restart under the correct shell.
1452 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1455 -# func_echo_all arg...
1456 -# Invoke $ECHO with all args, space-separated.
1461 +if test "X[$]1" = X--fallback-echo; then
1462 + # used as fallback echo
1471 - printf*) AC_MSG_RESULT([printf]) ;;
1472 - print*) AC_MSG_RESULT([print -r]) ;;
1473 - *) AC_MSG_RESULT([cat]) ;;
1475 +# The HP-UX ksh and POSIX shell print the target directory to stdout
1476 +# if CDPATH is set.
1477 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1479 +if test -z "$lt_ECHO"; then
1480 + if test "X${echo_test_string+set}" != Xset; then
1481 + # find a string as large as possible, as long as the shell can cope with it
1482 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1483 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1484 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1485 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1492 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1493 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1494 + test "X$echo_testing_string" = "X$echo_test_string"; then
1497 + # The Solaris, AIX, and Digital Unix default echo programs unquote
1498 + # backslashes. This makes it impossible to quote backslashes using
1499 + # echo "$something" | sed 's/\\/\\\\/g'
1501 + # So, first we look for a working echo in the user's PATH.
1503 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1504 + for dir in $PATH /usr/ucb; do
1505 + IFS="$lt_save_ifs"
1506 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1507 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1508 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1509 + test "X$echo_testing_string" = "X$echo_test_string"; then
1514 + IFS="$lt_save_ifs"
1516 + if test "X$ECHO" = Xecho; then
1517 + # We didn't find a better echo, so look for alternatives.
1518 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1519 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1520 + test "X$echo_testing_string" = "X$echo_test_string"; then
1521 + # This shell has a builtin print -r that does the trick.
1523 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1524 + test "X$CONFIG_SHELL" != X/bin/ksh; then
1525 + # If we have ksh, try running configure again with it.
1526 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1527 + export ORIGINAL_CONFIG_SHELL
1528 + CONFIG_SHELL=/bin/ksh
1529 + export CONFIG_SHELL
1530 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1532 + # Try using printf.
1533 + ECHO='printf %s\n'
1534 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1535 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1536 + test "X$echo_testing_string" = "X$echo_test_string"; then
1537 + # Cool, printf works
1539 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1540 + test "X$echo_testing_string" = 'X\t' &&
1541 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1542 + test "X$echo_testing_string" = "X$echo_test_string"; then
1543 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1544 + export CONFIG_SHELL
1545 + SHELL="$CONFIG_SHELL"
1547 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1548 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1549 + test "X$echo_testing_string" = 'X\t' &&
1550 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1551 + test "X$echo_testing_string" = "X$echo_test_string"; then
1552 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1554 + # maybe with a smaller string...
1557 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1558 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1565 + if test "$prev" != 'sed 50q "[$]0"'; then
1566 + echo_test_string=`eval $prev`
1567 + export echo_test_string
1568 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1570 + # Oops. We lost completely, so just stick with echo.
1579 -m4_ifdef([_AS_DETECT_SUGGESTED],
1580 -[_AS_DETECT_SUGGESTED([
1581 - test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1582 - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1583 - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1584 - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1585 - PATH=/empty FPATH=/empty; export PATH FPATH
1586 - test "X`printf %s $ECHO`" = "X$ECHO" \
1587 - || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1588 +# Copy echo and quote the copy suitably for passing to libtool from
1589 +# the Makefile, instead of quoting the original, which is used later.
1591 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1592 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1597 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1598 -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1599 +_LT_DECL([], [ECHO], [1],
1600 + [An echo program that does not interpret backslashes])
1601 ])# _LT_PROG_ECHO_BACKSLASH
1604 @@ -2219,7 +2260,7 @@ ia64-*-hpux*)
1607 # Find out which ABI we are using.
1608 - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1609 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1610 if AC_TRY_EVAL(ac_compile); then
1611 if test "$lt_cv_prog_gnu_ld" = yes; then
1612 case `/usr/bin/file conftest.$ac_objext` in
1613 @@ -2371,19 +2412,10 @@ if test -n "$RANLIB"; then
1615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1620 - lock_old_archive_extraction=yes ;;
1622 - lock_old_archive_extraction=no ;;
1624 _LT_DECL([], [old_postinstall_cmds], [2])
1625 _LT_DECL([], [old_postuninstall_cmds], [2])
1626 _LT_TAGDECL([], [old_archive_cmds], [2],
1627 [Commands used to build an old-style archive])
1628 -_LT_DECL([], [lock_old_archive_extraction], [0],
1629 - [Whether to use a lock for old archive extraction])
1630 ])# _LT_CMD_OLD_ARCHIVE
1633 @@ -2408,15 +2440,15 @@ AC_CACHE_CHECK([$1], [$2],
1634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1635 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1636 -e 's:$: $lt_compiler_flag:'`
1637 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1638 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1639 (eval "$lt_compile" 2>conftest.err)
1641 cat conftest.err >&AS_MESSAGE_LOG_FD
1642 - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1643 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1644 if (exit $ac_status) && test -s "$ac_outfile"; then
1645 # The compiler can only warn and ignore the option if not recognized
1646 # So say no if there are warnings other than the usual output.
1647 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1648 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1652 @@ -2456,7 +2488,7 @@ AC_CACHE_CHECK([$1], [$2],
1653 if test -s conftest.err; then
1654 # Append any errors to the config.log.
1655 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1656 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1657 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1659 if diff conftest.exp conftest.er2 >/dev/null; then
1661 @@ -2519,11 +2551,6 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1662 lt_cv_sys_max_cmd_len=8192;
1666 - # On MiNT this can take a long time and run out of memory.
1667 - lt_cv_sys_max_cmd_len=8192;
1671 # On AmigaOS with pdksh, this test takes hours, literally.
1672 # So we just punt and use a minimum line length of 8192.
1673 @@ -2588,8 +2615,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1674 # If test is not a shell built-in, we'll probably end up computing a
1675 # maximum length that is only half of the actual maximum length, but
1677 - while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1678 - = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1679 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1680 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1681 test $i != 17 # 1/2 MB should be enough
1684 @@ -2640,7 +2667,7 @@ else
1685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1686 lt_status=$lt_dlunknown
1687 cat > conftest.$ac_ext <<_LT_EOF
1688 -[#line $LINENO "configure"
1689 +[#line __oline__ "configure"
1690 #include "confdefs.h"
1693 @@ -2681,13 +2708,7 @@ else
1697 -/* When -fvisbility=hidden is used, assume the code has been annotated
1698 - correspondingly for the symbols needed. */
1699 -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1700 -void fnord () __attribute__((visibility("default")));
1703 -void fnord () { int i=42; }
1704 +void fnord() { int i=42;}
1707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1708 @@ -2696,11 +2717,7 @@ int main ()
1711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1714 - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1715 - else puts (dlerror ());
1717 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1718 /* dlclose (self); */
1721 @@ -2876,16 +2893,16 @@ AC_CACHE_CHECK([if $compiler supports -c
1722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1723 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1724 -e 's:$: $lt_compiler_flag:'`
1725 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1726 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1727 (eval "$lt_compile" 2>out/conftest.err)
1729 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1730 - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1731 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1734 # The compiler can only warn and ignore the option if not recognized
1735 # So say no if there are warnings
1736 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1737 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1740 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1741 @@ -3044,7 +3061,6 @@ m4_require([_LT_DECL_EGREP])dnl
1742 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1743 m4_require([_LT_DECL_OBJDUMP])dnl
1744 m4_require([_LT_DECL_SED])dnl
1745 -m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1746 AC_MSG_CHECKING([dynamic linker characteristics])
1749 @@ -3053,23 +3069,16 @@ if test "$GCC" = yes; then
1750 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1751 *) lt_awk_arg="/^libraries:/" ;;
1754 - mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
1755 - *) lt_sed_strip_eq="s,=/,/,g" ;;
1757 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1758 - case $lt_search_path_spec in
1760 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1761 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1762 # if the path contains ";" then we assume it to be the separator
1763 # otherwise default to the standard path separator (i.e. ":") - it is
1764 # assumed that no part of a normal pathname contains ";" but that should
1765 # okay in the real world where ";" in dirpaths is itself problematic.
1766 - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
1769 - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
1772 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1774 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1776 # Ok, now we have the path, separated by spaces, we can step through it
1777 # and add multilib dir if necessary.
1778 lt_tmp_lt_search_path_spec=
1779 @@ -3082,7 +3091,7 @@ if test "$GCC" = yes; then
1780 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1783 - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1784 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1785 BEGIN {RS=" "; FS="/|\n";} {
1788 @@ -3102,13 +3111,7 @@ BEGIN {RS=" "; FS="/|\n";} {
1789 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1790 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1792 - # AWK program above erroneously prepends '/' to C:/dos/paths
1793 - # for these hosts.
1795 - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
1796 - $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
1798 - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1799 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1803 @@ -3196,7 +3199,7 @@ amigaos*)
1805 library_names_spec='$libname.ixlibrary $libname.a'
1806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1807 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
1808 + 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'
1812 @@ -3249,12 +3252,23 @@ cygwin* | mingw* | pw32* | cegcc*)
1814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1817 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
1818 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1821 # MinGW DLLs use traditional 'lib' prefix
1822 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1823 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1824 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1825 + # It is most probably a Windows format PATH printed by
1826 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1827 + # path with ; separators, and with drive letters. We can handle the
1828 + # drive letters (cygwin fileutils understands them), so leave them,
1829 + # especially as we might pass files found there to a mingw objdump,
1830 + # which wouldn't understand a cygwinified path. Ahh.
1831 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1833 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1837 # pw32 DLLs use 'pw' prefix rather than 'lib'
1838 @@ -3354,19 +3368,6 @@ gnu*)
1839 hardcode_into_libs=yes
1843 - version_type=linux
1844 - need_lib_prefix=no
1846 - dynamic_linker="$host_os runtime_loader"
1847 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1848 - soname_spec='${libname}${release}${shared_ext}$major'
1849 - shlibpath_var=LIBRARY_PATH
1850 - shlibpath_overrides_runpath=yes
1851 - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1852 - hardcode_into_libs=yes
1855 hpux9* | hpux10* | hpux11*)
1856 # Give a soname corresponding to the major version so that dld.sl refuses to
1857 # link against other versions.
1858 @@ -3409,10 +3410,8 @@ hpux9* | hpux10* | hpux11*)
1859 soname_spec='${libname}${release}${shared_ext}$major'
1862 - # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1863 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1864 postinstall_cmds='chmod 555 $lib'
1865 - # or fails outright, so override atomically:
1866 - install_override_mode=555
1870 @@ -3479,21 +3478,16 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
1871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1872 shlibpath_var=LD_LIBRARY_PATH
1873 shlibpath_overrides_runpath=no
1875 # Some binutils ld are patched to set DT_RUNPATH
1876 - AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
1877 - [lt_cv_shlibpath_overrides_runpath=no
1878 - save_LDFLAGS=$LDFLAGS
1879 - save_libdir=$libdir
1880 - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
1881 - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
1882 - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1883 - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
1884 - [lt_cv_shlibpath_overrides_runpath=yes])])
1885 - LDFLAGS=$save_LDFLAGS
1886 - libdir=$save_libdir
1888 - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1889 + save_LDFLAGS=$LDFLAGS
1890 + save_libdir=$libdir
1891 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
1892 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
1893 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1894 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
1895 + [shlibpath_overrides_runpath=yes])])
1896 + LDFLAGS=$save_LDFLAGS
1897 + libdir=$save_libdir
1899 # This implies no fast_install, which is unacceptable.
1900 # Some rework will be needed to allow for fast_install
1901 @@ -3502,7 +3496,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
1903 # Append ld.so.conf contents to the search path
1904 if test -f /etc/ld.so.conf; then
1905 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1906 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1910 @@ -3515,6 +3509,18 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
1911 dynamic_linker='GNU/Linux ld.so'
1915 + version_type=linux
1916 + need_lib_prefix=no
1918 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1919 + soname_spec='${libname}${release}${shared_ext}$major'
1920 + shlibpath_var=LD_LIBRARY_PATH
1921 + shlibpath_overrides_runpath=no
1922 + hardcode_into_libs=yes
1923 + dynamic_linker='NetBSD ld.elf_so'
1929 @@ -3735,8 +3741,6 @@ _LT_DECL([], [library_names_spec], [1],
1930 The last name is the one that the linker finds with -lNAME]])
1931 _LT_DECL([], [soname_spec], [1],
1932 [[The coded name of the library, if different from the real name]])
1933 -_LT_DECL([], [install_override_mode], [1],
1934 - [Permission mode override for installation of shared libraries])
1935 _LT_DECL([], [postinstall_cmds], [2],
1936 [Command to use after installation of a shared archive])
1937 _LT_DECL([], [postuninstall_cmds], [2],
1938 @@ -3849,7 +3853,6 @@ AC_REQUIRE([AC_CANONICAL_HOST])dnl
1939 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1940 m4_require([_LT_DECL_SED])dnl
1941 m4_require([_LT_DECL_EGREP])dnl
1942 -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
1944 AC_ARG_WITH([gnu-ld],
1945 [AS_HELP_STRING([--with-gnu-ld],
1946 @@ -3979,8 +3982,8 @@ case $host_os in
1950 -_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
1951 -_LT_TAGDECL([], [reload_cmds], [2])dnl
1952 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
1953 +_LT_DECL([], [reload_cmds], [2])dnl
1957 @@ -4032,18 +4035,16 @@ mingw* | pw32*)
1958 # Base MSYS/MinGW do not provide the 'file' command needed by
1959 # func_win32_libid shell function, so use a weaker test based on 'objdump',
1960 # unless we find 'file', for example because we are cross-compiling.
1961 - # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
1962 - if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1963 + if ( file / ) >/dev/null 2>&1; then
1964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1965 lt_cv_file_magic_cmd='func_win32_libid'
1967 - # Keep this pattern in sync with the one in func_win32_libid.
1968 - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
1969 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1970 lt_cv_file_magic_cmd='$OBJDUMP -f'
1976 # use the weaker test based on 'objdump'. See mingw*.
1977 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1978 lt_cv_file_magic_cmd='$OBJDUMP -f'
1979 @@ -4073,10 +4074,6 @@ gnu*)
1980 lt_cv_deplibs_check_method=pass_all
1984 - lt_cv_deplibs_check_method=pass_all
1987 hpux10.20* | hpux11*)
1988 lt_cv_file_magic_cmd=/usr/bin/file
1990 @@ -4085,11 +4082,11 @@ hpux10.20* | hpux11*)
1991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1994 - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
1995 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
1996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1999 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
2000 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2004 @@ -4115,7 +4112,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2005 lt_cv_deplibs_check_method=pass_all
2009 +netbsd* | netbsdelf*-gnu)
2010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2011 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2013 @@ -4253,19 +4250,7 @@ if test "$lt_cv_path_NM" != "no"; then
2016 # Didn't find any BSD compatible name lister, look for dumpbin.
2017 - if test -n "$DUMPBIN"; then :
2018 - # Let the user override the test.
2020 - AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
2021 - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
2023 - DUMPBIN="$DUMPBIN -symbols"
2030 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
2032 if test "$DUMPBIN" != ":"; then
2034 @@ -4278,13 +4263,13 @@ _LT_DECL([], [NM], [1], [A BSD- or MS-co
2035 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
2036 [lt_cv_nm_interface="BSD nm"
2037 echo "int some_variable = 0;" > conftest.$ac_ext
2038 - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
2039 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
2040 (eval "$ac_compile" 2>conftest.err)
2041 cat conftest.err >&AS_MESSAGE_LOG_FD
2042 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
2043 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
2044 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
2045 cat conftest.err >&AS_MESSAGE_LOG_FD
2046 - (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
2047 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
2048 cat conftest.out >&AS_MESSAGE_LOG_FD
2049 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
2050 lt_cv_nm_interface="MS dumpbin"
2051 @@ -4307,7 +4292,7 @@ AC_DEFUN([LT_LIB_M],
2052 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2055 -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
2056 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2057 # These system don't have libm, or don't need it
2060 @@ -4335,12 +4320,7 @@ m4_defun([_LT_COMPILER_NO_RTTI],
2061 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2063 if test "$GCC" = yes; then
2064 - case $cc_basename in
2066 - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
2068 - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
2070 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2072 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
2073 lt_cv_prog_compiler_rtti_exceptions,
2074 @@ -4357,7 +4337,6 @@ _LT_TAGDECL([no_builtin_flag], [lt_prog_
2075 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
2076 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2077 AC_REQUIRE([AC_PROG_CC])dnl
2078 -AC_REQUIRE([AC_PROG_AWK])dnl
2079 AC_REQUIRE([LT_PATH_NM])dnl
2080 AC_REQUIRE([LT_PATH_LD])dnl
2081 m4_require([_LT_DECL_SED])dnl
2082 @@ -4483,7 +4462,7 @@ _LT_EOF
2083 if AC_TRY_EVAL(ac_compile); then
2084 # Now try to grab the symbols.
2086 - if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
2087 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
2088 # Try sorting and uniquifying the output.
2089 if sort "$nlist" | uniq > "$nlist"T; then
2090 mv -f "$nlist"T "$nlist"
2091 @@ -4645,11 +4624,6 @@ m4_if([$1], [CXX], [
2092 # DJGPP does not support shared libraries at all
2093 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
2096 - # PIC is the default for Haiku.
2097 - # The "-static" flag exists, but is broken.
2098 - _LT_TAGVAR(lt_prog_compiler_static, $1)=
2101 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2102 # Instead, we relocate shared libraries at runtime.
2103 @@ -4788,8 +4762,8 @@ m4_if([$1], [CXX], [
2104 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
2105 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2107 - xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
2108 - # IBM XL 8.0, 9.0 on PPC and BlueGene
2110 + # IBM XL 8.0 on PPC
2111 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2112 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
2113 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
2114 @@ -4819,7 +4793,7 @@ m4_if([$1], [CXX], [
2119 + netbsd* | netbsdelf*-gnu)
2122 # QNX uses GNU C++, but need to define -shared option too, otherwise
2123 @@ -4851,7 +4825,7 @@ m4_if([$1], [CXX], [
2126 case $cc_basename in
2129 # Sun C++ 4.2, 5.x and Centerline C++
2130 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2131 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2132 @@ -4955,12 +4929,6 @@ m4_if([$1], [CXX], [
2133 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
2137 - # PIC is the default for Haiku.
2138 - # The "-static" flag exists, but is broken.
2139 - _LT_TAGVAR(lt_prog_compiler_static, $1)=
2143 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
2144 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
2145 @@ -5003,13 +4971,6 @@ m4_if([$1], [CXX], [
2146 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2150 - case $cc_basename in
2151 - nvcc*) # Cuda Compiler Driver 2.2
2152 - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
2153 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
2157 # PORTME Check for flag to pass linker flags through the system compiler.
2159 @@ -5073,7 +5034,7 @@ m4_if([$1], [CXX], [
2160 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
2161 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
2163 - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
2164 + pgcc* | pgf77* | pgf90* | pgf95*)
2165 # Portland Group compilers (*not* the Pentium gcc compiler,
2166 # which looks to be a dead project)
2167 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2168 @@ -5085,26 +5046,26 @@ m4_if([$1], [CXX], [
2169 # All Alpha code is PIC.
2170 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2172 - xl* | bgxl* | bgf* | mpixl*)
2173 - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
2175 + # IBM XL C 8.0/Fortran 10.1 on PPC
2176 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2177 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
2178 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
2181 case `$CC -V 2>&1 | sed 5q` in
2182 - *Sun\ F* | *Sun*Fortran*)
2183 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
2184 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2185 - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2186 - _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
2190 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2191 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2192 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2195 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
2196 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2197 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2198 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
2203 @@ -5135,7 +5096,7 @@ m4_if([$1], [CXX], [
2204 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2205 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2206 case $cc_basename in
2207 - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
2208 + f77* | f90* | f95*)
2209 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
2211 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
2212 @@ -5245,10 +5206,8 @@ m4_if([$1], [CXX], [
2214 # If we're using GNU nm, then we don't want the "-C" option.
2215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
2216 - # Also, AIX nm treats weak defined symbols like other global defined
2217 - # symbols, whereas GNU nm marks them as "W".
2218 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
2219 - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2220 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2222 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2224 @@ -5259,6 +5218,9 @@ m4_if([$1], [CXX], [
2225 cygwin* | mingw* | cegcc*)
2226 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
2228 + linux* | k*bsd*-gnu)
2229 + _LT_TAGVAR(link_all_deplibs, $1)=no
2232 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
2234 @@ -5323,36 +5285,13 @@ dnl Note also adjust exclude_expsyms for
2238 + linux* | k*bsd*-gnu)
2239 + _LT_TAGVAR(link_all_deplibs, $1)=no
2243 _LT_TAGVAR(ld_shlibs, $1)=yes
2245 - # On some targets, GNU ld is compatible enough with the native linker
2246 - # that we're better off using the native interface for both.
2247 - lt_use_gnu_ld_interface=no
2248 if test "$with_gnu_ld" = yes; then
2251 - # The AIX port of GNU ld has always aspired to compatibility
2252 - # with the native linker. However, as the warning in the GNU ld
2253 - # block says, versions before 2.19.5* couldn't really create working
2254 - # shared libraries, regardless of the interface used.
2255 - case `$LD -v 2>&1` in
2256 - *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
2257 - *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
2258 - *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
2260 - lt_use_gnu_ld_interface=yes
2265 - lt_use_gnu_ld_interface=yes
2270 - if test "$lt_use_gnu_ld_interface" = yes; then
2271 # If archive_cmds runs LD, not CC, wlarc should be empty
2274 @@ -5386,12 +5325,11 @@ dnl Note also adjust exclude_expsyms for
2275 _LT_TAGVAR(ld_shlibs, $1)=no
2278 -*** Warning: the GNU linker, at least up to release 2.19, is reported
2279 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2280 *** to be unable to reliably create shared libraries on AIX.
2281 *** Therefore, libtool is disabling shared libraries support. If you
2282 -*** really care for shared libraries, you may want to install binutils
2283 -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
2284 -*** You will then need to restart the configuration process.
2285 +*** really care for shared libraries, you may want to modify your PATH
2286 +*** so that a non-GNU linker is found, and then restart.
2290 @@ -5427,7 +5365,6 @@ _LT_EOF
2291 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2292 # as there is no search path for DLLs.
2293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2294 - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
2295 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
2296 _LT_TAGVAR(always_export_symbols, $1)=no
2297 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2298 @@ -5449,11 +5386,6 @@ _LT_EOF
2303 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2304 - _LT_TAGVAR(link_all_deplibs, $1)=yes
2308 _LT_TAGVAR(hardcode_direct, $1)=no
2309 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
2310 @@ -5483,12 +5415,11 @@ _LT_EOF
2311 tmp_sharedflag='-shared'
2312 case $cc_basename,$host_cpu in
2313 pgcc*) # Portland Group C compiler
2314 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2315 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
2316 tmp_addflag=' $pic_flag'
2318 - pgf77* | pgf90* | pgf95* | pgfortran*)
2319 - # Portland Group f77 and f90 compilers
2320 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2321 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
2322 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
2323 tmp_addflag=' $pic_flag -Mnomain' ;;
2324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
2325 tmp_addflag=' -i_dynamic' ;;
2326 @@ -5499,17 +5430,13 @@ _LT_EOF
2327 lf95*) # Lahey Fortran 8.1
2328 _LT_TAGVAR(whole_archive_flag_spec, $1)=
2329 tmp_sharedflag='--shared' ;;
2330 - xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
2331 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
2332 tmp_sharedflag='-qmkshrobj'
2334 - nvcc*) # Cuda Compiler Driver 2.2
2335 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2336 - _LT_TAGVAR(compiler_needs_object, $1)=yes
2339 case `$CC -V 2>&1 | sed 5q` in
2340 *Sun\ C*) # Sun C 5.9
2341 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2342 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
2343 _LT_TAGVAR(compiler_needs_object, $1)=yes
2344 tmp_sharedflag='-G' ;;
2345 *Sun\ F*) # Sun Fortran 8.3
2346 @@ -5525,17 +5452,17 @@ _LT_EOF
2349 case $cc_basename in
2350 - xlf* | bgf* | bgxlf* | mpixlf*)
2352 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
2353 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
2354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
2355 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
2356 - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
2357 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
2358 if test "x$supports_anon_versioning" = xyes; then
2359 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
2360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
2361 echo "local: *; };" >> $output_objdir/$libname.ver~
2362 - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2363 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2367 @@ -5544,7 +5471,7 @@ _LT_EOF
2372 + netbsd* | netbsdelf*-gnu)
2373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2374 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2376 @@ -5656,10 +5583,8 @@ _LT_EOF
2378 # If we're using GNU nm, then we don't want the "-C" option.
2379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
2380 - # Also, AIX nm treats weak defined symbols like other global
2381 - # defined symbols, whereas GNU nm marks them as "W".
2382 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
2383 - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2384 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2386 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
2388 @@ -5721,6 +5646,7 @@ _LT_EOF
2389 if test "$aix_use_runtimelinking" = yes; then
2390 shared_flag="$shared_flag "'${wl}-G'
2392 + _LT_TAGVAR(link_all_deplibs, $1)=no
2395 if test "$host_cpu" = ia64; then
2396 @@ -5748,7 +5674,7 @@ _LT_EOF
2398 _LT_SYS_MODULE_PATH_AIX
2399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2400 - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2401 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2403 if test "$host_cpu" = ia64; then
2404 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2405 @@ -5763,13 +5689,8 @@ _LT_EOF
2406 # -berok will link without error, but may produce a broken library.
2407 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2408 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2409 - if test "$with_gnu_ld" = yes; then
2410 - # We only use this code for GNU lds that support --whole-archive.
2411 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2413 - # Exported symbols can be pulled into shared objects from archives
2414 - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2416 + # Exported symbols can be pulled into shared objects from archives
2417 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2418 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
2419 # This is similar to how AIX traditionally builds its shared libraries.
2420 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2421 @@ -5808,7 +5729,7 @@ _LT_EOF
2422 # Tell ltmain to make .dll files, not .so files.
2424 # FIXME: Setting linknames here is a bad hack.
2425 - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
2426 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
2427 # The linker will automatically build a .lib file if we build a DLL.
2428 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
2429 # FIXME: Should let the user specify the lib program.
2430 @@ -5875,7 +5796,7 @@ _LT_EOF
2434 - if test "$GCC" = yes && test "$with_gnu_ld" = no; then
2435 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2438 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
2439 @@ -5894,7 +5815,7 @@ _LT_EOF
2443 - if test "$GCC" = yes && test "$with_gnu_ld" = no; then
2444 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2447 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2448 @@ -5915,14 +5836,7 @@ _LT_EOF
2449 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2453 - # Older versions of the 11.00 compiler do not understand -b yet
2454 - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
2455 - _LT_LINKER_OPTION([if $CC understands -b],
2456 - _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
2457 - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
2458 - [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
2459 - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
2460 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2464 @@ -5950,19 +5864,19 @@ _LT_EOF
2466 irix5* | irix6* | nonstopux*)
2467 if test "$GCC" = yes; then
2468 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2469 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2470 # Try to use the -exported_symbol ld option, if it does not
2471 # work, assume that -exports_file does not work either and
2472 # implicitly export all symbols.
2473 save_LDFLAGS="$LDFLAGS"
2474 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
2475 AC_LINK_IFELSE(int foo(void) {},
2476 - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
2477 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
2479 LDFLAGS="$save_LDFLAGS"
2481 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2482 - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
2483 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
2484 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
2486 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
2487 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2488 @@ -5971,7 +5885,7 @@ _LT_EOF
2489 _LT_TAGVAR(link_all_deplibs, $1)=yes
2493 + netbsd* | netbsdelf*-gnu)
2494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2495 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
2497 @@ -6024,17 +5938,17 @@ _LT_EOF
2498 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2499 _LT_TAGVAR(hardcode_minus_L, $1)=yes
2500 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
2501 - _LT_TAGVAR(archive_cmds, $1)='$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'
2502 + _LT_TAGVAR(archive_cmds, $1)='$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'
2503 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2507 if test "$GCC" = yes; then
2508 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2509 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2510 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2512 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2513 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2514 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
2516 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
2517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2518 @@ -6044,13 +5958,13 @@ _LT_EOF
2519 osf4* | osf5*) # as osf3* with the addition of -msym flag
2520 if test "$GCC" = yes; then
2521 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2522 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2523 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2526 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2527 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2528 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
2529 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
2530 - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
2531 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
2533 # Both c and cxx compiler support -rpath directly
2534 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2535 @@ -6241,38 +6155,36 @@ x|xyes)
2536 # Test whether the compiler implicitly links with -lc since on some
2537 # systems, -lgcc has to come before -lc. If gcc already passes -lc
2538 # to ld, don't add -lc before -lgcc.
2539 - AC_CACHE_CHECK([whether -lc should be explicitly linked in],
2540 - [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
2542 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2544 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
2547 - libobjs=conftest.$ac_objext
2549 - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
2550 - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
2556 - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
2557 - _LT_TAGVAR(allow_undefined_flag, $1)=
2558 - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
2560 - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
2562 - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
2564 - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
2566 - cat conftest.err 1>&5
2570 - _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
2571 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2573 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2575 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
2578 + libobjs=conftest.$ac_objext
2580 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
2581 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
2587 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
2588 + _LT_TAGVAR(allow_undefined_flag, $1)=
2589 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
2591 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2593 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
2595 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
2597 + cat conftest.err 1>&5
2600 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
2604 @@ -6438,14 +6350,14 @@ CC="$lt_save_CC"
2605 ])# _LT_LANG_C_CONFIG
2608 -# _LT_LANG_CXX_CONFIG([TAG])
2609 -# --------------------------
2610 -# Ensure that the configuration variables for a C++ compiler are suitably
2611 -# defined. These variables are subsequently used by _LT_CONFIG to write
2612 -# the compiler configuration to `libtool'.
2613 -m4_defun([_LT_LANG_CXX_CONFIG],
2614 -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2615 -m4_require([_LT_DECL_EGREP])dnl
2618 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
2619 +# compiler, we have our own version here.
2620 +m4_defun([_LT_PROG_CXX],
2622 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
2624 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2625 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2626 (test "X$CXX" != "Xg++"))) ; then
2627 @@ -6453,6 +6365,22 @@ if test -n "$CXX" && ( test "X$CXX" != "
2629 _lt_caught_CXX_error=yes
2631 +popdef([AC_MSG_ERROR])
2634 +dnl aclocal-1.4 backwards compatibility:
2635 +dnl AC_DEFUN([_LT_PROG_CXX], [])
2638 +# _LT_LANG_CXX_CONFIG([TAG])
2639 +# --------------------------
2640 +# Ensure that the configuration variables for a C++ compiler are suitably
2641 +# defined. These variables are subsequently used by _LT_CONFIG to write
2642 +# the compiler configuration to `libtool'.
2643 +m4_defun([_LT_LANG_CXX_CONFIG],
2644 +[AC_REQUIRE([_LT_PROG_CXX])dnl
2645 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2646 +m4_require([_LT_DECL_EGREP])dnl
2649 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2650 @@ -6474,8 +6402,6 @@ _LT_TAGVAR(module_cmds, $1)=
2651 _LT_TAGVAR(module_expsym_cmds, $1)=
2652 _LT_TAGVAR(link_all_deplibs, $1)=unknown
2653 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2654 -_LT_TAGVAR(reload_flag, $1)=$reload_flag
2655 -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
2656 _LT_TAGVAR(no_undefined_flag, $1)=
2657 _LT_TAGVAR(whole_archive_flag_spec, $1)=
2658 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2659 @@ -6578,7 +6504,7 @@ if test "$_lt_caught_CXX_error" != yes;
2660 # Commands to make compiler produce verbose output that lists
2661 # what "hidden" libraries, object files and flags are used when
2662 # linking a shared library.
2663 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
2664 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
2668 @@ -6690,7 +6616,7 @@ if test "$_lt_caught_CXX_error" != yes;
2669 _LT_SYS_MODULE_PATH_AIX
2670 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2672 - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2673 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2675 if test "$host_cpu" = ia64; then
2676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2677 @@ -6705,13 +6631,8 @@ if test "$_lt_caught_CXX_error" != yes;
2678 # -berok will link without error, but may produce a broken library.
2679 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2680 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2681 - if test "$with_gnu_ld" = yes; then
2682 - # We only use this code for GNU lds that support --whole-archive.
2683 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2685 - # Exported symbols can be pulled into shared objects from archives
2686 - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2688 + # Exported symbols can be pulled into shared objects from archives
2689 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2690 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
2691 # This is similar to how AIX traditionally builds its shared
2693 @@ -6744,7 +6665,6 @@ if test "$_lt_caught_CXX_error" != yes;
2694 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2695 # as there is no search path for DLLs.
2696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2697 - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
2698 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
2699 _LT_TAGVAR(always_export_symbols, $1)=no
2700 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2701 @@ -6805,11 +6725,6 @@ if test "$_lt_caught_CXX_error" != yes;
2706 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2707 - _LT_TAGVAR(link_all_deplibs, $1)=yes
2711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2712 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
2713 @@ -6834,7 +6749,7 @@ if test "$_lt_caught_CXX_error" != yes;
2714 # explicitly linking system object files so we need to strip them
2715 # from the output so that they don't get included in the library
2717 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
2718 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
2721 if test "$GXX" = yes; then
2722 @@ -6899,7 +6814,7 @@ if test "$_lt_caught_CXX_error" != yes;
2723 # explicitly linking system object files so we need to strip them
2724 # from the output so that they don't get included in the library
2726 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
2727 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
2730 if test "$GXX" = yes; then
2731 @@ -6942,7 +6857,7 @@ if test "$_lt_caught_CXX_error" != yes;
2732 case $cc_basename in
2735 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2736 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
2738 # Archives containing C++ object files must be created using
2739 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
2740 @@ -6953,9 +6868,9 @@ if test "$_lt_caught_CXX_error" != yes;
2742 if test "$GXX" = yes; then
2743 if test "$with_gnu_ld" = no; then
2744 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2745 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2747 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
2748 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
2751 _LT_TAGVAR(link_all_deplibs, $1)=yes
2752 @@ -6984,7 +6899,7 @@ if test "$_lt_caught_CXX_error" != yes;
2753 # explicitly linking system object files so we need to strip them
2754 # from the output so that they don't get included in the library
2756 - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
2757 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
2759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2760 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2761 @@ -7021,26 +6936,26 @@ if test "$_lt_caught_CXX_error" != yes;
2763 # Portland Group C++ compiler
2765 - *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
2766 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
2767 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
2769 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
2770 - compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
2771 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
2772 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
2774 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
2775 - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
2776 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
2778 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
2780 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
2781 - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2782 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2783 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
2785 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
2786 - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2787 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2789 - *) # Version 6 and above use weak symbols
2790 + *) # Version 6 will use weak symbols
2791 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2792 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2794 @@ -7048,7 +6963,7 @@ if test "$_lt_caught_CXX_error" != yes;
2796 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2797 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2798 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2799 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
2803 @@ -7067,9 +6982,9 @@ if test "$_lt_caught_CXX_error" != yes;
2804 # explicitly linking system object files so we need to strip them
2805 # from the output so that they don't get included in the library
2807 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
2808 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
2810 - xl* | mpixl* | bgxl*)
2812 # IBM XL 8.0 on PPC, with GNU ld
2813 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2814 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2815 @@ -7089,13 +7004,13 @@ if test "$_lt_caught_CXX_error" != yes;
2816 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2817 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
2818 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2819 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
2820 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
2821 _LT_TAGVAR(compiler_needs_object, $1)=yes
2823 # Not sure whether something based on
2824 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
2826 - output_verbose_link_cmd='func_echo_all'
2827 + output_verbose_link_cmd='echo'
2829 # Archives containing C++ object files must be created using
2830 # "CC -xar", where "CC" is the Sun C++ compiler. This is
2831 @@ -7164,7 +7079,7 @@ if test "$_lt_caught_CXX_error" != yes;
2832 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2833 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2835 - output_verbose_link_cmd=func_echo_all
2836 + output_verbose_link_cmd=echo
2838 _LT_TAGVAR(ld_shlibs, $1)=no
2840 @@ -7199,15 +7114,15 @@ if test "$_lt_caught_CXX_error" != yes;
2843 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2844 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2845 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
2846 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2849 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2850 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
2851 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
2852 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
2853 echo "-hidden">> $lib.exp~
2854 - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
2855 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
2857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2859 @@ -7223,17 +7138,17 @@ if test "$_lt_caught_CXX_error" != yes;
2860 # explicitly linking system object files so we need to strip them
2861 # from the output so that they don't get included in the library
2863 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
2864 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
2867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2868 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2871 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2872 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2875 - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2876 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2880 @@ -7243,7 +7158,7 @@ if test "$_lt_caught_CXX_error" != yes;
2881 # Commands to make compiler produce verbose output that lists
2882 # what "hidden" libraries, object files and flags are used when
2883 # linking a shared library.
2884 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
2885 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
2888 # FIXME: insert proper C++ library support
2889 @@ -7279,7 +7194,7 @@ if test "$_lt_caught_CXX_error" != yes;
2892 case $cc_basename in
2895 # Sun C++ 4.2, 5.x and Centerline C++
2896 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
2897 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2898 @@ -7300,7 +7215,7 @@ if test "$_lt_caught_CXX_error" != yes;
2900 _LT_TAGVAR(link_all_deplibs, $1)=yes
2902 - output_verbose_link_cmd='func_echo_all'
2903 + output_verbose_link_cmd='echo'
2905 # Archives containing C++ object files must be created using
2906 # "CC -xar", where "CC" is the Sun C++ compiler. This is
2907 @@ -7327,7 +7242,7 @@ if test "$_lt_caught_CXX_error" != yes;
2908 # Commands to make compiler produce verbose output that lists
2909 # what "hidden" libraries, object files and flags are used when
2910 # linking a shared library.
2911 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
2912 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
2914 # g++ 2.7 appears to require `-G' NOT `-shared' on this
2916 @@ -7338,7 +7253,7 @@ if test "$_lt_caught_CXX_error" != yes;
2917 # Commands to make compiler produce verbose output that lists
2918 # what "hidden" libraries, object files and flags are used when
2919 # linking a shared library.
2920 - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
2921 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
2924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
2925 @@ -7392,10 +7307,6 @@ if test "$_lt_caught_CXX_error" != yes;
2927 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2928 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2929 - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
2930 - '"$_LT_TAGVAR(old_archive_cmds, $1)"
2931 - _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
2932 - '"$_LT_TAGVAR(reload_cmds, $1)"
2935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2936 @@ -7642,7 +7553,7 @@ linux*)
2939 case $cc_basename in
2942 # The more standards-conforming stlport4 library is
2943 # incompatible with the Cstd library. Avoid specifying
2944 # it if it's in CXXFLAGS. Ignore libCrun as
2945 @@ -7686,16 +7597,32 @@ _LT_TAGDECL([], [compiler_lib_search_pat
2946 ])# _LT_SYS_HIDDEN_LIBDEPS
2951 +# Since AC_PROG_F77 is broken, in that it returns the empty string
2952 +# if there is no fortran compiler, we have our own version here.
2953 +m4_defun([_LT_PROG_F77],
2955 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
2957 +if test -z "$F77" || test "X$F77" = "Xno"; then
2958 + _lt_disable_F77=yes
2960 +popdef([AC_MSG_ERROR])
2963 +dnl aclocal-1.4 backwards compatibility:
2964 +dnl AC_DEFUN([_LT_PROG_F77], [])
2967 # _LT_LANG_F77_CONFIG([TAG])
2968 # --------------------------
2969 # Ensure that the configuration variables for a Fortran 77 compiler are
2970 # suitably defined. These variables are subsequently used by _LT_CONFIG
2971 # to write the compiler configuration to `libtool'.
2972 m4_defun([_LT_LANG_F77_CONFIG],
2973 -[AC_LANG_PUSH(Fortran 77)
2974 -if test -z "$F77" || test "X$F77" = "Xno"; then
2975 - _lt_disable_F77=yes
2977 +[AC_REQUIRE([_LT_PROG_F77])dnl
2978 +AC_LANG_PUSH(Fortran 77)
2980 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2981 _LT_TAGVAR(allow_undefined_flag, $1)=
2982 @@ -7714,8 +7641,6 @@ _LT_TAGVAR(module_cmds, $1)=
2983 _LT_TAGVAR(module_expsym_cmds, $1)=
2984 _LT_TAGVAR(link_all_deplibs, $1)=unknown
2985 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2986 -_LT_TAGVAR(reload_flag, $1)=$reload_flag
2987 -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
2988 _LT_TAGVAR(no_undefined_flag, $1)=
2989 _LT_TAGVAR(whole_archive_flag_spec, $1)=
2990 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2991 @@ -7815,17 +7740,32 @@ AC_LANG_POP
2992 ])# _LT_LANG_F77_CONFIG
2997 +# Since AC_PROG_FC is broken, in that it returns the empty string
2998 +# if there is no fortran compiler, we have our own version here.
2999 +m4_defun([_LT_PROG_FC],
3001 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
3003 +if test -z "$FC" || test "X$FC" = "Xno"; then
3004 + _lt_disable_FC=yes
3006 +popdef([AC_MSG_ERROR])
3009 +dnl aclocal-1.4 backwards compatibility:
3010 +dnl AC_DEFUN([_LT_PROG_FC], [])
3013 # _LT_LANG_FC_CONFIG([TAG])
3014 # -------------------------
3015 # Ensure that the configuration variables for a Fortran compiler are
3016 # suitably defined. These variables are subsequently used by _LT_CONFIG
3017 # to write the compiler configuration to `libtool'.
3018 m4_defun([_LT_LANG_FC_CONFIG],
3019 -[AC_LANG_PUSH(Fortran)
3021 -if test -z "$FC" || test "X$FC" = "Xno"; then
3022 - _lt_disable_FC=yes
3024 +[AC_REQUIRE([_LT_PROG_FC])dnl
3025 +AC_LANG_PUSH(Fortran)
3027 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
3028 _LT_TAGVAR(allow_undefined_flag, $1)=
3029 @@ -7844,8 +7784,6 @@ _LT_TAGVAR(module_cmds, $1)=
3030 _LT_TAGVAR(module_expsym_cmds, $1)=
3031 _LT_TAGVAR(link_all_deplibs, $1)=unknown
3032 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3033 -_LT_TAGVAR(reload_flag, $1)=$reload_flag
3034 -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
3035 _LT_TAGVAR(no_undefined_flag, $1)=
3036 _LT_TAGVAR(whole_archive_flag_spec, $1)=
3037 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3038 @@ -7991,8 +7929,6 @@ _LT_CC_BASENAME([$compiler])
3039 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
3041 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3042 -_LT_TAGVAR(reload_flag, $1)=$reload_flag
3043 -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
3045 if test -n "$compiler"; then
3046 _LT_COMPILER_NO_RTTI($1)
3047 @@ -8354,7 +8290,7 @@ _LT_EOF
3050 # Extract subdirectory from the argument.
3051 - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
3052 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
3053 if test "X$func_dirname_result" = "X${1}"; then
3054 func_dirname_result="${3}"
3056 @@ -8365,7 +8301,7 @@ func_dirname ()
3057 # func_basename file
3060 - func_basename_result=`$ECHO "${1}" | $SED "$basename"`
3061 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
3064 dnl func_dirname_and_basename
3065 @@ -8381,8 +8317,10 @@ dnl so there is no need for it here.
3069 - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
3070 - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
3071 + .*) func_stripname_result=`$ECHO "X${3}" \
3072 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
3073 + *) func_stripname_result=`$ECHO "X${3}" \
3074 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
3078 @@ -8393,20 +8331,20 @@ my_sed_long_arg='1s/^-[[^=]]*=//'
3082 - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
3083 - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
3084 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
3085 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
3091 - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
3092 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
3095 # func_xform libobj-or-source
3098 - func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
3099 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
3102 # func_arith arithmetic-term...
3103 @@ -8454,15 +8392,14 @@ _LT_EOF
3105 # Helper functions for option handling. -*- Autoconf -*-
3107 -# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3109 +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3110 # Written by Gary V. Vaughan, 2004
3112 # This file is free software; the Free Software Foundation gives
3113 # unlimited permission to copy and/or distribute it, with or without
3114 # modifications, as long as this notice is preserved.
3116 -# serial 7 ltoptions.m4
3117 +# serial 6 ltoptions.m4
3119 # This is to help aclocal find these macros, as it can't see m4_define.
3120 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
3121 @@ -8577,7 +8514,7 @@ LT_OPTION_DEFINE([LT_INIT], [win32-dll],
3122 [enable_win32_dll=yes
3125 -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3126 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3127 AC_CHECK_TOOL(AS, as, false)
3128 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3129 AC_CHECK_TOOL(OBJDUMP, objdump, false)
3130 @@ -8585,13 +8522,13 @@ case $host in
3133 test -z "$AS" && AS=as
3134 -_LT_DECL([], [AS], [1], [Assembler program])dnl
3135 +_LT_DECL([], [AS], [0], [Assembler program])dnl
3137 test -z "$DLLTOOL" && DLLTOOL=dlltool
3138 -_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
3139 +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
3141 test -z "$OBJDUMP" && OBJDUMP=objdump
3142 -_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
3143 +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
3146 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
3147 @@ -8951,29 +8888,29 @@ m4_define([lt_dict_filter],
3149 # Generated from ltversion.in.
3151 -# serial 3175 ltversion.m4
3152 +# serial 3017 ltversion.m4
3153 # This file is part of GNU Libtool
3155 -m4_define([LT_PACKAGE_VERSION], [2.2.10])
3156 -m4_define([LT_PACKAGE_REVISION], [1.3175])
3157 +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
3158 +m4_define([LT_PACKAGE_REVISION], [1.3017])
3160 AC_DEFUN([LTVERSION_VERSION],
3161 -[macro_version='2.2.10'
3162 -macro_revision='1.3175'
3163 +[macro_version='2.2.6b'
3164 +macro_revision='1.3017'
3165 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
3166 _LT_DECL(, macro_revision, 0)
3169 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3171 -# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3172 +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
3173 # Written by Scott James Remnant, 2004.
3175 # This file is free software; the Free Software Foundation gives
3176 # unlimited permission to copy and/or distribute it, with or without
3177 # modifications, as long as this notice is preserved.
3179 -# serial 5 lt~obsolete.m4
3180 +# serial 4 lt~obsolete.m4
3182 # These exist entirely to fool aclocal when bootstrapping libtool.
3184 @@ -9043,6 +8980,7 @@ m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC
3185 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
3186 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
3187 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
3188 +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
3189 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
3190 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
3191 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
3192 @@ -9055,17 +8993,9 @@ m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [
3193 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
3194 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
3195 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
3196 -m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
3197 -m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
3198 -m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
3199 -m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
3200 -m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
3201 -m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
3202 -m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
3204 -# nls.m4 serial 5 (gettext-0.18)
3205 -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
3208 +# nls.m4 serial 3 (gettext-0.15)
3209 +dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
3210 dnl This file is free software; the Free Software Foundation
3211 dnl gives unlimited permission to copy and/or distribute it,
3212 dnl with or without modifications, as long as this notice is preserved.
3213 @@ -9083,21 +9013,20 @@ dnl Authors:
3214 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
3215 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
3222 AC_MSG_CHECKING([whether NLS is requested])
3223 dnl Default is enabled NLS
3224 - AC_ARG_ENABLE([nls],
3225 + AC_ARG_ENABLE(nls,
3226 [ --disable-nls do not use Native Language Support],
3227 USE_NLS=$enableval, USE_NLS=yes)
3228 - AC_MSG_RESULT([$USE_NLS])
3229 - AC_SUBST([USE_NLS])
3230 + AC_MSG_RESULT($USE_NLS)
3234 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
3235 -# serial 1 (pkg-config-0.24)
3237 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3239 @@ -9125,10 +9054,7 @@ AC_DEFUN([AM_NLS],
3240 AC_DEFUN([PKG_PROG_PKG_CONFIG],
3241 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
3242 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
3243 -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
3244 -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
3245 -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
3247 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
3248 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3249 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
3251 @@ -9141,6 +9067,7 @@ if test -n "$PKG_CONFIG"; then
3257 ])# PKG_PROG_PKG_CONFIG
3259 @@ -9149,31 +9076,34 @@ fi[]dnl
3260 # Check to see whether a particular set of modules exists. Similar
3261 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3263 -# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
3264 -# only at the first occurence in configure.ac, so if the first place
3265 -# it's called might be skipped (such as if it is within an "if", you
3266 -# have to call PKG_CHECK_EXISTS manually
3268 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
3269 +# this or PKG_CHECK_MODULES is called, or make sure to call
3270 +# PKG_CHECK_EXISTS manually
3271 # --------------------------------------------------------------
3272 AC_DEFUN([PKG_CHECK_EXISTS],
3273 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
3274 if test -n "$PKG_CONFIG" && \
3275 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
3276 - m4_default([$2], [:])
3277 + m4_ifval([$2], [$2], [:])
3278 m4_ifvaln([$3], [else
3283 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3284 # ---------------------------------------------
3285 m4_define([_PKG_CONFIG],
3286 -[if test -n "$$1"; then
3288 - elif test -n "$PKG_CONFIG"; then
3289 - PKG_CHECK_EXISTS([$3],
3290 - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
3293 - pkg_failed=untried
3294 +[if test -n "$PKG_CONFIG"; then
3295 + if test -n "$$1"; then
3298 + PKG_CHECK_EXISTS([$3],
3299 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
3303 + pkg_failed=untried
3307 @@ -9215,17 +9145,16 @@ and $1[]_LIBS to avoid the need to call
3308 See the pkg-config man page for more details.])
3310 if test $pkg_failed = yes; then
3311 - AC_MSG_RESULT([no])
3312 _PKG_SHORT_ERRORS_SUPPORTED
3313 if test $_pkg_short_errors_supported = yes; then
3314 - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
3315 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
3317 - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
3318 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
3320 # Put the nasty error message in config.log where it belongs
3321 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
3323 - m4_default([$4], [AC_MSG_ERROR(
3324 + ifelse([$4], , [AC_MSG_ERROR(dnl
3325 [Package requirements ($2) were not met:
3328 @@ -9233,24 +9162,25 @@ $$1_PKG_ERRORS
3329 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3330 installed software in a non-standard prefix.
3336 + [AC_MSG_RESULT([no])
3338 elif test $pkg_failed = untried; then
3339 - AC_MSG_RESULT([no])
3340 - m4_default([$4], [AC_MSG_FAILURE(
3341 + ifelse([$4], , [AC_MSG_FAILURE(dnl
3342 [The pkg-config script could not be found or is too old. Make sure it
3343 is in your PATH or set the PKG_CONFIG environment variable to the full
3348 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
3350 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
3353 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
3354 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
3355 AC_MSG_RESULT([yes])
3357 + ifelse([$3], , :, [$3])
3359 ])# PKG_CHECK_MODULES
3361 --- lxpanel-0.5.6.orig/config.guess
3362 +++ lxpanel-0.5.6/config.guess
3364 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3365 # Free Software Foundation, Inc.
3367 -timestamp='2009-11-20'
3368 +timestamp='2009-06-10'
3370 # This file is free software; you can redistribute it and/or modify it
3371 # under the terms of the GNU General Public License as published by
3372 @@ -27,16 +27,16 @@ timestamp='2009-11-20'
3373 # the same distribution terms that you use for the rest of that program.
3376 -# Originally written by Per Bothner. Please send patches (context
3377 -# diff format) to <config-patches@gnu.org> and include a ChangeLog
3379 +# Originally written by Per Bothner <per@bothner.com>.
3380 +# Please send patches to <config-patches@gnu.org>. Submit a context
3381 +# diff and a properly formatted ChangeLog entry.
3383 # This script attempts to guess a canonical system name similar to
3384 # config.sub. If it succeeds, it prints the system name on stdout, and
3385 # exits with 0. Otherwise, it exits with 1.
3387 -# You can get the latest version of this script from:
3388 -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3389 +# The plan is that this can be called by configure scripts if you
3390 +# don't specify an explicit build system type.
3392 me=`echo "$0" | sed -e 's,.*/,,'`
3394 @@ -333,9 +333,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
3395 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
3396 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3398 - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
3399 - echo i386-pc-auroraux${UNAME_RELEASE}
3401 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
3402 eval $set_cc_for_build
3404 @@ -810,12 +807,12 @@ EOF
3406 echo ${UNAME_MACHINE}-pc-pw32
3409 + *:Interix*:[3456]*)
3410 case ${UNAME_MACHINE} in
3412 echo i586-pc-interix${UNAME_RELEASE}
3414 - authenticamd | genuineintel | EM64T)
3415 + EM64T | authenticamd | genuineintel)
3416 echo x86_64-unknown-interix${UNAME_RELEASE}
3419 @@ -857,20 +854,6 @@ EOF
3421 echo ${UNAME_MACHINE}-pc-minix
3424 - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
3425 - EV5) UNAME_MACHINE=alphaev5 ;;
3426 - EV56) UNAME_MACHINE=alphaev56 ;;
3427 - PCA56) UNAME_MACHINE=alphapca56 ;;
3428 - PCA57) UNAME_MACHINE=alphapca56 ;;
3429 - EV6) UNAME_MACHINE=alphaev6 ;;
3430 - EV67) UNAME_MACHINE=alphaev67 ;;
3431 - EV68*) UNAME_MACHINE=alphaev68 ;;
3433 - objdump --private-headers /bin/sh | grep -q ld.so.1
3434 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
3435 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
3438 eval $set_cc_for_build
3439 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
3440 @@ -893,17 +876,6 @@ EOF
3442 echo frv-unknown-linux-gnu
3446 - eval $set_cc_for_build
3447 - sed 's/^ //' << EOF >$dummy.c
3448 - #ifdef __dietlibc__
3452 - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
3453 - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
3456 echo ${UNAME_MACHINE}-unknown-linux-gnu
3458 @@ -929,18 +901,39 @@ EOF
3462 - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
3463 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3468 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
3471 echo or32-unknown-linux-gnu
3474 + echo powerpc-unknown-linux-gnu
3477 + echo powerpc64-unknown-linux-gnu
3480 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
3481 + EV5) UNAME_MACHINE=alphaev5 ;;
3482 + EV56) UNAME_MACHINE=alphaev56 ;;
3483 + PCA56) UNAME_MACHINE=alphapca56 ;;
3484 + PCA57) UNAME_MACHINE=alphapca56 ;;
3485 + EV6) UNAME_MACHINE=alphaev6 ;;
3486 + EV67) UNAME_MACHINE=alphaev67 ;;
3487 + EV68*) UNAME_MACHINE=alphaev68 ;;
3489 + objdump --private-headers /bin/sh | grep -q ld.so.1
3490 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
3491 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
3494 echo sparc-unknown-linux-gnu
3496 - parisc64:Linux:*:* | hppa64:Linux:*:*)
3497 - echo hppa64-unknown-linux-gnu
3499 parisc:Linux:*:* | hppa:Linux:*:*)
3500 # Look for CPU level
3501 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
3502 @@ -949,11 +942,8 @@ EOF
3503 *) echo hppa-unknown-linux-gnu ;;
3507 - echo powerpc64-unknown-linux-gnu
3510 - echo powerpc-unknown-linux-gnu
3511 + parisc64:Linux:*:* | hppa64:Linux:*:*)
3512 + echo hppa64-unknown-linux-gnu
3514 s390:Linux:*:* | s390x:Linux:*:*)
3515 echo ${UNAME_MACHINE}-ibm-linux
3516 @@ -976,6 +966,58 @@ EOF
3518 echo ${UNAME_MACHINE}-unknown-linux-gnu
3521 + # The BFD linker knows what the default object file format is, so
3522 + # first see if it will tell us. cd to the root directory to prevent
3523 + # problems with other programs or directories called `ld' in the path.
3524 + # Set LC_ALL=C to ensure ld outputs messages in English.
3525 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
3526 + | sed -ne '/supported targets:/!d
3528 + s/.*supported targets: *//
3531 + case "$ld_supported_targets" in
3533 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
3536 + # Determine whether the default compiler is a.out or elf
3537 + eval $set_cc_for_build
3538 + sed 's/^ //' << EOF >$dummy.c
3539 + #include <features.h>
3542 + # if __GLIBC__ >= 2
3551 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
3557 + #ifdef __dietlibc__
3561 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3566 + test x"${LIBC}" != x && {
3567 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
3570 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
3572 i*86:DYNIX/ptx:4*:*)
3573 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
3574 # earlier versions are messed up and put the nodename in both
3575 @@ -1205,16 +1247,6 @@ EOF
3577 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
3578 case $UNAME_PROCESSOR in
3580 - eval $set_cc_for_build
3581 - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3582 - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
3583 - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3584 - grep IS_64BIT_ARCH >/dev/null
3586 - UNAME_PROCESSOR="x86_64"
3589 unknown) UNAME_PROCESSOR=powerpc ;;
3591 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3592 --- lxpanel-0.5.6.orig/configure
3593 +++ lxpanel-0.5.6/configure
3594 @@ -173,14 +173,6 @@ test x\$exitcode = x0 || exit 1"
3595 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
3596 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
3597 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3599 - test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
3600 - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3601 - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
3602 - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
3603 - PATH=/empty FPATH=/empty; export PATH FPATH
3604 - test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
3605 - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
3606 test \$(( 1 + 1 )) = 2 || exit 1"
3607 if (eval "$as_required") 2>/dev/null; then :
3608 as_have_required=yes
3609 @@ -536,8 +528,155 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
3610 # Sed expression to map a string onto a valid variable name.
3611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3615 +# Check that we are running under the correct shell.
3616 SHELL=${CONFIG_SHELL-/bin/sh}
3620 + # Remove one level of quotation (which was required for Make).
3621 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
3625 +ECHO=${lt_ECHO-echo}
3626 +if test "X$1" = X--no-reexec; then
3627 + # Discard the --no-reexec flag, and continue.
3629 +elif test "X$1" = X--fallback-echo; then
3630 + # Avoid inline document here, it may be left over
3632 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
3633 + # Yippee, $ECHO works!
3636 + # Restart under the correct shell.
3637 + exec $SHELL "$0" --no-reexec ${1+"$@"}
3640 +if test "X$1" = X--fallback-echo; then
3641 + # used as fallback echo
3649 +# The HP-UX ksh and POSIX shell print the target directory to stdout
3650 +# if CDPATH is set.
3651 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3653 +if test -z "$lt_ECHO"; then
3654 + if test "X${echo_test_string+set}" != Xset; then
3655 + # find a string as large as possible, as long as the shell can cope with it
3656 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
3657 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3658 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
3659 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
3666 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3667 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3668 + test "X$echo_testing_string" = "X$echo_test_string"; then
3671 + # The Solaris, AIX, and Digital Unix default echo programs unquote
3672 + # backslashes. This makes it impossible to quote backslashes using
3673 + # echo "$something" | sed 's/\\/\\\\/g'
3675 + # So, first we look for a working echo in the user's PATH.
3677 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3678 + for dir in $PATH /usr/ucb; do
3679 + IFS="$lt_save_ifs"
3680 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3681 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3682 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3683 + test "X$echo_testing_string" = "X$echo_test_string"; then
3688 + IFS="$lt_save_ifs"
3690 + if test "X$ECHO" = Xecho; then
3691 + # We didn't find a better echo, so look for alternatives.
3692 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
3693 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
3694 + test "X$echo_testing_string" = "X$echo_test_string"; then
3695 + # This shell has a builtin print -r that does the trick.
3697 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
3698 + test "X$CONFIG_SHELL" != X/bin/ksh; then
3699 + # If we have ksh, try running configure again with it.
3700 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3701 + export ORIGINAL_CONFIG_SHELL
3702 + CONFIG_SHELL=/bin/ksh
3703 + export CONFIG_SHELL
3704 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
3706 + # Try using printf.
3707 + ECHO='printf %s\n'
3708 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3709 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3710 + test "X$echo_testing_string" = "X$echo_test_string"; then
3711 + # Cool, printf works
3713 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
3714 + test "X$echo_testing_string" = 'X\t' &&
3715 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3716 + test "X$echo_testing_string" = "X$echo_test_string"; then
3717 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3718 + export CONFIG_SHELL
3719 + SHELL="$CONFIG_SHELL"
3721 + ECHO="$CONFIG_SHELL $0 --fallback-echo"
3722 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
3723 + test "X$echo_testing_string" = 'X\t' &&
3724 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3725 + test "X$echo_testing_string" = "X$echo_test_string"; then
3726 + ECHO="$CONFIG_SHELL $0 --fallback-echo"
3728 + # maybe with a smaller string...
3731 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
3732 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
3739 + if test "$prev" != 'sed 50q "$0"'; then
3740 + echo_test_string=`eval $prev`
3741 + export echo_test_string
3742 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
3744 + # Oops. We lost completely, so just stick with echo.
3753 +# Copy echo and quote the copy suitably for passing to libtool from
3754 +# the Makefile, instead of quoting the original, which is used later.
3756 +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
3757 + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
3763 test -n "$DJDIR" || exec 7<&0 </dev/null
3765 @@ -642,10 +781,14 @@ MENU_CACHE_LIBS
3773 +ENABLE_INDICATOR_SUPPORT_FALSE
3774 +ENABLE_INDICATOR_SUPPORT_TRUE
3782 @@ -683,6 +826,7 @@ OTOOL
3790 @@ -792,6 +936,7 @@ enable_fast_install
3794 +enable_indicator_support
3798 @@ -810,10 +955,10 @@ LIBS
3811 @@ -1450,6 +1595,8 @@ Optional Features:
3812 optimize for fast installation [default=yes]
3813 --disable-libtool-lock avoid locking (might break parallel builds)
3814 --disable-nls do not use Native Language Support
3815 + --enable-indicator-support
3816 + enable plugin loading (default: disable)
3817 --enable-man regenerate roff man pages from Docbook [default=no]
3818 --enable-cast-checks enable Glib casting checks (default: disable)
3819 --disable-alsa compile ALSA providers (default: enable)
3820 @@ -1481,14 +1628,13 @@ Some influential environment variables:
3821 you have headers in a nonstandard directory <include dir>
3823 PKG_CONFIG path to pkg-config utility
3825 - directories to add to pkg-config's search path
3827 - path overriding pkg-config's built-in search path
3829 C compiler flags for PACKAGE, overriding pkg-config
3831 linker flags for PACKAGE, overriding pkg-config
3833 + C compiler flags for APPLET, overriding pkg-config
3834 + APPLET_LIBS linker flags for APPLET, overriding pkg-config
3835 X11_CFLAGS C compiler flags for X11, overriding pkg-config
3836 X11_LIBS linker flags for X11, overriding pkg-config
3838 @@ -3820,8 +3966,8 @@ esac
3842 -macro_version='2.2.10'
3843 -macro_revision='1.3175'
3844 +macro_version='2.2.6b'
3845 +macro_revision='1.3017'
3849 @@ -3908,75 +4054,6 @@ IFS=$ac_save_IFS
3850 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3853 -# Backslashify metacharacters that are still active within
3854 -# double-quoted strings.
3855 -sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3857 -# Same as above, but do not quote variable references.
3858 -double_quote_subst='s/\(["`\\]\)/\\\1/g'
3860 -# Sed substitution to delay expansion of an escaped shell variable in a
3861 -# double_quote_subst'ed string.
3862 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3864 -# Sed substitution to delay expansion of an escaped single quote.
3865 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3867 -# Sed substitution to avoid accidental globbing in evaled expressions
3868 -no_glob_subst='s/\*/\\\*/g'
3870 -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3871 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3872 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3874 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3875 -$as_echo_n "checking how to print strings... " >&6; }
3876 -# Test print first, because it will be a builtin if present.
3877 -if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3878 - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3879 - ECHO='print -r --'
3880 -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3881 - ECHO='printf %s\n'
3883 - # Use this function as a fallback that always works.
3884 - func_fallback_echo ()
3886 - eval 'cat <<_LTECHO_EOF
3890 - ECHO='func_fallback_echo'
3893 -# func_echo_all arg...
3894 -# Invoke $ECHO with all args, space-separated.
3901 - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3902 -$as_echo "printf" >&6; } ;;
3903 - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3904 -$as_echo "print -r" >&6; } ;;
3905 - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3906 -$as_echo "cat" >&6; } ;;
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3923 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3924 if test "${ac_cv_path_SED+set}" = set; then :
3925 @@ -4442,11 +4519,8 @@ if test "$lt_cv_path_NM" != "no"; then
3928 # Didn't find any BSD compatible name lister, look for dumpbin.
3929 - if test -n "$DUMPBIN"; then :
3930 - # Let the user override the test.
3932 - if test -n "$ac_tool_prefix"; then
3933 - for ac_prog in dumpbin "link -dump"
3934 + if test -n "$ac_tool_prefix"; then
3935 + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3939 @@ -4490,7 +4564,7 @@ fi
3941 if test -z "$DUMPBIN"; then
3942 ac_ct_DUMPBIN=$DUMPBIN
3943 - for ac_prog in dumpbin "link -dump"
3944 + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 @@ -4545,15 +4619,6 @@ esac
3952 - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3954 - DUMPBIN="$DUMPBIN -symbols"
3962 if test "$DUMPBIN" != ":"; then
3964 @@ -4573,13 +4638,13 @@ if test "${lt_cv_nm_interface+set}" = se
3966 lt_cv_nm_interface="BSD nm"
3967 echo "int some_variable = 0;" > conftest.$ac_ext
3968 - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3969 + (eval echo "\"\$as_me:4641: $ac_compile\"" >&5)
3970 (eval "$ac_compile" 2>conftest.err)
3971 cat conftest.err >&5
3972 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3973 + (eval echo "\"\$as_me:4644: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3974 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3975 cat conftest.err >&5
3976 - (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3977 + (eval echo "\"\$as_me:4647: output\"" >&5)
3978 cat conftest.out >&5
3979 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3980 lt_cv_nm_interface="MS dumpbin"
3981 @@ -4625,11 +4690,6 @@ else
3982 lt_cv_sys_max_cmd_len=8192;
3986 - # On MiNT this can take a long time and run out of memory.
3987 - lt_cv_sys_max_cmd_len=8192;
3991 # On AmigaOS with pdksh, this test takes hours, literally.
3992 # So we just punt and use a minimum line length of 8192.
3993 @@ -4694,8 +4754,8 @@ else
3994 # If test is not a shell built-in, we'll probably end up computing a
3995 # maximum length that is only half of the actual maximum length, but
3997 - while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3998 - = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3999 + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4000 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4001 test $i != 17 # 1/2 MB should be enough
4004 @@ -4966,18 +5026,16 @@ mingw* | pw32*)
4005 # Base MSYS/MinGW do not provide the 'file' command needed by
4006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4007 # unless we find 'file', for example because we are cross-compiling.
4008 - # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4009 - if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4010 + if ( file / ) >/dev/null 2>&1; then
4011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4012 lt_cv_file_magic_cmd='func_win32_libid'
4014 - # Keep this pattern in sync with the one in func_win32_libid.
4015 - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4016 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4017 lt_cv_file_magic_cmd='$OBJDUMP -f'
4023 # use the weaker test based on 'objdump'. See mingw*.
4024 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4025 lt_cv_file_magic_cmd='$OBJDUMP -f'
4026 @@ -5007,10 +5065,6 @@ gnu*)
4027 lt_cv_deplibs_check_method=pass_all
4031 - lt_cv_deplibs_check_method=pass_all
4034 hpux10.20* | hpux11*)
4035 lt_cv_file_magic_cmd=/usr/bin/file
4037 @@ -5019,11 +5073,11 @@ hpux10.20* | hpux11*)
4038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4041 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4042 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4046 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4047 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4051 @@ -5049,7 +5103,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
4052 lt_cv_deplibs_check_method=pass_all
4056 +netbsd* | netbsdelf*-gnu)
4057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4060 @@ -5461,18 +5515,6 @@ if test -n "$RANLIB"; then
4061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4066 - lock_old_archive_extraction=yes ;;
4068 - lock_old_archive_extraction=no ;;
4079 @@ -5642,8 +5684,8 @@ _LT_EOF
4080 test $ac_status = 0; }; then
4081 # Now try to grab the symbols.
4083 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
4084 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
4085 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4086 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; } && test -s "$nlist"; then
4090 @@ -5797,7 +5839,7 @@ ia64-*-hpux*)
4093 # Find out which ABI we are using.
4094 - echo '#line '$LINENO' "configure"' > conftest.$ac_ext
4095 + echo '#line 5842 "configure"' > conftest.$ac_ext
4096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4097 (eval $ac_compile) 2>&5
4099 @@ -6509,38 +6551,6 @@ rm -f core conftest.err conftest.$ac_obj
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
4102 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
4103 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
4104 -$as_echo_n "checking for -force_load linker flag... " >&6; }
4105 -if test "${lt_cv_ld_force_load+set}" = set; then :
4106 - $as_echo_n "(cached) " >&6
4108 - lt_cv_ld_force_load=no
4109 - cat > conftest.c << _LT_EOF
4110 -int forced_loaded() { return 2;}
4112 - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
4113 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
4114 - echo "$AR cru libconftest.a conftest.o" >&5
4115 - $AR cru libconftest.a conftest.o 2>&5
4116 - echo "$RANLIB libconftest.a" >&5
4117 - $RANLIB libconftest.a 2>&5
4118 - cat > conftest.c << _LT_EOF
4119 -int main() { return 0;}
4121 - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
4122 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
4124 - if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
4125 - lt_cv_ld_force_load=yes
4127 - cat conftest.err >&5
4129 - rm -f conftest.err libconftest.a conftest conftest.c
4130 - rm -rf conftest.dSYM
4133 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
4134 -$as_echo "$lt_cv_ld_force_load" >&6; }
4136 rhapsody* | darwin1.[012])
4137 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
4138 @@ -6568,7 +6578,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
4140 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
4142 - if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
4143 + if test "$DSYMUTIL" != ":"; then
4144 _lt_dsymutil='~$DSYMUTIL $lib || :'
4147 @@ -6859,8 +6869,6 @@ done
4156 @@ -6983,7 +6991,6 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtoo
4161 test -z "$LN_S" && LN_S="ln -s"
4164 @@ -7033,6 +7040,19 @@ _ACEOF
4183 # AIX sometimes has problems with the GCC collect2 program. For some
4184 @@ -7045,6 +7065,23 @@ aix3*)
4188 +# Sed substitution that helps us do robust quoting. It backslashifies
4189 +# metacharacters that are still active within double-quoted strings.
4190 +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4192 +# Same as above, but do not quote variable references.
4193 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
4195 +# Sed substitution to delay expansion of an escaped shell variable in a
4196 +# double_quote_subst'ed string.
4197 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4199 +# Sed substitution to delay expansion of an escaped single quote.
4200 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4202 +# Sed substitution to avoid accidental globbing in evaled expressions
4203 +no_glob_subst='s/\*/\\\*/g'
4207 can_build_shared=yes
4208 @@ -7073,7 +7110,7 @@ for cc_temp in $compiler""; do
4212 -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
4213 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
4216 # Only perform the check for file, if the check method requires it
4217 @@ -7278,12 +7315,7 @@ if test -n "$compiler"; then
4218 lt_prog_compiler_no_builtin_flag=
4220 if test "$GCC" = yes; then
4221 - case $cc_basename in
4223 - lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
4225 - lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
4227 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4230 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
4231 @@ -7303,15 +7335,15 @@ else
4232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4234 -e 's:$: $lt_compiler_flag:'`
4235 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
4236 + (eval echo "\"\$as_me:7338: $lt_compile\"" >&5)
4237 (eval "$lt_compile" 2>conftest.err)
4239 cat conftest.err >&5
4240 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 + echo "$as_me:7342: \$? = $ac_status" >&5
4242 if (exit $ac_status) && test -s "$ac_outfile"; then
4243 # The compiler can only warn and ignore the option if not recognized
4244 # So say no if there are warnings other than the usual output.
4245 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
4246 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
4247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
4249 lt_cv_prog_compiler_rtti_exceptions=yes
4250 @@ -7389,12 +7421,6 @@ $as_echo_n "checking for $compiler optio
4251 lt_prog_compiler_pic='-fno-common'
4255 - # PIC is the default for Haiku.
4256 - # The "-static" flag exists, but is broken.
4257 - lt_prog_compiler_static=
4261 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4262 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4263 @@ -7437,13 +7463,6 @@ $as_echo_n "checking for $compiler optio
4264 lt_prog_compiler_pic='-fPIC'
4268 - case $cc_basename in
4269 - nvcc*) # Cuda Compiler Driver 2.2
4270 - lt_prog_compiler_wl='-Xlinker '
4271 - lt_prog_compiler_pic='-Xcompiler -fPIC'
4275 # PORTME Check for flag to pass linker flags through the system compiler.
4277 @@ -7506,7 +7525,7 @@ $as_echo_n "checking for $compiler optio
4278 lt_prog_compiler_pic='--shared'
4279 lt_prog_compiler_static='--static'
4281 - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4282 + pgcc* | pgf77* | pgf90* | pgf95*)
4283 # Portland Group compilers (*not* the Pentium gcc compiler,
4284 # which looks to be a dead project)
4285 lt_prog_compiler_wl='-Wl,'
4286 @@ -7518,26 +7537,26 @@ $as_echo_n "checking for $compiler optio
4287 # All Alpha code is PIC.
4288 lt_prog_compiler_static='-non_shared'
4290 - xl* | bgxl* | bgf* | mpixl*)
4291 - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4293 + # IBM XL C 8.0/Fortran 10.1 on PPC
4294 lt_prog_compiler_wl='-Wl,'
4295 lt_prog_compiler_pic='-qpic'
4296 lt_prog_compiler_static='-qstaticlink'
4299 case `$CC -V 2>&1 | sed 5q` in
4300 - *Sun\ F* | *Sun*Fortran*)
4301 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
4302 - lt_prog_compiler_pic='-KPIC'
4303 - lt_prog_compiler_static='-Bstatic'
4304 - lt_prog_compiler_wl=''
4308 lt_prog_compiler_pic='-KPIC'
4309 lt_prog_compiler_static='-Bstatic'
4310 lt_prog_compiler_wl='-Wl,'
4313 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
4314 + lt_prog_compiler_pic='-KPIC'
4315 + lt_prog_compiler_static='-Bstatic'
4316 + lt_prog_compiler_wl=''
4321 @@ -7568,7 +7587,7 @@ $as_echo_n "checking for $compiler optio
4322 lt_prog_compiler_pic='-KPIC'
4323 lt_prog_compiler_static='-Bstatic'
4324 case $cc_basename in
4325 - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4326 + f77* | f90* | f95*)
4327 lt_prog_compiler_wl='-Qoption ld ';;
4329 lt_prog_compiler_wl='-Wl,';;
4330 @@ -7655,15 +7674,15 @@ else
4331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4333 -e 's:$: $lt_compiler_flag:'`
4334 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
4335 + (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
4336 (eval "$lt_compile" 2>conftest.err)
4338 cat conftest.err >&5
4339 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 + echo "$as_me:7681: \$? = $ac_status" >&5
4341 if (exit $ac_status) && test -s "$ac_outfile"; then
4342 # The compiler can only warn and ignore the option if not recognized
4343 # So say no if there are warnings other than the usual output.
4344 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
4345 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
4346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
4348 lt_cv_prog_compiler_pic_works=yes
4349 @@ -7711,7 +7730,7 @@ else
4350 if test -s conftest.err; then
4351 # Append any errors to the config.log.
4352 cat conftest.err 1>&5
4353 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
4354 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
4355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4356 if diff conftest.exp conftest.er2 >/dev/null; then
4357 lt_cv_prog_compiler_static_works=yes
4358 @@ -7760,16 +7779,16 @@ else
4359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4361 -e 's:$: $lt_compiler_flag:'`
4362 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
4363 + (eval echo "\"\$as_me:7782: $lt_compile\"" >&5)
4364 (eval "$lt_compile" 2>out/conftest.err)
4366 cat out/conftest.err >&5
4367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 + echo "$as_me:7786: \$? = $ac_status" >&5
4369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
4371 # The compiler can only warn and ignore the option if not recognized
4372 # So say no if there are warnings
4373 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
4374 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
4375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
4376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
4377 lt_cv_prog_compiler_c_o=yes
4378 @@ -7815,16 +7834,16 @@ else
4379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
4381 -e 's:$: $lt_compiler_flag:'`
4382 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
4383 + (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
4384 (eval "$lt_compile" 2>out/conftest.err)
4386 cat out/conftest.err >&5
4387 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 + echo "$as_me:7841: \$? = $ac_status" >&5
4389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
4391 # The compiler can only warn and ignore the option if not recognized
4392 # So say no if there are warnings
4393 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
4394 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
4395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
4396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
4397 lt_cv_prog_compiler_c_o=yes
4398 @@ -7934,36 +7953,13 @@ $as_echo_n "checking whether the $compil
4402 + linux* | k*bsd*-gnu)
4403 + link_all_deplibs=no
4409 - # On some targets, GNU ld is compatible enough with the native linker
4410 - # that we're better off using the native interface for both.
4411 - lt_use_gnu_ld_interface=no
4412 if test "$with_gnu_ld" = yes; then
4415 - # The AIX port of GNU ld has always aspired to compatibility
4416 - # with the native linker. However, as the warning in the GNU ld
4417 - # block says, versions before 2.19.5* couldn't really create working
4418 - # shared libraries, regardless of the interface used.
4419 - case `$LD -v 2>&1` in
4420 - *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4421 - *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
4422 - *\ \(GNU\ Binutils\)\ [3-9]*) ;;
4424 - lt_use_gnu_ld_interface=yes
4429 - lt_use_gnu_ld_interface=yes
4434 - if test "$lt_use_gnu_ld_interface" = yes; then
4435 # If archive_cmds runs LD, not CC, wlarc should be empty
4438 @@ -7997,12 +7993,11 @@ $as_echo_n "checking whether the $compil
4442 -*** Warning: the GNU linker, at least up to release 2.19, is reported
4443 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4444 *** to be unable to reliably create shared libraries on AIX.
4445 *** Therefore, libtool is disabling shared libraries support. If you
4446 -*** really care for shared libraries, you may want to install binutils
4447 -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4448 -*** You will then need to restart the configuration process.
4449 +*** really care for shared libraries, you may want to modify your PATH
4450 +*** so that a non-GNU linker is found, and then restart.
4454 @@ -8038,7 +8033,6 @@ _LT_EOF
4455 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
4456 # as there is no search path for DLLs.
4457 hardcode_libdir_flag_spec='-L$libdir'
4458 - export_dynamic_flag_spec='${wl}--export-all-symbols'
4459 allow_undefined_flag=unsupported
4460 always_export_symbols=no
4461 enable_shared_with_static_runtimes=yes
4462 @@ -8060,11 +8054,6 @@ _LT_EOF
4467 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4468 - link_all_deplibs=yes
4473 hardcode_shlibpath_var=no
4474 @@ -8094,12 +8083,11 @@ _LT_EOF
4475 tmp_sharedflag='-shared'
4476 case $cc_basename,$host_cpu in
4477 pgcc*) # Portland Group C compiler
4478 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4479 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4480 tmp_addflag=' $pic_flag'
4482 - pgf77* | pgf90* | pgf95* | pgfortran*)
4483 - # Portland Group f77 and f90 compilers
4484 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4485 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4486 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4487 tmp_addflag=' $pic_flag -Mnomain' ;;
4488 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4489 tmp_addflag=' -i_dynamic' ;;
4490 @@ -8110,17 +8098,13 @@ _LT_EOF
4491 lf95*) # Lahey Fortran 8.1
4492 whole_archive_flag_spec=
4493 tmp_sharedflag='--shared' ;;
4494 - xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4495 + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4496 tmp_sharedflag='-qmkshrobj'
4498 - nvcc*) # Cuda Compiler Driver 2.2
4499 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4500 - compiler_needs_object=yes
4503 case `$CC -V 2>&1 | sed 5q` in
4504 *Sun\ C*) # Sun C 5.9
4505 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4506 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4507 compiler_needs_object=yes
4508 tmp_sharedflag='-G' ;;
4509 *Sun\ F*) # Sun Fortran 8.3
4510 @@ -8136,17 +8120,17 @@ _LT_EOF
4513 case $cc_basename in
4514 - xlf* | bgf* | bgxlf* | mpixlf*)
4516 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4517 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
4518 hardcode_libdir_flag_spec=
4519 hardcode_libdir_flag_spec_ld='-rpath $libdir'
4520 - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4521 + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4522 if test "x$supports_anon_versioning" = xyes; then
4523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
4524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4525 echo "local: *; };" >> $output_objdir/$libname.ver~
4526 - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4527 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4531 @@ -8155,7 +8139,7 @@ _LT_EOF
4536 + netbsd* | netbsdelf*-gnu)
4537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4538 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4540 @@ -8267,10 +8251,8 @@ _LT_EOF
4542 # If we're using GNU nm, then we don't want the "-C" option.
4543 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4544 - # Also, AIX nm treats weak defined symbols like other global
4545 - # defined symbols, whereas GNU nm marks them as "W".
4546 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4547 - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4548 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4550 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4552 @@ -8332,6 +8314,7 @@ _LT_EOF
4553 if test "$aix_use_runtimelinking" = yes; then
4554 shared_flag="$shared_flag "'${wl}-G'
4556 + link_all_deplibs=no
4559 if test "$host_cpu" = ia64; then
4560 @@ -8388,7 +8371,7 @@ rm -f core conftest.err conftest.$ac_obj
4561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4564 - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4565 + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4567 if test "$host_cpu" = ia64; then
4568 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4569 @@ -8432,13 +8415,8 @@ if test -z "$aix_libpath"; then aix_libp
4570 # -berok will link without error, but may produce a broken library.
4571 no_undefined_flag=' ${wl}-bernotok'
4572 allow_undefined_flag=' ${wl}-berok'
4573 - if test "$with_gnu_ld" = yes; then
4574 - # We only use this code for GNU lds that support --whole-archive.
4575 - whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4577 - # Exported symbols can be pulled into shared objects from archives
4578 - whole_archive_flag_spec='$convenience'
4580 + # Exported symbols can be pulled into shared objects from archives
4581 + whole_archive_flag_spec='$convenience'
4582 archive_cmds_need_lc=yes
4583 # This is similar to how AIX traditionally builds its shared libraries.
4584 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4585 @@ -8477,7 +8455,7 @@ if test -z "$aix_libpath"; then aix_libp
4586 # Tell ltmain to make .dll files, not .so files.
4588 # FIXME: Setting linknames here is a bad hack.
4589 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4590 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4591 # The linker will automatically build a .lib file if we build a DLL.
4592 old_archive_from_new_cmds='true'
4593 # FIXME: Should let the user specify the lib program.
4594 @@ -8493,11 +8471,7 @@ if test -z "$aix_libpath"; then aix_libp
4596 hardcode_automatic=yes
4597 hardcode_shlibpath_var=unsupported
4598 - if test "$lt_cv_ld_force_load" = "yes"; then
4599 - whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
4601 - whole_archive_flag_spec=''
4603 + whole_archive_flag_spec=''
4604 link_all_deplibs=yes
4605 allow_undefined_flag="$_lt_dar_allow_undefined"
4606 case $cc_basename in
4607 @@ -8505,7 +8479,7 @@ if test -z "$aix_libpath"; then aix_libp
4608 *) _lt_dar_can_shared=$GCC ;;
4610 if test "$_lt_dar_can_shared" = "yes"; then
4611 - output_verbose_link_cmd=func_echo_all
4612 + output_verbose_link_cmd=echo
4613 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
4614 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4615 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
4616 @@ -8571,7 +8545,7 @@ if test -z "$aix_libpath"; then aix_libp
4620 - if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4621 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4622 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4624 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4625 @@ -8590,7 +8564,7 @@ if test -z "$aix_libpath"; then aix_libp
4629 - if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4630 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4634 @@ -8611,46 +8585,7 @@ if test -z "$aix_libpath"; then aix_libp
4635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4639 - # Older versions of the 11.00 compiler do not understand -b yet
4640 - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
4641 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
4642 -$as_echo_n "checking if $CC understands -b... " >&6; }
4643 -if test "${lt_cv_prog_compiler__b+set}" = set; then :
4644 - $as_echo_n "(cached) " >&6
4646 - lt_cv_prog_compiler__b=no
4647 - save_LDFLAGS="$LDFLAGS"
4648 - LDFLAGS="$LDFLAGS -b"
4649 - echo "$lt_simple_link_test_code" > conftest.$ac_ext
4650 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4651 - # The linker can only warn and ignore the option if not recognized
4652 - # So say no if there are warnings
4653 - if test -s conftest.err; then
4654 - # Append any errors to the config.log.
4655 - cat conftest.err 1>&5
4656 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
4657 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4658 - if diff conftest.exp conftest.er2 >/dev/null; then
4659 - lt_cv_prog_compiler__b=yes
4662 - lt_cv_prog_compiler__b=yes
4666 - LDFLAGS="$save_LDFLAGS"
4669 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
4670 -$as_echo "$lt_cv_prog_compiler__b" >&6; }
4672 -if test x"$lt_cv_prog_compiler__b" = xyes; then
4673 - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4675 - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4678 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4682 @@ -8678,7 +8613,7 @@ fi
4684 irix5* | irix6* | nonstopux*)
4685 if test "$GCC" = yes; then
4686 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4687 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4688 # Try to use the -exported_symbol ld option, if it does not
4689 # work, assume that -exports_file does not work either and
4690 # implicitly export all symbols.
4691 @@ -8689,15 +8624,15 @@ fi
4694 if ac_fn_c_try_link "$LINENO"; then :
4695 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4696 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4699 rm -f core conftest.err conftest.$ac_objext \
4700 conftest$ac_exeext conftest.$ac_ext
4701 LDFLAGS="$save_LDFLAGS"
4703 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4704 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4705 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4706 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4708 archive_cmds_need_lc='no'
4709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4710 @@ -8706,7 +8641,7 @@ rm -f core conftest.err conftest.$ac_obj
4711 link_all_deplibs=yes
4715 + netbsd* | netbsdelf*-gnu)
4716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4719 @@ -8759,17 +8694,17 @@ rm -f core conftest.err conftest.$ac_obj
4720 hardcode_libdir_flag_spec='-L$libdir'
4721 hardcode_minus_L=yes
4722 allow_undefined_flag=unsupported
4723 - 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'
4724 + 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'
4725 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4729 if test "$GCC" = yes; then
4730 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4731 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4732 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4734 allow_undefined_flag=' -expect_unresolved \*'
4735 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4736 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4738 archive_cmds_need_lc='no'
4739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4740 @@ -8779,13 +8714,13 @@ rm -f core conftest.err conftest.$ac_obj
4741 osf4* | osf5*) # as osf3* with the addition of -msym flag
4742 if test "$GCC" = yes; then
4743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4744 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4745 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4748 allow_undefined_flag=' -expect_unresolved \*'
4749 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4750 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4751 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4752 - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4753 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4755 # Both c and cxx compiler support -rpath directly
4756 hardcode_libdir_flag_spec='-rpath $libdir'
4757 @@ -8988,50 +8923,44 @@ x|xyes)
4758 # to ld, don't add -lc before -lgcc.
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
4760 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
4761 -if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
4762 - $as_echo_n "(cached) " >&6
4765 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4767 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4769 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4770 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4771 (eval $ac_compile) 2>&5
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; } 2>conftest.err; then
4777 - libobjs=conftest.$ac_objext
4779 - wl=$lt_prog_compiler_wl
4780 - pic_flag=$lt_prog_compiler_pic
4786 - lt_save_allow_undefined_flag=$allow_undefined_flag
4787 - allow_undefined_flag=
4788 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
4791 + libobjs=conftest.$ac_objext
4793 + wl=$lt_prog_compiler_wl
4794 + pic_flag=$lt_prog_compiler_pic
4800 + lt_save_allow_undefined_flag=$allow_undefined_flag
4801 + allow_undefined_flag=
4802 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
4803 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
4805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4806 test $ac_status = 0; }
4808 - lt_cv_archive_cmds_need_lc=no
4810 - lt_cv_archive_cmds_need_lc=yes
4812 - allow_undefined_flag=$lt_save_allow_undefined_flag
4814 - cat conftest.err 1>&5
4819 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
4820 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
4821 - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
4823 + archive_cmds_need_lc=no
4825 + archive_cmds_need_lc=yes
4827 + allow_undefined_flag=$lt_save_allow_undefined_flag
4829 + cat conftest.err 1>&5
4832 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
4833 +$as_echo "$archive_cmds_need_lc" >&6; }
4837 @@ -9202,23 +9131,16 @@ if test "$GCC" = yes; then
4838 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4839 *) lt_awk_arg="/^libraries:/" ;;
4842 - mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
4843 - *) lt_sed_strip_eq="s,=/,/,g" ;;
4845 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
4846 - case $lt_search_path_spec in
4848 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4849 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4850 # if the path contains ";" then we assume it to be the separator
4851 # otherwise default to the standard path separator (i.e. ":") - it is
4852 # assumed that no part of a normal pathname contains ";" but that should
4853 # okay in the real world where ";" in dirpaths is itself problematic.
4854 - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
4857 - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
4860 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4862 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4864 # Ok, now we have the path, separated by spaces, we can step through it
4865 # and add multilib dir if necessary.
4866 lt_tmp_lt_search_path_spec=
4867 @@ -9231,7 +9153,7 @@ if test "$GCC" = yes; then
4868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4871 - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
4872 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
4873 BEGIN {RS=" "; FS="/|\n";} {
4876 @@ -9251,13 +9173,7 @@ BEGIN {RS=" "; FS="/|\n";} {
4877 if (lt_foo != "") { lt_freq[lt_foo]++; }
4878 if (lt_freq[lt_foo] == 1) { print lt_foo; }
4880 - # AWK program above erroneously prepends '/' to C:/dos/paths
4881 - # for these hosts.
4883 - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
4884 - $SED 's,/\([A-Za-z]:\),\1,g'` ;;
4886 - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
4887 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
4889 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4891 @@ -9345,7 +9261,7 @@ amigaos*)
4893 library_names_spec='$libname.ixlibrary $libname.a'
4894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4895 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
4896 + 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'
4900 @@ -9398,12 +9314,23 @@ cygwin* | mingw* | pw32* | cegcc*)
4902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4905 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
4906 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4909 # MinGW DLLs use traditional 'lib' prefix
4910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4911 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4912 + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
4913 + # It is most probably a Windows format PATH printed by
4914 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
4915 + # path with ; separators, and with drive letters. We can handle the
4916 + # drive letters (cygwin fileutils understands them), so leave them,
4917 + # especially as we might pass files found there to a mingw objdump,
4918 + # which wouldn't understand a cygwinified path. Ahh.
4919 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4921 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4925 # pw32 DLLs use 'pw' prefix rather than 'lib'
4926 @@ -9503,19 +9430,6 @@ gnu*)
4927 hardcode_into_libs=yes
4931 - version_type=linux
4932 - need_lib_prefix=no
4934 - dynamic_linker="$host_os runtime_loader"
4935 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4936 - soname_spec='${libname}${release}${shared_ext}$major'
4937 - shlibpath_var=LIBRARY_PATH
4938 - shlibpath_overrides_runpath=yes
4939 - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
4940 - hardcode_into_libs=yes
4943 hpux9* | hpux10* | hpux11*)
4944 # Give a soname corresponding to the major version so that dld.sl refuses to
4945 # link against other versions.
4946 @@ -9558,10 +9472,8 @@ hpux9* | hpux10* | hpux11*)
4947 soname_spec='${libname}${release}${shared_ext}$major'
4950 - # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
4951 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
4952 postinstall_cmds='chmod 555 $lib'
4953 - # or fails outright, so override atomically:
4954 - install_override_mode=555
4958 @@ -9628,17 +9540,12 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
4959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4960 shlibpath_var=LD_LIBRARY_PATH
4961 shlibpath_overrides_runpath=no
4963 # Some binutils ld are patched to set DT_RUNPATH
4964 - if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
4965 - $as_echo_n "(cached) " >&6
4967 - lt_cv_shlibpath_overrides_runpath=no
4968 - save_LDFLAGS=$LDFLAGS
4969 - save_libdir=$libdir
4970 - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
4971 - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
4972 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 + save_LDFLAGS=$LDFLAGS
4974 + save_libdir=$libdir
4975 + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
4976 + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
4977 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4981 @@ -9651,17 +9558,13 @@ main ()
4983 if ac_fn_c_try_link "$LINENO"; then :
4984 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
4985 - lt_cv_shlibpath_overrides_runpath=yes
4986 + shlibpath_overrides_runpath=yes
4989 rm -f core conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4991 - LDFLAGS=$save_LDFLAGS
4992 - libdir=$save_libdir
4996 - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4997 + LDFLAGS=$save_LDFLAGS
4998 + libdir=$save_libdir
5000 # This implies no fast_install, which is unacceptable.
5001 # Some rework will be needed to allow for fast_install
5002 @@ -9670,7 +9573,7 @@ fi
5004 # Append ld.so.conf contents to the search path
5005 if test -f /etc/ld.so.conf; then
5006 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
5007 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
5008 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
5011 @@ -9683,6 +9586,18 @@ fi
5012 dynamic_linker='GNU/Linux ld.so'
5016 + version_type=linux
5017 + need_lib_prefix=no
5019 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5020 + soname_spec='${libname}${release}${shared_ext}$major'
5021 + shlibpath_var=LD_LIBRARY_PATH
5022 + shlibpath_overrides_runpath=no
5023 + hardcode_into_libs=yes
5024 + dynamic_linker='NetBSD ld.elf_so'
5030 @@ -9973,11 +9888,6 @@ fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
5040 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
5042 @@ -10308,7 +10218,7 @@ else
5043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5044 lt_status=$lt_dlunknown
5045 cat > conftest.$ac_ext <<_LT_EOF
5046 -#line $LINENO "configure"
5047 +#line 10221 "configure"
5048 #include "confdefs.h"
5051 @@ -10349,13 +10259,7 @@ else
5055 -/* When -fvisbility=hidden is used, assume the code has been annotated
5056 - correspondingly for the symbols needed. */
5057 -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5058 -void fnord () __attribute__((visibility("default")));
5061 -void fnord () { int i=42; }
5062 +void fnord() { int i=42;}
5065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5066 @@ -10364,11 +10268,7 @@ int main ()
5069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5072 - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5073 - else puts (dlerror ());
5075 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5076 /* dlclose (self); */
5079 @@ -10414,7 +10314,7 @@ else
5080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5081 lt_status=$lt_dlunknown
5082 cat > conftest.$ac_ext <<_LT_EOF
5083 -#line $LINENO "configure"
5084 +#line 10317 "configure"
5085 #include "confdefs.h"
5088 @@ -10455,13 +10355,7 @@ else
5092 -/* When -fvisbility=hidden is used, assume the code has been annotated
5093 - correspondingly for the symbols needed. */
5094 -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5095 -void fnord () __attribute__((visibility("default")));
5098 -void fnord () { int i=42; }
5099 +void fnord() { int i=42;}
5102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5103 @@ -10470,11 +10364,7 @@ int main ()
5106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5109 - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5110 - else puts (dlerror ());
5112 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5113 /* dlclose (self); */
5116 @@ -11343,10 +11233,6 @@ pkg_modules="gtk+-2.0 >= 2.12.0 \
5117 # libstartup-notification-1.0"
5124 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5127 @@ -11459,16 +11345,18 @@ $as_echo "yes" >&6; }
5128 $as_echo "no" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PACKAGE" >&5
5136 $as_echo_n "checking for PACKAGE... " >&6; }
5138 -if test -n "$PACKAGE_CFLAGS"; then
5139 - pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5140 - elif test -n "$PKG_CONFIG"; then
5141 - if test -n "$PKG_CONFIG" && \
5142 +if test -n "$PKG_CONFIG"; then
5143 + if test -n "$PACKAGE_CFLAGS"; then
5144 + pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5146 + if test -n "$PKG_CONFIG" && \
5147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
5148 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5150 @@ -11478,13 +11366,15 @@ if test -n "$PACKAGE_CFLAGS"; then
5155 - pkg_failed=untried
5158 + pkg_failed=untried
5160 -if test -n "$PACKAGE_LIBS"; then
5161 - pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5162 - elif test -n "$PKG_CONFIG"; then
5163 - if test -n "$PKG_CONFIG" && \
5164 +if test -n "$PKG_CONFIG"; then
5165 + if test -n "$PACKAGE_LIBS"; then
5166 + pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5168 + if test -n "$PKG_CONFIG" && \
5169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
5170 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5172 @@ -11494,15 +11384,14 @@ if test -n "$PACKAGE_LIBS"; then
5177 - pkg_failed=untried
5180 + pkg_failed=untried
5185 if test $pkg_failed = yes; then
5186 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 -$as_echo "no" >&6; }
5189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5190 _pkg_short_errors_supported=yes
5191 @@ -11510,9 +11399,9 @@ else
5192 _pkg_short_errors_supported=no
5194 if test $_pkg_short_errors_supported = yes; then
5195 - PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
5196 + PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
5198 - PACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
5199 + PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
5201 # Put the nasty error message in config.log where it belongs
5202 echo "$PACKAGE_PKG_ERRORS" >&5
5203 @@ -11526,10 +11415,9 @@ installed software in a non-standard pre
5205 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5206 and PACKAGE_LIBS to avoid the need to call pkg-config.
5207 -See the pkg-config man page for more details." "$LINENO" 5
5208 +See the pkg-config man page for more details.
5210 elif test $pkg_failed = untried; then
5211 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 -$as_echo "no" >&6; }
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
5216 @@ -11547,10 +11435,136 @@ else
5217 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5219 $as_echo "yes" >&6; }
5225 +###########################
5227 +###########################
5228 +# Check whether --enable-indicator_support was given.
5229 +if test "${enable_indicator_support+set}" = set; then :
5230 + enableval=$enable_indicator_support; indicator_support=$enableval
5232 + indicator_support="no"
5235 + if test x"$indicator_support" = x"yes"; then
5236 + ENABLE_INDICATOR_SUPPORT_TRUE=
5237 + ENABLE_INDICATOR_SUPPORT_FALSE='#'
5239 + ENABLE_INDICATOR_SUPPORT_TRUE='#'
5240 + ENABLE_INDICATOR_SUPPORT_FALSE=
5244 +if test "$indicator_support" != "no"; then
5245 + INDICATOR_REQUIRED_VERSION=0.3.0
5249 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPLET" >&5
5250 +$as_echo_n "checking for APPLET... " >&6; }
5252 +if test -n "$PKG_CONFIG"; then
5253 + if test -n "$APPLET_CFLAGS"; then
5254 + pkg_cv_APPLET_CFLAGS="$APPLET_CFLAGS"
5256 + if test -n "$PKG_CONFIG" && \
5257 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"indicator >= \$INDICATOR_REQUIRED_VERSION\""; } >&5
5258 + ($PKG_CONFIG --exists --print-errors "indicator >= $INDICATOR_REQUIRED_VERSION") 2>&5
5260 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5261 + test $ac_status = 0; }; then
5262 + pkg_cv_APPLET_CFLAGS=`$PKG_CONFIG --cflags "indicator >= $INDICATOR_REQUIRED_VERSION" 2>/dev/null`
5268 + pkg_failed=untried
5270 +if test -n "$PKG_CONFIG"; then
5271 + if test -n "$APPLET_LIBS"; then
5272 + pkg_cv_APPLET_LIBS="$APPLET_LIBS"
5274 + if test -n "$PKG_CONFIG" && \
5275 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"indicator >= \$INDICATOR_REQUIRED_VERSION\""; } >&5
5276 + ($PKG_CONFIG --exists --print-errors "indicator >= $INDICATOR_REQUIRED_VERSION") 2>&5
5278 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5279 + test $ac_status = 0; }; then
5280 + pkg_cv_APPLET_LIBS=`$PKG_CONFIG --libs "indicator >= $INDICATOR_REQUIRED_VERSION" 2>/dev/null`
5286 + pkg_failed=untried
5291 +if test $pkg_failed = yes; then
5293 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5294 + _pkg_short_errors_supported=yes
5296 + _pkg_short_errors_supported=no
5298 + if test $_pkg_short_errors_supported = yes; then
5299 + APPLET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "indicator >= $INDICATOR_REQUIRED_VERSION"`
5301 + APPLET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "indicator >= $INDICATOR_REQUIRED_VERSION"`
5303 + # Put the nasty error message in config.log where it belongs
5304 + echo "$APPLET_PKG_ERRORS" >&5
5306 + as_fn_error "Package requirements (indicator >= $INDICATOR_REQUIRED_VERSION) were not met:
5310 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
5311 +installed software in a non-standard prefix.
5313 +Alternatively, you may set the environment variables APPLET_CFLAGS
5314 +and APPLET_LIBS to avoid the need to call pkg-config.
5315 +See the pkg-config man page for more details.
5317 +elif test $pkg_failed = untried; then
5318 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5319 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5320 +as_fn_error "The pkg-config script could not be found or is too old. Make sure it
5321 +is in your PATH or set the PKG_CONFIG environment variable to the full
5322 +path to pkg-config.
5324 +Alternatively, you may set the environment variables APPLET_CFLAGS
5325 +and APPLET_LIBS to avoid the need to call pkg-config.
5326 +See the pkg-config man page for more details.
5328 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5329 +See \`config.log' for more details." "$LINENO" 5; }
5331 + APPLET_CFLAGS=$pkg_cv_APPLET_CFLAGS
5332 + APPLET_LIBS=$pkg_cv_APPLET_LIBS
5333 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5334 +$as_echo "yes" >&6; }
5339 + if test "x$with_localinstall" = "xyes"; then
5340 + INDICATORDIR="${libdir}/indicators/2/"
5341 + INDICATORICONSDIR="${datadir}/indicator-applet/icons/"
5343 + INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
5344 + INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
5353 @@ -11558,10 +11572,11 @@ pkg_failed=no
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
5355 $as_echo_n "checking for X11... " >&6; }
5357 -if test -n "$X11_CFLAGS"; then
5358 - pkg_cv_X11_CFLAGS="$X11_CFLAGS"
5359 - elif test -n "$PKG_CONFIG"; then
5360 - if test -n "$PKG_CONFIG" && \
5361 +if test -n "$PKG_CONFIG"; then
5362 + if test -n "$X11_CFLAGS"; then
5363 + pkg_cv_X11_CFLAGS="$X11_CFLAGS"
5365 + if test -n "$PKG_CONFIG" && \
5366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
5367 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5369 @@ -11571,13 +11586,15 @@ if test -n "$X11_CFLAGS"; then
5374 - pkg_failed=untried
5377 + pkg_failed=untried
5379 -if test -n "$X11_LIBS"; then
5380 - pkg_cv_X11_LIBS="$X11_LIBS"
5381 - elif test -n "$PKG_CONFIG"; then
5382 - if test -n "$PKG_CONFIG" && \
5383 +if test -n "$PKG_CONFIG"; then
5384 + if test -n "$X11_LIBS"; then
5385 + pkg_cv_X11_LIBS="$X11_LIBS"
5387 + if test -n "$PKG_CONFIG" && \
5388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
5389 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5391 @@ -11587,15 +11604,14 @@ if test -n "$X11_LIBS"; then
5396 - pkg_failed=untried
5399 + pkg_failed=untried
5404 if test $pkg_failed = yes; then
5405 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 -$as_echo "no" >&6; }
5408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5409 _pkg_short_errors_supported=yes
5410 @@ -11603,9 +11619,9 @@ else
5411 _pkg_short_errors_supported=no
5413 if test $_pkg_short_errors_supported = yes; then
5414 - X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
5415 + X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
5417 - X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
5418 + X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
5420 # Put the nasty error message in config.log where it belongs
5421 echo "$X11_PKG_ERRORS" >&5
5422 @@ -11619,10 +11635,9 @@ installed software in a non-standard pre
5424 Alternatively, you may set the environment variables X11_CFLAGS
5425 and X11_LIBS to avoid the need to call pkg-config.
5426 -See the pkg-config man page for more details." "$LINENO" 5
5427 +See the pkg-config man page for more details.
5429 elif test $pkg_failed = untried; then
5430 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 -$as_echo "no" >&6; }
5432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5434 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
5435 @@ -11640,7 +11655,7 @@ else
5436 X11_LIBS=$pkg_cv_X11_LIBS
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438 $as_echo "yes" >&6; }
5444 @@ -11650,10 +11665,11 @@ pkg_failed=no
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MENU_CACHE" >&5
5446 $as_echo_n "checking for MENU_CACHE... " >&6; }
5448 -if test -n "$MENU_CACHE_CFLAGS"; then
5449 - pkg_cv_MENU_CACHE_CFLAGS="$MENU_CACHE_CFLAGS"
5450 - elif test -n "$PKG_CONFIG"; then
5451 - if test -n "$PKG_CONFIG" && \
5452 +if test -n "$PKG_CONFIG"; then
5453 + if test -n "$MENU_CACHE_CFLAGS"; then
5454 + pkg_cv_MENU_CACHE_CFLAGS="$MENU_CACHE_CFLAGS"
5456 + if test -n "$PKG_CONFIG" && \
5457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
5458 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5460 @@ -11663,13 +11679,15 @@ if test -n "$MENU_CACHE_CFLAGS"; then
5465 - pkg_failed=untried
5468 + pkg_failed=untried
5470 -if test -n "$MENU_CACHE_LIBS"; then
5471 - pkg_cv_MENU_CACHE_LIBS="$MENU_CACHE_LIBS"
5472 - elif test -n "$PKG_CONFIG"; then
5473 - if test -n "$PKG_CONFIG" && \
5474 +if test -n "$PKG_CONFIG"; then
5475 + if test -n "$MENU_CACHE_LIBS"; then
5476 + pkg_cv_MENU_CACHE_LIBS="$MENU_CACHE_LIBS"
5478 + if test -n "$PKG_CONFIG" && \
5479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
5480 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5482 @@ -11679,15 +11697,14 @@ if test -n "$MENU_CACHE_LIBS"; then
5487 - pkg_failed=untried
5490 + pkg_failed=untried
5495 if test $pkg_failed = yes; then
5496 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 -$as_echo "no" >&6; }
5499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5500 _pkg_short_errors_supported=yes
5501 @@ -11695,17 +11712,17 @@ else
5502 _pkg_short_errors_supported=no
5504 if test $_pkg_short_errors_supported = yes; then
5505 - MENU_CACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
5506 + MENU_CACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
5508 - MENU_CACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
5509 + MENU_CACHE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
5511 # Put the nasty error message in config.log where it belongs
5512 echo "$MENU_CACHE_PKG_ERRORS" >&5
5514 - enable_menu_cache=no
5515 -elif test $pkg_failed = untried; then
5516 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 + enable_menu_cache=no
5520 +elif test $pkg_failed = untried; then
5521 enable_menu_cache=no
5523 MENU_CACHE_CFLAGS=$pkg_cv_MENU_CACHE_CFLAGS
5524 @@ -11944,6 +11961,7 @@ plugin_xkb=
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which plugins should be built dynamically" >&5
5531 $as_echo_n "checking which plugins should be built dynamically... " >&6; }
5532 @@ -11977,6 +11995,7 @@ if test x"$plugins" = xall; then
5534 plugin_thermal=thermal
5535 plugin_cpufreq=cpufreq
5536 + plugin_indicator=indicator
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5
5539 $as_echo "all" >&6; }
5540 @@ -12016,6 +12035,9 @@ else
5542 plugin_cpufreq=cpufreq
5545 + plugin_indicator=indicator
5548 echo "Unknown plugin $plugin."
5550 @@ -12036,6 +12058,11 @@ $as_echo "no ALSA headers/libraries foun
5555 +if test x"$indicator_support" = "xno"; then
5562 @@ -12046,7 +12073,8 @@ PLUGINS_LIST="\
5568 + $plugin_indicator"
5572 @@ -13795,7 +13823,7 @@ else
5576 -ac_config_files="$ac_config_files lxpanel.pc Makefile src/Makefile src/plugins/Makefile src/plugins/netstatus/Makefile src/plugins/volume/Makefile src/plugins/volumealsa/Makefile src/plugins/cpu/Makefile src/plugins/deskno/Makefile src/plugins/batt/Makefile src/plugins/kbled/Makefile src/plugins/xkb/Makefile src/plugins/thermal/Makefile src/plugins/cpufreq/Makefile po/Makefile.in data/Makefile data/default/panels/panel man/Makefile"
5577 +ac_config_files="$ac_config_files lxpanel.pc Makefile src/Makefile src/plugins/Makefile src/plugins/netstatus/Makefile src/plugins/volume/Makefile src/plugins/volumealsa/Makefile src/plugins/cpu/Makefile src/plugins/deskno/Makefile src/plugins/batt/Makefile src/plugins/kbled/Makefile src/plugins/xkb/Makefile src/plugins/thermal/Makefile src/plugins/cpufreq/Makefile src/plugins/indicator/Makefile po/Makefile.in data/Makefile data/default/panels/panel man/Makefile"
5579 cat >confcache <<\_ACEOF
5580 # This file is a shell script that caches the results of configure
5581 @@ -13914,6 +13942,10 @@ fi
5582 ac_config_commands="$ac_config_commands po/stamp-it"
5585 +if test -z "${ENABLE_INDICATOR_SUPPORT_TRUE}" && test -z "${ENABLE_INDICATOR_SUPPORT_FALSE}"; then
5586 + as_fn_error "conditional \"ENABLE_INDICATOR_SUPPORT\" was never defined.
5587 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
5589 if test -z "${ENABLE_MENU_CACHE_TRUE}" && test -z "${ENABLE_MENU_CACHE_FALSE}"; then
5590 as_fn_error "conditional \"ENABLE_MENU_CACHE\" was never defined.
5591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5592 @@ -14531,143 +14563,131 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac
5593 sed_quote_subst='$sed_quote_subst'
5594 double_quote_subst='$double_quote_subst'
5595 delay_variable_subst='$delay_variable_subst'
5596 -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
5597 -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
5598 -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
5599 -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
5600 -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
5601 -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
5602 -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
5603 -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
5604 -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
5605 -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
5606 -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
5607 -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
5608 -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
5609 -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
5610 -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
5611 -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
5612 -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
5613 -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
5614 -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
5615 -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
5616 -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
5617 -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
5618 -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
5619 -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
5620 -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
5621 -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
5622 -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
5623 -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
5624 -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
5625 -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
5626 -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
5627 -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
5628 -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
5629 -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
5630 -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
5631 -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
5632 -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
5633 -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
5634 -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
5635 -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
5636 -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
5637 -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
5638 -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
5639 -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
5640 -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
5641 -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
5642 -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
5643 -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
5644 -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
5645 -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
5646 -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
5647 -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
5648 -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
5649 -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
5650 -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
5651 -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
5652 -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
5653 -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
5654 -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
5655 -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
5656 -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
5657 -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
5658 -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
5659 -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
5660 -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
5661 -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
5662 -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
5663 -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
5664 -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
5665 -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
5666 -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
5667 -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
5668 -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
5669 -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
5670 -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
5671 -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
5672 -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
5673 -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
5674 -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
5675 -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
5676 -hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
5677 -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
5678 -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
5679 -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
5680 -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
5681 -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
5682 -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
5683 -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
5684 -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
5685 -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
5686 -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
5687 -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
5688 -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
5689 -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
5690 -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
5691 -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
5692 -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
5693 -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
5694 -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
5695 -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
5696 -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
5697 -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
5698 -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
5699 -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
5700 -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
5701 -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
5702 -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
5703 -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
5704 -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
5705 -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
5706 -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
5707 -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
5708 -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
5709 -sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
5710 -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
5711 -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
5712 -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
5713 -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
5714 -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
5715 -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
5716 +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
5717 +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
5718 +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
5719 +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
5720 +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
5721 +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
5722 +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
5723 +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
5724 +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
5725 +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
5726 +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
5727 +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
5728 +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
5729 +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
5730 +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
5731 +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
5732 +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
5733 +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
5734 +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
5735 +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
5736 +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
5737 +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
5738 +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
5739 +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
5740 +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
5741 +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
5742 +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
5743 +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5744 +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
5745 +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
5746 +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
5747 +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
5748 +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
5749 +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
5750 +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
5751 +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5752 +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5753 +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5754 +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
5755 +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
5756 +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
5757 +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
5758 +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
5759 +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
5760 +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
5761 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
5762 +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
5763 +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
5764 +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
5765 +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
5766 +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
5767 +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
5768 +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
5769 +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
5770 +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
5771 +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
5772 +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
5773 +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
5774 +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
5775 +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
5776 +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
5777 +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
5778 +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5779 +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5780 +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
5781 +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
5782 +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
5783 +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
5784 +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
5785 +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5786 +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5787 +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5788 +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5789 +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5790 +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5791 +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
5792 +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
5793 +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
5794 +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
5795 +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
5796 +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
5797 +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
5798 +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
5799 +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
5800 +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
5801 +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
5802 +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
5803 +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
5804 +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
5805 +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
5806 +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5807 +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
5808 +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
5809 +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5810 +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
5811 +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
5812 +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
5813 +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
5814 +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
5815 +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
5816 +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
5817 +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
5818 +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
5819 +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
5820 +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
5821 +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5822 +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5823 +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
5824 +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
5825 +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
5826 +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
5827 +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
5828 +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
5829 +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
5830 +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
5831 +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
5832 +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
5833 +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
5836 LTCFLAGS='$LTCFLAGS'
5837 compiler='$compiler_DEFAULT'
5839 -# A function that is used when there is no print builtin or printf.
5840 -func_fallback_echo ()
5842 - eval 'cat <<_LTECHO_EOF
5847 # Quote evaled strings.
5855 @@ -14691,6 +14711,8 @@ lt_cv_sys_global_symbol_pipe \
5856 lt_cv_sys_global_symbol_to_cdecl \
5857 lt_cv_sys_global_symbol_to_c_name_address \
5858 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
5861 lt_prog_compiler_no_builtin_flag \
5862 lt_prog_compiler_wl \
5863 lt_prog_compiler_pic \
5864 @@ -14720,13 +14742,12 @@ variables_saved_for_relink \
5866 library_names_spec \
5868 -install_override_mode \
5872 - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5873 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
5874 *[\\\\\\\`\\"\\\$]*)
5875 - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
5876 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
5879 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
5880 @@ -14753,9 +14774,9 @@ postuninstall_cmds \
5882 sys_lib_search_path_spec \
5883 sys_lib_dlsearch_path_spec; do
5884 - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5885 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
5886 *[\\\\\\\`\\"\\\$]*)
5887 - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
5888 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
5891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
5892 @@ -14763,6 +14784,12 @@ sys_lib_dlsearch_path_spec; do
5896 +# Fix-up fallback echo if it was mangled by the above quoting rules.
5898 +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
5902 ac_aux_dir='$ac_aux_dir'
5903 xsi_shell='$xsi_shell'
5904 lt_shell_append='$lt_shell_append'
5905 @@ -14810,6 +14837,7 @@ do
5906 "src/plugins/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/xkb/Makefile" ;;
5907 "src/plugins/thermal/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/thermal/Makefile" ;;
5908 "src/plugins/cpufreq/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/cpufreq/Makefile" ;;
5909 + "src/plugins/indicator/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/indicator/Makefile" ;;
5910 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
5911 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
5912 "data/default/panels/panel") CONFIG_FILES="$CONFIG_FILES data/default/panels/panel" ;;
5913 @@ -15515,8 +15543,7 @@ $as_echo X"$file" |
5914 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5916 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
5917 -# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
5919 +# 2006, 2007, 2008 Free Software Foundation, Inc.
5920 # Written by Gordon Matzigkeit, 1996
5922 # This file is part of GNU Libtool.
5923 @@ -15564,12 +15591,6 @@ pic_mode=$pic_mode
5924 # Whether or not to optimize for fast installation.
5925 fast_install=$enable_fast_install
5927 -# Shell to use when invoking shell scripts.
5930 -# An echo program that protects backslashes.
5934 host_alias=$host_alias
5936 @@ -15619,6 +15640,10 @@ SP2NL=$lt_lt_SP2NL
5937 # turn newlines into spaces.
5940 +# How to create reloadable object files.
5941 +reload_flag=$lt_reload_flag
5942 +reload_cmds=$lt_reload_cmds
5944 # An object symbol dumper.
5947 @@ -15640,9 +15665,6 @@ RANLIB=$lt_RANLIB
5948 old_postinstall_cmds=$lt_old_postinstall_cmds
5949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5951 -# Whether to use a lock for old archive extraction.
5952 -lock_old_archive_extraction=$lock_old_archive_extraction
5957 @@ -15664,6 +15686,12 @@ global_symbol_to_c_name_address_lib_pref
5958 # The name of the directory that contains temporary libtool files.
5961 +# Shell to use when invoking shell scripts.
5964 +# An echo program that does not interpret backslashes.
5967 # Used to examine libraries when file_magic_cmd begins with "file".
5968 MAGIC_CMD=$MAGIC_CMD
5970 @@ -15726,9 +15754,6 @@ library_names_spec=$lt_library_names_spe
5971 # The coded name of the library, if different from the real name.
5972 soname_spec=$lt_soname_spec
5974 -# Permission mode override for installation of shared libraries.
5975 -install_override_mode=$lt_install_override_mode
5977 # Command to use after installation of a shared archive.
5978 postinstall_cmds=$lt_postinstall_cmds
5980 @@ -15768,10 +15793,6 @@ striplib=$lt_striplib
5981 # The linker used to build libraries.
5984 -# How to create reloadable object files.
5985 -reload_flag=$lt_reload_flag
5986 -reload_cmds=$lt_reload_cmds
5988 # Commands used to build an old-style archive.
5989 old_archive_cmds=$lt_old_archive_cmds
5991 @@ -16031,7 +16052,7 @@ _LT_EOF
5994 # Extract subdirectory from the argument.
5995 - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
5996 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
5997 if test "X$func_dirname_result" = "X${1}"; then
5998 func_dirname_result="${3}"
6000 @@ -16042,7 +16063,7 @@ func_dirname ()
6001 # func_basename file
6004 - func_basename_result=`$ECHO "${1}" | $SED "$basename"`
6005 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6009 @@ -16055,8 +16076,10 @@ func_basename ()
6013 - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6014 - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6015 + .*) func_stripname_result=`$ECHO "X${3}" \
6016 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
6017 + *) func_stripname_result=`$ECHO "X${3}" \
6018 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
6022 @@ -16067,20 +16090,20 @@ my_sed_long_arg='1s/^-[^=]*=//'
6026 - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
6027 - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
6028 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
6029 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
6035 - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
6036 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
6039 # func_xform libobj-or-source
6042 - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
6043 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
6046 # func_arith arithmetic-term...
6047 @@ -16242,6 +16265,10 @@ $as_echo " thermal - Temperature moni
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cpufreq - CpuFreq frontend" >&5
6049 $as_echo " cpufreq - CpuFreq frontend" >&6; }
6051 + if test x"$plugin_indicator" != x; then
6052 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: indicator - Indicator support" >&5
6053 +$as_echo " indicator - Indicator support" >&6; }
6056 echo Dynamic loader for plugins....... : disabled.
6058 --- lxpanel-0.5.6.orig/ltmain.sh
6059 +++ lxpanel-0.5.6/ltmain.sh
6061 # Generated from ltmain.m4sh.
6063 -# libtool (GNU libtool) 2.2.10
6064 +# ltmain.sh (GNU libtool) 2.2.6b
6065 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6067 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6068 -# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6069 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6070 # This is free software; see the source for copying conditions. There is NO
6071 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
6075 # Provide generalized library-building support services.
6077 -# --config show all configuration variables
6078 -# --debug enable verbose shell tracing
6079 -# -n, --dry-run display commands without modifying any files
6080 -# --features display basic configuration information and exit
6081 -# --mode=MODE use operation mode MODE
6082 -# --preserve-dup-deps don't remove duplicate dependency libraries
6083 -# --quiet, --silent don't print informational messages
6084 -# --no-quiet, --no-silent
6085 -# print informational messages (default)
6086 -# --tag=TAG use configuration variables from tag TAG
6087 -# -v, --verbose print more informational messages than default
6088 -# --no-verbose don't print the extra informational messages
6089 -# --version print version information
6090 -# -h, --help, --help-all print short, long, or detailed help message
6091 +# --config show all configuration variables
6092 +# --debug enable verbose shell tracing
6093 +# -n, --dry-run display commands without modifying any files
6094 +# --features display basic configuration information and exit
6095 +# --mode=MODE use operation mode MODE
6096 +# --preserve-dup-deps don't remove duplicate dependency libraries
6097 +# --quiet, --silent don't print informational messages
6098 +# --tag=TAG use configuration variables from tag TAG
6099 +# -v, --verbose print informational messages (default)
6100 +# --version print version information
6101 +# -h, --help print short or long help message
6103 # MODE must be one of the following:
6105 -# clean remove files from the build directory
6106 -# compile compile a source file into a libtool object
6107 -# execute automatically set library path, then run a program
6108 -# finish complete the installation of libtool libraries
6109 -# install install libraries or executables
6110 -# link create a library or an executable
6111 -# uninstall remove libraries from an installed directory
6112 +# clean remove files from the build directory
6113 +# compile compile a source file into a libtool object
6114 +# execute automatically set library path, then run a program
6115 +# finish complete the installation of libtool libraries
6116 +# install install libraries or executables
6117 +# link create a library or an executable
6118 +# uninstall remove libraries from an installed directory
6120 -# MODE-ARGS vary depending on the MODE. When passed as first option,
6121 -# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
6122 +# MODE-ARGS vary depending on the MODE.
6123 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
6125 # When reporting a bug, please describe a test case to reproduce it and
6126 # include the following information:
6128 -# host-triplet: $host
6131 -# compiler flags: $LTCFLAGS
6132 -# linker: $LD (gnu? $with_gnu_ld)
6133 -# $progname: (GNU libtool) 2.2.10
6134 -# automake: $automake_version
6135 -# autoconf: $autoconf_version
6136 +# host-triplet: $host
6139 +# compiler flags: $LTCFLAGS
6140 +# linker: $LD (gnu? $with_gnu_ld)
6141 +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
6142 +# automake: $automake_version
6143 +# autoconf: $autoconf_version
6145 # Report bugs to <bug-libtool@gnu.org>.
6151 +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
6153 -package_revision=1.3175
6154 +package_revision=1.3017
6156 # Be Bourne compatible
6157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6158 @@ -96,15 +91,10 @@ fi
6159 BIN_SH=xpg4; export BIN_SH # for Tru64
6160 DUALCASE=1; export DUALCASE # for MKS sh
6162 -# A function that is used when there is no print builtin or printf.
6163 -func_fallback_echo ()
6165 - eval 'cat <<_LTECHO_EOF
6170 # NLS nuisances: We save the old values to restore during execute mode.
6171 +# Only set LANG and LC_ALL to C if already set.
6172 +# These must not be set unconditionally because not all systems understand
6173 +# e.g. LANG=C (notably SCO).
6176 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6177 @@ -117,33 +107,24 @@ do
6178 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
6183 -export LANGUAGE LC_ALL
6188 -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
6189 -# is ksh but when the shell is invoked as "sh" and the current value of
6190 -# the _XPG environment variable is not equal to 1 (one), the special
6191 -# positional parameter $0, within a function call, is the name of the
6198 -test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
6199 -: ${EGREP="grep -E"}
6200 -: ${FGREP="grep -F"}
6203 +: ${EGREP="/bin/grep -E"}
6204 +: ${FGREP="/bin/grep -F"}
6205 +: ${GREP="/bin/grep"}
6212 +: ${SED="/bin/sed"}
6213 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
6214 : ${Xsed="$SED -e 1s/^X//"}
6216 @@ -178,168 +159,32 @@ basename="s,^.*/,,"
6217 func_dirname_and_basename ()
6219 # Extract subdirectory from the argument.
6220 - func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
6221 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
6222 if test "X$func_dirname_result" = "X${1}"; then
6223 func_dirname_result="${3}"
6225 func_dirname_result="$func_dirname_result${2}"
6227 - func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
6228 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6231 # Generated shell functions inserted here.
6233 -# These SED scripts presuppose an absolute path with a trailing slash.
6234 -pathcar='s,^/\([^/]*\).*$,\1,'
6235 -pathcdr='s,^/[^/]*,,'
6236 -removedotparts=':dotsl
6240 -collapseslashes='s@/\{1,\}@/@g'
6241 -finalslash='s,/*$,/,'
6243 -# func_normal_abspath PATH
6244 -# Remove doubled-up and trailing slashes, "." path components,
6245 -# and cancel out any ".." path components in PATH after making
6246 -# it an absolute path.
6247 -# value returned in "$func_normal_abspath_result"
6248 -func_normal_abspath ()
6250 - # Start from root dir and reassemble the path.
6251 - func_normal_abspath_result=
6252 - func_normal_abspath_tpath=$1
6253 - func_normal_abspath_altnamespace=
6254 - case $func_normal_abspath_tpath in
6256 - # Empty path, that just means $cwd.
6257 - func_stripname '' '/' "`pwd`"
6258 - func_normal_abspath_result=$func_stripname_result
6261 - # The next three entries are used to spot a run of precisely
6262 - # two leading slashes without using negated character classes;
6263 - # we take advantage of case's first-match behaviour.
6265 - # Unusual form of absolute path, do nothing.
6268 - # Not necessarily an ordinary path; POSIX reserves leading '//'
6269 - # and for example Cygwin uses it to access remote file shares
6270 - # over CIFS/SMB, so we conserve a leading double slash if found.
6271 - func_normal_abspath_altnamespace=/
6274 - # Absolute path, do nothing.
6277 - # Relative path, prepend $cwd.
6278 - func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
6281 - # Cancel out all the simple stuff to save iterations. We also want
6282 - # the path to end with a slash for ease of parsing, so make sure
6283 - # there is one (and only one) here.
6284 - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
6285 - -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
6287 - # Processed it all yet?
6288 - if test "$func_normal_abspath_tpath" = / ; then
6289 - # If we ascended to the root using ".." the result may be empty now.
6290 - if test -z "$func_normal_abspath_result" ; then
6291 - func_normal_abspath_result=/
6295 - func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
6297 - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
6299 - # Figure out what to do with it
6300 - case $func_normal_abspath_tcomponent in
6302 - # Trailing empty path component, ignore it.
6305 - # Parent dir; strip last assembled component from result.
6306 - func_dirname "$func_normal_abspath_result"
6307 - func_normal_abspath_result=$func_dirname_result
6310 - # Actual path component, append it.
6311 - func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
6315 - # Restore leading double-slash if one was found on entry.
6316 - func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
6319 -# func_relative_path SRCDIR DSTDIR
6320 -# generates a relative path from SRCDIR to DSTDIR, with a trailing
6321 -# slash if non-empty, suitable for immediately appending a filename
6322 -# without needing to append a separator.
6323 -# value returned in "$func_relative_path_result"
6324 -func_relative_path ()
6326 - func_relative_path_result=
6327 - func_normal_abspath "$1"
6328 - func_relative_path_tlibdir=$func_normal_abspath_result
6329 - func_normal_abspath "$2"
6330 - func_relative_path_tbindir=$func_normal_abspath_result
6332 - # Ascend the tree starting from libdir
6334 - # check if we have found a prefix of bindir
6335 - case $func_relative_path_tbindir in
6336 - $func_relative_path_tlibdir)
6337 - # found an exact match
6338 - func_relative_path_tcancelled=
6341 - $func_relative_path_tlibdir*)
6342 - # found a matching prefix
6343 - func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
6344 - func_relative_path_tcancelled=$func_stripname_result
6345 - if test -z "$func_relative_path_result"; then
6346 - func_relative_path_result=.
6351 - func_dirname $func_relative_path_tlibdir
6352 - func_relative_path_tlibdir=${func_dirname_result}
6353 - if test "x$func_relative_path_tlibdir" = x ; then
6354 - # Have to descend all the way to the root!
6355 - func_relative_path_result=../$func_relative_path_result
6356 - func_relative_path_tcancelled=$func_relative_path_tbindir
6359 - func_relative_path_result=../$func_relative_path_result
6364 - # Now calculate path; take care to avoid doubling-up slashes.
6365 - func_stripname '' '/' "$func_relative_path_result"
6366 - func_relative_path_result=$func_stripname_result
6367 - func_stripname '/' '/' "$func_relative_path_tcancelled"
6368 - if test "x$func_stripname_result" != x ; then
6369 - func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
6372 - # Normalisation. If bindir is libdir, return empty string,
6373 - # else relative path ending with a slash; either way, target
6374 - # file name can be directly appended.
6375 - if test ! -z "$func_relative_path_result"; then
6376 - func_stripname './' '' "$func_relative_path_result/"
6377 - func_relative_path_result=$func_stripname_result
6380 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
6381 +# is ksh but when the shell is invoked as "sh" and the current value of
6382 +# the _XPG environment variable is not equal to 1 (one), the special
6383 +# positional parameter $0, within a function call, is the name of the
6387 # The name of this program:
6388 +# In the unlikely event $progname began with a '-', it would play havoc with
6389 +# func_echo (imagine progname=-n), so we prepend ./ in that case:
6390 func_dirname_and_basename "$progpath"
6391 progname=$func_basename_result
6393 + -*) progname=./$progname ;;
6396 # Make sure we have an absolute path for reexecution:
6398 @@ -413,13 +258,6 @@ func_verbose ()
6402 -# func_echo_all arg...
6403 -# Invoke $ECHO with all args, space-separated.
6410 # Echo program name prefixed message to standard error.
6412 @@ -488,9 +326,9 @@ func_mkdir_p ()
6413 case $my_directory_path in */*) ;; *) break ;; esac
6415 # ...otherwise throw away the child directory and loop
6416 - my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
6417 + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
6419 - my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
6420 + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
6422 save_mkdir_p_IFS="$IFS"; IFS=':'
6423 for my_dir in $my_dir_list; do
6424 @@ -540,7 +378,7 @@ func_mktempdir ()
6425 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
6428 - $ECHO "$my_tmpdir"
6429 + $ECHO "X$my_tmpdir" | $Xsed
6433 @@ -554,7 +392,7 @@ func_quote_for_eval ()
6437 - func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
6438 + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
6440 func_quote_for_eval_unquoted_result="$1" ;;
6442 @@ -581,7 +419,7 @@ func_quote_for_expand ()
6446 - my_arg=`$ECHO "$1" | $SED \
6447 + my_arg=`$ECHO "X$1" | $Xsed \
6448 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
6451 @@ -651,19 +489,14 @@ func_show_eval_locale ()
6459 # Echo version message to standard output and exit.
6462 - $SED -n '/(C)/!b go
6470 - /^# '$PROGRAM' (GNU /,/# warranty; / {
6471 + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
6474 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
6475 @@ -676,20 +509,19 @@ func_version ()
6476 # Echo short help message to standard output and exit.
6479 - $SED -n '/^# Usage:/,/^# *.*--help/ {
6480 + $SED -n '/^# Usage:/,/# -h/ {
6483 s/\$progname/'$progname'/
6488 $ECHO "run \`$progname --help | more' for full usage"
6492 -# func_help [NOEXIT]
6493 -# Echo long help message to standard output and exit,
6494 -# unless 'noexit' is passed as argument.
6496 +# Echo long help message to standard output and exit.
6499 $SED -n '/^# Usage:/,/# Report bugs to/ {
6500 @@ -706,10 +538,7 @@ func_help ()
6501 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
6505 - if test -z "$1"; then
6511 # func_missing_arg argname
6512 @@ -717,7 +546,7 @@ func_help ()
6516 - func_error "missing argument for $1."
6517 + func_error "missing argument for $1"
6521 @@ -727,6 +556,29 @@ exit_cmd=:
6525 +# Check that we have a working $ECHO.
6526 +if test "X$1" = X--no-reexec; then
6527 + # Discard the --no-reexec flag, and continue.
6529 +elif test "X$1" = X--fallback-echo; then
6530 + # Avoid inline document here, it may be left over
6532 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
6533 + # Yippee, $ECHO works!
6536 + # Restart under the correct shell, and then maybe $ECHO will work.
6537 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
6540 +if test "X$1" = X--fallback-echo; then
6541 + # used as fallback echo
6546 + exit $EXIT_SUCCESS
6549 magic="%%%MAGIC variable%%%"
6550 magic_exe="%%%MAGIC EXE variable%%%"
6551 @@ -784,16 +636,16 @@ func_config ()
6552 # Display the features supported by this script.
6555 - echo "host: $host"
6556 + $ECHO "host: $host"
6557 if test "$build_libtool_libs" = yes; then
6558 - echo "enable shared libraries"
6559 + $ECHO "enable shared libraries"
6561 - echo "disable shared libraries"
6562 + $ECHO "disable shared libraries"
6564 if test "$build_old_libs" = yes; then
6565 - echo "enable static libraries"
6566 + $ECHO "enable static libraries"
6568 - echo "disable static libraries"
6569 + $ECHO "disable static libraries"
6573 @@ -920,21 +772,10 @@ func_enable_tag ()
6575 --quiet|--silent) preserve_args="$preserve_args $opt"
6580 - --no-quiet|--no-silent)
6581 - preserve_args="$preserve_args $opt"
6585 --verbose| -v) preserve_args="$preserve_args $opt"
6590 - --no-verbose) preserve_args="$preserve_args $opt"
6594 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
6595 @@ -952,7 +793,6 @@ func_enable_tag ()
6597 -\?|-h) func_usage ;;
6598 --help) opt_help=: ;;
6599 - --help-all) opt_help=': help-all' ;;
6600 --version) func_version ;;
6602 -*) func_fatal_help "unrecognized option \`$opt'" ;;
6603 @@ -1176,13 +1016,10 @@ func_infer_tag ()
6604 func_quote_for_eval "$arg"
6605 CC_quoted="$CC_quoted $func_quote_for_eval_result"
6607 - CC_expanded=`func_echo_all $CC`
6608 - CC_quoted_expanded=`func_echo_all $CC_quoted`
6610 # Blanks in the command may have been stripped by the calling shell,
6611 # but not from the CC environment variable when configure was run.
6612 - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
6613 - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
6614 + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
6615 # Blanks at the start of $base_compile will cause this to fail
6616 # if we don't check for them as well.
6618 @@ -1196,11 +1033,8 @@ func_infer_tag ()
6619 func_quote_for_eval "$arg"
6620 CC_quoted="$CC_quoted $func_quote_for_eval_result"
6622 - CC_expanded=`func_echo_all $CC`
6623 - CC_quoted_expanded=`func_echo_all $CC_quoted`
6625 - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
6626 - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
6627 + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
6628 # The compiler in the base compile command matches
6629 # the one in the tagged configuration.
6630 # Assume this is the tagged configuration we want.
6631 @@ -1379,7 +1213,7 @@ func_mode_compile ()
6633 *.ada | *.adb | *.ads | *.asm | \
6634 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
6635 - *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
6636 + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
6637 func_xform "$libobj"
6638 libobj=$func_xform_result
6640 @@ -1454,7 +1288,7 @@ func_mode_compile ()
6641 # Calculate the filename of the output object if compiler does
6642 # not support -o with -c
6643 if test "$compiler_c_o" = no; then
6644 - output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
6645 + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
6646 lockfile="$output_obj.lock"
6649 @@ -1611,7 +1445,7 @@ compiler."
6653 - test "$mode" = compile && func_mode_compile ${1+"$@"}
6654 +test "$mode" = compile && func_mode_compile ${1+"$@"}
6658 @@ -1648,11 +1482,10 @@ This mode accepts the following addition
6660 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6661 -no-suppress do not suppress compiler output for multiple passes
6662 - -prefer-pic try to build PIC objects only
6663 - -prefer-non-pic try to build non-PIC objects only
6664 + -prefer-pic try to building PIC objects only
6665 + -prefer-non-pic try to building non-PIC objects only
6666 -shared do not build a \`.o' file suitable for static linking
6667 -static only build a \`.o' file suitable for static linking
6668 - -Wc,FLAG pass FLAG directly to the compiler
6670 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6671 from the given SOURCEFILE.
6672 @@ -1705,7 +1538,7 @@ either the \`install' or \`cp' program.
6674 The following components of INSTALL-COMMAND are treated specially:
6676 - -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
6677 + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
6679 The rest of the components are interpreted as arguments to that command (only
6680 BSD-compatible install options are recognized)."
6681 @@ -1725,8 +1558,6 @@ The following components of LINK-COMMAND
6683 -all-static do not do any dynamic linking at all
6684 -avoid-version do not add a version suffix if possible
6685 - -bindir BINDIR specify path to binaries directory (for systems where
6686 - libraries must be found in the PATH setting at runtime)
6687 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6688 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6689 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6690 @@ -1755,11 +1586,6 @@ The following components of LINK-COMMAND
6691 -version-info CURRENT[:REVISION[:AGE]]
6692 specify library version info [each variable defaults to 0]
6693 -weak LIBNAME declare that the target provides the LIBNAME interface
6695 - -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
6697 - -Xlinker FLAG pass linker-specific FLAG directly to the linker
6698 - -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
6700 All other options (arguments beginning with \`-') are ignored.
6702 @@ -1797,40 +1623,14 @@ Otherwise, only FILE itself is deleted u
6708 $ECHO "Try \`$progname --help' for more information about other modes."
6713 -# Now that we've collected a possible --mode arg, show help if necessary
6715 - if test "$opt_help" = :; then
6720 - for mode in compile link execute install finish uninstall clean; do
6723 - } | sed -n '1p; 2,$s/^Usage:/ or: /p'
6726 - for mode in compile link execute install finish uninstall clean; do
6732 - /^When reporting/,/^Report/{
6737 - /information about other modes/d
6738 - /more detailed .*MODE/d
6739 - s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
6743 + # Now that we've collected a possible --mode arg, show help if necessary
6744 + $opt_help && func_mode_help
6747 # func_mode_execute arg...
6748 @@ -1912,7 +1712,7 @@ func_mode_execute ()
6752 - -* | *.la | *.lo ) ;;
6755 # Do a test to see if this is really a libtool program.
6756 if func_ltwrapper_script_p "$file"; then
6757 @@ -1954,7 +1754,7 @@ func_mode_execute ()
6758 # Display what would be done.
6759 if test -n "$shlibpath_var"; then
6760 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
6761 - echo "export $shlibpath_var"
6762 + $ECHO "export $shlibpath_var"
6766 @@ -1995,23 +1795,23 @@ func_mode_finish ()
6767 # Exit here if they wanted silent mode.
6768 $opt_silent && exit $EXIT_SUCCESS
6770 - echo "----------------------------------------------------------------------"
6771 - echo "Libraries have been installed in:"
6772 + $ECHO "X----------------------------------------------------------------------" | $Xsed
6773 + $ECHO "Libraries have been installed in:"
6774 for libdir in $libdirs; do
6778 - echo "If you ever happen to want to link against installed libraries"
6779 - echo "in a given directory, LIBDIR, you must either use libtool, and"
6780 - echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6781 - echo "flag during linking and do at least one of the following:"
6783 + $ECHO "If you ever happen to want to link against installed libraries"
6784 + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
6785 + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
6786 + $ECHO "flag during linking and do at least one of the following:"
6787 if test -n "$shlibpath_var"; then
6788 - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6789 - echo " during execution"
6790 + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
6791 + $ECHO " during execution"
6793 if test -n "$runpath_var"; then
6794 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
6795 - echo " during linking"
6796 + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
6797 + $ECHO " during linking"
6799 if test -n "$hardcode_libdir_flag_spec"; then
6801 @@ -2023,21 +1823,21 @@ func_mode_finish ()
6802 $ECHO " - have your system administrator run these commands:$admincmds"
6804 if test -f /etc/ld.so.conf; then
6805 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6806 + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6811 - echo "See any operating system documentation about shared libraries for"
6812 + $ECHO "See any operating system documentation about shared libraries for"
6814 solaris2.[6789]|solaris2.1[0-9])
6815 - echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
6817 + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
6821 - echo "more information, such as the ld(1) and ld.so(8) manual pages."
6822 + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
6825 - echo "----------------------------------------------------------------------"
6826 + $ECHO "X----------------------------------------------------------------------" | $Xsed
6830 @@ -2052,7 +1852,7 @@ func_mode_install ()
6831 # install_prog (especially on Windows NT).
6832 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
6833 # Allow the use of GNU shtool's install command.
6834 - case $nonopt in *shtool*) :;; *) false;; esac; then
6835 + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
6836 # Aesthetically quote it.
6837 func_quote_for_eval "$nonopt"
6838 install_prog="$func_quote_for_eval_result "
6839 @@ -2067,11 +1867,6 @@ func_mode_install ()
6840 # Aesthetically quote it.
6841 func_quote_for_eval "$arg"
6842 install_prog="$install_prog$func_quote_for_eval_result"
6843 - install_shared_prog=$install_prog
6844 - case " $install_prog " in
6845 - *[\\\ /]cp\ *) install_cp=: ;;
6846 - *) install_cp=false ;;
6849 # We need to accept at least all the BSD install flags.
6851 @@ -2081,10 +1876,8 @@ func_mode_install ()
6859 if test -n "$dest"; then
6860 files="$files $dest"
6862 @@ -2094,9 +1887,10 @@ func_mode_install ()
6866 - if $install_cp; then :; else
6869 + case " $install_prog " in
6876 @@ -2110,10 +1904,6 @@ func_mode_install ()
6878 # If the previous option needed an argument, then skip it.
6879 if test -n "$prev"; then
6880 - if test "x$prev" = x-m && test -n "$install_override_mode"; then
6881 - arg2=$install_override_mode
6887 @@ -2125,10 +1915,6 @@ func_mode_install ()
6888 # Aesthetically quote the argument.
6889 func_quote_for_eval "$arg"
6890 install_prog="$install_prog $func_quote_for_eval_result"
6891 - if test -n "$arg2"; then
6892 - func_quote_for_eval "$arg2"
6894 - install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
6897 test -z "$install_prog" && \
6898 @@ -2137,13 +1923,6 @@ func_mode_install ()
6899 test -n "$prev" && \
6900 func_fatal_help "the \`$prev' option requires an argument"
6902 - if test -n "$install_override_mode" && $no_mode; then
6903 - if $install_cp; then :; else
6904 - func_quote_for_eval "$install_override_mode"
6905 - install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
6909 if test -z "$files"; then
6910 if test -z "$dest"; then
6911 func_fatal_help "no file or destination specified"
6912 @@ -2231,7 +2010,7 @@ func_mode_install ()
6914 if test -n "$relink_command"; then
6915 # Determine the prefix the user has applied to our future dir.
6916 - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
6917 + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
6919 # Don't allow the user to place us outside of our expected
6920 # location b/c this prevents finding dependent libraries that
6921 @@ -2244,9 +2023,9 @@ func_mode_install ()
6923 if test -n "$inst_prefix_dir"; then
6924 # Stick the inst_prefix_dir data into the link command.
6925 - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
6926 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
6928 - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
6929 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
6932 func_warning "relinking \`$file'"
6933 @@ -2264,7 +2043,7 @@ func_mode_install ()
6934 test -n "$relink_command" && srcname="$realname"T
6936 # Install the shared library and build the symlinks.
6937 - func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
6938 + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
6942 @@ -2404,7 +2183,7 @@ func_mode_install ()
6943 if test -f "$lib"; then
6946 - libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
6947 + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6948 if test -n "$libdir" && test ! -f "$libfile"; then
6949 func_warning "\`$lib' has not been installed in \`$libdir'"
6951 @@ -2423,7 +2202,7 @@ func_mode_install ()
6952 file="$func_basename_result"
6953 outputname="$tmpdir/$file"
6954 # Replace the output file specification.
6955 - relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
6956 + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
6959 func_quote_for_expand "$relink_command"
6960 @@ -2442,7 +2221,7 @@ func_mode_install ()
6963 # Install the binary that we compiled earlier.
6964 - file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
6965 + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6969 @@ -2544,10 +2323,6 @@ func_generate_dlsyms ()
6973 -#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
6974 -#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
6977 /* External symbol declarations for the compiler. */\
6980 @@ -2557,7 +2332,7 @@ extern \"C\" {
6981 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
6983 # Add our own program objects to the symbol list.
6984 - progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
6985 + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6986 for progfile in $progfiles; do
6987 func_verbose "extracting global C symbols from \`$progfile'"
6988 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
6989 @@ -2596,7 +2371,7 @@ extern \"C\" {
6990 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
6991 eval '$MV "$nlist"T "$nlist"'
6993 - *cygwin* | *mingw* | *cegcc* )
6994 + *cygwin | *mingw* | *cegcc* )
6995 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
6996 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
6998 @@ -2640,10 +2415,10 @@ extern \"C\" {
6999 if test -f "$nlist"S; then
7000 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
7002 - echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
7003 + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
7006 - echo >> "$output_objdir/$my_dlsyms" "\
7007 + $ECHO >> "$output_objdir/$my_dlsyms" "\
7009 /* The mapping between symbol names and symbols. */
7011 @@ -2653,7 +2428,7 @@ typedef struct {
7014 *cygwin* | *mingw* | *cegcc* )
7015 - echo >> "$output_objdir/$my_dlsyms" "\
7016 + $ECHO >> "$output_objdir/$my_dlsyms" "\
7017 /* DATA imports from DLLs on WIN32 con't be const, because
7018 runtime relocations are performed -- see ld's documentation
7019 on pseudo-relocs. */"
7020 @@ -2666,7 +2441,7 @@ typedef struct {
7021 lt_dlsym_const=const ;;
7024 - echo >> "$output_objdir/$my_dlsyms" "\
7025 + $ECHO >> "$output_objdir/$my_dlsyms" "\
7026 extern $lt_dlsym_const lt_dlsymlist
7027 lt_${my_prefix}_LTX_preloaded_symbols[];
7028 $lt_dlsym_const lt_dlsymlist
7029 @@ -2682,7 +2457,7 @@ lt_${my_prefix}_LTX_preloaded_symbols[]
7030 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
7033 - echo >> "$output_objdir/$my_dlsyms" "\
7034 + $ECHO >> "$output_objdir/$my_dlsyms" "\
7038 @@ -2740,16 +2515,16 @@ static const void *lt_preloaded_setup()
7040 *cygwin* | *mingw* | *cegcc* )
7041 if test -f "$output_objdir/$my_outputname.def"; then
7042 - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
7043 - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
7044 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
7045 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
7047 - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
7048 - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
7049 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
7050 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
7054 - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
7055 - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
7056 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
7057 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
7061 @@ -2763,8 +2538,8 @@ static const void *lt_preloaded_setup()
7062 # really was required.
7064 # Nullify the symbol file.
7065 - compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
7066 - finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
7067 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
7068 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
7072 @@ -2774,7 +2549,6 @@ static const void *lt_preloaded_setup()
7073 # Need a lot of goo to handle *both* DLLs and import libs
7074 # Has to be a shell function in order to 'eat' the argument
7075 # that is supplied when $file_magic_command is called.
7076 -# Despite the name, also deal with 64 bit binaries.
7080 @@ -2785,9 +2559,8 @@ func_win32_libid ()
7081 win32_libid_type="x86 archive import"
7083 *ar\ archive*) # could be an import, or static
7084 - # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
7085 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
7086 - $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
7087 + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
7088 win32_nmres=`eval $NM -f posix -A $1 |
7091 @@ -2825,18 +2598,7 @@ func_extract_an_archive ()
7093 f_ex_an_ar_dir="$1"; shift
7094 f_ex_an_ar_oldlib="$1"
7095 - if test "$lock_old_archive_extraction" = yes; then
7096 - lockfile=$f_ex_an_ar_oldlib.lock
7097 - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
7098 - func_echo "Waiting for $lockfile to be removed"
7102 - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
7103 - 'stat=$?; rm -f "$lockfile"; exit $stat'
7104 - if test "$lock_old_archive_extraction" = yes; then
7105 - $opt_dry_run || rm -f "$lockfile"
7107 + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
7108 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
7111 @@ -2907,7 +2669,7 @@ func_extract_archives ()
7114 for darwin_file in $darwin_filelist; do
7115 - darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
7116 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
7117 $LIPO -create -output "$darwin_file" $darwin_files
7118 done # $darwin_filelist
7120 @@ -2922,30 +2684,25 @@ func_extract_archives ()
7121 func_extract_an_archive "$my_xdir" "$my_xabs"
7124 - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
7125 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
7128 func_extract_archives_result="$my_oldobjs"
7132 -# func_emit_wrapper [arg=no]
7134 -# Emit a libtool wrapper script on stdout.
7135 -# Don't directly open a file because we may want to
7136 -# incorporate the script contents within a cygwin/mingw
7137 -# wrapper executable. Must ONLY be called from within
7138 -# func_mode_link because it depends on a number of variables
7141 +# func_emit_wrapper_part1 [arg=no]
7143 -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
7144 -# variable will take. If 'yes', then the emitted script
7145 -# will assume that the directory in which it is stored is
7146 -# the $objdir directory. This is a cygwin/mingw-specific
7148 -func_emit_wrapper ()
7150 - func_emit_wrapper_arg1=${1-no}
7151 +# Emit the first part of a libtool wrapper script on stdout.
7152 +# For more information, see the description associated with
7153 +# func_emit_wrapper(), below.
7154 +func_emit_wrapper_part1 ()
7156 + func_emit_wrapper_part1_arg1=no
7157 + if test -n "$1" ; then
7158 + func_emit_wrapper_part1_arg1=$1
7163 @@ -2961,6 +2718,7 @@ func_emit_wrapper ()
7165 # Sed substitution that helps us do robust quoting. It backslashifies
7166 # metacharacters that are still active within double-quoted strings.
7167 +Xsed='${SED} -e 1s/^X//'
7168 sed_quote_subst='$sed_quote_subst'
7170 # Be Bourne compatible
7171 @@ -2991,132 +2749,31 @@ if test \"\$libtool_install_magic\" = \"
7173 # When we are sourced in execute mode, \$file and \$ECHO are already set.
7174 if test \"\$libtool_execute_magic\" != \"$magic\"; then
7177 - qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
7180 -# A function that is used when there is no print builtin or printf.
7181 -func_fallback_echo ()
7183 - eval 'cat <<_LTECHO_EOF
7190 -# Very basic option parsing. These options are (a) specific to
7191 -# the libtool wrapper, (b) are identical between the wrapper
7192 -# /script/ and the wrapper /executable/ which is used only on
7193 -# windows platforms, and (c) all begin with the string "--lt-"
7194 -# (application programs are unlikely to have options which match
7197 -# There are only two supported options: --lt-debug and
7198 -# --lt-dump-script. There is, deliberately, no --lt-help.
7200 -# The first argument to this parsing function should be the
7201 -# script's $0 value, followed by "$@".
7203 -func_parse_lt_options ()
7205 - lt_script_arg0=\$0
7209 - case \"\$lt_opt\" in
7210 - --lt-debug) lt_option_debug=1 ;;
7212 - lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
7213 - test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
7214 - lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
7215 - cat \"\$lt_dump_D/\$lt_dump_F\"
7219 - \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
7225 - # Print the debug banner immediately:
7226 - if test -n \"\$lt_option_debug\"; then
7227 - echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
7231 -# Used when --lt-debug. Prints its arguments to stdout
7232 -# (redirection is the responsibility of the caller)
7233 -func_lt_dump_args ()
7238 - \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
7239 - lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
7243 -# Core function for launching the target application
7244 -func_exec_program_core ()
7248 - # Backslashes separate directories on plain windows
7249 - *-*-mingw | *-*-os2* | *-cegcc*)
7251 - if test -n \"\$lt_option_debug\"; then
7252 - \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
7253 - func_lt_dump_args \${1+\"\$@\"} 1>&2
7255 - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
7261 - if test -n \"\$lt_option_debug\"; then
7262 - \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
7263 - func_lt_dump_args \${1+\"\$@\"} 1>&2
7265 - exec \"\$progdir/\$program\" \${1+\"\$@\"}
7268 + # Make sure echo works.
7269 + if test \"X\$1\" = X--no-reexec; then
7270 + # Discard the --no-reexec flag, and continue.
7272 + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
7273 + # Yippee, \$ECHO works!
7276 + # Restart under the correct shell, and then maybe \$ECHO will work.
7277 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
7284 - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
7288 -# A function to encapsulate launching the target application
7289 -# Strips options in the --lt-* namespace from \$@ and
7290 -# launches target application with the remaining arguments.
7291 -func_exec_program ()
7295 - case \$lt_wr_arg in
7297 - *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
7301 - func_exec_program_core \${1+\"\$@\"}
7305 - func_parse_lt_options \"\$0\" \${1+\"\$@\"}
7308 # Find the directory that this script lives in.
7309 - thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
7310 + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
7311 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
7313 # Follow symbolic links until we get to the real thisdir.
7314 - file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
7315 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
7316 while test -n \"\$file\"; do
7317 - destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
7318 + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
7320 # If there was a directory component, then change thisdir.
7321 if test \"x\$destdir\" != \"x\$file\"; then
7322 @@ -3126,13 +2783,30 @@ func_exec_program ()
7326 - file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
7327 - file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
7328 + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
7329 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
7333 +# end: func_emit_wrapper_part1
7335 +# func_emit_wrapper_part2 [arg=no]
7337 +# Emit the second part of a libtool wrapper script on stdout.
7338 +# For more information, see the description associated with
7339 +# func_emit_wrapper(), below.
7340 +func_emit_wrapper_part2 ()
7342 + func_emit_wrapper_part2_arg1=no
7343 + if test -n "$1" ; then
7344 + func_emit_wrapper_part2_arg1=$1
7349 # Usually 'no', except on cygwin/mingw when embedded into
7351 - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
7352 + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
7353 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
7354 # special case for '.'
7355 if test \"\$thisdir\" = \".\"; then
7356 @@ -3140,7 +2814,7 @@ func_exec_program ()
7358 # remove .libs from thisdir
7359 case \"\$thisdir\" in
7360 - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
7361 + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
7362 $objdir ) thisdir=. ;;
7365 @@ -3203,7 +2877,7 @@ func_exec_program ()
7367 # Some systems cannot cope with colon-terminated $shlibpath_var
7368 # The second colon is a workaround for a bug in BeOS R4 sed
7369 - $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
7370 + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
7372 export $shlibpath_var
7374 @@ -3220,18 +2894,64 @@ func_exec_program ()
7376 if test \"\$libtool_execute_magic\" != \"$magic\"; then
7377 # Run the actual program with our arguments.
7378 - func_exec_program \${1+\"\$@\"}
7381 + # Backslashes separate directories on plain windows
7382 + *-*-mingw | *-*-os2* | *-cegcc*)
7384 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
7390 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
7395 + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
7399 # The program doesn't exist.
7400 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
7401 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
7402 - \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
7403 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
7409 +# end: func_emit_wrapper_part2
7412 +# func_emit_wrapper [arg=no]
7414 +# Emit a libtool wrapper script on stdout.
7415 +# Don't directly open a file because we may want to
7416 +# incorporate the script contents within a cygwin/mingw
7417 +# wrapper executable. Must ONLY be called from within
7418 +# func_mode_link because it depends on a number of variables
7421 +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
7422 +# variable will take. If 'yes', then the emitted script
7423 +# will assume that the directory in which it is stored is
7424 +# the $objdir directory. This is a cygwin/mingw-specific
7426 +func_emit_wrapper ()
7428 + func_emit_wrapper_arg1=no
7429 + if test -n "$1" ; then
7430 + func_emit_wrapper_arg1=$1
7433 + # split this up so that func_emit_cwrapperexe_src
7434 + # can call each part independently.
7435 + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
7436 + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
7440 # func_to_host_path arg
7441 @@ -3258,19 +2978,23 @@ fi\
7442 func_to_host_path ()
7444 func_to_host_path_result="$1"
7445 - if test -n "$1"; then
7446 + if test -n "$1" ; then
7449 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
7451 *mingw* ) # actually, msys
7452 # awkward: cmd appends spaces to result
7453 - func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
7454 - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
7455 + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
7456 + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
7457 + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
7458 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
7459 + $SED -e "$lt_sed_naive_backslashify"`
7462 - func_to_host_path_result=`cygpath -w "$1" |
7463 - $SED -e "$lt_sed_naive_backslashify"`
7464 + func_to_host_path_tmp1=`cygpath -w "$1"`
7465 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
7466 + $SED -e "$lt_sed_naive_backslashify"`
7469 # Unfortunately, winepath does not exit with a non-zero
7470 @@ -3282,17 +3006,17 @@ func_to_host_path ()
7471 # the odd construction:
7472 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
7473 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
7474 - func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
7475 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
7476 $SED -e "$lt_sed_naive_backslashify"`
7478 # Allow warning below.
7479 - func_to_host_path_result=
7480 + func_to_host_path_result=""
7484 if test -z "$func_to_host_path_result" ; then
7485 func_error "Could not determine host path corresponding to"
7486 - func_error " \`$1'"
7487 + func_error " '$1'"
7488 func_error "Continuing, but uninstalled executables may not work."
7490 func_to_host_path_result="$1"
7491 @@ -3325,24 +3049,30 @@ func_to_host_path ()
7492 func_to_host_pathlist ()
7494 func_to_host_pathlist_result="$1"
7495 - if test -n "$1"; then
7496 + if test -n "$1" ; then
7499 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
7500 # Remove leading and trailing path separator characters from
7501 # ARG. msys behavior is inconsistent here, cygpath turns them
7502 # into '.;' and ';.', and winepath ignores them completely.
7503 - func_stripname : : "$1"
7504 - func_to_host_pathlist_tmp1=$func_stripname_result
7505 + func_to_host_pathlist_tmp2="$1"
7506 + # Once set for this call, this variable should not be
7507 + # reassigned. It is used in tha fallback case.
7508 + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
7509 + $SED -e 's|^:*||' -e 's|:*$||'`
7511 *mingw* ) # Actually, msys.
7512 # Awkward: cmd appends spaces to result.
7513 - func_to_host_pathlist_result=`
7514 - ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
7515 - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
7516 + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
7517 + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
7518 + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
7519 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
7520 + $SED -e "$lt_sed_naive_backslashify"`
7523 - func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
7524 + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
7525 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
7526 $SED -e "$lt_sed_naive_backslashify"`
7529 @@ -3358,17 +3088,18 @@ func_to_host_pathlist ()
7530 if test -z "$func_to_host_pathlist_result" ; then
7531 func_to_host_pathlist_result="$func_to_host_path_result"
7533 - func_append func_to_host_pathlist_result ";$func_to_host_path_result"
7534 + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
7540 IFS=$func_to_host_pathlist_oldIFS
7543 - if test -z "$func_to_host_pathlist_result"; then
7544 + if test -z "$func_to_host_pathlist_result" ; then
7545 func_error "Could not determine the host path(s) corresponding to"
7546 - func_error " \`$1'"
7547 + func_error " '$1'"
7548 func_error "Continuing, but uninstalled executables may not work."
7549 # Fallback. This may break if $1 contains DOS-style drive
7550 # specifications. The fix is not to complicate the expression
7551 @@ -3385,7 +3116,7 @@ func_to_host_pathlist ()
7555 - *: ) func_append func_to_host_pathlist_result ";"
7556 + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
7560 @@ -3410,23 +3141,31 @@ func_emit_cwrapperexe_src ()
7562 This wrapper executable should never be moved out of the build directory.
7563 If it is, it will not operate correctly.
7565 + Currently, it simply execs the wrapper *script* "$SHELL $output",
7566 + but could eventually absorb all of the scripts functionality and
7567 + exec $objdir/$outputname directly.
7572 -# define _CRT_SECURE_NO_DEPRECATE 1
7577 # include <direct.h>
7578 # include <process.h>
7580 +# define setmode _setmode
7582 # include <unistd.h>
7583 # include <stdint.h>
7586 +# define HAVE_SETENV
7587 +# ifdef __STRICT_ANSI__
7588 +char *realpath (const char *, char *);
7589 +int putenv (char *);
7590 +int setenv (const char *, const char *, int);
7595 @@ -3438,44 +3177,6 @@ EOF
7597 #include <sys/stat.h>
7599 -/* declarations of non-ANSI functions */
7600 -#if defined(__MINGW32__)
7601 -# ifdef __STRICT_ANSI__
7602 -int _putenv (const char *);
7604 -#elif defined(__CYGWIN__)
7605 -# ifdef __STRICT_ANSI__
7606 -char *realpath (const char *, char *);
7607 -int putenv (char *);
7608 -int setenv (const char *, const char *, int);
7610 -/* #elif defined (other platforms) ... */
7613 -/* portability defines, excluding path handling macros */
7614 -#if defined(_MSC_VER)
7615 -# define setmode _setmode
7616 -# define stat _stat
7617 -# define chmod _chmod
7618 -# define getcwd _getcwd
7619 -# define putenv _putenv
7620 -# define S_IXUSR _S_IEXEC
7621 -# ifndef _INTPTR_T_DEFINED
7622 -# define _INTPTR_T_DEFINED
7623 -# define intptr_t int
7625 -#elif defined(__MINGW32__)
7626 -# define setmode _setmode
7627 -# define stat _stat
7628 -# define chmod _chmod
7629 -# define getcwd _getcwd
7630 -# define putenv _putenv
7631 -#elif defined(__CYGWIN__)
7632 -# define HAVE_SETENV
7633 -# define FOPEN_WB "wb"
7634 -/* #elif defined (other platforms) ... */
7637 #if defined(PATH_MAX)
7638 # define LT_PATHMAX PATH_MAX
7639 #elif defined(MAXPATHLEN)
7640 @@ -3491,7 +3192,14 @@ int setenv (const char *, const char *,
7644 -/* path handling portability macros */
7646 +# define S_IXUSR _S_IEXEC
7647 +# define stat _stat
7648 +# ifndef _INTPTR_T_DEFINED
7649 +# define intptr_t int
7653 #ifndef DIR_SEPARATOR
7654 # define DIR_SEPARATOR '/'
7655 # define PATH_SEPARATOR ':'
7656 @@ -3522,6 +3230,10 @@ int setenv (const char *, const char *,
7657 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
7658 #endif /* PATH_SEPARATOR_2 */
7661 +# define FOPEN_WB "wb"
7665 # define FOPEN_WB "w"
7667 @@ -3534,13 +3246,22 @@ int setenv (const char *, const char *,
7668 if (stale) { free ((void *) stale); stale = 0; } \
7671 -#if defined(LT_DEBUGWRAPPER)
7672 -static int lt_debug = 1;
7673 +#undef LTWRAPPER_DEBUGPRINTF
7674 +#if defined DEBUGWRAPPER
7675 +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
7677 +ltwrapper_debugprintf (const char *fmt, ...)
7680 + va_start (args, fmt);
7681 + (void) vfprintf (stderr, fmt, args);
7685 -static int lt_debug = 0;
7686 +# define LTWRAPPER_DEBUGPRINTF(args)
7689 -const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
7690 +const char *program_name = NULL;
7692 void *xmalloc (size_t num);
7693 char *xstrdup (const char *string);
7694 @@ -3550,17 +3271,31 @@ char *chase_symlinks (const char *pathsp
7695 int make_executable (const char *path);
7696 int check_executable (const char *path);
7697 char *strendzap (char *str, const char *pat);
7698 -void lt_debugprintf (const char *file, int line, const char *fmt, ...);
7699 -void lt_fatal (const char *file, int line, const char *message, ...);
7700 -static const char *nonnull (const char *s);
7701 -static const char *nonempty (const char *s);
7702 +void lt_fatal (const char *message, ...);
7703 void lt_setenv (const char *name, const char *value);
7704 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
7705 +void lt_opt_process_env_set (const char *arg);
7706 +void lt_opt_process_env_prepend (const char *arg);
7707 +void lt_opt_process_env_append (const char *arg);
7708 +int lt_split_name_value (const char *arg, char** name, char** value);
7709 void lt_update_exe_path (const char *name, const char *value);
7710 void lt_update_lib_path (const char *name, const char *value);
7711 -char **prepare_spawn (char **argv);
7712 -void lt_dump_script (FILE *f);
7714 +static const char *script_text_part1 =
7717 + func_emit_wrapper_part1 yes |
7718 + $SED -e 's/\([\\"]\)/\\\1/g' \
7719 + -e 's/^/ "/' -e 's/$/\\n"/'
7723 +static const char *script_text_part2 =
7725 + func_emit_wrapper_part2 yes |
7726 + $SED -e 's/\([\\"]\)/\\\1/g' \
7727 + -e 's/^/ "/' -e 's/$/\\n"/'
7731 const char * MAGIC_EXE = "$magic_exe";
7732 @@ -3605,10 +3340,24 @@ EOF
7735 #define LTWRAPPER_OPTION_PREFIX "--lt-"
7736 +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
7738 +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
7739 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
7741 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
7742 -static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
7744 +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
7745 +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
7746 + /* argument is putenv-style "foo=bar", value of foo is set to bar */
7748 +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
7749 +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
7750 + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
7752 +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
7753 +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
7754 + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
7757 main (int argc, char *argv[])
7758 @@ -3625,13 +3374,10 @@ main (int argc, char *argv[])
7761 program_name = (char *) xstrdup (base_name (argv[0]));
7762 - newargz = XMALLOC (char *, argc + 1);
7763 + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
7764 + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
7766 - /* very simple arg parsing; don't want to rely on getopt
7767 - * also, copy all non cwrapper options to newargz, except
7768 - * argz[0], which is handled differently
7771 + /* very simple arg parsing; don't want to rely on getopt */
7772 for (i = 1; i < argc; i++)
7774 if (strcmp (argv[i], dumpscript_opt) == 0)
7775 @@ -3645,57 +3391,25 @@ EOF
7779 - lt_dump_script (stdout);
7780 + printf ("%s", script_text_part1);
7781 + printf ("%s", script_text_part2);
7784 - if (strcmp (argv[i], debug_opt) == 0)
7789 - if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
7791 - /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
7792 - namespace, but it is not one of the ones we know about and
7793 - have already dealt with, above (inluding dump-script), then
7794 - report an error. Otherwise, targets might begin to believe
7795 - they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
7796 - namespace. The first time any user complains about this, we'll
7797 - need to make LTWRAPPER_OPTION_PREFIX a configure-time option
7798 - or a configure.ac-settable value.
7800 - lt_fatal (__FILE__, __LINE__,
7801 - "unrecognized %s option: '%s'",
7802 - ltwrapper_option_prefix, argv[i]);
7804 - /* otherwise ... */
7805 - newargz[++newargc] = xstrdup (argv[i]);
7807 - newargz[++newargc] = NULL;
7811 - /* The GNU banner must be the first non-error debug message */
7812 - lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
7815 - lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
7816 - lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
7818 + newargz = XMALLOC (char *, argc + 1);
7819 tmp_pathspec = find_executable (argv[0]);
7820 if (tmp_pathspec == NULL)
7821 - lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
7822 - lt_debugprintf (__FILE__, __LINE__,
7823 - "(main) found exe (before symlink chase) at: %s\n",
7825 + lt_fatal ("Couldn't find %s", argv[0]);
7826 + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
7829 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
7830 - lt_debugprintf (__FILE__, __LINE__,
7831 - "(main) found exe (after symlink chase) at: %s\n",
7832 - actual_cwrapper_path);
7833 + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
7834 + actual_cwrapper_path));
7835 XFREE (tmp_pathspec);
7837 - actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
7838 + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
7839 strendzap (actual_cwrapper_path, actual_cwrapper_name);
7841 /* wrapper name transforms */
7842 @@ -3713,9 +3427,8 @@ EOF
7843 target_name = tmp_pathspec;
7846 - lt_debugprintf (__FILE__, __LINE__,
7847 - "(main) libtool target name: %s\n",
7849 + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
7854 @@ -3768,12 +3481,77 @@ EOF
7855 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
7856 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
7858 - lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
7859 - nonnull (lt_argv_zero));
7861 + for (i = 1; i < argc; i++)
7863 + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
7865 + if (argv[i][env_set_opt_len] == '=')
7867 + const char *p = argv[i] + env_set_opt_len + 1;
7868 + lt_opt_process_env_set (p);
7870 + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
7872 + lt_opt_process_env_set (argv[++i]); /* don't copy */
7875 + lt_fatal ("%s missing required argument", env_set_opt);
7878 + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
7880 + if (argv[i][env_prepend_opt_len] == '=')
7882 + const char *p = argv[i] + env_prepend_opt_len + 1;
7883 + lt_opt_process_env_prepend (p);
7885 + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
7887 + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
7890 + lt_fatal ("%s missing required argument", env_prepend_opt);
7893 + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
7895 + if (argv[i][env_append_opt_len] == '=')
7897 + const char *p = argv[i] + env_append_opt_len + 1;
7898 + lt_opt_process_env_append (p);
7900 + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
7902 + lt_opt_process_env_append (argv[++i]); /* don't copy */
7905 + lt_fatal ("%s missing required argument", env_append_opt);
7908 + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
7910 + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
7911 + namespace, but it is not one of the ones we know about and
7912 + have already dealt with, above (inluding dump-script), then
7913 + report an error. Otherwise, targets might begin to believe
7914 + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
7915 + namespace. The first time any user complains about this, we'll
7916 + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
7917 + or a configure.ac-settable value.
7919 + lt_fatal ("Unrecognized option in %s namespace: '%s'",
7920 + ltwrapper_option_prefix, argv[i]);
7922 + /* otherwise ... */
7923 + newargz[++newargc] = xstrdup (argv[i]);
7925 + newargz[++newargc] = NULL;
7927 + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
7928 for (i = 0; i < newargc; i++)
7930 - lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
7931 - i, nonnull (newargz[i]));
7932 + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
7936 @@ -3782,14 +3560,11 @@ EOF
7939 /* execv doesn't actually work on mingw as expected on unix */
7940 - newargz = prepare_spawn (newargz);
7941 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
7944 /* failed to start process */
7945 - lt_debugprintf (__FILE__, __LINE__,
7946 - "(main) failed to launch target \"%s\": %s\n",
7947 - lt_argv_zero, nonnull (strerror (errno)));
7948 + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
7952 @@ -3811,7 +3586,7 @@ xmalloc (size_t num)
7954 void *p = (void *) malloc (num);
7956 - lt_fatal (__FILE__, __LINE__, "memory exhausted");
7957 + lt_fatal ("Memory exhausted");
7961 @@ -3845,8 +3620,8 @@ check_executable (const char *path)
7965 - lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
7967 + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
7968 + path ? (*path ? path : "EMPTY!") : "NULL!"));
7969 if ((!path) || (!*path))
7972 @@ -3863,8 +3638,8 @@ make_executable (const char *path)
7976 - lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
7978 + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
7979 + path ? (*path ? path : "EMPTY!") : "NULL!"));
7980 if ((!path) || (!*path))
7983 @@ -3890,8 +3665,8 @@ find_executable (const char *wrapper)
7987 - lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
7988 - nonempty (wrapper));
7989 + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
7990 + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
7992 if ((wrapper == NULL) || (*wrapper == '\0'))
7994 @@ -3944,8 +3719,7 @@ find_executable (const char *wrapper)
7996 /* empty path: current directory */
7997 if (getcwd (tmp, LT_PATHMAX) == NULL)
7998 - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
7999 - nonnull (strerror (errno)));
8000 + lt_fatal ("getcwd failed");
8001 tmp_len = strlen (tmp);
8003 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
8004 @@ -3970,8 +3744,7 @@ find_executable (const char *wrapper)
8006 /* Relative path | not found in path: prepend cwd */
8007 if (getcwd (tmp, LT_PATHMAX) == NULL)
8008 - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
8009 - nonnull (strerror (errno)));
8010 + lt_fatal ("getcwd failed");
8011 tmp_len = strlen (tmp);
8012 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
8013 memcpy (concat_name, tmp, tmp_len);
8014 @@ -3997,9 +3770,8 @@ chase_symlinks (const char *pathspec)
8015 int has_symlinks = 0;
8016 while (strlen (tmp_pathspec) && !has_symlinks)
8018 - lt_debugprintf (__FILE__, __LINE__,
8019 - "checking path component for symlinks: %s\n",
8021 + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
8023 if (lstat (tmp_pathspec, &s) == 0)
8025 if (S_ISLNK (s.st_mode) != 0)
8026 @@ -4021,9 +3793,8 @@ chase_symlinks (const char *pathspec)
8030 - lt_fatal (__FILE__, __LINE__,
8031 - "error accessing file \"%s\": %s",
8032 - tmp_pathspec, nonnull (strerror (errno)));
8033 + char *errstr = strerror (errno);
8034 + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
8037 XFREE (tmp_pathspec);
8038 @@ -4036,8 +3807,7 @@ chase_symlinks (const char *pathspec)
8039 tmp_pathspec = realpath (pathspec, buf);
8040 if (tmp_pathspec == 0)
8042 - lt_fatal (__FILE__, __LINE__,
8043 - "could not follow symlinks for %s", pathspec);
8044 + lt_fatal ("Could not follow symlinks for %s", pathspec);
8046 return xstrdup (tmp_pathspec);
8048 @@ -4063,25 +3833,11 @@ strendzap (char *str, const char *pat)
8053 -lt_debugprintf (const char *file, int line, const char *fmt, ...)
8058 - (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
8059 - va_start (args, fmt);
8060 - (void) vfprintf (stderr, fmt, args);
8066 -lt_error_core (int exit_status, const char *file,
8067 - int line, const char *mode,
8068 +lt_error_core (int exit_status, const char *mode,
8069 const char *message, va_list ap)
8071 - fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
8072 + fprintf (stderr, "%s: %s: ", program_name, mode);
8073 vfprintf (stderr, message, ap);
8074 fprintf (stderr, ".\n");
8076 @@ -4090,32 +3846,20 @@ lt_error_core (int exit_status, const ch
8080 -lt_fatal (const char *file, int line, const char *message, ...)
8081 +lt_fatal (const char *message, ...)
8084 va_start (ap, message);
8085 - lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
8086 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
8090 -static const char *
8091 -nonnull (const char *s)
8093 - return s ? s : "(null)";
8096 -static const char *
8097 -nonempty (const char *s)
8099 - return (s && !*s) ? "(empty)" : nonnull (s);
8103 lt_setenv (const char *name, const char *value)
8105 - lt_debugprintf (__FILE__, __LINE__,
8106 - "(lt_setenv) setting '%s' to '%s'\n",
8107 - nonnull (name), nonnull (value));
8108 + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
8109 + (name ? name : "<NULL>"),
8110 + (value ? value : "<NULL>")));
8113 /* always make a copy, for consistency with !HAVE_SETENV */
8114 @@ -4160,12 +3904,95 @@ lt_extend_str (const char *orig_value, c
8119 +lt_split_name_value (const char *arg, char** name, char** value)
8123 + if (!arg || !*arg)
8126 + p = strchr (arg, (int)'=');
8131 + *value = xstrdup (++p);
8133 + len = strlen (arg) - strlen (*value);
8134 + *name = XMALLOC (char, len);
8135 + strncpy (*name, arg, len-1);
8136 + (*name)[len - 1] = '\0';
8142 +lt_opt_process_env_set (const char *arg)
8144 + char *name = NULL;
8145 + char *value = NULL;
8147 + if (lt_split_name_value (arg, &name, &value) != 0)
8151 + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
8154 + lt_setenv (name, value);
8160 +lt_opt_process_env_prepend (const char *arg)
8162 + char *name = NULL;
8163 + char *value = NULL;
8164 + char *new_value = NULL;
8166 + if (lt_split_name_value (arg, &name, &value) != 0)
8170 + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
8173 + new_value = lt_extend_str (getenv (name), value, 0);
8174 + lt_setenv (name, new_value);
8175 + XFREE (new_value);
8181 +lt_opt_process_env_append (const char *arg)
8183 + char *name = NULL;
8184 + char *value = NULL;
8185 + char *new_value = NULL;
8187 + if (lt_split_name_value (arg, &name, &value) != 0)
8191 + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
8194 + new_value = lt_extend_str (getenv (name), value, 1);
8195 + lt_setenv (name, new_value);
8196 + XFREE (new_value);
8202 lt_update_exe_path (const char *name, const char *value)
8204 - lt_debugprintf (__FILE__, __LINE__,
8205 - "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
8206 - nonnull (name), nonnull (value));
8207 + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
8208 + (name ? name : "<NULL>"),
8209 + (value ? value : "<NULL>")));
8211 if (name && *name && value && *value)
8213 @@ -4184,9 +4011,9 @@ lt_update_exe_path (const char *name, co
8215 lt_update_lib_path (const char *name, const char *value)
8217 - lt_debugprintf (__FILE__, __LINE__,
8218 - "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
8219 - nonnull (name), nonnull (value));
8220 + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
8221 + (name ? name : "<NULL>"),
8222 + (value ? value : "<NULL>")));
8224 if (name && *name && value && *value)
8226 @@ -4196,152 +4023,11 @@ lt_update_lib_path (const char *name, co
8235 -/* Prepares an argument vector before calling spawn().
8236 - Note that spawn() does not by itself call the command interpreter
8237 - (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
8238 - ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
8240 - v.dwPlatformId == VER_PLATFORM_WIN32_NT;
8241 - }) ? "cmd.exe" : "command.com").
8242 - Instead it simply concatenates the arguments, separated by ' ', and calls
8243 - CreateProcess(). We must quote the arguments since Win32 CreateProcess()
8244 - interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
8246 - - Space and tab are interpreted as delimiters. They are not treated as
8247 - delimiters if they are surrounded by double quotes: "...".
8248 - - Unescaped double quotes are removed from the input. Their only effect is
8249 - that within double quotes, space and tab are treated like normal
8251 - - Backslashes not followed by double quotes are not special.
8252 - - But 2*n+1 backslashes followed by a double quote become
8253 - n backslashes followed by a double quote (n >= 0):
8258 -#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
8259 -#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
8261 -prepare_spawn (char **argv)
8267 - /* Count number of arguments. */
8268 - for (argc = 0; argv[argc] != NULL; argc++)
8271 - /* Allocate new argument vector. */
8272 - new_argv = XMALLOC (char *, argc + 1);
8274 - /* Put quoted arguments into the new argument vector. */
8275 - for (i = 0; i < argc; i++)
8277 - const char *string = argv[i];
8279 - if (string[0] == '\0')
8280 - new_argv[i] = xstrdup ("\"\"");
8281 - else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
8283 - int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
8285 - unsigned int backslashes;
8287 - char *quoted_string;
8294 - for (s = string; *s != '\0'; s++)
8298 - length += backslashes + 1;
8306 - length += backslashes + 1;
8308 - quoted_string = XMALLOC (char, length + 1);
8310 - p = quoted_string;
8314 - for (s = string; *s != '\0'; s++)
8320 - for (j = backslashes + 1; j > 0; j--)
8332 - for (j = backslashes; j > 0; j--)
8338 - new_argv[i] = quoted_string;
8341 - new_argv[i] = (char *) string;
8343 - new_argv[argc] = NULL;
8352 -void lt_dump_script (FILE* f)
8355 - func_emit_wrapper yes |
8356 - $SED -e 's/\([\\"]\)/\\\1/g' \
8357 - -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
8363 # end: func_emit_cwrapperexe_src
8365 -# func_win32_import_lib_p ARG
8366 -# True if ARG is an import lib, as indicated by $file_magic_cmd
8367 -func_win32_import_lib_p ()
8370 - case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
8376 # func_mode_link arg...
8379 @@ -4386,7 +4072,6 @@ func_mode_link ()
8380 new_inherited_linker_flags=
8387 @@ -4479,11 +4164,6 @@ func_mode_link ()
8397 if test "$preload" = no; then
8398 # Add the symbol object into the linking commands.
8399 @@ -4745,11 +4425,6 @@ func_mode_link ()
8411 @@ -4828,7 +4503,7 @@ func_mode_link ()
8414 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8415 - testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
8416 + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
8417 case :$dllsearchpath: in
8419 ::) dllsearchpath=$dir;;
8420 @@ -4847,7 +4522,7 @@ func_mode_link ()
8422 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
8424 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
8425 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
8426 # These systems don't actually have a C or math library (as such)
8429 @@ -5033,7 +4708,7 @@ func_mode_link ()
8430 for flag in $args; do
8432 func_quote_for_eval "$flag"
8433 - arg="$arg $func_quote_for_eval_result"
8434 + arg="$arg $wl$func_quote_for_eval_result"
8435 compiler_flags="$compiler_flags $func_quote_for_eval_result"
8438 @@ -5079,19 +4754,18 @@ func_mode_link ()
8439 arg="$func_quote_for_eval_result"
8442 - # Flags to be passed through unchanged, with rationale:
8443 - # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
8444 - # -r[0-9][0-9]* specify processor for the SGI compiler
8445 - # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
8446 - # +DA*, +DD* enable 64-bit mode for the HP compiler
8447 - # -q* compiler args for the IBM compiler
8448 - # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
8449 - # -F/path path to uninstalled frameworks, gcc on darwin
8450 - # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
8451 - # @file GCC response files
8452 - # -tp=* Portland pgcc target processor selection
8453 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
8454 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
8455 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
8456 + # +DA*, +DD* enable 64-bit mode on the HP compiler
8457 + # -q* pass through compiler args for the IBM compiler
8458 + # -m*, -t[45]*, -txscale* pass through architecture-specific
8459 + # compiler args for GCC
8460 + # -F/path gives path to uninstalled frameworks, gcc on darwin
8461 + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
8462 + # @file GCC response files
8463 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
8464 - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
8465 + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
8466 func_quote_for_eval "$arg"
8467 arg="$func_quote_for_eval_result"
8468 func_append compile_command " $arg"
8469 @@ -5251,7 +4925,7 @@ func_mode_link ()
8471 if test -n "$shlibpath_var"; then
8472 # get the directories listed in $shlibpath_var
8473 - eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
8474 + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
8478 @@ -5359,7 +5033,10 @@ func_mode_link ()
8480 dlopen) libs="$dlfiles" ;;
8481 dlpreopen) libs="$dlprefiles" ;;
8482 - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
8484 + libs="$deplibs %DEPLIBS%"
8485 + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
8489 if test "$linkmode,$pass" = "lib,dlpreopen"; then
8490 @@ -5374,8 +5051,7 @@ func_mode_link ()
8491 # Collect preopened libtool deplibs, except any this library
8492 # has declared as weak libs
8493 for deplib in $dependency_libs; do
8494 - func_basename "$deplib"
8495 - deplib_base=$func_basename_result
8496 + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
8497 case " $weak_libs " in
8498 *" $deplib_base "*) ;;
8499 *) deplibs="$deplibs $deplib" ;;
8500 @@ -5554,7 +5230,7 @@ func_mode_link ()
8502 set dummy $deplibs_check_method; shift
8503 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
8504 - if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
8505 + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
8506 | $EGREP "$match_pattern_regex" > /dev/null; then
8509 @@ -5564,15 +5240,15 @@ func_mode_link ()
8512 if test "$valid_a_lib" != yes; then
8515 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
8516 - echo "*** I have the capability to make that library automatically link in when"
8517 - echo "*** you link to this library. But I can only do this if you have a"
8518 - echo "*** shared version of the library, which you do not appear to have"
8519 - echo "*** because the file extensions .$libext of this argument makes me believe"
8520 - echo "*** that it is just a static archive that I should not use here."
8521 + $ECHO "*** I have the capability to make that library automatically link in when"
8522 + $ECHO "*** you link to this library. But I can only do this if you have a"
8523 + $ECHO "*** shared version of the library, which you do not appear to have"
8524 + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
8525 + $ECHO "*** that it is just a static archive that I should not use here."
8529 $ECHO "*** Warning: Linking the shared library $output against the"
8530 $ECHO "*** static library $deplib is not portable!"
8531 deplibs="$deplib $deplibs"
8532 @@ -5645,7 +5321,7 @@ func_mode_link ()
8534 # Convert "-framework foo" to "foo.ltframework"
8535 if test -n "$inherited_linker_flags"; then
8536 - tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
8537 + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
8538 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
8539 case " $new_inherited_linker_flags " in
8540 *" $tmp_inherited_linker_flag "*) ;;
8541 @@ -5653,7 +5329,7 @@ func_mode_link ()
8545 - dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8546 + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8547 if test "$linkmode,$pass" = "lib,link" ||
8548 test "$linkmode,$pass" = "prog,scan" ||
8549 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
8550 @@ -5671,19 +5347,19 @@ func_mode_link ()
8551 # It is a libtool convenience library, so add in its objects.
8552 convenience="$convenience $ladir/$objdir/$old_library"
8553 old_convenience="$old_convenience $ladir/$objdir/$old_library"
8555 + for deplib in $dependency_libs; do
8556 + deplibs="$deplib $deplibs"
8557 + if $opt_duplicate_deps ; then
8558 + case "$tmp_libs " in
8559 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
8562 + tmp_libs="$tmp_libs $deplib"
8564 elif test "$linkmode" != prog && test "$linkmode" != lib; then
8565 func_fatal_error "\`$lib' is not a convenience library"
8568 - for deplib in $dependency_libs; do
8569 - deplibs="$deplib $deplibs"
8570 - if $opt_duplicate_deps ; then
8571 - case "$tmp_libs " in
8572 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
8575 - tmp_libs="$tmp_libs $deplib"
8580 @@ -5907,7 +5583,7 @@ func_mode_link ()
8583 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8586 if test "$linkmode" = prog; then
8587 $ECHO "*** Warning: Linking the executable $output against the loadable module"
8589 @@ -6010,9 +5686,9 @@ func_mode_link ()
8590 if test "X$dlopenmodule" != "X$lib"; then
8591 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
8592 if test -z "$old_library" ; then
8594 - echo "*** And there doesn't seem to be a static archive available"
8595 - echo "*** The link will probably fail, sorry"
8597 + $ECHO "*** And there doesn't seem to be a static archive available"
8598 + $ECHO "*** The link will probably fail, sorry"
8600 add="$dir/$old_library"
8602 @@ -6152,21 +5828,21 @@ func_mode_link ()
8604 # Just print a warning and add the library to dependency_libs so
8605 # that the program can be linked against the static library.
8608 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8609 - echo "*** I have the capability to make that library automatically link in when"
8610 - echo "*** you link to this library. But I can only do this if you have a"
8611 - echo "*** shared version of the library, which you do not appear to have."
8612 + $ECHO "*** I have the capability to make that library automatically link in when"
8613 + $ECHO "*** you link to this library. But I can only do this if you have a"
8614 + $ECHO "*** shared version of the library, which you do not appear to have."
8615 if test "$module" = yes; then
8616 - echo "*** But as you try to build a module library, libtool will still create "
8617 - echo "*** a static module, that should work as long as the dlopening application"
8618 - echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8619 + $ECHO "*** But as you try to build a module library, libtool will still create "
8620 + $ECHO "*** a static module, that should work as long as the dlopening application"
8621 + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
8622 if test -z "$global_symbol_pipe"; then
8624 - echo "*** However, this would only work if libtool was able to extract symbol"
8625 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8626 - echo "*** not find such a program. So, this module is probably useless."
8627 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
8629 + $ECHO "*** However, this would only work if libtool was able to extract symbol"
8630 + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
8631 + $ECHO "*** not find such a program. So, this module is probably useless."
8632 + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
8634 if test "$build_old_libs" = no; then
8635 build_libtool_libs=module
8636 @@ -6286,7 +5962,7 @@ func_mode_link ()
8637 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
8638 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
8640 - compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8641 + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8644 dependency_libs="$newdependency_libs"
8645 @@ -6454,7 +6130,7 @@ func_mode_link ()
8646 if test "$deplibs_check_method" != pass_all; then
8647 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8651 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8652 $ECHO "*** objects $objs is not portable!"
8653 libobjs="$libobjs $objs"
8654 @@ -6522,7 +6198,7 @@ func_mode_link ()
8656 revision="$number_revision"
8658 - freebsd-aout|freebsd-elf|qnx|sunos)
8659 + freebsd-aout|freebsd-elf|sunos)
8660 current="$number_major"
8661 revision="$number_minor"
8663 @@ -6534,6 +6210,9 @@ func_mode_link ()
8664 revision="$number_minor"
8665 lt_irix_increment=no
8668 + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
8673 @@ -6756,14 +6435,14 @@ func_mode_link ()
8674 oldlibs="$oldlibs $output_objdir/$libname.$libext"
8676 # Transform .lo files to .o files.
8677 - oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
8678 + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
8681 # Eliminate all temporary directories.
8682 #for path in $notinst_path; do
8683 - # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
8684 - # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
8685 - # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
8686 + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
8687 + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
8688 + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
8691 if test -n "$xrpath"; then
8692 @@ -6804,7 +6483,7 @@ func_mode_link ()
8693 if test "$build_libtool_libs" = yes; then
8694 if test -n "$rpath"; then
8696 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
8697 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
8698 # these systems don't actually have a c library (as such)!
8700 *-*-rhapsody* | *-*-darwin1.[012])
8701 @@ -6889,13 +6568,13 @@ EOF
8702 newdeplibs="$newdeplibs $i"
8707 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
8708 - echo "*** I have the capability to make that library automatically link in when"
8709 - echo "*** you link to this library. But I can only do this if you have a"
8710 - echo "*** shared version of the library, which I believe you do not have"
8711 - echo "*** because a test_compile did reveal that the linker did not use it for"
8712 - echo "*** its dynamic dependency list that programs get resolved with at runtime."
8713 + $ECHO "*** I have the capability to make that library automatically link in when"
8714 + $ECHO "*** you link to this library. But I can only do this if you have a"
8715 + $ECHO "*** shared version of the library, which I believe you do not have"
8716 + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
8717 + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
8721 @@ -6932,22 +6611,22 @@ EOF
8722 newdeplibs="$newdeplibs $i"
8727 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
8728 - echo "*** I have the capability to make that library automatically link in when"
8729 - echo "*** you link to this library. But I can only do this if you have a"
8730 - echo "*** shared version of the library, which you do not appear to have"
8731 - echo "*** because a test_compile did reveal that the linker did not use this one"
8732 - echo "*** as a dynamic dependency that programs can get resolved with at runtime."
8733 + $ECHO "*** I have the capability to make that library automatically link in when"
8734 + $ECHO "*** you link to this library. But I can only do this if you have a"
8735 + $ECHO "*** shared version of the library, which you do not appear to have"
8736 + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
8737 + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
8744 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
8745 - echo "*** make it link in! You will probably need to install it or some"
8746 - echo "*** library that it depends on before this library will be fully"
8747 - echo "*** functional. Installing it before continuing would be even better."
8748 + $ECHO "*** make it link in! You will probably need to install it or some"
8749 + $ECHO "*** library that it depends on before this library will be fully"
8750 + $ECHO "*** functional. Installing it before continuing would be even better."
8754 @@ -6993,7 +6672,7 @@ EOF
8755 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
8757 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
8758 - *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
8759 + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
8762 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
8763 @@ -7008,12 +6687,12 @@ EOF
8765 if test -n "$a_deplib" ; then
8769 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
8770 - echo "*** I have the capability to make that library automatically link in when"
8771 - echo "*** you link to this library. But I can only do this if you have a"
8772 - echo "*** shared version of the library, which you do not appear to have"
8773 - echo "*** because I did check the linker path looking for a file starting"
8774 + $ECHO "*** I have the capability to make that library automatically link in when"
8775 + $ECHO "*** you link to this library. But I can only do this if you have a"
8776 + $ECHO "*** shared version of the library, which you do not appear to have"
8777 + $ECHO "*** because I did check the linker path looking for a file starting"
8778 if test -z "$potlib" ; then
8779 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
8781 @@ -7051,7 +6730,7 @@ EOF
8782 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
8783 for potent_lib in $potential_libs; do
8784 potlib="$potent_lib" # see symlink-check above in file_magic test
8785 - if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
8786 + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
8787 $EGREP "$match_pattern_regex" > /dev/null; then
8788 newdeplibs="$newdeplibs $a_deplib"
8790 @@ -7062,12 +6741,12 @@ EOF
8792 if test -n "$a_deplib" ; then
8796 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
8797 - echo "*** I have the capability to make that library automatically link in when"
8798 - echo "*** you link to this library. But I can only do this if you have a"
8799 - echo "*** shared version of the library, which you do not appear to have"
8800 - echo "*** because I did check the linker path looking for a file starting"
8801 + $ECHO "*** I have the capability to make that library automatically link in when"
8802 + $ECHO "*** you link to this library. But I can only do this if you have a"
8803 + $ECHO "*** shared version of the library, which you do not appear to have"
8804 + $ECHO "*** because I did check the linker path looking for a file starting"
8805 if test -z "$potlib" ; then
8806 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
8808 @@ -7085,25 +6764,25 @@ EOF
8812 - tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
8813 + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
8814 + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
8815 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8816 for i in $predeps $postdeps ; do
8817 # can't use Xsed below, because $i might contain '/'
8818 - tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
8819 + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
8822 - case $tmp_deplibs in
8825 + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
8826 + $GREP . >/dev/null; then
8828 if test "X$deplibs_check_method" = "Xnone"; then
8829 - echo "*** Warning: inter-library dependencies are not supported in this platform."
8830 + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
8832 - echo "*** Warning: inter-library dependencies are not known to be supported."
8833 + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
8835 - echo "*** All declared inter-library dependencies are being dropped."
8836 + $ECHO "*** All declared inter-library dependencies are being dropped."
8843 versuffix=$versuffix_save
8844 @@ -7115,23 +6794,23 @@ EOF
8846 *-*-rhapsody* | *-*-darwin1.[012])
8847 # On Rhapsody replace the C library with the System framework
8848 - newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
8849 + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
8853 if test "$droppeddeps" = yes; then
8854 if test "$module" = yes; then
8856 - echo "*** Warning: libtool could not satisfy all declared inter-library"
8858 + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
8859 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
8860 - echo "*** a static module, that should work as long as the dlopening"
8861 - echo "*** application is linked with the -dlopen flag."
8862 + $ECHO "*** a static module, that should work as long as the dlopening"
8863 + $ECHO "*** application is linked with the -dlopen flag."
8864 if test -z "$global_symbol_pipe"; then
8866 - echo "*** However, this would only work if libtool was able to extract symbol"
8867 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8868 - echo "*** not find such a program. So, this module is probably useless."
8869 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
8871 + $ECHO "*** However, this would only work if libtool was able to extract symbol"
8872 + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
8873 + $ECHO "*** not find such a program. So, this module is probably useless."
8874 + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
8876 if test "$build_old_libs" = no; then
8877 oldlibs="$output_objdir/$libname.$libext"
8878 @@ -7141,16 +6820,16 @@ EOF
8879 build_libtool_libs=no
8882 - echo "*** The inter-library dependencies that have been dropped here will be"
8883 - echo "*** automatically added whenever a program is linked with this library"
8884 - echo "*** or is declared to -dlopen it."
8885 + $ECHO "*** The inter-library dependencies that have been dropped here will be"
8886 + $ECHO "*** automatically added whenever a program is linked with this library"
8887 + $ECHO "*** or is declared to -dlopen it."
8889 if test "$allow_undefined" = no; then
8891 - echo "*** Since this library must not contain undefined symbols,"
8892 - echo "*** because either the platform does not support them or"
8893 - echo "*** it was explicitly requested with -no-undefined,"
8894 - echo "*** libtool will only create a static version of it."
8896 + $ECHO "*** Since this library must not contain undefined symbols,"
8897 + $ECHO "*** because either the platform does not support them or"
8898 + $ECHO "*** it was explicitly requested with -no-undefined,"
8899 + $ECHO "*** libtool will only create a static version of it."
8900 if test "$build_old_libs" = no; then
8901 oldlibs="$output_objdir/$libname.$libext"
8902 build_libtool_libs=module
8903 @@ -7167,9 +6846,9 @@ EOF
8904 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8907 - newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8908 - new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8909 - deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8910 + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8911 + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8912 + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8916 @@ -7291,7 +6970,7 @@ EOF
8919 # Use standard objects if they are pic
8920 - test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8921 + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8922 test "X$libobjs" = "X " && libobjs=
8925 @@ -7357,7 +7036,7 @@ EOF
8926 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8927 tmp_export_symbols="$export_symbols"
8928 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8929 - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8930 + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8933 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8934 @@ -7458,8 +7137,7 @@ EOF
8935 save_libobjs=$libobjs
8938 - func_basename "$output"
8939 - output_la=$func_basename_result
8940 + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
8942 # Clear the reloadable object creation command queue and
8943 # initialize k to one.
8944 @@ -7472,12 +7150,12 @@ EOF
8945 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8946 output=${output_objdir}/${output_la}.lnkscript
8947 func_verbose "creating GNU ld script: $output"
8948 - echo 'INPUT (' > $output
8949 + $ECHO 'INPUT (' > $output
8950 for obj in $save_libobjs
8952 $ECHO "$obj" >> $output
8954 - echo ')' >> $output
8955 + $ECHO ')' >> $output
8956 delfiles="$delfiles $output"
8957 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8958 output=${output_objdir}/${output_la}.lnk
8959 @@ -7519,19 +7197,17 @@ EOF
8960 # command to the queue.
8961 if test "$k" -eq 1 ; then
8962 # The first file doesn't have a previous command to add.
8963 - reload_objs=$objlist
8964 - eval concat_cmds=\"$reload_cmds\"
8965 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
8967 # All subsequent reloadable object files will link in
8968 # the last one created.
8969 - reload_objs="$objlist $last_robj"
8970 - eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
8971 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
8973 last_robj=$output_objdir/$output_la-${k}.$objext
8975 k=$func_arith_result
8976 output=$output_objdir/$output_la-${k}.$objext
8979 func_len " $last_robj"
8980 func_arith $len0 + $func_len_result
8981 len=$func_arith_result
8982 @@ -7541,8 +7217,7 @@ EOF
8983 # reloadable object file. All subsequent reloadable object
8984 # files will link in the last one created.
8985 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8986 - reload_objs="$objlist $last_robj"
8987 - eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
8988 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
8989 if test -n "$last_robj"; then
8990 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
8992 @@ -7601,7 +7276,7 @@ EOF
8993 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8994 tmp_export_symbols="$export_symbols"
8995 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8996 - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8997 + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
9000 if test -n "$orig_export_symbols"; then
9001 @@ -7766,7 +7441,7 @@ EOF
9002 if test -n "$convenience"; then
9003 if test -n "$whole_archive_flag_spec"; then
9004 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
9005 - reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
9006 + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
9008 gentop="$output_objdir/${obj}x"
9009 generated="$generated $gentop"
9010 @@ -7777,7 +7452,7 @@ EOF
9013 # Create the old-style object.
9014 - reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
9015 + 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
9018 func_execute_cmds "$reload_cmds" 'exit $?'
9019 @@ -7837,8 +7512,8 @@ EOF
9021 *-*-rhapsody* | *-*-darwin1.[012])
9022 # On Rhapsody replace the C library is the System framework
9023 - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
9024 - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
9025 + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
9026 + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
9030 @@ -7855,8 +7530,8 @@ EOF
9033 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9034 - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9035 - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9036 + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
9037 + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
9041 @@ -7993,8 +7668,8 @@ EOF
9043 if test -n "$libobjs" && test "$build_old_libs" = yes; then
9044 # Transform all the library objects into standard objects.
9045 - compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
9046 - finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
9047 + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
9048 + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
9051 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
9052 @@ -8006,15 +7681,15 @@ EOF
9054 wrappers_required=yes
9056 - *cegcc* | *mingw32ce*)
9057 - # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
9058 - wrappers_required=no
9060 *cygwin* | *mingw* )
9061 if test "$build_libtool_libs" != yes; then
9062 wrappers_required=no
9066 + # Disable wrappers for cegcc, we are cross compiling anyway.
9067 + wrappers_required=no
9070 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
9071 wrappers_required=no
9072 @@ -8023,7 +7698,7 @@ EOF
9074 if test "$wrappers_required" = no; then
9075 # Replace the output file specification.
9076 - compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
9077 + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
9078 link_command="$compile_command$compile_rpath"
9080 # We have no uninstalled library dependencies, so finalize right now.
9081 @@ -8070,7 +7745,7 @@ EOF
9082 # We don't need to create a wrapper script.
9083 link_command="$compile_var$compile_command$compile_rpath"
9084 # Replace the output file specification.
9085 - link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
9086 + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
9087 # Delete the old output file.
9088 $opt_dry_run || $RM $output
9089 # Link the executable and exit
9090 @@ -8089,7 +7764,7 @@ EOF
9091 if test "$fast_install" != no; then
9092 link_command="$finalize_var$compile_command$finalize_rpath"
9093 if test "$fast_install" = yes; then
9094 - relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
9095 + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
9097 # fast_install is set to needless
9099 @@ -8101,7 +7776,7 @@ EOF
9102 # Replace the output file specification.
9103 - link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
9104 + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
9106 # Delete the old output files.
9107 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
9108 @@ -8125,7 +7800,18 @@ EOF
9111 relink_command="(cd `pwd`; $relink_command)"
9112 - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9113 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9116 + # Quote $ECHO for shipping.
9117 + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
9119 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
9120 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
9122 + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
9124 + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
9127 # Only actually do things if not in dry run mode.
9128 @@ -8246,7 +7932,7 @@ EOF
9129 done | sort | sort -uc >/dev/null 2>&1); then
9132 - echo "copying selected object files to avoid basename conflicts..."
9133 + $ECHO "copying selected object files to avoid basename conflicts..."
9134 gentop="$output_objdir/${outputname}x"
9135 generated="$generated $gentop"
9136 func_mkdir_p "$gentop"
9137 @@ -8357,7 +8043,7 @@ EOF
9139 # Quote the link command for shipping.
9140 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9141 - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9142 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9143 if test "$hardcode_automatic" = yes ; then
9146 @@ -8442,27 +8128,9 @@ EOF
9149 # place dlname in correct position for cygwin
9150 - # In fact, it would be nice if we could use this code for all target
9151 - # systems that can't hard-code library paths into their executables
9152 - # and that have no shared library path variable independent of PATH,
9153 - # but it turns out we can't easily determine that from inspecting
9154 - # libtool variables, so we have to hard-code the OSs to which it
9155 - # applies here; at the moment, that means platforms that use the PE
9156 - # object format with DLL files. See the long comment at the top of
9157 - # tests/bindir.at for full details.
9159 case $host,$output,$installed,$module,$dlname in
9160 - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9161 - # If a -bindir argument was supplied, place the dll there.
9162 - if test "x$bindir" != x ;
9164 - func_relative_path "$install_libdir" "$bindir"
9165 - tdlname=$func_relative_path_result$dlname
9167 - # Otherwise fall back on heuristic.
9168 - tdlname=../bin/$dlname
9171 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
9174 # $outputname - a libtool library file
9175 --- lxpanel-0.5.6.orig/src/Makefile.in
9176 +++ lxpanel-0.5.6/src/Makefile.in
9177 @@ -45,7 +45,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
9178 $(top_srcdir)/configure.ac
9179 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9181 -mkinstalldirs = $(install_sh) -d
9182 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9183 CONFIG_HEADER = $(top_builddir)/config.h
9184 CONFIG_CLEAN_FILES =
9185 CONFIG_CLEAN_VPATH_FILES =
9186 @@ -163,6 +163,8 @@ ACLOCAL = @ACLOCAL@
9187 ALL_LINGUAS = @ALL_LINGUAS@
9188 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
9190 +APPLET_CFLAGS = @APPLET_CFLAGS@
9191 +APPLET_LIBS = @APPLET_LIBS@
9193 AUTOCONF = @AUTOCONF@
9194 AUTOHEADER = @AUTOHEADER@
9195 @@ -192,6 +194,8 @@ GMOFILES = @GMOFILES@
9198 G_CAST_CHECKS = @G_CAST_CHECKS@
9199 +INDICATORDIR = @INDICATORDIR@
9200 +INDICATORICONSDIR = @INDICATORICONSDIR@
9202 INSTALL_DATA = @INSTALL_DATA@
9203 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9204 @@ -237,8 +241,6 @@ PACKAGE_URL = @PACKAGE_URL@
9205 PACKAGE_VERSION = @PACKAGE_VERSION@
9206 PATH_SEPARATOR = @PATH_SEPARATOR@
9207 PKG_CONFIG = @PKG_CONFIG@
9208 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
9209 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
9210 PLUGINS_LIST = @PLUGINS_LIST@
9213 @@ -294,6 +296,7 @@ libdir = @libdir@
9214 libexecdir = @libexecdir@
9215 localedir = @localedir@
9216 localstatedir = @localstatedir@
9217 +lt_ECHO = @lt_ECHO@
9220 oldincludedir = @oldincludedir@
9221 --- lxpanel-0.5.6.orig/src/plugins/Makefile.in
9222 +++ lxpanel-0.5.6/src/plugins/Makefile.in
9223 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
9224 $(top_srcdir)/configure.ac
9225 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9227 -mkinstalldirs = $(install_sh) -d
9228 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9229 CONFIG_HEADER = $(top_builddir)/config.h
9230 CONFIG_CLEAN_FILES =
9231 CONFIG_CLEAN_VPATH_FILES =
9232 @@ -117,6 +117,8 @@ ACLOCAL = @ACLOCAL@
9233 ALL_LINGUAS = @ALL_LINGUAS@
9234 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
9236 +APPLET_CFLAGS = @APPLET_CFLAGS@
9237 +APPLET_LIBS = @APPLET_LIBS@
9239 AUTOCONF = @AUTOCONF@
9240 AUTOHEADER = @AUTOHEADER@
9241 @@ -146,6 +148,8 @@ GMOFILES = @GMOFILES@
9244 G_CAST_CHECKS = @G_CAST_CHECKS@
9245 +INDICATORDIR = @INDICATORDIR@
9246 +INDICATORICONSDIR = @INDICATORICONSDIR@
9248 INSTALL_DATA = @INSTALL_DATA@
9249 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9250 @@ -191,8 +195,6 @@ PACKAGE_URL = @PACKAGE_URL@
9251 PACKAGE_VERSION = @PACKAGE_VERSION@
9252 PATH_SEPARATOR = @PATH_SEPARATOR@
9253 PKG_CONFIG = @PKG_CONFIG@
9254 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
9255 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
9256 PLUGINS_LIST = @PLUGINS_LIST@
9259 @@ -248,6 +250,7 @@ libdir = @libdir@
9260 libexecdir = @libexecdir@
9261 localedir = @localedir@
9262 localstatedir = @localstatedir@
9263 +lt_ECHO = @lt_ECHO@
9266 oldincludedir = @oldincludedir@
9268 +++ lxpanel-0.5.6/src/plugins/indicator/Makefile.in
9270 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
9271 +# @configure_input@
9273 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
9274 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9276 +# This Makefile.in is free software; the Free Software Foundation
9277 +# gives unlimited permission to copy and/or distribute it,
9278 +# with or without modifications, as long as this notice is preserved.
9280 +# This program is distributed in the hope that it will be useful,
9281 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
9282 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9283 +# PARTICULAR PURPOSE.
9288 +pkgdatadir = $(datadir)/@PACKAGE@
9289 +pkgincludedir = $(includedir)/@PACKAGE@
9290 +pkglibdir = $(libdir)/@PACKAGE@
9291 +pkglibexecdir = $(libexecdir)/@PACKAGE@
9292 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
9293 +install_sh_DATA = $(install_sh) -c -m 644
9294 +install_sh_PROGRAM = $(install_sh) -c
9295 +install_sh_SCRIPT = $(install_sh) -c
9296 +INSTALL_HEADER = $(INSTALL_DATA)
9297 +transform = $(program_transform_name)
9301 +NORMAL_UNINSTALL = :
9304 +build_triplet = @build@
9305 +host_triplet = @host@
9306 +subdir = src/plugins/indicator
9307 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
9308 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9309 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
9310 + $(top_srcdir)/configure.ac
9311 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9313 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9314 +CONFIG_HEADER = $(top_builddir)/config.h
9315 +CONFIG_CLEAN_FILES =
9316 +CONFIG_CLEAN_VPATH_FILES =
9317 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
9318 +am__vpath_adj = case $$p in \
9319 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
9322 +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
9323 +am__install_max = 40
9324 +am__nobase_strip_setup = \
9325 + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
9326 +am__nobase_strip = \
9327 + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
9328 +am__nobase_list = $(am__nobase_strip_setup); \
9329 + for p in $$list; do echo "$$p $$p"; done | \
9330 + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
9331 + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
9332 + if (++n[$$2] == $(am__install_max)) \
9333 + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
9334 + END { for (dir in files) print dir, files[dir] }'
9336 + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
9337 + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
9338 +am__installdirs = "$(DESTDIR)$(moduledir)"
9339 +LTLIBRARIES = $(module_LTLIBRARIES)
9340 +am__DEPENDENCIES_1 =
9341 +indicator_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
9342 + $(am__DEPENDENCIES_1)
9343 +am_indicator_la_OBJECTS = indicator.lo
9344 +indicator_la_OBJECTS = $(am_indicator_la_OBJECTS)
9345 +indicator_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
9346 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
9347 + $(indicator_la_LDFLAGS) $(LDFLAGS) -o $@
9348 +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
9349 +depcomp = $(SHELL) $(top_srcdir)/depcomp
9350 +am__depfiles_maybe = depfiles
9352 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
9353 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
9354 +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
9355 + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
9356 + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
9358 +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
9359 + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
9361 +SOURCES = $(indicator_la_SOURCES)
9362 +DIST_SOURCES = $(indicator_la_SOURCES)
9365 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
9366 +ACLOCAL = @ACLOCAL@
9367 +ALL_LINGUAS = @ALL_LINGUAS@
9368 +ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
9370 +APPLET_CFLAGS = @APPLET_CFLAGS@
9371 +APPLET_LIBS = @APPLET_LIBS@
9373 +AUTOCONF = @AUTOCONF@
9374 +AUTOHEADER = @AUTOHEADER@
9375 +AUTOMAKE = @AUTOMAKE@
9377 +CATALOGS = @CATALOGS@
9378 +CATOBJEXT = @CATOBJEXT@
9380 +CCDEPMODE = @CCDEPMODE@
9383 +CPPFLAGS = @CPPFLAGS@
9384 +CYGPATH_W = @CYGPATH_W@
9385 +DATADIRNAME = @DATADIRNAME@
9388 +DSYMUTIL = @DSYMUTIL@
9389 +DUMPBIN = @DUMPBIN@
9396 +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
9397 +GMOFILES = @GMOFILES@
9398 +GMSGFMT = @GMSGFMT@
9400 +G_CAST_CHECKS = @G_CAST_CHECKS@
9401 +INDICATORDIR = @INDICATORDIR@
9402 +INDICATORICONSDIR = @INDICATORICONSDIR@
9403 +INSTALL = @INSTALL@
9404 +INSTALL_DATA = @INSTALL_DATA@
9405 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
9406 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
9407 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
9408 +INSTOBJEXT = @INSTOBJEXT@
9409 +INTLLIBS = @INTLLIBS@
9410 +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
9411 +INTLTOOL_MERGE = @INTLTOOL_MERGE@
9412 +INTLTOOL_PERL = @INTLTOOL_PERL@
9413 +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
9415 +LDFLAGS = @LDFLAGS@
9416 +LIBOBJS = @LIBOBJS@
9418 +LIBTOOL = @LIBTOOL@
9421 +LTLIBOBJS = @LTLIBOBJS@
9422 +LXPANEL_MODULE = @LXPANEL_MODULE@
9423 +MAKEINFO = @MAKEINFO@
9424 +MENU_CACHE_CFLAGS = @MENU_CACHE_CFLAGS@
9425 +MENU_CACHE_LIBS = @MENU_CACHE_LIBS@
9426 +MKDIR_P = @MKDIR_P@
9427 +MKINSTALLDIRS = @MKINSTALLDIRS@
9429 +MSGFMT_OPTS = @MSGFMT_OPTS@
9430 +MSGMERGE = @MSGMERGE@
9433 +OBJDUMP = @OBJDUMP@
9436 +OTOOL64 = @OTOOL64@
9437 +PACKAGE = @PACKAGE@
9438 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
9439 +PACKAGE_CFLAGS = @PACKAGE_CFLAGS@
9440 +PACKAGE_LIBS = @PACKAGE_LIBS@
9441 +PACKAGE_NAME = @PACKAGE_NAME@
9442 +PACKAGE_STRING = @PACKAGE_STRING@
9443 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
9444 +PACKAGE_URL = @PACKAGE_URL@
9445 +PACKAGE_VERSION = @PACKAGE_VERSION@
9446 +PATH_SEPARATOR = @PATH_SEPARATOR@
9447 +PKG_CONFIG = @PKG_CONFIG@
9448 +PLUGINS_LIST = @PLUGINS_LIST@
9449 +POFILES = @POFILES@
9451 +PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
9452 +PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
9455 +SET_MAKE = @SET_MAKE@
9458 +USE_NLS = @USE_NLS@
9459 +VERSION = @VERSION@
9460 +X11_CFLAGS = @X11_CFLAGS@
9461 +X11_LIBS = @X11_LIBS@
9462 +XGETTEXT = @XGETTEXT@
9464 +XMLCATALOG = @XMLCATALOG@
9465 +XML_CATALOG_FILE = @XML_CATALOG_FILE@
9466 +XSLTPROC = @XSLTPROC@
9467 +abs_builddir = @abs_builddir@
9468 +abs_srcdir = @abs_srcdir@
9469 +abs_top_builddir = @abs_top_builddir@
9470 +abs_top_srcdir = @abs_top_srcdir@
9471 +ac_ct_CC = @ac_ct_CC@
9472 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
9473 +am__include = @am__include@
9474 +am__leading_dot = @am__leading_dot@
9475 +am__quote = @am__quote@
9476 +am__tar = @am__tar@
9477 +am__untar = @am__untar@
9480 +build_alias = @build_alias@
9481 +build_cpu = @build_cpu@
9482 +build_os = @build_os@
9483 +build_vendor = @build_vendor@
9484 +builddir = @builddir@
9485 +datadir = @datadir@
9486 +datarootdir = @datarootdir@
9489 +exec_prefix = @exec_prefix@
9491 +host_alias = @host_alias@
9492 +host_cpu = @host_cpu@
9493 +host_os = @host_os@
9494 +host_vendor = @host_vendor@
9495 +htmldir = @htmldir@
9496 +includedir = @includedir@
9497 +infodir = @infodir@
9498 +install_sh = @install_sh@
9500 +libexecdir = @libexecdir@
9501 +localedir = @localedir@
9502 +localstatedir = @localstatedir@
9503 +lt_ECHO = @lt_ECHO@
9505 +mkdir_p = @mkdir_p@
9506 +oldincludedir = @oldincludedir@
9509 +program_transform_name = @program_transform_name@
9511 +sbindir = @sbindir@
9512 +sharedstatedir = @sharedstatedir@
9514 +sysconfdir = @sysconfdir@
9515 +target_alias = @target_alias@
9516 +top_build_prefix = @top_build_prefix@
9517 +top_builddir = @top_builddir@
9518 +top_srcdir = @top_srcdir@
9521 + -I$(top_srcdir)/src \
9522 + -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
9523 + -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
9524 + $(PACKAGE_CFLAGS) \
9525 + $(APPLET_CFLAGS) \
9528 +module_LTLIBRARIES = indicator.la
9529 +moduledir = $(libdir)/lxpanel/plugins
9530 +indicator_la_SOURCES = \
9533 +indicator_la_LIBADD = \
9537 +indicator_la_LDFLAGS = \
9544 +.SUFFIXES: .c .lo .o .obj
9545 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
9546 + @for dep in $?; do \
9547 + case '$(am__configure_deps)' in \
9549 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
9550 + && { if test -f $@; then exit 0; else break; fi; }; \
9554 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/plugins/indicator/Makefile'; \
9555 + $(am__cd) $(top_srcdir) && \
9556 + $(AUTOMAKE) --gnu src/plugins/indicator/Makefile
9557 +.PRECIOUS: Makefile
9558 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
9560 + *config.status*) \
9561 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
9563 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
9564 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
9567 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
9568 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
9570 +$(top_srcdir)/configure: $(am__configure_deps)
9571 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
9572 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
9573 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
9574 +$(am__aclocal_m4_deps):
9575 +install-moduleLTLIBRARIES: $(module_LTLIBRARIES)
9576 + @$(NORMAL_INSTALL)
9577 + test -z "$(moduledir)" || $(MKDIR_P) "$(DESTDIR)$(moduledir)"
9578 + @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
9579 + list2=; for p in $$list; do \
9580 + if test -f $$p; then \
9581 + list2="$$list2 $$p"; \
9584 + test -z "$$list2" || { \
9585 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(moduledir)'"; \
9586 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(moduledir)"; \
9589 +uninstall-moduleLTLIBRARIES:
9590 + @$(NORMAL_UNINSTALL)
9591 + @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
9592 + for p in $$list; do \
9593 + $(am__strip_dir) \
9594 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(moduledir)/$$f'"; \
9595 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(moduledir)/$$f"; \
9598 +clean-moduleLTLIBRARIES:
9599 + -test -z "$(module_LTLIBRARIES)" || rm -f $(module_LTLIBRARIES)
9600 + @list='$(module_LTLIBRARIES)'; for p in $$list; do \
9601 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
9602 + test "$$dir" != "$$p" || dir=.; \
9603 + echo "rm -f \"$${dir}/so_locations\""; \
9604 + rm -f "$${dir}/so_locations"; \
9606 +indicator.la: $(indicator_la_OBJECTS) $(indicator_la_DEPENDENCIES)
9607 + $(indicator_la_LINK) -rpath $(moduledir) $(indicator_la_OBJECTS) $(indicator_la_LIBADD) $(LIBS)
9609 +mostlyclean-compile:
9610 + -rm -f *.$(OBJEXT)
9615 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indicator.Plo@am__quote@
9618 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
9619 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
9620 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
9621 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
9622 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
9625 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
9626 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
9627 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
9628 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
9629 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
9632 +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
9633 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
9634 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
9635 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
9636 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
9638 +mostlyclean-libtool:
9642 + -rm -rf .libs _libs
9644 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
9645 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
9646 + unique=`for i in $$list; do \
9647 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
9649 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
9650 + END { if (nonempty) { for (i in files) print i; }; }'`; \
9651 + mkid -fID $$unique
9654 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
9655 + $(TAGS_FILES) $(LISP)
9658 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
9659 + unique=`for i in $$list; do \
9660 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
9662 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
9663 + END { if (nonempty) { for (i in files) print i; }; }'`; \
9665 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
9666 + test -n "$$unique" || unique=$$empty_fix; \
9667 + if test $$# -gt 0; then \
9668 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
9671 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
9676 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
9677 + $(TAGS_FILES) $(LISP)
9678 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
9679 + unique=`for i in $$list; do \
9680 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
9682 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
9683 + END { if (nonempty) { for (i in files) print i; }; }'`; \
9684 + test -z "$(CTAGS_ARGS)$$unique" \
9685 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
9689 + here=`$(am__cd) $(top_builddir) && pwd` \
9690 + && $(am__cd) $(top_srcdir) \
9691 + && gtags -i $(GTAGS_ARGS) "$$here"
9694 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
9696 +distdir: $(DISTFILES)
9697 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
9698 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
9699 + list='$(DISTFILES)'; \
9700 + dist_files=`for file in $$list; do echo $$file; done | \
9701 + sed -e "s|^$$srcdirstrip/||;t" \
9702 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
9703 + case $$dist_files in \
9704 + */*) $(MKDIR_P) `echo "$$dist_files" | \
9705 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
9708 + for file in $$dist_files; do \
9709 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
9710 + if test -d $$d/$$file; then \
9711 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
9712 + if test -d "$(distdir)/$$file"; then \
9713 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
9715 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
9716 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
9717 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
9719 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
9721 + test -f "$(distdir)/$$file" \
9722 + || cp -p $$d/$$file "$(distdir)/$$file" \
9728 +all-am: Makefile $(LTLIBRARIES)
9730 + for dir in "$(DESTDIR)$(moduledir)"; do \
9731 + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
9733 +install: install-am
9734 +install-exec: install-exec-am
9735 +install-data: install-data-am
9736 +uninstall: uninstall-am
9739 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
9741 +installcheck: installcheck-am
9743 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
9744 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
9745 + `test -z '$(STRIP)' || \
9746 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
9747 +mostlyclean-generic:
9752 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
9753 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
9755 +maintainer-clean-generic:
9756 + @echo "This command is intended for maintainers to use"
9757 + @echo "it deletes files that may require special tools to rebuild."
9760 +clean-am: clean-generic clean-libtool clean-moduleLTLIBRARIES \
9763 +distclean: distclean-am
9764 + -rm -rf ./$(DEPDIR)
9766 +distclean-am: clean-am distclean-compile distclean-generic \
9781 +install-data-am: install-moduleLTLIBRARIES
9783 +install-dvi: install-dvi-am
9789 +install-html: install-html-am
9793 +install-info: install-info-am
9799 +install-pdf: install-pdf-am
9803 +install-ps: install-ps-am
9809 +maintainer-clean: maintainer-clean-am
9810 + -rm -rf ./$(DEPDIR)
9812 +maintainer-clean-am: distclean-am maintainer-clean-generic
9814 +mostlyclean: mostlyclean-am
9816 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
9817 + mostlyclean-libtool
9827 +uninstall-am: uninstall-moduleLTLIBRARIES
9829 +.MAKE: install-am install-strip
9831 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
9832 + clean-libtool clean-moduleLTLIBRARIES ctags distclean \
9833 + distclean-compile distclean-generic distclean-libtool \
9834 + distclean-tags distdir dvi dvi-am html html-am info info-am \
9835 + install install-am install-data install-data-am install-dvi \
9836 + install-dvi-am install-exec install-exec-am install-html \
9837 + install-html-am install-info install-info-am install-man \
9838 + install-moduleLTLIBRARIES install-pdf install-pdf-am \
9839 + install-ps install-ps-am install-strip installcheck \
9840 + installcheck-am installdirs maintainer-clean \
9841 + maintainer-clean-generic mostlyclean mostlyclean-compile \
9842 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
9843 + tags uninstall uninstall-am uninstall-moduleLTLIBRARIES
9846 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
9847 +# Otherwise a system limit (for SysV at least) may be exceeded.
9849 --- lxpanel-0.5.6.orig/src/plugins/cpu/Makefile.in
9850 +++ lxpanel-0.5.6/src/plugins/cpu/Makefile.in
9851 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
9852 $(top_srcdir)/configure.ac
9853 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9855 -mkinstalldirs = $(install_sh) -d
9856 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9857 CONFIG_HEADER = $(top_builddir)/config.h
9858 CONFIG_CLEAN_FILES =
9859 CONFIG_CLEAN_VPATH_FILES =
9860 @@ -97,6 +97,8 @@ ACLOCAL = @ACLOCAL@
9861 ALL_LINGUAS = @ALL_LINGUAS@
9862 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
9864 +APPLET_CFLAGS = @APPLET_CFLAGS@
9865 +APPLET_LIBS = @APPLET_LIBS@
9867 AUTOCONF = @AUTOCONF@
9868 AUTOHEADER = @AUTOHEADER@
9869 @@ -126,6 +128,8 @@ GMOFILES = @GMOFILES@
9872 G_CAST_CHECKS = @G_CAST_CHECKS@
9873 +INDICATORDIR = @INDICATORDIR@
9874 +INDICATORICONSDIR = @INDICATORICONSDIR@
9876 INSTALL_DATA = @INSTALL_DATA@
9877 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9878 @@ -171,8 +175,6 @@ PACKAGE_URL = @PACKAGE_URL@
9879 PACKAGE_VERSION = @PACKAGE_VERSION@
9880 PATH_SEPARATOR = @PATH_SEPARATOR@
9881 PKG_CONFIG = @PKG_CONFIG@
9882 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
9883 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
9884 PLUGINS_LIST = @PLUGINS_LIST@
9887 @@ -228,6 +230,7 @@ libdir = @libdir@
9888 libexecdir = @libexecdir@
9889 localedir = @localedir@
9890 localstatedir = @localstatedir@
9891 +lt_ECHO = @lt_ECHO@
9894 oldincludedir = @oldincludedir@
9895 --- lxpanel-0.5.6.orig/src/plugins/batt/Makefile.in
9896 +++ lxpanel-0.5.6/src/plugins/batt/Makefile.in
9897 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
9898 $(top_srcdir)/configure.ac
9899 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9901 -mkinstalldirs = $(install_sh) -d
9902 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9903 CONFIG_HEADER = $(top_builddir)/config.h
9904 CONFIG_CLEAN_FILES =
9905 CONFIG_CLEAN_VPATH_FILES =
9906 @@ -97,6 +97,8 @@ ACLOCAL = @ACLOCAL@
9907 ALL_LINGUAS = @ALL_LINGUAS@
9908 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
9910 +APPLET_CFLAGS = @APPLET_CFLAGS@
9911 +APPLET_LIBS = @APPLET_LIBS@
9913 AUTOCONF = @AUTOCONF@
9914 AUTOHEADER = @AUTOHEADER@
9915 @@ -126,6 +128,8 @@ GMOFILES = @GMOFILES@
9918 G_CAST_CHECKS = @G_CAST_CHECKS@
9919 +INDICATORDIR = @INDICATORDIR@
9920 +INDICATORICONSDIR = @INDICATORICONSDIR@
9922 INSTALL_DATA = @INSTALL_DATA@
9923 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9924 @@ -171,8 +175,6 @@ PACKAGE_URL = @PACKAGE_URL@
9925 PACKAGE_VERSION = @PACKAGE_VERSION@
9926 PATH_SEPARATOR = @PATH_SEPARATOR@
9927 PKG_CONFIG = @PKG_CONFIG@
9928 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
9929 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
9930 PLUGINS_LIST = @PLUGINS_LIST@
9933 @@ -228,6 +230,7 @@ libdir = @libdir@
9934 libexecdir = @libexecdir@
9935 localedir = @localedir@
9936 localstatedir = @localstatedir@
9937 +lt_ECHO = @lt_ECHO@
9940 oldincludedir = @oldincludedir@
9941 --- lxpanel-0.5.6.orig/src/plugins/cpufreq/Makefile.in
9942 +++ lxpanel-0.5.6/src/plugins/cpufreq/Makefile.in
9943 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
9944 $(top_srcdir)/configure.ac
9945 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9947 -mkinstalldirs = $(install_sh) -d
9948 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9949 CONFIG_HEADER = $(top_builddir)/config.h
9950 CONFIG_CLEAN_FILES =
9951 CONFIG_CLEAN_VPATH_FILES =
9952 @@ -97,6 +97,8 @@ ACLOCAL = @ACLOCAL@
9953 ALL_LINGUAS = @ALL_LINGUAS@
9954 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
9956 +APPLET_CFLAGS = @APPLET_CFLAGS@
9957 +APPLET_LIBS = @APPLET_LIBS@
9959 AUTOCONF = @AUTOCONF@
9960 AUTOHEADER = @AUTOHEADER@
9961 @@ -126,6 +128,8 @@ GMOFILES = @GMOFILES@
9964 G_CAST_CHECKS = @G_CAST_CHECKS@
9965 +INDICATORDIR = @INDICATORDIR@
9966 +INDICATORICONSDIR = @INDICATORICONSDIR@
9968 INSTALL_DATA = @INSTALL_DATA@
9969 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9970 @@ -171,8 +175,6 @@ PACKAGE_URL = @PACKAGE_URL@
9971 PACKAGE_VERSION = @PACKAGE_VERSION@
9972 PATH_SEPARATOR = @PATH_SEPARATOR@
9973 PKG_CONFIG = @PKG_CONFIG@
9974 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
9975 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
9976 PLUGINS_LIST = @PLUGINS_LIST@
9979 @@ -228,6 +230,7 @@ libdir = @libdir@
9980 libexecdir = @libexecdir@
9981 localedir = @localedir@
9982 localstatedir = @localstatedir@
9983 +lt_ECHO = @lt_ECHO@
9986 oldincludedir = @oldincludedir@
9987 --- lxpanel-0.5.6.orig/src/plugins/deskno/Makefile.in
9988 +++ lxpanel-0.5.6/src/plugins/deskno/Makefile.in
9989 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
9990 $(top_srcdir)/configure.ac
9991 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9993 -mkinstalldirs = $(install_sh) -d
9994 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
9995 CONFIG_HEADER = $(top_builddir)/config.h
9996 CONFIG_CLEAN_FILES =
9997 CONFIG_CLEAN_VPATH_FILES =
9998 @@ -97,6 +97,8 @@ ACLOCAL = @ACLOCAL@
9999 ALL_LINGUAS = @ALL_LINGUAS@
10000 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10002 +APPLET_CFLAGS = @APPLET_CFLAGS@
10003 +APPLET_LIBS = @APPLET_LIBS@
10005 AUTOCONF = @AUTOCONF@
10006 AUTOHEADER = @AUTOHEADER@
10007 @@ -126,6 +128,8 @@ GMOFILES = @GMOFILES@
10008 GMSGFMT = @GMSGFMT@
10010 G_CAST_CHECKS = @G_CAST_CHECKS@
10011 +INDICATORDIR = @INDICATORDIR@
10012 +INDICATORICONSDIR = @INDICATORICONSDIR@
10013 INSTALL = @INSTALL@
10014 INSTALL_DATA = @INSTALL_DATA@
10015 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10016 @@ -171,8 +175,6 @@ PACKAGE_URL = @PACKAGE_URL@
10017 PACKAGE_VERSION = @PACKAGE_VERSION@
10018 PATH_SEPARATOR = @PATH_SEPARATOR@
10019 PKG_CONFIG = @PKG_CONFIG@
10020 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10021 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10022 PLUGINS_LIST = @PLUGINS_LIST@
10023 POFILES = @POFILES@
10025 @@ -228,6 +230,7 @@ libdir = @libdir@
10026 libexecdir = @libexecdir@
10027 localedir = @localedir@
10028 localstatedir = @localstatedir@
10029 +lt_ECHO = @lt_ECHO@
10031 mkdir_p = @mkdir_p@
10032 oldincludedir = @oldincludedir@
10033 --- lxpanel-0.5.6.orig/src/plugins/thermal/Makefile.in
10034 +++ lxpanel-0.5.6/src/plugins/thermal/Makefile.in
10035 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10036 $(top_srcdir)/configure.ac
10037 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10039 -mkinstalldirs = $(install_sh) -d
10040 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10041 CONFIG_HEADER = $(top_builddir)/config.h
10042 CONFIG_CLEAN_FILES =
10043 CONFIG_CLEAN_VPATH_FILES =
10044 @@ -97,6 +97,8 @@ ACLOCAL = @ACLOCAL@
10045 ALL_LINGUAS = @ALL_LINGUAS@
10046 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10048 +APPLET_CFLAGS = @APPLET_CFLAGS@
10049 +APPLET_LIBS = @APPLET_LIBS@
10051 AUTOCONF = @AUTOCONF@
10052 AUTOHEADER = @AUTOHEADER@
10053 @@ -126,6 +128,8 @@ GMOFILES = @GMOFILES@
10054 GMSGFMT = @GMSGFMT@
10056 G_CAST_CHECKS = @G_CAST_CHECKS@
10057 +INDICATORDIR = @INDICATORDIR@
10058 +INDICATORICONSDIR = @INDICATORICONSDIR@
10059 INSTALL = @INSTALL@
10060 INSTALL_DATA = @INSTALL_DATA@
10061 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10062 @@ -171,8 +175,6 @@ PACKAGE_URL = @PACKAGE_URL@
10063 PACKAGE_VERSION = @PACKAGE_VERSION@
10064 PATH_SEPARATOR = @PATH_SEPARATOR@
10065 PKG_CONFIG = @PKG_CONFIG@
10066 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10067 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10068 PLUGINS_LIST = @PLUGINS_LIST@
10069 POFILES = @POFILES@
10071 @@ -228,6 +230,7 @@ libdir = @libdir@
10072 libexecdir = @libexecdir@
10073 localedir = @localedir@
10074 localstatedir = @localstatedir@
10075 +lt_ECHO = @lt_ECHO@
10077 mkdir_p = @mkdir_p@
10078 oldincludedir = @oldincludedir@
10079 --- lxpanel-0.5.6.orig/src/plugins/volume/Makefile.in
10080 +++ lxpanel-0.5.6/src/plugins/volume/Makefile.in
10081 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10082 $(top_srcdir)/configure.ac
10083 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10085 -mkinstalldirs = $(install_sh) -d
10086 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10087 CONFIG_HEADER = $(top_builddir)/config.h
10088 CONFIG_CLEAN_FILES =
10089 CONFIG_CLEAN_VPATH_FILES =
10090 @@ -102,6 +102,8 @@ ACLOCAL = @ACLOCAL@
10091 ALL_LINGUAS = @ALL_LINGUAS@
10092 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10094 +APPLET_CFLAGS = @APPLET_CFLAGS@
10095 +APPLET_LIBS = @APPLET_LIBS@
10097 AUTOCONF = @AUTOCONF@
10098 AUTOHEADER = @AUTOHEADER@
10099 @@ -131,6 +133,8 @@ GMOFILES = @GMOFILES@
10100 GMSGFMT = @GMSGFMT@
10102 G_CAST_CHECKS = @G_CAST_CHECKS@
10103 +INDICATORDIR = @INDICATORDIR@
10104 +INDICATORICONSDIR = @INDICATORICONSDIR@
10105 INSTALL = @INSTALL@
10106 INSTALL_DATA = @INSTALL_DATA@
10107 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10108 @@ -176,8 +180,6 @@ PACKAGE_URL = @PACKAGE_URL@
10109 PACKAGE_VERSION = @PACKAGE_VERSION@
10110 PATH_SEPARATOR = @PATH_SEPARATOR@
10111 PKG_CONFIG = @PKG_CONFIG@
10112 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10113 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10114 PLUGINS_LIST = @PLUGINS_LIST@
10115 POFILES = @POFILES@
10117 @@ -233,6 +235,7 @@ libdir = @libdir@
10118 libexecdir = @libexecdir@
10119 localedir = @localedir@
10120 localstatedir = @localstatedir@
10121 +lt_ECHO = @lt_ECHO@
10123 mkdir_p = @mkdir_p@
10124 oldincludedir = @oldincludedir@
10125 --- lxpanel-0.5.6.orig/src/plugins/xkb/Makefile.in
10126 +++ lxpanel-0.5.6/src/plugins/xkb/Makefile.in
10127 @@ -42,7 +42,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10128 $(top_srcdir)/configure.ac
10129 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10131 -mkinstalldirs = $(install_sh) -d
10132 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10133 CONFIG_HEADER = $(top_builddir)/config.h
10134 CONFIG_CLEAN_FILES =
10135 CONFIG_CLEAN_VPATH_FILES =
10136 @@ -99,6 +99,8 @@ ACLOCAL = @ACLOCAL@
10137 ALL_LINGUAS = @ALL_LINGUAS@
10138 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10140 +APPLET_CFLAGS = @APPLET_CFLAGS@
10141 +APPLET_LIBS = @APPLET_LIBS@
10143 AUTOCONF = @AUTOCONF@
10144 AUTOHEADER = @AUTOHEADER@
10145 @@ -128,6 +130,8 @@ GMOFILES = @GMOFILES@
10146 GMSGFMT = @GMSGFMT@
10148 G_CAST_CHECKS = @G_CAST_CHECKS@
10149 +INDICATORDIR = @INDICATORDIR@
10150 +INDICATORICONSDIR = @INDICATORICONSDIR@
10151 INSTALL = @INSTALL@
10152 INSTALL_DATA = @INSTALL_DATA@
10153 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10154 @@ -173,8 +177,6 @@ PACKAGE_URL = @PACKAGE_URL@
10155 PACKAGE_VERSION = @PACKAGE_VERSION@
10156 PATH_SEPARATOR = @PATH_SEPARATOR@
10157 PKG_CONFIG = @PKG_CONFIG@
10158 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10159 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10160 PLUGINS_LIST = @PLUGINS_LIST@
10161 POFILES = @POFILES@
10163 @@ -230,6 +232,7 @@ libdir = @libdir@
10164 libexecdir = @libexecdir@
10165 localedir = @localedir@
10166 localstatedir = @localstatedir@
10167 +lt_ECHO = @lt_ECHO@
10169 mkdir_p = @mkdir_p@
10170 oldincludedir = @oldincludedir@
10171 --- lxpanel-0.5.6.orig/src/plugins/kbled/Makefile.in
10172 +++ lxpanel-0.5.6/src/plugins/kbled/Makefile.in
10173 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10174 $(top_srcdir)/configure.ac
10175 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10177 -mkinstalldirs = $(install_sh) -d
10178 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10179 CONFIG_HEADER = $(top_builddir)/config.h
10180 CONFIG_CLEAN_FILES =
10181 CONFIG_CLEAN_VPATH_FILES =
10182 @@ -97,6 +97,8 @@ ACLOCAL = @ACLOCAL@
10183 ALL_LINGUAS = @ALL_LINGUAS@
10184 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10186 +APPLET_CFLAGS = @APPLET_CFLAGS@
10187 +APPLET_LIBS = @APPLET_LIBS@
10189 AUTOCONF = @AUTOCONF@
10190 AUTOHEADER = @AUTOHEADER@
10191 @@ -126,6 +128,8 @@ GMOFILES = @GMOFILES@
10192 GMSGFMT = @GMSGFMT@
10194 G_CAST_CHECKS = @G_CAST_CHECKS@
10195 +INDICATORDIR = @INDICATORDIR@
10196 +INDICATORICONSDIR = @INDICATORICONSDIR@
10197 INSTALL = @INSTALL@
10198 INSTALL_DATA = @INSTALL_DATA@
10199 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10200 @@ -171,8 +175,6 @@ PACKAGE_URL = @PACKAGE_URL@
10201 PACKAGE_VERSION = @PACKAGE_VERSION@
10202 PATH_SEPARATOR = @PATH_SEPARATOR@
10203 PKG_CONFIG = @PKG_CONFIG@
10204 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10205 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10206 PLUGINS_LIST = @PLUGINS_LIST@
10207 POFILES = @POFILES@
10209 @@ -228,6 +230,7 @@ libdir = @libdir@
10210 libexecdir = @libexecdir@
10211 localedir = @localedir@
10212 localstatedir = @localstatedir@
10213 +lt_ECHO = @lt_ECHO@
10215 mkdir_p = @mkdir_p@
10216 oldincludedir = @oldincludedir@
10217 --- lxpanel-0.5.6.orig/src/plugins/volumealsa/Makefile.in
10218 +++ lxpanel-0.5.6/src/plugins/volumealsa/Makefile.in
10219 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10220 $(top_srcdir)/configure.ac
10221 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10223 -mkinstalldirs = $(install_sh) -d
10224 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10225 CONFIG_HEADER = $(top_builddir)/config.h
10226 CONFIG_CLEAN_FILES =
10227 CONFIG_CLEAN_VPATH_FILES =
10228 @@ -100,6 +100,8 @@ ACLOCAL = @ACLOCAL@
10229 ALL_LINGUAS = @ALL_LINGUAS@
10230 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10232 +APPLET_CFLAGS = @APPLET_CFLAGS@
10233 +APPLET_LIBS = @APPLET_LIBS@
10235 AUTOCONF = @AUTOCONF@
10236 AUTOHEADER = @AUTOHEADER@
10237 @@ -129,6 +131,8 @@ GMOFILES = @GMOFILES@
10238 GMSGFMT = @GMSGFMT@
10240 G_CAST_CHECKS = @G_CAST_CHECKS@
10241 +INDICATORDIR = @INDICATORDIR@
10242 +INDICATORICONSDIR = @INDICATORICONSDIR@
10243 INSTALL = @INSTALL@
10244 INSTALL_DATA = @INSTALL_DATA@
10245 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10246 @@ -174,8 +178,6 @@ PACKAGE_URL = @PACKAGE_URL@
10247 PACKAGE_VERSION = @PACKAGE_VERSION@
10248 PATH_SEPARATOR = @PATH_SEPARATOR@
10249 PKG_CONFIG = @PKG_CONFIG@
10250 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10251 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10252 PLUGINS_LIST = @PLUGINS_LIST@
10253 POFILES = @POFILES@
10255 @@ -231,6 +233,7 @@ libdir = @libdir@
10256 libexecdir = @libexecdir@
10257 localedir = @localedir@
10258 localstatedir = @localstatedir@
10259 +lt_ECHO = @lt_ECHO@
10261 mkdir_p = @mkdir_p@
10262 oldincludedir = @oldincludedir@
10263 --- lxpanel-0.5.6.orig/src/plugins/netstatus/Makefile.in
10264 +++ lxpanel-0.5.6/src/plugins/netstatus/Makefile.in
10265 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10266 $(top_srcdir)/configure.ac
10267 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10269 -mkinstalldirs = $(install_sh) -d
10270 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10271 CONFIG_HEADER = $(top_builddir)/config.h
10272 CONFIG_CLEAN_FILES =
10273 CONFIG_CLEAN_VPATH_FILES =
10274 @@ -99,6 +99,8 @@ ACLOCAL = @ACLOCAL@
10275 ALL_LINGUAS = @ALL_LINGUAS@
10276 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10278 +APPLET_CFLAGS = @APPLET_CFLAGS@
10279 +APPLET_LIBS = @APPLET_LIBS@
10281 AUTOCONF = @AUTOCONF@
10282 AUTOHEADER = @AUTOHEADER@
10283 @@ -128,6 +130,8 @@ GMOFILES = @GMOFILES@
10284 GMSGFMT = @GMSGFMT@
10286 G_CAST_CHECKS = @G_CAST_CHECKS@
10287 +INDICATORDIR = @INDICATORDIR@
10288 +INDICATORICONSDIR = @INDICATORICONSDIR@
10289 INSTALL = @INSTALL@
10290 INSTALL_DATA = @INSTALL_DATA@
10291 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10292 @@ -173,8 +177,6 @@ PACKAGE_URL = @PACKAGE_URL@
10293 PACKAGE_VERSION = @PACKAGE_VERSION@
10294 PATH_SEPARATOR = @PATH_SEPARATOR@
10295 PKG_CONFIG = @PKG_CONFIG@
10296 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10297 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10298 PLUGINS_LIST = @PLUGINS_LIST@
10299 POFILES = @POFILES@
10301 @@ -230,6 +232,7 @@ libdir = @libdir@
10302 libexecdir = @libexecdir@
10303 localedir = @localedir@
10304 localstatedir = @localstatedir@
10305 +lt_ECHO = @lt_ECHO@
10307 mkdir_p = @mkdir_p@
10308 oldincludedir = @oldincludedir@
10310 +++ lxpanel-0.5.6/po/quot.sed
10312 +s/"\([^"]*\)"/“\1”/g
10313 +s/`\([^`']*\)'/‘\1’/g
10314 +s/ '\([^`']*\)' / ‘\1’ /g
10315 +s/ '\([^`']*\)'$/ ‘\1’/g
10316 +s/^'\([^`']*\)' /‘\1’ /g
10319 +++ lxpanel-0.5.6/po/Makevars.template
10321 +# Makefile variables for PO directory in any package using GNU gettext.
10323 +# Usually the message domain is the same as the package name.
10324 +DOMAIN = $(PACKAGE)
10326 +# These two variables depend on the location of this directory.
10330 +# These options get passed to xgettext.
10331 +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
10333 +# This is the copyright holder that gets inserted into the header of the
10334 +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
10335 +# package. (Note that the msgstr strings, extracted from the package's
10336 +# sources, belong to the copyright holder of the package.) Translators are
10337 +# expected to transfer the copyright for their translations to this person
10338 +# or entity, or to disclaim their copyright. The empty string stands for
10339 +# the public domain; in this case the translators are expected to disclaim
10340 +# their copyright.
10341 +COPYRIGHT_HOLDER = Free Software Foundation, Inc.
10343 +# This is the email address or URL to which the translators shall report
10344 +# bugs in the untranslated strings:
10345 +# - Strings which are not entire sentences, see the maintainer guidelines
10346 +# in the GNU gettext documentation, section 'Preparing Strings'.
10347 +# - Strings which use unclear terms or require additional context to be
10349 +# - Strings which make invalid assumptions about notation of date, time or
10351 +# - Pluralisation problems.
10352 +# - Incorrect English spelling.
10353 +# - Incorrect formatting.
10354 +# It can be your email address, or a mailing list address where translators
10355 +# can write to without being subscribed, or the URL of a web page through
10356 +# which the translators can contact you.
10357 +MSGID_BUGS_ADDRESS =
10359 +# This is the list of locale categories, beyond LC_MESSAGES, for which the
10360 +# message catalogs shall be used. It is usually empty.
10361 +EXTRA_LOCALE_CATEGORIES =
10362 --- lxpanel-0.5.6.orig/po/Makefile.in.in
10363 +++ lxpanel-0.5.6/po/Makefile.in.in
10364 @@ -56,7 +56,7 @@ ALL_LINGUAS = @ALL_LINGUAS@
10366 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
10368 -USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep '^$$lang$$' $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep '^$$lang$$'`"; then printf "$$lang "; fi; done; fi)
10369 +USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
10371 USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
10373 @@ -129,7 +129,7 @@ install-data-yes: all
10376 # Empty stubs to satisfy archaic automake needs
10377 -dvi info tags TAGS ID:
10378 +dvi info ctags tags CTAGS TAGS ID:
10380 # Define this as empty until I found a useful application.
10381 install-exec installcheck:
10383 +++ lxpanel-0.5.6/po/en@quot.header
10385 +# All this catalog "translates" are quotation characters.
10386 +# The msgids must be ASCII and therefore cannot contain real quotation
10387 +# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
10388 +# and double quote (0x22). These substitutes look strange; see
10389 +# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
10391 +# This catalog translates grave accent (0x60) and apostrophe (0x27) to
10392 +# left single quotation mark (U+2018) and right single quotation mark (U+2019).
10393 +# It also translates pairs of apostrophe (0x27) to
10394 +# left single quotation mark (U+2018) and right single quotation mark (U+2019)
10395 +# and pairs of quotation mark (0x22) to
10396 +# left double quotation mark (U+201C) and right double quotation mark (U+201D).
10398 +# When output to an UTF-8 terminal, the quotation characters appear perfectly.
10399 +# When output to an ISO-8859-1 terminal, the single quotation marks are
10400 +# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
10401 +# grave/acute accent (by libiconv), and the double quotation marks are
10402 +# transliterated to 0x22.
10403 +# When output to an ASCII terminal, the single quotation marks are
10404 +# transliterated to apostrophes, and the double quotation marks are
10405 +# transliterated to 0x22.
10408 +++ lxpanel-0.5.6/po/en@boldquot.header
10410 +# All this catalog "translates" are quotation characters.
10411 +# The msgids must be ASCII and therefore cannot contain real quotation
10412 +# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
10413 +# and double quote (0x22). These substitutes look strange; see
10414 +# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
10416 +# This catalog translates grave accent (0x60) and apostrophe (0x27) to
10417 +# left single quotation mark (U+2018) and right single quotation mark (U+2019).
10418 +# It also translates pairs of apostrophe (0x27) to
10419 +# left single quotation mark (U+2018) and right single quotation mark (U+2019)
10420 +# and pairs of quotation mark (0x22) to
10421 +# left double quotation mark (U+201C) and right double quotation mark (U+201D).
10423 +# When output to an UTF-8 terminal, the quotation characters appear perfectly.
10424 +# When output to an ISO-8859-1 terminal, the single quotation marks are
10425 +# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
10426 +# grave/acute accent (by libiconv), and the double quotation marks are
10427 +# transliterated to 0x22.
10428 +# When output to an ASCII terminal, the single quotation marks are
10429 +# transliterated to apostrophes, and the double quotation marks are
10430 +# transliterated to 0x22.
10432 +# This catalog furthermore displays the text between the quotation marks in
10433 +# bold face, assuming the VT100/XTerm escape sequences.
10436 +++ lxpanel-0.5.6/po/boldquot.sed
10438 +s/"\([^"]*\)"/“\1”/g
10439 +s/`\([^`']*\)'/‘\1’/g
10440 +s/ '\([^`']*\)' / ‘\1’ /g
10441 +s/ '\([^`']*\)'$/ ‘\1’/g
10442 +s/^'\([^`']*\)' /‘\1’ /g
10449 +++ lxpanel-0.5.6/po/Rules-quot
10451 +# Special Makefile rules for English message catalogs with quotation marks.
10453 +DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
10455 +.SUFFIXES: .insert-header .po-update-en
10457 +en@quot.po-create:
10458 + $(MAKE) en@quot.po-update
10459 +en@boldquot.po-create:
10460 + $(MAKE) en@boldquot.po-update
10462 +en@quot.po-update: en@quot.po-update-en
10463 +en@boldquot.po-update: en@boldquot.po-update-en
10465 +.insert-header.po-update-en:
10466 + @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
10467 + if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
10469 + echo "$$lang:"; \
10470 + ll=`echo $$lang | sed -e 's/@.*//'`; \
10471 + LC_ALL=C; export LC_ALL; \
10473 + if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
10474 + if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
10475 + rm -f $$tmpdir/$$lang.new.po; \
10477 + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
10480 + echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
10485 + echo "creation of $$lang.po failed!" 1>&2; \
10486 + rm -f $$tmpdir/$$lang.new.po; \
10489 +en@quot.insert-header: insert-header.sin
10490 + sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
10492 +en@boldquot.insert-header: insert-header.sin
10493 + sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
10495 +mostlyclean: mostlyclean-quot
10497 + rm -f *.insert-header
10499 +++ lxpanel-0.5.6/po/insert-header.sin
10501 +# Sed script that inserts the file called HEADER before the header entry.
10503 +# At each occurrence of a line starting with "msgid ", we execute the following
10504 +# commands. At the first occurrence, insert the file. At the following
10505 +# occurrences, do nothing. The distinction between the first and the following
10506 +# occurrences is achieved by looking at the hold space.
10509 +# Test if the hold space is empty.
10512 +# Yes it was empty. First occurrence. Read the file.
10514 +# Output the file's contents by reading the next line. But don't lose the
10515 +# current line while doing this.
10520 +# The hold space was nonempty. Following occurrences. Do nothing.
10525 +++ lxpanel-0.5.6/po/remove-potcdate.sin
10527 +# Sed script that remove the POT-Creation-Date line in the header entry
10528 +# from a POT file.
10530 +# The distinction between the first and the following occurrences of the
10531 +# pattern is achieved by looking at the hold space.
10532 +/^"POT-Creation-Date: .*"$/{
10534 +# Test if the hold space is empty.
10537 +# Yes it was empty. First occurrence. Remove the line.
10542 +# The hold space was nonempty. Following occurrences. Do nothing.
10546 --- lxpanel-0.5.6.orig/man/Makefile.in
10547 +++ lxpanel-0.5.6/man/Makefile.in
10548 @@ -40,7 +40,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
10549 $(top_srcdir)/configure.ac
10550 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
10552 -mkinstalldirs = $(install_sh) -d
10553 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
10554 CONFIG_HEADER = $(top_builddir)/config.h
10555 CONFIG_CLEAN_FILES =
10556 CONFIG_CLEAN_VPATH_FILES =
10557 @@ -76,6 +76,8 @@ ACLOCAL = @ACLOCAL@
10558 ALL_LINGUAS = @ALL_LINGUAS@
10559 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
10561 +APPLET_CFLAGS = @APPLET_CFLAGS@
10562 +APPLET_LIBS = @APPLET_LIBS@
10564 AUTOCONF = @AUTOCONF@
10565 AUTOHEADER = @AUTOHEADER@
10566 @@ -105,6 +107,8 @@ GMOFILES = @GMOFILES@
10567 GMSGFMT = @GMSGFMT@
10569 G_CAST_CHECKS = @G_CAST_CHECKS@
10570 +INDICATORDIR = @INDICATORDIR@
10571 +INDICATORICONSDIR = @INDICATORICONSDIR@
10572 INSTALL = @INSTALL@
10573 INSTALL_DATA = @INSTALL_DATA@
10574 INSTALL_PROGRAM = @INSTALL_PROGRAM@
10575 @@ -150,8 +154,6 @@ PACKAGE_URL = @PACKAGE_URL@
10576 PACKAGE_VERSION = @PACKAGE_VERSION@
10577 PATH_SEPARATOR = @PATH_SEPARATOR@
10578 PKG_CONFIG = @PKG_CONFIG@
10579 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
10580 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
10581 PLUGINS_LIST = @PLUGINS_LIST@
10582 POFILES = @POFILES@
10584 @@ -207,6 +209,7 @@ libdir = @libdir@
10585 libexecdir = @libexecdir@
10586 localedir = @localedir@
10587 localstatedir = @localstatedir@
10588 +lt_ECHO = @lt_ECHO@
10590 mkdir_p = @mkdir_p@
10591 oldincludedir = @oldincludedir@
10593 +++ lxpanel-0.5.6/m4/codeset.m4
10595 +# codeset.m4 serial AM1 (gettext-0.10.40)
10596 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
10597 +dnl This file is free software, distributed under the terms of the GNU
10598 +dnl General Public License. As a special exception to the GNU General
10599 +dnl Public License, this file may be distributed as part of a program
10600 +dnl that contains a configuration script generated by Autoconf, under
10601 +dnl the same distribution terms as the rest of that program.
10603 +dnl From Bruno Haible.
10605 +AC_DEFUN([AM_LANGINFO_CODESET],
10607 + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
10608 + [AC_TRY_LINK([#include <langinfo.h>],
10609 + [char* cs = nl_langinfo(CODESET);],
10610 + am_cv_langinfo_codeset=yes,
10611 + am_cv_langinfo_codeset=no)
10613 + if test $am_cv_langinfo_codeset = yes; then
10614 + AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
10615 + [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
10619 +++ lxpanel-0.5.6/m4/inttypes_h.m4
10621 +# inttypes_h.m4 serial 5 (gettext-0.12)
10622 +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
10623 +dnl This file is free software, distributed under the terms of the GNU
10624 +dnl General Public License. As a special exception to the GNU General
10625 +dnl Public License, this file may be distributed as part of a program
10626 +dnl that contains a configuration script generated by Autoconf, under
10627 +dnl the same distribution terms as the rest of that program.
10629 +dnl From Paul Eggert.
10631 +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
10632 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
10634 +AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
10636 + AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
10638 + [#include <sys/types.h>
10639 +#include <inttypes.h>],
10640 + [uintmax_t i = (uintmax_t) -1;],
10641 + jm_ac_cv_header_inttypes_h=yes,
10642 + jm_ac_cv_header_inttypes_h=no)])
10643 + if test $jm_ac_cv_header_inttypes_h = yes; then
10644 + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
10645 + [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
10646 + and declares uintmax_t. ])
10650 +++ lxpanel-0.5.6/m4/xsize.m4
10652 +# xsize.m4 serial 2
10653 +dnl Copyright (C) 2003 Free Software Foundation, Inc.
10654 +dnl This file is free software, distributed under the terms of the GNU
10655 +dnl General Public License. As a special exception to the GNU General
10656 +dnl Public License, this file may be distributed as part of a program
10657 +dnl that contains a configuration script generated by Autoconf, under
10658 +dnl the same distribution terms as the rest of that program.
10660 +AC_DEFUN([gl_XSIZE],
10662 + dnl Prerequisites of lib/xsize.h.
10663 + AC_REQUIRE([gl_SIZE_MAX])
10664 + AC_CHECK_HEADERS(stdint.h)
10667 +++ lxpanel-0.5.6/m4/gettext.m4
10669 +# gettext.m4 serial 28 (gettext-0.13)
10670 +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
10671 +dnl This file is free software, distributed under the terms of the GNU
10672 +dnl General Public License. As a special exception to the GNU General
10673 +dnl Public License, this file may be distributed as part of a program
10674 +dnl that contains a configuration script generated by Autoconf, under
10675 +dnl the same distribution terms as the rest of that program.
10677 +dnl This file can can be used in projects which are not available under
10678 +dnl the GNU General Public License or the GNU Library General Public
10679 +dnl License but which still want to provide support for the GNU gettext
10680 +dnl functionality.
10681 +dnl Please note that the actual code of the GNU gettext library is covered
10682 +dnl by the GNU Library General Public License, and the rest of the GNU
10683 +dnl gettext package package is covered by the GNU General Public License.
10684 +dnl They are *not* in the public domain.
10687 +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
10688 +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
10690 +dnl Macro to add for using GNU gettext.
10692 +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
10693 +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
10694 +dnl default (if it is not specified or empty) is 'no-libtool'.
10695 +dnl INTLSYMBOL should be 'external' for packages with no intl directory,
10696 +dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
10697 +dnl If INTLSYMBOL is 'use-libtool', then a libtool library
10698 +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
10699 +dnl depending on --{enable,disable}-{shared,static} and on the presence of
10700 +dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
10701 +dnl $(top_builddir)/intl/libintl.a will be created.
10702 +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
10703 +dnl implementations (in libc or libintl) without the ngettext() function
10704 +dnl will be ignored. If NEEDSYMBOL is specified and is
10705 +dnl 'need-formatstring-macros', then GNU gettext implementations that don't
10706 +dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
10707 +dnl INTLDIR is used to find the intl libraries. If empty,
10708 +dnl the value `$(top_builddir)/intl/' is used.
10710 +dnl The result of the configuration is one of three cases:
10711 +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
10713 +dnl Catalog format: GNU --> install in $(datadir)
10714 +dnl Catalog extension: .mo after installation, .gmo in source tree
10715 +dnl 2) GNU gettext has been found in the system's C library.
10716 +dnl Catalog format: GNU --> install in $(datadir)
10717 +dnl Catalog extension: .mo after installation, .gmo in source tree
10718 +dnl 3) No internationalization, always use English msgid.
10719 +dnl Catalog format: none
10720 +dnl Catalog extension: none
10721 +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
10722 +dnl The use of .gmo is historical (it was needed to avoid overwriting the
10723 +dnl GNU format catalogs when building on a platform with an X/Open gettext),
10724 +dnl but we keep it in order not to force irrelevant filename changes on the
10727 +AC_DEFUN([AM_GNU_GETTEXT],
10729 + dnl Argument checking.
10730 + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
10731 + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
10733 + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
10734 + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
10736 + define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
10737 + define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
10739 + AC_REQUIRE([AM_PO_SUBDIRS])dnl
10740 + ifelse(gt_included_intl, yes, [
10741 + AC_REQUIRE([AM_INTL_SUBDIR])dnl
10744 + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
10745 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
10746 + AC_REQUIRE([AC_LIB_RPATH])
10748 + dnl Sometimes libintl requires libiconv, so first search for libiconv.
10749 + dnl Ideally we would do this search only after the
10750 + dnl if test "$USE_NLS" = "yes"; then
10751 + dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then
10752 + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
10753 + dnl the configure script would need to contain the same shell code
10754 + dnl again, outside any 'if'. There are two solutions:
10755 + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
10756 + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
10757 + dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
10758 + dnl documented, we avoid it.
10759 + ifelse(gt_included_intl, yes, , [
10760 + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
10766 + ifelse(gt_included_intl, yes, [
10767 + BUILD_INCLUDED_LIBINTL=no
10768 + USE_INCLUDED_LIBINTL=no
10774 + dnl If we use NLS figure out what method
10775 + if test "$USE_NLS" = "yes"; then
10776 + gt_use_preinstalled_gnugettext=no
10777 + ifelse(gt_included_intl, yes, [
10778 + AC_MSG_CHECKING([whether included gettext is requested])
10779 + AC_ARG_WITH(included-gettext,
10780 + [ --with-included-gettext use the GNU gettext library included here],
10781 + nls_cv_force_use_gnu_gettext=$withval,
10782 + nls_cv_force_use_gnu_gettext=no)
10783 + AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
10785 + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10786 + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10788 + dnl User does not insist on using GNU NLS library. Figure out what
10789 + dnl to use. If GNU gettext is available we use this. Else we have
10790 + dnl to fall back to GNU NLS library.
10792 + dnl Add a version number to the cache macros.
10793 + define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
10794 + define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
10795 + define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
10797 + AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
10798 + [AC_TRY_LINK([#include <libintl.h>
10799 +]ifelse([$2], [need-formatstring-macros],
10800 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10801 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10804 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10805 +changequote([,])dnl
10806 +], [])[extern int _nl_msg_cat_cntr;
10807 +extern int *_nl_domain_bindings;],
10808 + [bindtextdomain ("", "");
10809 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
10810 + gt_cv_func_gnugettext_libc=yes,
10811 + gt_cv_func_gnugettext_libc=no)])
10813 + if test "$gt_cv_func_gnugettext_libc" != "yes"; then
10814 + dnl Sometimes libintl requires libiconv, so first search for libiconv.
10815 + ifelse(gt_included_intl, yes, , [
10818 + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
10819 + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
10820 + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
10821 + dnl even if libiconv doesn't exist.
10822 + AC_LIB_LINKFLAGS_BODY([intl])
10823 + AC_CACHE_CHECK([for GNU gettext in libintl],
10824 + gt_cv_func_gnugettext_libintl,
10825 + [gt_save_CPPFLAGS="$CPPFLAGS"
10826 + CPPFLAGS="$CPPFLAGS $INCINTL"
10827 + gt_save_LIBS="$LIBS"
10828 + LIBS="$LIBS $LIBINTL"
10829 + dnl Now see whether libintl exists and does not depend on libiconv.
10830 + AC_TRY_LINK([#include <libintl.h>
10831 +]ifelse([$2], [need-formatstring-macros],
10832 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10833 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10836 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10837 +changequote([,])dnl
10838 +], [])[extern int _nl_msg_cat_cntr;
10840 +#ifdef __cplusplus
10843 +const char *_nl_expand_alias ();],
10844 + [bindtextdomain ("", "");
10845 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
10846 + gt_cv_func_gnugettext_libintl=yes,
10847 + gt_cv_func_gnugettext_libintl=no)
10848 + dnl Now see whether libintl exists and depends on libiconv.
10849 + if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
10850 + LIBS="$LIBS $LIBICONV"
10851 + AC_TRY_LINK([#include <libintl.h>
10852 +]ifelse([$2], [need-formatstring-macros],
10853 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10854 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10857 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10858 +changequote([,])dnl
10859 +], [])[extern int _nl_msg_cat_cntr;
10861 +#ifdef __cplusplus
10864 +const char *_nl_expand_alias ();],
10865 + [bindtextdomain ("", "");
10866 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
10867 + [LIBINTL="$LIBINTL $LIBICONV"
10868 + LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10869 + gt_cv_func_gnugettext_libintl=yes
10872 + CPPFLAGS="$gt_save_CPPFLAGS"
10873 + LIBS="$gt_save_LIBS"])
10876 + dnl If an already present or preinstalled GNU gettext() is found,
10877 + dnl use it. But if this macro is used in GNU gettext, and GNU
10878 + dnl gettext is already preinstalled in libintl, we update this
10879 + dnl libintl. (Cf. the install rule in intl/Makefile.in.)
10880 + if test "$gt_cv_func_gnugettext_libc" = "yes" \
10881 + || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
10882 + && test "$PACKAGE" != gettext-runtime \
10883 + && test "$PACKAGE" != gettext-tools; }; then
10884 + gt_use_preinstalled_gnugettext=yes
10886 + dnl Reset the values set by searching for libintl.
10892 + ifelse(gt_included_intl, yes, [
10893 + if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10894 + dnl GNU gettext is not found in the C library.
10895 + dnl Fall back on included GNU gettext library.
10896 + nls_cv_use_gnu_gettext=yes
10900 + if test "$nls_cv_use_gnu_gettext" = "yes"; then
10901 + dnl Mark actions used to generate GNU NLS library.
10902 + BUILD_INCLUDED_LIBINTL=yes
10903 + USE_INCLUDED_LIBINTL=yes
10904 + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
10905 + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
10906 + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10909 + if test "$gt_use_preinstalled_gnugettext" = "yes" \
10910 + || test "$nls_cv_use_gnu_gettext" = "yes"; then
10911 + dnl Mark actions to use GNU gettext tools.
10916 + if test "$gt_use_preinstalled_gnugettext" = "yes" \
10917 + || test "$nls_cv_use_gnu_gettext" = "yes"; then
10918 + AC_DEFINE(ENABLE_NLS, 1,
10919 + [Define to 1 if translation of program messages to the user's native language
10926 + AC_MSG_CHECKING([whether to use NLS])
10927 + AC_MSG_RESULT([$USE_NLS])
10928 + if test "$USE_NLS" = "yes"; then
10929 + AC_MSG_CHECKING([where the gettext function comes from])
10930 + if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10931 + if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
10932 + gt_source="external libintl"
10937 + gt_source="included intl directory"
10939 + AC_MSG_RESULT([$gt_source])
10942 + if test "$USE_NLS" = "yes"; then
10944 + if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10945 + if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
10946 + AC_MSG_CHECKING([how to link with libintl])
10947 + AC_MSG_RESULT([$LIBINTL])
10948 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
10951 + dnl For backward compatibility. Some packages may be using this.
10952 + AC_DEFINE(HAVE_GETTEXT, 1,
10953 + [Define if the GNU gettext() function is already present or preinstalled.])
10954 + AC_DEFINE(HAVE_DCGETTEXT, 1,
10955 + [Define if the GNU dcgettext() function is already present or preinstalled.])
10958 + dnl We need to process the po/ directory.
10962 + ifelse(gt_included_intl, yes, [
10963 + dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
10964 + dnl to 'yes' because some of the testsuite requires it.
10965 + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10966 + BUILD_INCLUDED_LIBINTL=yes
10969 + dnl Make all variables we use known to autoconf.
10970 + AC_SUBST(BUILD_INCLUDED_LIBINTL)
10971 + AC_SUBST(USE_INCLUDED_LIBINTL)
10972 + AC_SUBST(CATOBJEXT)
10974 + dnl For backward compatibility. Some configure.ins may be using this.
10975 + nls_cv_header_intl=
10976 + nls_cv_header_libgt=
10978 + dnl For backward compatibility. Some Makefiles may be using this.
10979 + DATADIRNAME=share
10980 + AC_SUBST(DATADIRNAME)
10982 + dnl For backward compatibility. Some Makefiles may be using this.
10984 + AC_SUBST(INSTOBJEXT)
10986 + dnl For backward compatibility. Some Makefiles may be using this.
10990 + dnl For backward compatibility. Some Makefiles may be using this.
10991 + if test "$USE_INCLUDED_LIBINTL" = yes; then
10992 + INTLOBJS="\$(GETTOBJS)"
10994 + AC_SUBST(INTLOBJS)
10996 + dnl Enable libtool support if the surrounding package wishes it.
10997 + INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
10998 + AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
11001 + dnl For backward compatibility. Some Makefiles may be using this.
11002 + INTLLIBS="$LIBINTL"
11003 + AC_SUBST(INTLLIBS)
11005 + dnl Make all documented variables known to autoconf.
11006 + AC_SUBST(LIBINTL)
11007 + AC_SUBST(LTLIBINTL)
11012 +dnl Checks for all prerequisites of the intl subdirectory,
11013 +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
11014 +dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
11015 +AC_DEFUN([AM_INTL_SUBDIR],
11017 + AC_REQUIRE([AC_PROG_INSTALL])dnl
11018 + AC_REQUIRE([AM_MKINSTALLDIRS])dnl
11019 + AC_REQUIRE([AC_PROG_CC])dnl
11020 + AC_REQUIRE([AC_CANONICAL_HOST])dnl
11021 + AC_REQUIRE([AC_PROG_RANLIB])dnl
11022 + AC_REQUIRE([AC_ISC_POSIX])dnl
11023 + AC_REQUIRE([AC_HEADER_STDC])dnl
11024 + AC_REQUIRE([AC_C_CONST])dnl
11025 + AC_REQUIRE([bh_C_SIGNED])dnl
11026 + AC_REQUIRE([AC_C_INLINE])dnl
11027 + AC_REQUIRE([AC_TYPE_OFF_T])dnl
11028 + AC_REQUIRE([AC_TYPE_SIZE_T])dnl
11029 + AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl
11030 + AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
11031 + AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
11032 + AC_REQUIRE([gt_TYPE_WINT_T])dnl
11033 + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
11034 + AC_REQUIRE([jm_AC_HEADER_STDINT_H])
11035 + AC_REQUIRE([gt_TYPE_INTMAX_T])
11036 + AC_REQUIRE([gt_PRINTF_POSIX])
11037 + AC_REQUIRE([AC_FUNC_ALLOCA])dnl
11038 + AC_REQUIRE([AC_FUNC_MMAP])dnl
11039 + AC_REQUIRE([jm_GLIBC21])dnl
11040 + AC_REQUIRE([gt_INTDIV0])dnl
11041 + AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
11042 + AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
11043 + AC_REQUIRE([gt_INTTYPES_PRI])dnl
11044 + AC_REQUIRE([gl_XSIZE])dnl
11046 + AC_CHECK_TYPE([ptrdiff_t], ,
11047 + [AC_DEFINE([ptrdiff_t], [long],
11048 + [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
11050 + AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11051 +stdlib.h string.h unistd.h sys/param.h])
11052 + AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
11053 +mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11054 +strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11057 + dnl Use the _snprintf function only if it is declared (because on NetBSD it
11058 + dnl is defined as a weak alias of snprintf; we prefer to use the latter).
11059 + gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
11060 + gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
11062 + dnl Use the *_unlocked functions only if they are declared.
11063 + dnl (because some of them were defined without being declared in Solaris
11064 + dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
11065 + dnl on Solaris 2.5.1 to run on Solaris 2.6).
11066 + dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
11067 + gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
11068 + gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
11069 + gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
11071 + case $gt_cv_func_printf_posix in
11072 + *yes) HAVE_POSIX_PRINTF=1 ;;
11073 + *) HAVE_POSIX_PRINTF=0 ;;
11075 + AC_SUBST([HAVE_POSIX_PRINTF])
11076 + if test "$ac_cv_func_asprintf" = yes; then
11081 + AC_SUBST([HAVE_ASPRINTF])
11082 + if test "$ac_cv_func_snprintf" = yes; then
11087 + AC_SUBST([HAVE_SNPRINTF])
11088 + if test "$ac_cv_func_wprintf" = yes; then
11093 + AC_SUBST([HAVE_WPRINTF])
11096 + AM_LANGINFO_CODESET
11097 + if test $ac_cv_header_locale_h = yes; then
11101 + dnl intl/plural.c is generated from intl/plural.y. It requires bison,
11102 + dnl because plural.y uses bison specific features. It requires at least
11103 + dnl bison-1.26 because earlier versions generate a plural.c that doesn't
11105 + dnl bison is only needed for the maintainer (who touches plural.y). But in
11106 + dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
11107 + dnl the rule in general Makefile. Now, some people carelessly touch the
11108 + dnl files or have a broken "make" program, hence the plural.c rule will
11109 + dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
11110 + dnl present or too old.
11111 + AC_CHECK_PROGS([INTLBISON], [bison])
11112 + if test -z "$INTLBISON"; then
11115 + dnl Found it, now check the version.
11116 + AC_MSG_CHECKING([version of bison])
11117 +changequote(<<,>>)dnl
11118 + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11119 + case $ac_prog_version in
11120 + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11121 + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11122 +changequote([,])dnl
11123 + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11124 + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11126 + AC_MSG_RESULT([$ac_prog_version])
11128 + if test $ac_verc_fail = yes; then
11134 +dnl gt_CHECK_DECL(FUNC, INCLUDES)
11135 +dnl Check whether a function is declared.
11136 +AC_DEFUN([gt_CHECK_DECL],
11138 + AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
11139 + [AC_TRY_COMPILE([$2], [
11141 + char *p = (char *) $1;
11143 +], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
11144 + if test $ac_cv_have_decl_$1 = yes; then
11149 + AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
11150 + [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
11154 +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
11155 +AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
11157 +++ lxpanel-0.5.6/m4/progtest.m4
11159 +# progtest.m4 serial 3 (gettext-0.12)
11160 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
11161 +dnl This file is free software, distributed under the terms of the GNU
11162 +dnl General Public License. As a special exception to the GNU General
11163 +dnl Public License, this file may be distributed as part of a program
11164 +dnl that contains a configuration script generated by Autoconf, under
11165 +dnl the same distribution terms as the rest of that program.
11167 +dnl This file can can be used in projects which are not available under
11168 +dnl the GNU General Public License or the GNU Library General Public
11169 +dnl License but which still want to provide support for the GNU gettext
11170 +dnl functionality.
11171 +dnl Please note that the actual code of the GNU gettext library is covered
11172 +dnl by the GNU Library General Public License, and the rest of the GNU
11173 +dnl gettext package package is covered by the GNU General Public License.
11174 +dnl They are *not* in the public domain.
11177 +dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
11179 +# Search path for a program which passes the given test.
11181 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
11182 +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
11183 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
11185 +# Prepare PATH_SEPARATOR.
11186 +# The user is always right.
11187 +if test "${PATH_SEPARATOR+set}" != set; then
11188 + echo "#! /bin/sh" >conf$$.sh
11189 + echo "exit 0" >>conf$$.sh
11190 + chmod +x conf$$.sh
11191 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11192 + PATH_SEPARATOR=';'
11199 +# Find out how to test for executable files. Don't use a zero-byte file,
11200 +# as systems may use methods other than mode bits to determine executability.
11201 +cat >conf$$.file <<_ASEOF
11205 +chmod +x conf$$.file
11206 +if test -x conf$$.file >/dev/null 2>&1; then
11207 + ac_executable_p="test -x"
11209 + ac_executable_p="test -f"
11213 +# Extract the first word of "$2", so it can be a program name with args.
11214 +set dummy $2; ac_word=[$]2
11215 +AC_MSG_CHECKING([for $ac_word])
11216 +AC_CACHE_VAL(ac_cv_path_$1,
11218 + [[\\/]]* | ?:[[\\/]]*)
11219 + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
11222 + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11223 + for ac_dir in ifelse([$5], , $PATH, [$5]); do
11224 + IFS="$ac_save_IFS"
11225 + test -z "$ac_dir" && ac_dir=.
11226 + for ac_exec_ext in '' $ac_executable_extensions; do
11227 + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11229 + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
11235 + IFS="$ac_save_IFS"
11236 +dnl If no 4th arg is given, leave the cache variable unset,
11237 +dnl so AC_PATH_PROGS will keep looking.
11238 +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
11242 +$1="$ac_cv_path_$1"
11243 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
11244 + AC_MSG_RESULT([$]$1)
11246 + AC_MSG_RESULT(no)
11251 +++ lxpanel-0.5.6/m4/longdouble.m4
11253 +# longdouble.m4 serial 1 (gettext-0.12)
11254 +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
11255 +dnl This file is free software, distributed under the terms of the GNU
11256 +dnl General Public License. As a special exception to the GNU General
11257 +dnl Public License, this file may be distributed as part of a program
11258 +dnl that contains a configuration script generated by Autoconf, under
11259 +dnl the same distribution terms as the rest of that program.
11261 +dnl From Bruno Haible.
11262 +dnl Test whether the compiler supports the 'long double' type.
11263 +dnl Prerequisite: AC_PROG_CC
11265 +AC_DEFUN([gt_TYPE_LONGDOUBLE],
11267 + AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
11268 + [if test "$GCC" = yes; then
11269 + gt_cv_c_long_double=yes
11272 + /* The Stardent Vistra knows sizeof(long double), but does not support it. */
11273 + long double foo = 0.0;
11274 + /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
11275 + int array [2*(sizeof(long double) >= sizeof(double)) - 1];
11277 + gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
11279 + if test $gt_cv_c_long_double = yes; then
11280 + AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
11284 +++ lxpanel-0.5.6/m4/stdint_h.m4
11286 +# stdint_h.m4 serial 3 (gettext-0.12)
11287 +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
11288 +dnl This file is free software, distributed under the terms of the GNU
11289 +dnl General Public License. As a special exception to the GNU General
11290 +dnl Public License, this file may be distributed as part of a program
11291 +dnl that contains a configuration script generated by Autoconf, under
11292 +dnl the same distribution terms as the rest of that program.
11294 +dnl From Paul Eggert.
11296 +# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
11297 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
11299 +AC_DEFUN([jm_AC_HEADER_STDINT_H],
11301 + AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
11303 + [#include <sys/types.h>
11304 +#include <stdint.h>],
11305 + [uintmax_t i = (uintmax_t) -1;],
11306 + jm_ac_cv_header_stdint_h=yes,
11307 + jm_ac_cv_header_stdint_h=no)])
11308 + if test $jm_ac_cv_header_stdint_h = yes; then
11309 + AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
11310 + [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
11311 + and declares uintmax_t. ])
11315 +++ lxpanel-0.5.6/m4/signed.m4
11317 +# signed.m4 serial 1 (gettext-0.10.40)
11318 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
11319 +dnl This file is free software, distributed under the terms of the GNU
11320 +dnl General Public License. As a special exception to the GNU General
11321 +dnl Public License, this file may be distributed as part of a program
11322 +dnl that contains a configuration script generated by Autoconf, under
11323 +dnl the same distribution terms as the rest of that program.
11325 +dnl From Bruno Haible.
11327 +AC_DEFUN([bh_C_SIGNED],
11329 + AC_CACHE_CHECK([for signed], bh_cv_c_signed,
11330 + [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
11331 + if test $bh_cv_c_signed = no; then
11332 + AC_DEFINE(signed, ,
11333 + [Define to empty if the C compiler doesn't support this keyword.])
11337 +++ lxpanel-0.5.6/m4/po.m4
11339 +# po.m4 serial 3 (gettext-0.14)
11340 +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
11341 +dnl This file is free software, distributed under the terms of the GNU
11342 +dnl General Public License. As a special exception to the GNU General
11343 +dnl Public License, this file may be distributed as part of a program
11344 +dnl that contains a configuration script generated by Autoconf, under
11345 +dnl the same distribution terms as the rest of that program.
11347 +dnl This file can can be used in projects which are not available under
11348 +dnl the GNU General Public License or the GNU Library General Public
11349 +dnl License but which still want to provide support for the GNU gettext
11350 +dnl functionality.
11351 +dnl Please note that the actual code of the GNU gettext library is covered
11352 +dnl by the GNU Library General Public License, and the rest of the GNU
11353 +dnl gettext package package is covered by the GNU General Public License.
11354 +dnl They are *not* in the public domain.
11357 +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
11358 +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
11360 +dnl Checks for all prerequisites of the po subdirectory.
11361 +AC_DEFUN([AM_PO_SUBDIRS],
11363 + AC_REQUIRE([AC_PROG_MAKE_SET])dnl
11364 + AC_REQUIRE([AC_PROG_INSTALL])dnl
11365 + AC_REQUIRE([AM_MKINSTALLDIRS])dnl
11366 + AC_REQUIRE([AM_NLS])dnl
11368 + dnl Perform the following tests also if --disable-nls has been given,
11369 + dnl because they are needed for "make dist" to work.
11371 + dnl Search for GNU msgfmt in the PATH.
11372 + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
11373 + dnl The second test excludes FreeBSD msgfmt.
11374 + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
11375 + [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11376 + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
11378 + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
11380 + dnl Search for GNU xgettext 0.12 or newer in the PATH.
11381 + dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
11382 + dnl The second test excludes FreeBSD xgettext.
11383 + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
11384 + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11385 + (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)],
11387 + dnl Remove leftover from FreeBSD xgettext call.
11388 + rm -f messages.po
11390 + dnl Search for GNU msgmerge 0.11 or newer in the PATH.
11391 + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
11392 + [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
11394 + dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
11395 + dnl Test whether we really found GNU msgfmt.
11396 + if test "$GMSGFMT" != ":"; then
11397 + dnl If it is no GNU msgfmt we define it as : so that the
11398 + dnl Makefiles still can work.
11399 + if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11400 + (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11403 + GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11405 + [found $GMSGFMT program is not GNU msgfmt; ignore it])
11410 + dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
11411 + dnl Test whether we really found GNU xgettext.
11412 + if test "$XGETTEXT" != ":"; then
11413 + dnl If it is no GNU xgettext we define it as : so that the
11414 + dnl Makefiles still can work.
11415 + if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11416 + (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
11420 + [found xgettext program is not GNU xgettext; ignore it])
11423 + dnl Remove leftover from FreeBSD xgettext call.
11424 + rm -f messages.po
11427 + AC_OUTPUT_COMMANDS([
11428 + for ac_file in $CONFIG_FILES; do
11429 + # Support "outfile[:infile[:infile...]]"
11430 + case "$ac_file" in
11431 + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11433 + # PO directories have a Makefile.in generated from Makefile.in.in.
11434 + case "$ac_file" in */Makefile.in)
11435 + # Adjust a relative srcdir.
11436 + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11437 + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11438 + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11439 + # In autoconf-2.13 it is called $ac_given_srcdir.
11440 + # In autoconf-2.50 it is called $srcdir.
11441 + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11442 + case "$ac_given_srcdir" in
11443 + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11444 + /*) top_srcdir="$ac_given_srcdir" ;;
11445 + *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11447 + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11448 + rm -f "$ac_dir/POTFILES"
11449 + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11450 + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11451 + POMAKEFILEDEPS="POTFILES.in"
11452 + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11453 + # on $ac_dir but don't depend on user-specified configuration
11455 + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11456 + # The LINGUAS file contains the set of available languages.
11457 + if test -n "$OBSOLETE_ALL_LINGUAS"; then
11458 + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11460 + ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11461 + # Hide the ALL_LINGUAS assigment from automake.
11462 + eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11463 + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11465 + # The set of available languages was given in configure.in.
11466 + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11468 + # Compute POFILES
11469 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11470 + # Compute UPDATEPOFILES
11471 + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11472 + # Compute DUMMYPOFILES
11473 + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11474 + # Compute GMOFILES
11475 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11476 + case "$ac_given_srcdir" in
11478 + *) srcdirpre='$(srcdir)/' ;;
11484 + for lang in $ALL_LINGUAS; do
11485 + POFILES="$POFILES $srcdirpre$lang.po"
11486 + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11487 + DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11488 + GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11490 + # CATALOGS depends on both $ac_dir and the user's LINGUAS
11491 + # environment variable.
11493 + if test -n "$ALL_LINGUAS"; then
11494 + for presentlang in $ALL_LINGUAS; do
11496 + if test "%UNSET%" != "$LINGUAS"; then
11497 + desiredlanguages="$LINGUAS"
11499 + desiredlanguages="$ALL_LINGUAS"
11501 + for desiredlang in $desiredlanguages; do
11502 + # Use the presentlang catalog if desiredlang is
11503 + # a. equal to presentlang, or
11504 + # b. a variant of presentlang (because in this case,
11505 + # presentlang can be used as a fallback for messages
11506 + # which are not translated in the desiredlang catalog).
11507 + case "$desiredlang" in
11508 + "$presentlang"*) useit=yes;;
11511 + if test $useit = yes; then
11512 + INST_LINGUAS="$INST_LINGUAS $presentlang"
11517 + if test -n "$INST_LINGUAS"; then
11518 + for lang in $INST_LINGUAS; do
11519 + CATALOGS="$CATALOGS $lang.gmo"
11522 + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11523 + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11524 + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11525 + if test -f "$f"; then
11527 + *.orig | *.bak | *~) ;;
11528 + *) cat "$f" >> "$ac_dir/Makefile" ;;
11536 + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11537 + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11539 + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11540 + # Capture the value of LINGUAS because we need it to compute CATALOGS.
11541 + LINGUAS="${LINGUAS-%UNSET%}"
11545 +dnl Postprocesses a Makefile in a directory containing PO files.
11546 +AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
11548 + # When this code is run, in config.status, two variables have already been
11550 + # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
11551 + # - LINGUAS is the value of the environment variable LINGUAS at configure
11555 + # Adjust a relative srcdir.
11556 + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11557 + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11558 + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11559 + # In autoconf-2.13 it is called $ac_given_srcdir.
11560 + # In autoconf-2.50 it is called $srcdir.
11561 + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11562 + case "$ac_given_srcdir" in
11563 + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11564 + /*) top_srcdir="$ac_given_srcdir" ;;
11565 + *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11568 + # Find a way to echo strings without interpreting backslash.
11569 + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
11572 + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
11573 + gt_echo='printf %s\n'
11580 + gt_echo='echo_func'
11584 + # A sed script that extracts the value of VARIABLE from a Makefile.
11586 +# Test if the hold space is empty.
11591 +# Yes it was empty. Look if we have the expected variable definition.
11592 +/^[ ]*VARIABLE[ ]*=/{
11593 + # Seen the first line of the variable definition.
11594 + s/^[ ]*VARIABLE[ ]*=//
11599 +# Here we are processing a line from the variable definition.
11600 +# Remove comment, more precisely replace it with a space.
11602 +# See if the line ends in a backslash.
11606 +# Print the line, without the trailing backslash.
11609 +# There was no trailing backslash. The end of the variable definition is
11610 +# reached. Clear the hold space.
11615 +# A trailing backslash means that the variable definition continues in the
11616 +# next line. Put a nonempty string into the hold space to indicate this.
11621 +changequote([,])dnl
11623 + # Set POTFILES to the value of the Makefile variable POTFILES.
11624 + sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
11625 + POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
11626 + # Compute POTFILES_DEPS as
11627 + # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
11629 + for file in $POTFILES; do
11630 + POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
11632 + POMAKEFILEDEPS=""
11634 + if test -n "$OBSOLETE_ALL_LINGUAS"; then
11635 + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11637 + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11638 + # The LINGUAS file contains the set of available languages.
11639 + ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11640 + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11642 + # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
11643 + sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
11644 + ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
11646 + # Hide the ALL_LINGUAS assigment from automake.
11647 + eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11648 + # Compute POFILES
11649 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11650 + # Compute UPDATEPOFILES
11651 + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11652 + # Compute DUMMYPOFILES
11653 + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11654 + # Compute GMOFILES
11655 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11656 + # Compute PROPERTIESFILES
11657 + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
11658 + # Compute CLASSFILES
11659 + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
11660 + # Compute QMFILES
11661 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
11662 + # Compute MSGFILES
11663 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
11664 + # Compute RESOURCESDLLFILES
11665 + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
11666 + case "$ac_given_srcdir" in
11668 + *) srcdirpre='$(srcdir)/' ;;
11678 + RESOURCESDLLFILES=
11679 + for lang in $ALL_LINGUAS; do
11680 + POFILES="$POFILES $srcdirpre$lang.po"
11681 + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11682 + DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11683 + GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11684 + PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
11685 + CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
11686 + QMFILES="$QMFILES $srcdirpre$lang.qm"
11687 + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11688 + MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
11689 + frobbedlang=`echo $lang | sed -e 's/_/-/g'`
11690 + RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
11692 + # CATALOGS depends on both $ac_dir and the user's LINGUAS
11693 + # environment variable.
11695 + if test -n "$ALL_LINGUAS"; then
11696 + for presentlang in $ALL_LINGUAS; do
11698 + if test "%UNSET%" != "$LINGUAS"; then
11699 + desiredlanguages="$LINGUAS"
11701 + desiredlanguages="$ALL_LINGUAS"
11703 + for desiredlang in $desiredlanguages; do
11704 + # Use the presentlang catalog if desiredlang is
11705 + # a. equal to presentlang, or
11706 + # b. a variant of presentlang (because in this case,
11707 + # presentlang can be used as a fallback for messages
11708 + # which are not translated in the desiredlang catalog).
11709 + case "$desiredlang" in
11710 + "$presentlang"*) useit=yes;;
11713 + if test $useit = yes; then
11714 + INST_LINGUAS="$INST_LINGUAS $presentlang"
11723 + if test -n "$INST_LINGUAS"; then
11724 + for lang in $INST_LINGUAS; do
11725 + CATALOGS="$CATALOGS $lang.gmo"
11726 + JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
11727 + QTCATALOGS="$QTCATALOGS $lang.qm"
11728 + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11729 + TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
11730 + frobbedlang=`echo $lang | sed -e 's/_/-/g'`
11731 + CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
11735 + sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
11736 + if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
11737 + # Add dependencies that cannot be formulated as a simple suffix rule.
11738 + for lang in $ALL_LINGUAS; do
11739 + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11740 + cat >> "$ac_file.tmp" <<EOF
11741 +$frobbedlang.msg: $lang.po
11742 + @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
11743 + \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
11747 + if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
11748 + # Add dependencies that cannot be formulated as a simple suffix rule.
11749 + for lang in $ALL_LINGUAS; do
11750 + frobbedlang=`echo $lang | sed -e 's/_/-/g'`
11751 + cat >> "$ac_file.tmp" <<EOF
11752 +$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
11753 + @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
11754 + \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
11758 + if test -n "$POMAKEFILEDEPS"; then
11759 + cat >> "$ac_file.tmp" <<EOF
11760 +Makefile: $POMAKEFILEDEPS
11763 + mv "$ac_file.tmp" "$ac_file"
11766 +++ lxpanel-0.5.6/m4/isc-posix.m4
11768 +# isc-posix.m4 serial 2 (gettext-0.11.2)
11769 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
11770 +dnl This file is free software, distributed under the terms of the GNU
11771 +dnl General Public License. As a special exception to the GNU General
11772 +dnl Public License, this file may be distributed as part of a program
11773 +dnl that contains a configuration script generated by Autoconf, under
11774 +dnl the same distribution terms as the rest of that program.
11776 +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
11778 +# This test replaces the one in autoconf.
11779 +# Currently this macro should have the same name as the autoconf macro
11780 +# because gettext's gettext.m4 (distributed in the automake package)
11781 +# still uses it. Otherwise, the use in gettext.m4 makes autoheader
11782 +# give these diagnostics:
11783 +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
11784 +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
11786 +undefine([AC_ISC_POSIX])
11788 +AC_DEFUN([AC_ISC_POSIX],
11790 + dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
11791 + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
11795 +++ lxpanel-0.5.6/m4/size_max.m4
11797 +# size_max.m4 serial 2
11798 +dnl Copyright (C) 2003 Free Software Foundation, Inc.
11799 +dnl This file is free software, distributed under the terms of the GNU
11800 +dnl General Public License. As a special exception to the GNU General
11801 +dnl Public License, this file may be distributed as part of a program
11802 +dnl that contains a configuration script generated by Autoconf, under
11803 +dnl the same distribution terms as the rest of that program.
11805 +dnl From Bruno Haible.
11807 +AC_DEFUN([gl_SIZE_MAX],
11809 + AC_CHECK_HEADERS(stdint.h)
11810 + dnl First test whether the system already has SIZE_MAX.
11811 + AC_MSG_CHECKING([for SIZE_MAX])
11813 + AC_EGREP_CPP([Found it], [
11814 +#include <limits.h>
11816 +#include <stdint.h>
11822 + if test -z "$result"; then
11823 + dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
11824 + dnl than the type 'unsigned long'.
11825 + dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
11826 + dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
11827 + _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
11828 + [#include <stddef.h>], result=?)
11829 + _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
11830 + [#include <stddef.h>], result=?)
11831 + _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
11832 + [#include <stddef.h>], result=?)
11833 + if test "$fits_in_uint" = 1; then
11834 + dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
11835 + dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
11836 + AC_TRY_COMPILE([#include <stddef.h>
11837 + extern size_t foo;
11838 + extern unsigned long foo;
11839 + ], [], fits_in_uint=0)
11841 + if test -z "$result"; then
11842 + if test "$fits_in_uint" = 1; then
11843 + result="$res_hi$res_lo"U
11845 + result="$res_hi$res_lo"UL
11848 + dnl Shouldn't happen, but who knows...
11849 + result='~(size_t)0'
11852 + AC_MSG_RESULT([$result])
11853 + if test "$result" != yes; then
11854 + AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
11855 + [Define as the maximum value of type 'size_t', if the system doesn't define it.])
11859 +++ lxpanel-0.5.6/m4/wchar_t.m4
11861 +# wchar_t.m4 serial 1 (gettext-0.12)
11862 +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
11863 +dnl This file is free software, distributed under the terms of the GNU
11864 +dnl General Public License. As a special exception to the GNU General
11865 +dnl Public License, this file may be distributed as part of a program
11866 +dnl that contains a configuration script generated by Autoconf, under
11867 +dnl the same distribution terms as the rest of that program.
11869 +dnl From Bruno Haible.
11870 +dnl Test whether <stddef.h> has the 'wchar_t' type.
11871 +dnl Prerequisite: AC_PROG_CC
11873 +AC_DEFUN([gt_TYPE_WCHAR_T],
11875 + AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
11876 + [AC_TRY_COMPILE([#include <stddef.h>
11877 + wchar_t foo = (wchar_t)'\0';], ,
11878 + gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
11879 + if test $gt_cv_c_wchar_t = yes; then
11880 + AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
11884 +++ lxpanel-0.5.6/m4/lib-link.m4
11886 +# lib-link.m4 serial 4 (gettext-0.12)
11887 +dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
11888 +dnl This file is free software, distributed under the terms of the GNU
11889 +dnl General Public License. As a special exception to the GNU General
11890 +dnl Public License, this file may be distributed as part of a program
11891 +dnl that contains a configuration script generated by Autoconf, under
11892 +dnl the same distribution terms as the rest of that program.
11894 +dnl From Bruno Haible.
11896 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
11897 +dnl the libraries corresponding to explicit and implicit dependencies.
11898 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
11899 +dnl augments the CPPFLAGS variable.
11900 +AC_DEFUN([AC_LIB_LINKFLAGS],
11902 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
11903 + AC_REQUIRE([AC_LIB_RPATH])
11904 + define([Name],[translit([$1],[./-], [___])])
11905 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
11906 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
11907 + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
11908 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
11909 + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
11910 + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
11911 + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
11913 + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
11914 + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
11915 + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
11916 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
11917 + AC_SUBST([LIB]NAME)
11918 + AC_SUBST([LTLIB]NAME)
11919 + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
11920 + dnl results of this search when this library appears as a dependency.
11921 + HAVE_LIB[]NAME=yes
11926 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
11927 +dnl searches for libname and the libraries corresponding to explicit and
11928 +dnl implicit dependencies, together with the specified include files and
11929 +dnl the ability to compile and link the specified testcode. If found, it
11930 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
11931 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
11932 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
11933 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
11934 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
11936 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
11937 + AC_REQUIRE([AC_LIB_RPATH])
11938 + define([Name],[translit([$1],[./-], [___])])
11939 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
11940 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
11942 + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
11944 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
11946 + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
11947 + dnl because if the user has installed lib[]Name and not disabled its use
11948 + dnl via --without-lib[]Name-prefix, he wants to use it.
11949 + ac_save_CPPFLAGS="$CPPFLAGS"
11950 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
11952 + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
11953 + ac_save_LIBS="$LIBS"
11954 + LIBS="$LIBS $LIB[]NAME"
11955 + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
11956 + LIBS="$ac_save_LIBS"
11958 + if test "$ac_cv_lib[]Name" = yes; then
11959 + HAVE_LIB[]NAME=yes
11960 + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
11961 + AC_MSG_CHECKING([how to link with lib[]$1])
11962 + AC_MSG_RESULT([$LIB[]NAME])
11964 + HAVE_LIB[]NAME=no
11965 + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
11966 + dnl $INC[]NAME either.
11967 + CPPFLAGS="$ac_save_CPPFLAGS"
11971 + AC_SUBST([HAVE_LIB]NAME)
11972 + AC_SUBST([LIB]NAME)
11973 + AC_SUBST([LTLIB]NAME)
11978 +dnl Determine the platform dependent parameters needed to use rpath:
11979 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
11980 +dnl hardcode_direct, hardcode_minus_L.
11981 +AC_DEFUN([AC_LIB_RPATH],
11983 + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
11984 + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
11985 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
11986 + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
11987 + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
11988 + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11989 + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11991 + rm -f ./conftest.sh
11992 + acl_cv_rpath=done
11995 + libext="$acl_cv_libext"
11996 + shlibext="$acl_cv_shlibext"
11997 + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11998 + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11999 + hardcode_direct="$acl_cv_hardcode_direct"
12000 + hardcode_minus_L="$acl_cv_hardcode_minus_L"
12001 + dnl Determine whether the user wants rpath handling at all.
12002 + AC_ARG_ENABLE(rpath,
12003 + [ --disable-rpath do not hardcode runtime library paths],
12004 + :, enable_rpath=yes)
12007 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
12008 +dnl the libraries corresponding to explicit and implicit dependencies.
12009 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
12010 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
12012 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
12013 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
12014 + dnl By default, look in $includedir and $libdir.
12015 + use_additional=yes
12016 + AC_LIB_WITH_FINAL_PREFIX([
12017 + eval additional_includedir=\"$includedir\"
12018 + eval additional_libdir=\"$libdir\"
12020 + AC_LIB_ARG_WITH([lib$1-prefix],
12021 +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
12022 + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
12024 + if test "X$withval" = "Xno"; then
12025 + use_additional=no
12027 + if test "X$withval" = "X"; then
12028 + AC_LIB_WITH_FINAL_PREFIX([
12029 + eval additional_includedir=\"$includedir\"
12030 + eval additional_libdir=\"$libdir\"
12033 + additional_includedir="$withval/include"
12034 + additional_libdir="$withval/lib"
12038 + dnl Search the library and its dependencies in $additional_libdir and
12039 + dnl $LDFLAGS. Using breadth-first-seach.
12045 + names_already_handled=
12046 + names_next_round='$1 $2'
12047 + while test -n "$names_next_round"; do
12048 + names_this_round="$names_next_round"
12049 + names_next_round=
12050 + for name in $names_this_round; do
12052 + for n in $names_already_handled; do
12053 + if test "$n" = "$name"; then
12054 + already_handled=yes
12058 + if test -z "$already_handled"; then
12059 + names_already_handled="$names_already_handled $name"
12060 + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
12061 + dnl or AC_LIB_HAVE_LINKFLAGS call.
12062 + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12063 + eval value=\"\$HAVE_LIB$uppername\"
12064 + if test -n "$value"; then
12065 + if test "$value" = yes; then
12066 + eval value=\"\$LIB$uppername\"
12067 + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
12068 + eval value=\"\$LTLIB$uppername\"
12069 + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
12071 + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
12072 + dnl that this library doesn't exist. So just drop it.
12076 + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
12077 + dnl and the already constructed $LIBNAME/$LTLIBNAME.
12082 + if test $use_additional = yes; then
12083 + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12084 + found_dir="$additional_libdir"
12085 + found_so="$additional_libdir/lib$name.$shlibext"
12086 + if test -f "$additional_libdir/lib$name.la"; then
12087 + found_la="$additional_libdir/lib$name.la"
12090 + if test -f "$additional_libdir/lib$name.$libext"; then
12091 + found_dir="$additional_libdir"
12092 + found_a="$additional_libdir/lib$name.$libext"
12093 + if test -f "$additional_libdir/lib$name.la"; then
12094 + found_la="$additional_libdir/lib$name.la"
12099 + if test "X$found_dir" = "X"; then
12100 + for x in $LDFLAGS $LTLIB[]NAME; do
12101 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12104 + dir=`echo "X$x" | sed -e 's/^X-L//'`
12105 + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12107 + found_so="$dir/lib$name.$shlibext"
12108 + if test -f "$dir/lib$name.la"; then
12109 + found_la="$dir/lib$name.la"
12112 + if test -f "$dir/lib$name.$libext"; then
12114 + found_a="$dir/lib$name.$libext"
12115 + if test -f "$dir/lib$name.la"; then
12116 + found_la="$dir/lib$name.la"
12122 + if test "X$found_dir" != "X"; then
12127 + if test "X$found_dir" != "X"; then
12128 + dnl Found the library.
12129 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
12130 + if test "X$found_so" != "X"; then
12131 + dnl Linking with a shared library. We attempt to hardcode its
12132 + dnl directory into the executable's runpath, unless it's the
12133 + dnl standard /usr/lib.
12134 + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12135 + dnl No hardcoding is needed.
12136 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
12138 + dnl Use an explicit option to hardcode DIR into the resulting
12140 + dnl Potentially add DIR to ltrpathdirs.
12141 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
12143 + for x in $ltrpathdirs; do
12144 + if test "X$x" = "X$found_dir"; then
12149 + if test -z "$haveit"; then
12150 + ltrpathdirs="$ltrpathdirs $found_dir"
12152 + dnl The hardcoding into $LIBNAME is system dependent.
12153 + if test "$hardcode_direct" = yes; then
12154 + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
12155 + dnl resulting binary.
12156 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
12158 + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12159 + dnl Use an explicit option to hardcode DIR into the resulting
12161 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
12162 + dnl Potentially add DIR to rpathdirs.
12163 + dnl The rpathdirs will be appended to $LIBNAME at the end.
12165 + for x in $rpathdirs; do
12166 + if test "X$x" = "X$found_dir"; then
12171 + if test -z "$haveit"; then
12172 + rpathdirs="$rpathdirs $found_dir"
12175 + dnl Rely on "-L$found_dir".
12176 + dnl But don't add it if it's already contained in the LDFLAGS
12177 + dnl or the already constructed $LIBNAME
12179 + for x in $LDFLAGS $LIB[]NAME; do
12180 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12181 + if test "X$x" = "X-L$found_dir"; then
12186 + if test -z "$haveit"; then
12187 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
12189 + if test "$hardcode_minus_L" != no; then
12190 + dnl FIXME: Not sure whether we should use
12191 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
12193 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
12195 + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
12196 + dnl here, because this doesn't fit in flags passed to the
12197 + dnl compiler. So give up. No hardcoding. This affects only
12198 + dnl very old systems.
12199 + dnl FIXME: Not sure whether we should use
12200 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
12202 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
12208 + if test "X$found_a" != "X"; then
12209 + dnl Linking with a static library.
12210 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
12212 + dnl We shouldn't come here, but anyway it's good to have a
12214 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
12217 + dnl Assume the include files are nearby.
12218 + additional_includedir=
12219 + case "$found_dir" in
12221 + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12222 + additional_includedir="$basedir/include"
12225 + if test "X$additional_includedir" != "X"; then
12226 + dnl Potentially add $additional_includedir to $INCNAME.
12227 + dnl But don't add it
12228 + dnl 1. if it's the standard /usr/include,
12229 + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
12230 + dnl 3. if it's already present in $CPPFLAGS or the already
12231 + dnl constructed $INCNAME,
12232 + dnl 4. if it doesn't exist as a directory.
12233 + if test "X$additional_includedir" != "X/usr/include"; then
12235 + if test "X$additional_includedir" = "X/usr/local/include"; then
12236 + if test -n "$GCC"; then
12238 + linux*) haveit=yes;;
12242 + if test -z "$haveit"; then
12243 + for x in $CPPFLAGS $INC[]NAME; do
12244 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12245 + if test "X$x" = "X-I$additional_includedir"; then
12250 + if test -z "$haveit"; then
12251 + if test -d "$additional_includedir"; then
12252 + dnl Really add $additional_includedir to $INCNAME.
12253 + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
12259 + dnl Look for dependencies.
12260 + if test -n "$found_la"; then
12261 + dnl Read the .la file. It defines the variables
12262 + dnl dlname, library_names, old_library, dependency_libs, current,
12263 + dnl age, revision, installed, dlopen, dlpreopen, libdir.
12264 + save_libdir="$libdir"
12265 + case "$found_la" in
12266 + */* | *\\*) . "$found_la" ;;
12267 + *) . "./$found_la" ;;
12269 + libdir="$save_libdir"
12270 + dnl We use only dependency_libs.
12271 + for dep in $dependency_libs; do
12274 + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12275 + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
12276 + dnl But don't add it
12277 + dnl 1. if it's the standard /usr/lib,
12278 + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
12279 + dnl 3. if it's already present in $LDFLAGS or the already
12280 + dnl constructed $LIBNAME,
12281 + dnl 4. if it doesn't exist as a directory.
12282 + if test "X$additional_libdir" != "X/usr/lib"; then
12284 + if test "X$additional_libdir" = "X/usr/local/lib"; then
12285 + if test -n "$GCC"; then
12287 + linux*) haveit=yes;;
12291 + if test -z "$haveit"; then
12293 + for x in $LDFLAGS $LIB[]NAME; do
12294 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12295 + if test "X$x" = "X-L$additional_libdir"; then
12300 + if test -z "$haveit"; then
12301 + if test -d "$additional_libdir"; then
12302 + dnl Really add $additional_libdir to $LIBNAME.
12303 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
12307 + for x in $LDFLAGS $LTLIB[]NAME; do
12308 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12309 + if test "X$x" = "X-L$additional_libdir"; then
12314 + if test -z "$haveit"; then
12315 + if test -d "$additional_libdir"; then
12316 + dnl Really add $additional_libdir to $LTLIBNAME.
12317 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
12324 + dir=`echo "X$dep" | sed -e 's/^X-R//'`
12325 + if test "$enable_rpath" != no; then
12326 + dnl Potentially add DIR to rpathdirs.
12327 + dnl The rpathdirs will be appended to $LIBNAME at the end.
12329 + for x in $rpathdirs; do
12330 + if test "X$x" = "X$dir"; then
12335 + if test -z "$haveit"; then
12336 + rpathdirs="$rpathdirs $dir"
12338 + dnl Potentially add DIR to ltrpathdirs.
12339 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
12341 + for x in $ltrpathdirs; do
12342 + if test "X$x" = "X$dir"; then
12347 + if test -z "$haveit"; then
12348 + ltrpathdirs="$ltrpathdirs $dir"
12353 + dnl Handle this in the next round.
12354 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12357 + dnl Handle this in the next round. Throw away the .la's
12358 + dnl directory; it is already contained in a preceding -L
12360 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12363 + dnl Most likely an immediate library name.
12364 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
12365 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
12371 + dnl Didn't find the library; assume it is in the system directories
12372 + dnl known to the linker and runtime loader. (All the system
12373 + dnl directories known to the linker should also be known to the
12374 + dnl runtime loader, otherwise the system is severely misconfigured.)
12375 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
12376 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
12382 + if test "X$rpathdirs" != "X"; then
12383 + if test -n "$hardcode_libdir_separator"; then
12384 + dnl Weird platform: only the last -rpath option counts, the user must
12385 + dnl pass all path elements in one option. We can arrange that for a
12386 + dnl single library, but not when more than one $LIBNAMEs are used.
12388 + for found_dir in $rpathdirs; do
12389 + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12391 + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
12392 + acl_save_libdir="$libdir"
12393 + libdir="$alldirs"
12394 + eval flag=\"$hardcode_libdir_flag_spec\"
12395 + libdir="$acl_save_libdir"
12396 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
12398 + dnl The -rpath options are cumulative.
12399 + for found_dir in $rpathdirs; do
12400 + acl_save_libdir="$libdir"
12401 + libdir="$found_dir"
12402 + eval flag=\"$hardcode_libdir_flag_spec\"
12403 + libdir="$acl_save_libdir"
12404 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
12408 + if test "X$ltrpathdirs" != "X"; then
12409 + dnl When using libtool, the option that works for both libraries and
12410 + dnl executables is -R. The -R options are cumulative.
12411 + for found_dir in $ltrpathdirs; do
12412 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
12417 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
12418 +dnl unless already present in VAR.
12419 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
12420 +dnl contains two or three consecutive elements that belong together.
12421 +AC_DEFUN([AC_LIB_APPENDTOVAR],
12423 + for element in [$2]; do
12425 + for x in $[$1]; do
12426 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12427 + if test "X$x" = "X$element"; then
12432 + if test -z "$haveit"; then
12433 + [$1]="${[$1]}${[$1]:+ }$element"
12438 +++ lxpanel-0.5.6/m4/intmax.m4
12440 +# intmax.m4 serial 1 (gettext-0.12)
12441 +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
12442 +dnl This file is free software, distributed under the terms of the GNU
12443 +dnl General Public License. As a special exception to the GNU General
12444 +dnl Public License, this file may be distributed as part of a program
12445 +dnl that contains a configuration script generated by Autoconf, under
12446 +dnl the same distribution terms as the rest of that program.
12448 +dnl From Bruno Haible.
12449 +dnl Test whether the system has the 'intmax_t' type, but don't attempt to
12450 +dnl find a replacement if it is lacking.
12452 +AC_DEFUN([gt_TYPE_INTMAX_T],
12454 + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
12455 + AC_REQUIRE([jm_AC_HEADER_STDINT_H])
12456 + AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
12457 + [AC_TRY_COMPILE([
12458 +#include <stddef.h>
12459 +#include <stdlib.h>
12460 +#if HAVE_STDINT_H_WITH_UINTMAX
12461 +#include <stdint.h>
12463 +#if HAVE_INTTYPES_H_WITH_UINTMAX
12464 +#include <inttypes.h>
12466 +], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
12467 + if test $gt_cv_c_intmax_t = yes; then
12468 + AC_DEFINE(HAVE_INTMAX_T, 1,
12469 + [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
12473 +++ lxpanel-0.5.6/m4/lib-ld.m4
12475 +# lib-ld.m4 serial 3 (gettext-0.13)
12476 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
12477 +dnl This file is free software, distributed under the terms of the GNU
12478 +dnl General Public License. As a special exception to the GNU General
12479 +dnl Public License, this file may be distributed as part of a program
12480 +dnl that contains a configuration script generated by Autoconf, under
12481 +dnl the same distribution terms as the rest of that program.
12483 +dnl Subroutines of libtool.m4,
12484 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
12485 +dnl with libtool.m4.
12487 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
12488 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
12489 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
12490 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12491 +case `$LD -v 2>&1 </dev/null` in
12492 +*GNU* | *'with BFD'*)
12493 + acl_cv_prog_gnu_ld=yes ;;
12495 + acl_cv_prog_gnu_ld=no ;;
12497 +with_gnu_ld=$acl_cv_prog_gnu_ld
12500 +dnl From libtool-1.4. Sets the variable LD.
12501 +AC_DEFUN([AC_LIB_PROG_LD],
12502 +[AC_ARG_WITH(gnu-ld,
12503 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
12504 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
12505 +AC_REQUIRE([AC_PROG_CC])dnl
12506 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
12507 +# Prepare PATH_SEPARATOR.
12508 +# The user is always right.
12509 +if test "${PATH_SEPARATOR+set}" != set; then
12510 + echo "#! /bin/sh" >conf$$.sh
12511 + echo "exit 0" >>conf$$.sh
12512 + chmod +x conf$$.sh
12513 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12514 + PATH_SEPARATOR=';'
12521 +if test "$GCC" = yes; then
12522 + # Check if gcc -print-prog-name=ld gives a path.
12523 + AC_MSG_CHECKING([for ld used by GCC])
12526 + # gcc leaves a trailing carriage return which upsets mingw
12527 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12529 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12532 + # Accept absolute paths.
12533 + [[\\/]* | [A-Za-z]:[\\/]*)]
12534 + [re_direlt='/[^/][^/]*/\.\./']
12535 + # Canonicalize the path of ld
12536 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12537 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12538 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12540 + test -z "$LD" && LD="$ac_prog"
12543 + # If it fails, then pretend we aren't using GCC.
12547 + # If it is relative, then search for the first ld in PATH.
12548 + with_gnu_ld=unknown
12551 +elif test "$with_gnu_ld" = yes; then
12552 + AC_MSG_CHECKING([for GNU ld])
12554 + AC_MSG_CHECKING([for non-GNU ld])
12556 +AC_CACHE_VAL(acl_cv_path_LD,
12557 +[if test -z "$LD"; then
12558 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12559 + for ac_dir in $PATH; do
12560 + test -z "$ac_dir" && ac_dir=.
12561 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12562 + acl_cv_path_LD="$ac_dir/$ac_prog"
12563 + # Check to see if the program is GNU ld. I'd rather use --version,
12564 + # but apparently some GNU ld's only accept -v.
12565 + # Break only if it was the GNU/non-GNU ld that we prefer.
12566 + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12567 + *GNU* | *'with BFD'*)
12568 + test "$with_gnu_ld" != no && break ;;
12570 + test "$with_gnu_ld" != yes && break ;;
12574 + IFS="$ac_save_ifs"
12576 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
12578 +LD="$acl_cv_path_LD"
12579 +if test -n "$LD"; then
12580 + AC_MSG_RESULT($LD)
12582 + AC_MSG_RESULT(no)
12584 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
12585 +AC_LIB_PROG_LD_GNU
12588 +++ lxpanel-0.5.6/m4/iconv.m4
12590 +# iconv.m4 serial AM4 (gettext-0.11.3)
12591 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
12592 +dnl This file is free software, distributed under the terms of the GNU
12593 +dnl General Public License. As a special exception to the GNU General
12594 +dnl Public License, this file may be distributed as part of a program
12595 +dnl that contains a configuration script generated by Autoconf, under
12596 +dnl the same distribution terms as the rest of that program.
12598 +dnl From Bruno Haible.
12600 +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
12602 + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
12603 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
12604 + AC_REQUIRE([AC_LIB_RPATH])
12606 + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
12608 + AC_LIB_LINKFLAGS_BODY([iconv])
12611 +AC_DEFUN([AM_ICONV_LINK],
12613 + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
12614 + dnl those with the standalone portable GNU libiconv installed).
12616 + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
12618 + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
12620 + dnl Add $INCICONV to CPPFLAGS before performing the following checks,
12621 + dnl because if the user has installed libiconv and not disabled its use
12622 + dnl via --without-libiconv-prefix, he wants to use it. The first
12623 + dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
12624 + am_save_CPPFLAGS="$CPPFLAGS"
12625 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
12627 + AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
12628 + am_cv_func_iconv="no, consider installing GNU libiconv"
12629 + am_cv_lib_iconv=no
12630 + AC_TRY_LINK([#include <stdlib.h>
12631 +#include <iconv.h>],
12632 + [iconv_t cd = iconv_open("","");
12633 + iconv(cd,NULL,NULL,NULL,NULL);
12634 + iconv_close(cd);],
12635 + am_cv_func_iconv=yes)
12636 + if test "$am_cv_func_iconv" != yes; then
12637 + am_save_LIBS="$LIBS"
12638 + LIBS="$LIBS $LIBICONV"
12639 + AC_TRY_LINK([#include <stdlib.h>
12640 +#include <iconv.h>],
12641 + [iconv_t cd = iconv_open("","");
12642 + iconv(cd,NULL,NULL,NULL,NULL);
12643 + iconv_close(cd);],
12644 + am_cv_lib_iconv=yes
12645 + am_cv_func_iconv=yes)
12646 + LIBS="$am_save_LIBS"
12649 + if test "$am_cv_func_iconv" = yes; then
12650 + AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
12652 + if test "$am_cv_lib_iconv" = yes; then
12653 + AC_MSG_CHECKING([how to link with libiconv])
12654 + AC_MSG_RESULT([$LIBICONV])
12656 + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
12658 + CPPFLAGS="$am_save_CPPFLAGS"
12662 + AC_SUBST(LIBICONV)
12663 + AC_SUBST(LTLIBICONV)
12666 +AC_DEFUN([AM_ICONV],
12669 + if test "$am_cv_func_iconv" = yes; then
12670 + AC_MSG_CHECKING([for iconv declaration])
12671 + AC_CACHE_VAL(am_cv_proto_iconv, [
12673 +#include <stdlib.h>
12674 +#include <iconv.h>
12676 +#ifdef __cplusplus
12679 +#if defined(__STDC__) || defined(__cplusplus)
12680 +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12684 +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
12685 + 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);"])
12686 + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12687 + AC_MSG_RESULT([$]{ac_t:-
12688 + }[$]am_cv_proto_iconv)
12689 + AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
12690 + [Define as const if the declaration of iconv() needs const.])
12694 +++ lxpanel-0.5.6/m4/lib-prefix.m4
12696 +# lib-prefix.m4 serial 3 (gettext-0.13)
12697 +dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
12698 +dnl This file is free software, distributed under the terms of the GNU
12699 +dnl General Public License. As a special exception to the GNU General
12700 +dnl Public License, this file may be distributed as part of a program
12701 +dnl that contains a configuration script generated by Autoconf, under
12702 +dnl the same distribution terms as the rest of that program.
12704 +dnl From Bruno Haible.
12706 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
12707 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
12708 +dnl require excessive bracketing.
12709 +ifdef([AC_HELP_STRING],
12710 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
12711 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
12713 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
12714 +dnl to access previously installed libraries. The basic assumption is that
12715 +dnl a user will want packages to use other packages he previously installed
12716 +dnl with the same --prefix option.
12717 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
12718 +dnl libraries, but is otherwise very convenient.
12719 +AC_DEFUN([AC_LIB_PREFIX],
12721 + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
12722 + AC_REQUIRE([AC_PROG_CC])
12723 + AC_REQUIRE([AC_CANONICAL_HOST])
12724 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
12725 + dnl By default, look in $includedir and $libdir.
12726 + use_additional=yes
12727 + AC_LIB_WITH_FINAL_PREFIX([
12728 + eval additional_includedir=\"$includedir\"
12729 + eval additional_libdir=\"$libdir\"
12731 + AC_LIB_ARG_WITH([lib-prefix],
12732 +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
12733 + --without-lib-prefix don't search for libraries in includedir and libdir],
12735 + if test "X$withval" = "Xno"; then
12736 + use_additional=no
12738 + if test "X$withval" = "X"; then
12739 + AC_LIB_WITH_FINAL_PREFIX([
12740 + eval additional_includedir=\"$includedir\"
12741 + eval additional_libdir=\"$libdir\"
12744 + additional_includedir="$withval/include"
12745 + additional_libdir="$withval/lib"
12749 + if test $use_additional = yes; then
12750 + dnl Potentially add $additional_includedir to $CPPFLAGS.
12751 + dnl But don't add it
12752 + dnl 1. if it's the standard /usr/include,
12753 + dnl 2. if it's already present in $CPPFLAGS,
12754 + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
12755 + dnl 4. if it doesn't exist as a directory.
12756 + if test "X$additional_includedir" != "X/usr/include"; then
12758 + for x in $CPPFLAGS; do
12759 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12760 + if test "X$x" = "X-I$additional_includedir"; then
12765 + if test -z "$haveit"; then
12766 + if test "X$additional_includedir" = "X/usr/local/include"; then
12767 + if test -n "$GCC"; then
12769 + linux*) haveit=yes;;
12773 + if test -z "$haveit"; then
12774 + if test -d "$additional_includedir"; then
12775 + dnl Really add $additional_includedir to $CPPFLAGS.
12776 + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
12781 + dnl Potentially add $additional_libdir to $LDFLAGS.
12782 + dnl But don't add it
12783 + dnl 1. if it's the standard /usr/lib,
12784 + dnl 2. if it's already present in $LDFLAGS,
12785 + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
12786 + dnl 4. if it doesn't exist as a directory.
12787 + if test "X$additional_libdir" != "X/usr/lib"; then
12789 + for x in $LDFLAGS; do
12790 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
12791 + if test "X$x" = "X-L$additional_libdir"; then
12796 + if test -z "$haveit"; then
12797 + if test "X$additional_libdir" = "X/usr/local/lib"; then
12798 + if test -n "$GCC"; then
12800 + linux*) haveit=yes;;
12804 + if test -z "$haveit"; then
12805 + if test -d "$additional_libdir"; then
12806 + dnl Really add $additional_libdir to $LDFLAGS.
12807 + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
12815 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
12816 +dnl acl_final_exec_prefix, containing the values to which $prefix and
12817 +dnl $exec_prefix will expand at the end of the configure script.
12818 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
12820 + dnl Unfortunately, prefix and exec_prefix get only finally determined
12821 + dnl at the end of configure.
12822 + if test "X$prefix" = "XNONE"; then
12823 + acl_final_prefix="$ac_default_prefix"
12825 + acl_final_prefix="$prefix"
12827 + if test "X$exec_prefix" = "XNONE"; then
12828 + acl_final_exec_prefix='${prefix}'
12830 + acl_final_exec_prefix="$exec_prefix"
12832 + acl_save_prefix="$prefix"
12833 + prefix="$acl_final_prefix"
12834 + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12835 + prefix="$acl_save_prefix"
12838 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
12839 +dnl variables prefix and exec_prefix bound to the values they will have
12840 +dnl at the end of the configure script.
12841 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
12843 + acl_save_prefix="$prefix"
12844 + prefix="$acl_final_prefix"
12845 + acl_save_exec_prefix="$exec_prefix"
12846 + exec_prefix="$acl_final_exec_prefix"
12848 + exec_prefix="$acl_save_exec_prefix"
12849 + prefix="$acl_save_prefix"
12852 +++ lxpanel-0.5.6/m4/inttypes.m4
12854 +# inttypes.m4 serial 1 (gettext-0.11.4)
12855 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
12856 +dnl This file is free software, distributed under the terms of the GNU
12857 +dnl General Public License. As a special exception to the GNU General
12858 +dnl Public License, this file may be distributed as part of a program
12859 +dnl that contains a configuration script generated by Autoconf, under
12860 +dnl the same distribution terms as the rest of that program.
12862 +dnl From Paul Eggert.
12864 +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
12867 +AC_DEFUN([gt_HEADER_INTTYPES_H],
12869 + AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
12872 + [#include <sys/types.h>
12873 +#include <inttypes.h>],
12874 + [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
12876 + if test $gt_cv_header_inttypes_h = yes; then
12877 + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
12878 + [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
12882 +++ lxpanel-0.5.6/m4/nls.m4
12884 +# nls.m4 serial 1 (gettext-0.12)
12885 +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
12886 +dnl This file is free software, distributed under the terms of the GNU
12887 +dnl General Public License. As a special exception to the GNU General
12888 +dnl Public License, this file may be distributed as part of a program
12889 +dnl that contains a configuration script generated by Autoconf, under
12890 +dnl the same distribution terms as the rest of that program.
12892 +dnl This file can can be used in projects which are not available under
12893 +dnl the GNU General Public License or the GNU Library General Public
12894 +dnl License but which still want to provide support for the GNU gettext
12895 +dnl functionality.
12896 +dnl Please note that the actual code of the GNU gettext library is covered
12897 +dnl by the GNU Library General Public License, and the rest of the GNU
12898 +dnl gettext package package is covered by the GNU General Public License.
12899 +dnl They are *not* in the public domain.
12902 +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
12903 +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
12905 +AC_DEFUN([AM_NLS],
12907 + AC_MSG_CHECKING([whether NLS is requested])
12908 + dnl Default is enabled NLS
12909 + AC_ARG_ENABLE(nls,
12910 + [ --disable-nls do not use Native Language Support],
12911 + USE_NLS=$enableval, USE_NLS=yes)
12912 + AC_MSG_RESULT($USE_NLS)
12913 + AC_SUBST(USE_NLS)
12916 +AC_DEFUN([AM_MKINSTALLDIRS],
12918 + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
12919 + dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
12920 + dnl Try to locate it.
12922 + if test -n "$ac_aux_dir"; then
12923 + case "$ac_aux_dir" in
12924 + /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12925 + *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12928 + if test -z "$MKINSTALLDIRS"; then
12929 + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12931 + AC_SUBST(MKINSTALLDIRS)
12934 +++ lxpanel-0.5.6/m4/lcmessage.m4
12936 +# lcmessage.m4 serial 3 (gettext-0.11.3)
12937 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
12938 +dnl This file is free software, distributed under the terms of the GNU
12939 +dnl General Public License. As a special exception to the GNU General
12940 +dnl Public License, this file may be distributed as part of a program
12941 +dnl that contains a configuration script generated by Autoconf, under
12942 +dnl the same distribution terms as the rest of that program.
12944 +dnl This file can can be used in projects which are not available under
12945 +dnl the GNU General Public License or the GNU Library General Public
12946 +dnl License but which still want to provide support for the GNU gettext
12947 +dnl functionality.
12948 +dnl Please note that the actual code of the GNU gettext library is covered
12949 +dnl by the GNU Library General Public License, and the rest of the GNU
12950 +dnl gettext package package is covered by the GNU General Public License.
12951 +dnl They are *not* in the public domain.
12954 +dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
12956 +# Check whether LC_MESSAGES is available in <locale.h>.
12958 +AC_DEFUN([AM_LC_MESSAGES],
12960 + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
12961 + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
12962 + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
12963 + if test $am_cv_val_LC_MESSAGES = yes; then
12964 + AC_DEFINE(HAVE_LC_MESSAGES, 1,
12965 + [Define if your <locale.h> file defines LC_MESSAGES.])
12969 +++ lxpanel-0.5.6/m4/longlong.m4
12971 +# longlong.m4 serial 4
12972 +dnl Copyright (C) 1999-2003 Free Software Foundation, Inc.
12973 +dnl This file is free software, distributed under the terms of the GNU
12974 +dnl General Public License. As a special exception to the GNU General
12975 +dnl Public License, this file may be distributed as part of a program
12976 +dnl that contains a configuration script generated by Autoconf, under
12977 +dnl the same distribution terms as the rest of that program.
12979 +dnl From Paul Eggert.
12981 +# Define HAVE_LONG_LONG if 'long long' works.
12983 +AC_DEFUN([jm_AC_TYPE_LONG_LONG],
12985 + AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
12986 + [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
12987 + [long long llmax = (long long) -1;
12988 + return ll << i | ll >> i | llmax / ll | llmax % ll;],
12989 + ac_cv_type_long_long=yes,
12990 + ac_cv_type_long_long=no)])
12991 + if test $ac_cv_type_long_long = yes; then
12992 + AC_DEFINE(HAVE_LONG_LONG, 1,
12993 + [Define if you have the 'long long' type.])
12997 +++ lxpanel-0.5.6/m4/wint_t.m4
12999 +# wint_t.m4 serial 1 (gettext-0.12)
13000 +dnl Copyright (C) 2003 Free Software Foundation, Inc.
13001 +dnl This file is free software, distributed under the terms of the GNU
13002 +dnl General Public License. As a special exception to the GNU General
13003 +dnl Public License, this file may be distributed as part of a program
13004 +dnl that contains a configuration script generated by Autoconf, under
13005 +dnl the same distribution terms as the rest of that program.
13007 +dnl From Bruno Haible.
13008 +dnl Test whether <wchar.h> has the 'wint_t' type.
13009 +dnl Prerequisite: AC_PROG_CC
13011 +AC_DEFUN([gt_TYPE_WINT_T],
13013 + AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
13014 + [AC_TRY_COMPILE([#include <wchar.h>
13015 + wint_t foo = (wchar_t)'\0';], ,
13016 + gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
13017 + if test $gt_cv_c_wint_t = yes; then
13018 + AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
13022 +++ lxpanel-0.5.6/m4/glibc21.m4
13024 +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
13025 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
13026 +dnl This file is free software, distributed under the terms of the GNU
13027 +dnl General Public License. As a special exception to the GNU General
13028 +dnl Public License, this file may be distributed as part of a program
13029 +dnl that contains a configuration script generated by Autoconf, under
13030 +dnl the same distribution terms as the rest of that program.
13032 +# Test for the GNU C Library, version 2.1 or newer.
13033 +# From Bruno Haible.
13035 +AC_DEFUN([jm_GLIBC21],
13037 + AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
13038 + ac_cv_gnu_library_2_1,
13039 + [AC_EGREP_CPP([Lucky GNU user],
13041 +#include <features.h>
13042 +#ifdef __GNU_LIBRARY__
13043 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13048 + ac_cv_gnu_library_2_1=yes,
13049 + ac_cv_gnu_library_2_1=no)
13052 + AC_SUBST(GLIBC21)
13053 + GLIBC21="$ac_cv_gnu_library_2_1"
13057 +++ lxpanel-0.5.6/m4/ulonglong.m4
13059 +# ulonglong.m4 serial 3
13060 +dnl Copyright (C) 1999-2003 Free Software Foundation, Inc.
13061 +dnl This file is free software, distributed under the terms of the GNU
13062 +dnl General Public License. As a special exception to the GNU General
13063 +dnl Public License, this file may be distributed as part of a program
13064 +dnl that contains a configuration script generated by Autoconf, under
13065 +dnl the same distribution terms as the rest of that program.
13067 +dnl From Paul Eggert.
13069 +# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
13071 +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
13073 + AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
13074 + [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
13075 + [unsigned long long ullmax = (unsigned long long) -1;
13076 + return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
13077 + ac_cv_type_unsigned_long_long=yes,
13078 + ac_cv_type_unsigned_long_long=no)])
13079 + if test $ac_cv_type_unsigned_long_long = yes; then
13080 + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
13081 + [Define if you have the 'unsigned long long' type.])
13085 +++ lxpanel-0.5.6/m4/intdiv0.m4
13087 +# intdiv0.m4 serial 1 (gettext-0.11.3)
13088 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
13089 +dnl This file is free software, distributed under the terms of the GNU
13090 +dnl General Public License. As a special exception to the GNU General
13091 +dnl Public License, this file may be distributed as part of a program
13092 +dnl that contains a configuration script generated by Autoconf, under
13093 +dnl the same distribution terms as the rest of that program.
13095 +dnl From Bruno Haible.
13097 +AC_DEFUN([gt_INTDIV0],
13099 + AC_REQUIRE([AC_PROG_CC])dnl
13100 + AC_REQUIRE([AC_CANONICAL_HOST])dnl
13102 + AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
13103 + gt_cv_int_divbyzero_sigfpe,
13106 +#include <stdlib.h>
13107 +#include <signal.h>
13110 +#ifdef __cplusplus
13111 +sigfpe_handler (int sig)
13113 +sigfpe_handler (sig) int sig;
13116 + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13117 + exit (sig != SIGFPE);
13127 + signal (SIGFPE, sigfpe_handler);
13128 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13129 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13130 + signal (SIGTRAP, sigfpe_handler);
13132 +/* Linux/SPARC yields signal SIGILL. */
13133 +#if defined (__sparc__) && defined (__linux__)
13134 + signal (SIGILL, sigfpe_handler);
13141 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
13143 + # Guess based on the CPU.
13144 + case "$host_cpu" in
13145 + alpha* | i[34567]86 | m68k | s390*)
13146 + gt_cv_int_divbyzero_sigfpe="guessing yes";;
13148 + gt_cv_int_divbyzero_sigfpe="guessing no";;
13152 + case "$gt_cv_int_divbyzero_sigfpe" in
13156 + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
13157 + [Define if integer division by zero raises signal SIGFPE.])
13160 +++ lxpanel-0.5.6/m4/uintmax_t.m4
13162 +# uintmax_t.m4 serial 7 (gettext-0.12)
13163 +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
13164 +dnl This file is free software, distributed under the terms of the GNU
13165 +dnl General Public License. As a special exception to the GNU General
13166 +dnl Public License, this file may be distributed as part of a program
13167 +dnl that contains a configuration script generated by Autoconf, under
13168 +dnl the same distribution terms as the rest of that program.
13170 +dnl From Paul Eggert.
13174 +# Define uintmax_t to 'unsigned long' or 'unsigned long long'
13175 +# if it is not already defined in <stdint.h> or <inttypes.h>.
13177 +AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
13179 + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
13180 + AC_REQUIRE([jm_AC_HEADER_STDINT_H])
13181 + if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13182 + AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
13183 + test $ac_cv_type_unsigned_long_long = yes \
13184 + && ac_type='unsigned long long' \
13185 + || ac_type='unsigned long'
13186 + AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
13187 + [Define to unsigned long or unsigned long long
13188 + if <stdint.h> and <inttypes.h> don't define.])
13190 + AC_DEFINE(HAVE_UINTMAX_T, 1,
13191 + [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
13195 +++ lxpanel-0.5.6/m4/printf-posix.m4
13197 +# printf-posix.m4 serial 2 (gettext-0.13.1)
13198 +dnl Copyright (C) 2003 Free Software Foundation, Inc.
13199 +dnl This file is free software, distributed under the terms of the GNU
13200 +dnl General Public License. As a special exception to the GNU General
13201 +dnl Public License, this file may be distributed as part of a program
13202 +dnl that contains a configuration script generated by Autoconf, under
13203 +dnl the same distribution terms as the rest of that program.
13205 +dnl From Bruno Haible.
13206 +dnl Test whether the printf() function supports POSIX/XSI format strings with
13209 +AC_DEFUN([gt_PRINTF_POSIX],
13211 + AC_REQUIRE([AC_PROG_CC])
13212 + AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
13213 + gt_cv_func_printf_posix,
13216 +#include <stdio.h>
13217 +#include <string.h>
13218 +/* The string "%2$d %1$d", with dollar characters protected from the shell's
13219 + dollar expansion (possibly an autoconf bug). */
13220 +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
13221 +static char buf[100];
13224 + sprintf (buf, format, 33, 55);
13225 + return (strcmp (buf, "55 33") != 0);
13226 +}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
13228 + AC_EGREP_CPP(notposix, [
13229 +#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
13232 + ], gt_cv_func_printf_posix="guessing no",
13233 + gt_cv_func_printf_posix="guessing yes")
13236 + case $gt_cv_func_printf_posix in
13238 + AC_DEFINE(HAVE_POSIX_PRINTF, 1,
13239 + [Define if your printf() function supports format strings with positions.])
13244 +++ lxpanel-0.5.6/m4/inttypes-pri.m4
13246 +# inttypes-pri.m4 serial 1 (gettext-0.11.4)
13247 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
13248 +dnl This file is free software, distributed under the terms of the GNU
13249 +dnl General Public License. As a special exception to the GNU General
13250 +dnl Public License, this file may be distributed as part of a program
13251 +dnl that contains a configuration script generated by Autoconf, under
13252 +dnl the same distribution terms as the rest of that program.
13254 +dnl From Bruno Haible.
13256 +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
13257 +# macros to non-string values. This is the case on AIX 4.3.3.
13259 +AC_DEFUN([gt_INTTYPES_PRI],
13261 + AC_REQUIRE([gt_HEADER_INTTYPES_H])
13262 + if test $gt_cv_header_inttypes_h = yes; then
13263 + AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
13264 + gt_cv_inttypes_pri_broken,
13266 + AC_TRY_COMPILE([#include <inttypes.h>
13270 +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
13273 + if test "$gt_cv_inttypes_pri_broken" = yes; then
13274 + AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
13275 + [Define if <inttypes.h> exists and defines unusable PRI* macros.])
13279 +++ lxpanel-0.5.6/intl/log.c
13281 +/* Log file output.
13282 + Copyright (C) 2003 Free Software Foundation, Inc.
13284 + This program is free software; you can redistribute it and/or modify it
13285 + under the terms of the GNU Library General Public License as published
13286 + by the Free Software Foundation; either version 2, or (at your option)
13287 + any later version.
13289 + This program is distributed in the hope that it will be useful,
13290 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13291 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13292 + Library General Public License for more details.
13294 + You should have received a copy of the GNU Library General Public
13295 + License along with this program; if not, write to the Free Software
13296 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
13299 +/* Written by Bruno Haible <bruno@clisp.org>. */
13301 +#ifdef HAVE_CONFIG_H
13302 +# include <config.h>
13305 +#include <stdio.h>
13306 +#include <stdlib.h>
13307 +#include <string.h>
13309 +/* Print an ASCII string with quotes and escape sequences where needed. */
13311 +print_escaped (FILE *stream, const char *str)
13313 + putc ('"', stream);
13314 + for (; *str != '\0'; str++)
13315 + if (*str == '\n')
13317 + fputs ("\\n\"", stream);
13318 + if (str[1] == '\0')
13320 + fputs ("\n\"", stream);
13324 + if (*str == '"' || *str == '\\')
13325 + putc ('\\', stream);
13326 + putc (*str, stream);
13328 + putc ('"', stream);
13331 +/* Add to the log file an entry denoting a failed translation. */
13333 +_nl_log_untranslated (const char *logfilename, const char *domainname,
13334 + const char *msgid1, const char *msgid2, int plural)
13336 + static char *last_logfilename = NULL;
13337 + static FILE *last_logfile = NULL;
13340 + /* Can we reuse the last opened logfile? */
13341 + if (last_logfilename == NULL || strcmp (logfilename, last_logfilename) != 0)
13343 + /* Close the last used logfile. */
13344 + if (last_logfilename != NULL)
13346 + if (last_logfile != NULL)
13348 + fclose (last_logfile);
13349 + last_logfile = NULL;
13351 + free (last_logfilename);
13352 + last_logfilename = NULL;
13354 + /* Open the logfile. */
13355 + last_logfilename = (char *) malloc (strlen (logfilename) + 1);
13356 + if (last_logfilename == NULL)
13358 + strcpy (last_logfilename, logfilename);
13359 + last_logfile = fopen (logfilename, "a");
13360 + if (last_logfile == NULL)
13363 + logfile = last_logfile;
13365 + fprintf (logfile, "domain ");
13366 + print_escaped (logfile, domainname);
13367 + fprintf (logfile, "\nmsgid ");
13368 + print_escaped (logfile, msgid1);
13371 + fprintf (logfile, "\nmsgid_plural ");
13372 + print_escaped (logfile, msgid2);
13373 + fprintf (logfile, "\nmsgstr[0] \"\"\n");
13376 + fprintf (logfile, "\nmsgstr \"\"\n");
13377 + putc ('\n', logfile);
13380 +++ lxpanel-0.5.6/intl/eval-plural.h
13382 +/* Plural expression evaluation.
13383 + Copyright (C) 2000-2003 Free Software Foundation, Inc.
13385 + This program is free software; you can redistribute it and/or modify it
13386 + under the terms of the GNU Library General Public License as published
13387 + by the Free Software Foundation; either version 2, or (at your option)
13388 + any later version.
13390 + This program is distributed in the hope that it will be useful,
13391 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13392 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13393 + Library General Public License for more details.
13395 + You should have received a copy of the GNU Library General Public
13396 + License along with this program; if not, write to the Free Software
13397 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
13401 +#define STATIC static
13404 +/* Evaluate the plural expression and return an index value. */
13408 +plural_eval (struct expression *pexp, unsigned long int n)
13410 + switch (pexp->nargs)
13413 + switch (pexp->operation)
13418 + return pexp->val.num;
13426 + /* pexp->operation must be lnot. */
13427 + unsigned long int arg = plural_eval (pexp->val.args[0], n);
13432 + unsigned long int leftarg = plural_eval (pexp->val.args[0], n);
13433 + if (pexp->operation == lor)
13434 + return leftarg || plural_eval (pexp->val.args[1], n);
13435 + else if (pexp->operation == land)
13436 + return leftarg && plural_eval (pexp->val.args[1], n);
13439 + unsigned long int rightarg = plural_eval (pexp->val.args[1], n);
13441 + switch (pexp->operation)
13444 + return leftarg * rightarg;
13446 +#if !INTDIV0_RAISES_SIGFPE
13447 + if (rightarg == 0)
13450 + return leftarg / rightarg;
13452 +#if !INTDIV0_RAISES_SIGFPE
13453 + if (rightarg == 0)
13456 + return leftarg % rightarg;
13458 + return leftarg + rightarg;
13460 + return leftarg - rightarg;
13462 + return leftarg < rightarg;
13463 + case greater_than:
13464 + return leftarg > rightarg;
13465 + case less_or_equal:
13466 + return leftarg <= rightarg;
13467 + case greater_or_equal:
13468 + return leftarg >= rightarg;
13470 + return leftarg == rightarg;
13472 + return leftarg != rightarg;
13482 + /* pexp->operation must be qmop. */
13483 + unsigned long int boolarg = plural_eval (pexp->val.args[0], n);
13484 + return plural_eval (pexp->val.args[boolarg ? 1 : 2], n);
13491 +++ lxpanel-0.5.6/intl/dngettext.c
13493 +/* Implementation of the dngettext(3) function.
13494 + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc.
13496 + This program is free software; you can redistribute it and/or modify it
13497 + under the terms of the GNU Library General Public License as published
13498 + by the Free Software Foundation; either version 2, or (at your option)
13499 + any later version.
13501 + This program is distributed in the hope that it will be useful,
13502 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13503 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13504 + Library General Public License for more details.
13506 + You should have received a copy of the GNU Library General Public
13507 + License along with this program; if not, write to the Free Software
13508 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
13511 +#ifdef HAVE_CONFIG_H
13512 +# include <config.h>
13515 +#include "gettextP.h"
13517 +#include <locale.h>
13520 +# include <libintl.h>
13522 +# include "libgnuintl.h"
13525 +/* @@ end of prolog @@ */
13527 +/* Names for the libintl functions are a problem. They must not clash
13528 + with existing names and they should follow ANSI C. But this source
13529 + code is also used in GNU C Library where the names have a __
13530 + prefix. So we have to make a difference here. */
13532 +# define DNGETTEXT __dngettext
13533 +# define DCNGETTEXT __dcngettext
13535 +# define DNGETTEXT libintl_dngettext
13536 +# define DCNGETTEXT libintl_dcngettext
13539 +/* Look up MSGID in the DOMAINNAME message catalog of the current
13540 + LC_MESSAGES locale and skip message according to the plural form. */
13542 +DNGETTEXT (const char *domainname,
13543 + const char *msgid1, const char *msgid2, unsigned long int n)
13545 + return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES);
13549 +/* Alias for function name in GNU C Library. */
13550 +weak_alias (__dngettext, dngettext);
13553 +++ lxpanel-0.5.6/intl/finddomain.c
13555 +/* Handle list of needed message catalogs
13556 + Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc.
13557 + Written by Ulrich Drepper <drepper@gnu.org>, 1995.
13559 + This program is free software; you can redistribute it and/or modify it
13560 + under the terms of the GNU Library General Public License as published
13561 + by the Free Software Foundation; either version 2, or (at your option)
13562 + any later version.
13564 + This program is distributed in the hope that it will be useful,
13565 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13566 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13567 + Library General Public License for more details.
13569 + You should have received a copy of the GNU Library General Public
13570 + License along with this program; if not, write to the Free Software
13571 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
13574 +#ifdef HAVE_CONFIG_H
13575 +# include <config.h>
13578 +#include <stdio.h>
13579 +#include <sys/types.h>
13580 +#include <stdlib.h>
13581 +#include <string.h>
13583 +#if defined HAVE_UNISTD_H || defined _LIBC
13584 +# include <unistd.h>
13587 +#include "gettextP.h"
13589 +# include <libintl.h>
13591 +# include "libgnuintl.h"
13594 +/* @@ end of prolog @@ */
13595 +/* List of already loaded domains. */
13596 +static struct loaded_l10nfile *_nl_loaded_domains;
13599 +/* Return a data structure describing the message catalog described by
13600 + the DOMAINNAME and CATEGORY parameters with respect to the currently
13601 + established bindings. */
13602 +struct loaded_l10nfile *
13604 +_nl_find_domain (const char *dirname, char *locale,
13605 + const char *domainname, struct binding *domainbinding)
13607 + struct loaded_l10nfile *retval;
13608 + const char *language;
13609 + const char *modifier;
13610 + const char *territory;
13611 + const char *codeset;
13612 + const char *normalized_codeset;
13613 + const char *special;
13614 + const char *sponsor;
13615 + const char *revision;
13616 + const char *alias_value;
13619 + /* LOCALE can consist of up to four recognized parts for the XPG syntax:
13621 + language[_territory[.codeset]][@modifier]
13623 + and six parts for the CEN syntax:
13625 + language[_territory][+audience][+special][,[sponsor][_revision]]
13627 + Beside the first part all of them are allowed to be missing. If
13628 + the full specified locale is not found, the less specific one are
13629 + looked for. The various parts will be stripped off according to
13630 + the following order:
13635 + (5) normalized codeset
13637 + (7) audience/modifier
13640 + /* If we have already tested for this locale entry there has to
13641 + be one data set in the list of loaded domains. */
13642 + retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname,
13643 + strlen (dirname) + 1, 0, locale, NULL, NULL,
13644 + NULL, NULL, NULL, NULL, NULL, domainname, 0);
13645 + if (retval != NULL)
13647 + /* We know something about this locale. */
13650 + if (retval->decided == 0)
13651 + _nl_load_domain (retval, domainbinding);
13653 + if (retval->data != NULL)
13656 + for (cnt = 0; retval->successor[cnt] != NULL; ++cnt)
13658 + if (retval->successor[cnt]->decided == 0)
13659 + _nl_load_domain (retval->successor[cnt], domainbinding);
13661 + if (retval->successor[cnt]->data != NULL)
13664 + return cnt >= 0 ? retval : NULL;
13668 + /* See whether the locale value is an alias. If yes its value
13669 + *overwrites* the alias name. No test for the original value is
13671 + alias_value = _nl_expand_alias (locale);
13672 + if (alias_value != NULL)
13674 +#if defined _LIBC || defined HAVE_STRDUP
13675 + locale = strdup (alias_value);
13676 + if (locale == NULL)
13679 + size_t len = strlen (alias_value) + 1;
13680 + locale = (char *) malloc (len);
13681 + if (locale == NULL)
13684 + memcpy (locale, alias_value, len);
13688 + /* Now we determine the single parts of the locale name. First
13689 + look for the language. Termination symbols are `_' and `@' if
13690 + we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */
13691 + mask = _nl_explode_name (locale, &language, &modifier, &territory,
13692 + &codeset, &normalized_codeset, &special,
13693 + &sponsor, &revision);
13695 + /* Create all possible locale entries which might be interested in
13696 + generalization. */
13697 + retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname,
13698 + strlen (dirname) + 1, mask, language, territory,
13699 + codeset, normalized_codeset, modifier, special,
13700 + sponsor, revision, domainname, 1);
13701 + if (retval == NULL)
13702 + /* This means we are out of core. */
13705 + if (retval->decided == 0)
13706 + _nl_load_domain (retval, domainbinding);
13707 + if (retval->data == NULL)
13710 + for (cnt = 0; retval->successor[cnt] != NULL; ++cnt)
13712 + if (retval->successor[cnt]->decided == 0)
13713 + _nl_load_domain (retval->successor[cnt], domainbinding);
13714 + if (retval->successor[cnt]->data != NULL)
13719 + /* The room for an alias was dynamically allocated. Free it now. */
13720 + if (alias_value != NULL)
13723 + /* The space for normalized_codeset is dynamically allocated. Free it. */
13724 + if (mask & XPG_NORM_CODESET)
13725 + free ((void *) normalized_codeset);
13732 +libc_freeres_fn (free_mem)
13734 + struct loaded_l10nfile *runp = _nl_loaded_domains;
13736 + while (runp != NULL)
13738 + struct loaded_l10nfile *here = runp;
13739 + if (runp->data != NULL)
13740 + _nl_unload_domain ((struct loaded_domain *) runp->data);
13741 + runp = runp->next;
13742 + free ((char *) here->filename);
13748 +++ lxpanel-0.5.6/intl/dcgettext.c
13750 +/* Implementation of the dcgettext(3) function.
13751 + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
13753 + This program is free software; you can redistribute it and/or modify it
13754 + under the terms of the GNU Library General Public License as published
13755 + by the Free Software Foundation; either version 2, or (at your option)
13756 + any later version.
13758 + This program is distributed in the hope that it will be useful,
13759 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13760 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13761 + Library General Public License for more details.
13763 + You should have received a copy of the GNU Library General Public
13764 + License along with this program; if not, write to the Free Software
13765 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
13768 +#ifdef HAVE_CONFIG_H
13769 +# include <config.h>
13772 +#include "gettextP.h"
13774 +# include <libintl.h>
13776 +# include "libgnuintl.h"
13779 +/* @@ end of prolog @@ */
13781 +/* Names for the libintl functions are a problem. They must not clash
13782 + with existing names and they should follow ANSI C. But this source
13783 + code is also used in GNU C Library where the names have a __
13784 + prefix. So we have to make a difference here. */
13786 +# define DCGETTEXT __dcgettext
13787 +# define DCIGETTEXT __dcigettext
13789 +# define DCGETTEXT libintl_dcgettext
13790 +# define DCIGETTEXT libintl_dcigettext
13793 +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
13796 +DCGETTEXT (const char *domainname, const char *msgid, int category)
13798 + return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category);
13802 +/* Alias for function name in GNU C Library. */
13803 +INTDEF(__dcgettext)
13804 +weak_alias (__dcgettext, dcgettext);
13807 +++ lxpanel-0.5.6/intl/vasnprintf.c
13809 +/* vsprintf with automatic memory allocation.
13810 + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc.
13812 + This program is free software; you can redistribute it and/or modify it
13813 + under the terms of the GNU Library General Public License as published
13814 + by the Free Software Foundation; either version 2, or (at your option)
13815 + any later version.
13817 + This program is distributed in the hope that it will be useful,
13818 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13819 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13820 + Library General Public License for more details.
13822 + You should have received a copy of the GNU Library General Public
13823 + License along with this program; if not, write to the Free Software
13824 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
13827 +/* Tell glibc's <stdio.h> to provide a prototype for snprintf().
13828 + This must come before <config.h> because <config.h> may include
13829 + <features.h>, and once <features.h> has been included, it's too late. */
13830 +#ifndef _GNU_SOURCE
13831 +# define _GNU_SOURCE 1
13834 +#ifdef HAVE_CONFIG_H
13835 +# include <config.h>
13837 +#ifndef IN_LIBINTL
13838 +# include <alloca.h>
13841 +/* Specification. */
13842 +#if WIDE_CHAR_VERSION
13843 +# include "vasnwprintf.h"
13845 +# include "vasnprintf.h"
13848 +#include <stdio.h> /* snprintf(), sprintf() */
13849 +#include <stdlib.h> /* abort(), malloc(), realloc(), free() */
13850 +#include <string.h> /* memcpy(), strlen() */
13851 +#include <errno.h> /* errno */
13852 +#include <limits.h> /* CHAR_BIT */
13853 +#include <float.h> /* DBL_MAX_EXP, LDBL_MAX_EXP */
13854 +#if WIDE_CHAR_VERSION
13855 +# include "wprintf-parse.h"
13857 +# include "printf-parse.h"
13860 +/* Checked size_t computations. */
13861 +#include "xsize.h"
13863 +#ifdef HAVE_WCHAR_T
13864 +# ifdef HAVE_WCSLEN
13865 +# define local_wcslen wcslen
13867 + /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid
13868 + a dependency towards this library, here is a local substitute.
13869 + Define this substitute only once, even if this file is included
13870 + twice in the same compilation unit. */
13871 +# ifndef local_wcslen_defined
13872 +# define local_wcslen_defined 1
13874 +local_wcslen (const wchar_t *s)
13876 + const wchar_t *ptr;
13878 + for (ptr = s; *ptr != (wchar_t) 0; ptr++)
13886 +#if WIDE_CHAR_VERSION
13887 +# define VASNPRINTF vasnwprintf
13888 +# define CHAR_T wchar_t
13889 +# define DIRECTIVE wchar_t_directive
13890 +# define DIRECTIVES wchar_t_directives
13891 +# define PRINTF_PARSE wprintf_parse
13892 +# define USE_SNPRINTF 1
13893 +# if HAVE_DECL__SNWPRINTF
13894 + /* On Windows, the function swprintf() has a different signature than
13895 + on Unix; we use the _snwprintf() function instead. */
13896 +# define SNPRINTF _snwprintf
13899 +# define SNPRINTF swprintf
13902 +# define VASNPRINTF vasnprintf
13903 +# define CHAR_T char
13904 +# define DIRECTIVE char_directive
13905 +# define DIRECTIVES char_directives
13906 +# define PRINTF_PARSE printf_parse
13907 +# define USE_SNPRINTF (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF)
13908 +# if HAVE_DECL__SNPRINTF
13910 +# define SNPRINTF _snprintf
13913 +# define SNPRINTF snprintf
13918 +VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list args)
13923 + if (PRINTF_PARSE (format, &d, &a) < 0)
13929 +#define CLEANUP() \
13934 + if (printf_fetchargs (args, &a) < 0)
13942 + size_t buf_neededlength;
13944 + CHAR_T *buf_malloced;
13945 + const CHAR_T *cp;
13948 + /* Output string accumulator. */
13950 + size_t allocated;
13953 + /* Allocate a small buffer that will hold a directive passed to
13954 + sprintf or snprintf. */
13955 + buf_neededlength =
13956 + xsum4 (7, d.max_width_length, d.max_precision_length, 6);
13958 + if (buf_neededlength < 4000 / sizeof (CHAR_T))
13960 + buf = (CHAR_T *) alloca (buf_neededlength * sizeof (CHAR_T));
13961 + buf_malloced = NULL;
13966 + size_t buf_memsize = xtimes (buf_neededlength, sizeof (CHAR_T));
13967 + if (size_overflow_p (buf_memsize))
13968 + goto out_of_memory_1;
13969 + buf = (CHAR_T *) malloc (buf_memsize);
13971 + goto out_of_memory_1;
13972 + buf_malloced = buf;
13975 + if (resultbuf != NULL)
13977 + result = resultbuf;
13978 + allocated = *lengthp;
13987 + result is either == resultbuf or == NULL or malloc-allocated.
13988 + If length > 0, then result != NULL. */
13990 + /* Ensures that allocated >= needed. Aborts through a jump to
13991 + out_of_memory if needed is SIZE_MAX or otherwise too big. */
13992 +#define ENSURE_ALLOCATION(needed) \
13993 + if ((needed) > allocated) \
13995 + size_t memory_size; \
13996 + CHAR_T *memory; \
13998 + allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \
13999 + if ((needed) > allocated) \
14000 + allocated = (needed); \
14001 + memory_size = xtimes (allocated, sizeof (CHAR_T)); \
14002 + if (size_overflow_p (memory_size)) \
14003 + goto out_of_memory; \
14004 + if (result == resultbuf || result == NULL) \
14005 + memory = (CHAR_T *) malloc (memory_size); \
14007 + memory = (CHAR_T *) realloc (result, memory_size); \
14008 + if (memory == NULL) \
14009 + goto out_of_memory; \
14010 + if (result == resultbuf && length > 0) \
14011 + memcpy (memory, result, length * sizeof (CHAR_T)); \
14012 + result = memory; \
14015 + for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++)
14017 + if (cp != dp->dir_start)
14019 + size_t n = dp->dir_start - cp;
14020 + size_t augmented_length = xsum (length, n);
14022 + ENSURE_ALLOCATION (augmented_length);
14023 + memcpy (result + length, cp, n * sizeof (CHAR_T));
14024 + length = augmented_length;
14026 + if (i == d.count)
14029 + /* Execute a single directive. */
14030 + if (dp->conversion == '%')
14032 + size_t augmented_length;
14034 + if (!(dp->arg_index == ARG_NONE))
14036 + augmented_length = xsum (length, 1);
14037 + ENSURE_ALLOCATION (augmented_length);
14038 + result[length] = '%';
14039 + length = augmented_length;
14043 + if (!(dp->arg_index != ARG_NONE))
14046 + if (dp->conversion == 'n')
14048 + switch (a.arg[dp->arg_index].type)
14050 + case TYPE_COUNT_SCHAR_POINTER:
14051 + *a.arg[dp->arg_index].a.a_count_schar_pointer = length;
14053 + case TYPE_COUNT_SHORT_POINTER:
14054 + *a.arg[dp->arg_index].a.a_count_short_pointer = length;
14056 + case TYPE_COUNT_INT_POINTER:
14057 + *a.arg[dp->arg_index].a.a_count_int_pointer = length;
14059 + case TYPE_COUNT_LONGINT_POINTER:
14060 + *a.arg[dp->arg_index].a.a_count_longint_pointer = length;
14062 +#ifdef HAVE_LONG_LONG
14063 + case TYPE_COUNT_LONGLONGINT_POINTER:
14064 + *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length;
14073 + arg_type type = a.arg[dp->arg_index].type;
14075 + unsigned int prefix_count;
14078 + size_t tmp_length;
14079 + CHAR_T tmpbuf[700];
14082 + /* Allocate a temporary buffer of sufficient size for calling
14086 + size_t precision;
14089 + if (dp->width_start != dp->width_end)
14091 + if (dp->width_arg_index != ARG_NONE)
14095 + if (!(a.arg[dp->width_arg_index].type == TYPE_INT))
14097 + arg = a.arg[dp->width_arg_index].a.a_int;
14098 + width = (arg < 0 ? (unsigned int) (-arg) : arg);
14102 + const CHAR_T *digitp = dp->width_start;
14105 + width = xsum (xtimes (width, 10), *digitp++ - '0');
14106 + while (digitp != dp->width_end);
14111 + if (dp->precision_start != dp->precision_end)
14113 + if (dp->precision_arg_index != ARG_NONE)
14117 + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT))
14119 + arg = a.arg[dp->precision_arg_index].a.a_int;
14120 + precision = (arg < 0 ? 0 : arg);
14124 + const CHAR_T *digitp = dp->precision_start + 1;
14128 + precision = xsum (xtimes (precision, 10), *digitp++ - '0');
14129 + while (digitp != dp->precision_end);
14133 + switch (dp->conversion)
14136 + case 'd': case 'i': case 'u':
14137 +# ifdef HAVE_LONG_LONG
14138 + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT)
14140 + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT
14141 + * 0.30103 /* binary -> decimal */
14142 + * 2 /* estimate for FLAG_GROUP */
14144 + + 1 /* turn floor into ceil */
14145 + + 1; /* account for leading sign */
14148 + if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
14150 + (unsigned int) (sizeof (unsigned long) * CHAR_BIT
14151 + * 0.30103 /* binary -> decimal */
14152 + * 2 /* estimate for FLAG_GROUP */
14154 + + 1 /* turn floor into ceil */
14155 + + 1; /* account for leading sign */
14158 + (unsigned int) (sizeof (unsigned int) * CHAR_BIT
14159 + * 0.30103 /* binary -> decimal */
14160 + * 2 /* estimate for FLAG_GROUP */
14162 + + 1 /* turn floor into ceil */
14163 + + 1; /* account for leading sign */
14167 +# ifdef HAVE_LONG_LONG
14168 + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT)
14170 + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT
14171 + * 0.333334 /* binary -> octal */
14173 + + 1 /* turn floor into ceil */
14174 + + 1; /* account for leading sign */
14177 + if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
14179 + (unsigned int) (sizeof (unsigned long) * CHAR_BIT
14180 + * 0.333334 /* binary -> octal */
14182 + + 1 /* turn floor into ceil */
14183 + + 1; /* account for leading sign */
14186 + (unsigned int) (sizeof (unsigned int) * CHAR_BIT
14187 + * 0.333334 /* binary -> octal */
14189 + + 1 /* turn floor into ceil */
14190 + + 1; /* account for leading sign */
14193 + case 'x': case 'X':
14194 +# ifdef HAVE_LONG_LONG
14195 + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT)
14197 + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT
14198 + * 0.25 /* binary -> hexadecimal */
14200 + + 1 /* turn floor into ceil */
14201 + + 2; /* account for leading sign or alternate form */
14204 + if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
14206 + (unsigned int) (sizeof (unsigned long) * CHAR_BIT
14207 + * 0.25 /* binary -> hexadecimal */
14209 + + 1 /* turn floor into ceil */
14210 + + 2; /* account for leading sign or alternate form */
14213 + (unsigned int) (sizeof (unsigned int) * CHAR_BIT
14214 + * 0.25 /* binary -> hexadecimal */
14216 + + 1 /* turn floor into ceil */
14217 + + 2; /* account for leading sign or alternate form */
14220 + case 'f': case 'F':
14221 +# ifdef HAVE_LONG_DOUBLE
14222 + if (type == TYPE_LONGDOUBLE)
14224 + (unsigned int) (LDBL_MAX_EXP
14225 + * 0.30103 /* binary -> decimal */
14226 + * 2 /* estimate for FLAG_GROUP */
14228 + + 1 /* turn floor into ceil */
14229 + + 10; /* sign, decimal point etc. */
14233 + (unsigned int) (DBL_MAX_EXP
14234 + * 0.30103 /* binary -> decimal */
14235 + * 2 /* estimate for FLAG_GROUP */
14237 + + 1 /* turn floor into ceil */
14238 + + 10; /* sign, decimal point etc. */
14239 + tmp_length = xsum (tmp_length, precision);
14242 + case 'e': case 'E': case 'g': case 'G':
14243 + case 'a': case 'A':
14245 + 12; /* sign, decimal point, exponent etc. */
14246 + tmp_length = xsum (tmp_length, precision);
14250 +# if defined HAVE_WINT_T && !WIDE_CHAR_VERSION
14251 + if (type == TYPE_WIDE_CHAR)
14252 + tmp_length = MB_CUR_MAX;
14259 +# ifdef HAVE_WCHAR_T
14260 + if (type == TYPE_WIDE_STRING)
14263 + local_wcslen (a.arg[dp->arg_index].a.a_wide_string);
14265 +# if !WIDE_CHAR_VERSION
14266 + tmp_length = xtimes (tmp_length, MB_CUR_MAX);
14271 + tmp_length = strlen (a.arg[dp->arg_index].a.a_string);
14276 + (unsigned int) (sizeof (void *) * CHAR_BIT
14277 + * 0.25 /* binary -> hexadecimal */
14279 + + 1 /* turn floor into ceil */
14280 + + 2; /* account for leading 0x */
14287 + if (tmp_length < width)
14288 + tmp_length = width;
14290 + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */
14293 + if (tmp_length <= sizeof (tmpbuf) / sizeof (CHAR_T))
14297 + size_t tmp_memsize = xtimes (tmp_length, sizeof (CHAR_T));
14299 + if (size_overflow_p (tmp_memsize))
14300 + /* Overflow, would lead to out of memory. */
14301 + goto out_of_memory;
14302 + tmp = (CHAR_T *) malloc (tmp_memsize);
14304 + /* Out of memory. */
14305 + goto out_of_memory;
14309 + /* Construct the format string for calling snprintf or
14313 + if (dp->flags & FLAG_GROUP)
14315 + if (dp->flags & FLAG_LEFT)
14317 + if (dp->flags & FLAG_SHOWSIGN)
14319 + if (dp->flags & FLAG_SPACE)
14321 + if (dp->flags & FLAG_ALT)
14323 + if (dp->flags & FLAG_ZERO)
14325 + if (dp->width_start != dp->width_end)
14327 + size_t n = dp->width_end - dp->width_start;
14328 + memcpy (p, dp->width_start, n * sizeof (CHAR_T));
14331 + if (dp->precision_start != dp->precision_end)
14333 + size_t n = dp->precision_end - dp->precision_start;
14334 + memcpy (p, dp->precision_start, n * sizeof (CHAR_T));
14340 +#ifdef HAVE_LONG_LONG
14341 + case TYPE_LONGLONGINT:
14342 + case TYPE_ULONGLONGINT:
14346 + case TYPE_LONGINT:
14347 + case TYPE_ULONGINT:
14348 +#ifdef HAVE_WINT_T
14349 + case TYPE_WIDE_CHAR:
14351 +#ifdef HAVE_WCHAR_T
14352 + case TYPE_WIDE_STRING:
14356 +#ifdef HAVE_LONG_DOUBLE
14357 + case TYPE_LONGDOUBLE:
14364 + *p = dp->conversion;
14373 + /* Construct the arguments for calling snprintf or sprintf. */
14374 + prefix_count = 0;
14375 + if (dp->width_arg_index != ARG_NONE)
14377 + if (!(a.arg[dp->width_arg_index].type == TYPE_INT))
14379 + prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int;
14381 + if (dp->precision_arg_index != ARG_NONE)
14383 + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT))
14385 + prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int;
14389 + /* Prepare checking whether snprintf returns the count
14391 + ENSURE_ALLOCATION (xsum (length, 1));
14392 + result[length] = '\0';
14401 + maxlen = allocated - length;
14406 +# define SNPRINTF_BUF(arg) \
14407 + switch (prefix_count) \
14410 + retcount = SNPRINTF (result + length, maxlen, buf, \
14414 + retcount = SNPRINTF (result + length, maxlen, buf, \
14415 + prefixes[0], arg, &count); \
14418 + retcount = SNPRINTF (result + length, maxlen, buf, \
14419 + prefixes[0], prefixes[1], arg, \
14426 +# define SNPRINTF_BUF(arg) \
14427 + switch (prefix_count) \
14430 + count = sprintf (tmp, buf, arg); \
14433 + count = sprintf (tmp, buf, prefixes[0], arg); \
14436 + count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
14448 + int arg = a.arg[dp->arg_index].a.a_schar;
14449 + SNPRINTF_BUF (arg);
14454 + unsigned int arg = a.arg[dp->arg_index].a.a_uchar;
14455 + SNPRINTF_BUF (arg);
14460 + int arg = a.arg[dp->arg_index].a.a_short;
14461 + SNPRINTF_BUF (arg);
14464 + case TYPE_USHORT:
14466 + unsigned int arg = a.arg[dp->arg_index].a.a_ushort;
14467 + SNPRINTF_BUF (arg);
14472 + int arg = a.arg[dp->arg_index].a.a_int;
14473 + SNPRINTF_BUF (arg);
14478 + unsigned int arg = a.arg[dp->arg_index].a.a_uint;
14479 + SNPRINTF_BUF (arg);
14482 + case TYPE_LONGINT:
14484 + long int arg = a.arg[dp->arg_index].a.a_longint;
14485 + SNPRINTF_BUF (arg);
14488 + case TYPE_ULONGINT:
14490 + unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint;
14491 + SNPRINTF_BUF (arg);
14494 +#ifdef HAVE_LONG_LONG
14495 + case TYPE_LONGLONGINT:
14497 + long long int arg = a.arg[dp->arg_index].a.a_longlongint;
14498 + SNPRINTF_BUF (arg);
14501 + case TYPE_ULONGLONGINT:
14503 + unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint;
14504 + SNPRINTF_BUF (arg);
14508 + case TYPE_DOUBLE:
14510 + double arg = a.arg[dp->arg_index].a.a_double;
14511 + SNPRINTF_BUF (arg);
14514 +#ifdef HAVE_LONG_DOUBLE
14515 + case TYPE_LONGDOUBLE:
14517 + long double arg = a.arg[dp->arg_index].a.a_longdouble;
14518 + SNPRINTF_BUF (arg);
14524 + int arg = a.arg[dp->arg_index].a.a_char;
14525 + SNPRINTF_BUF (arg);
14528 +#ifdef HAVE_WINT_T
14529 + case TYPE_WIDE_CHAR:
14531 + wint_t arg = a.arg[dp->arg_index].a.a_wide_char;
14532 + SNPRINTF_BUF (arg);
14536 + case TYPE_STRING:
14538 + const char *arg = a.arg[dp->arg_index].a.a_string;
14539 + SNPRINTF_BUF (arg);
14542 +#ifdef HAVE_WCHAR_T
14543 + case TYPE_WIDE_STRING:
14545 + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string;
14546 + SNPRINTF_BUF (arg);
14550 + case TYPE_POINTER:
14552 + void *arg = a.arg[dp->arg_index].a.a_pointer;
14553 + SNPRINTF_BUF (arg);
14561 + /* Portability: Not all implementations of snprintf()
14562 + are ISO C 99 compliant. Determine the number of
14563 + bytes that snprintf() has produced or would have
14567 + /* Verify that snprintf() has NUL-terminated its
14569 + if (count < maxlen && result[length + count] != '\0')
14571 + /* Portability hack. */
14572 + if (retcount > count)
14573 + count = retcount;
14577 + /* snprintf() doesn't understand the '%n'
14579 + if (p[1] != '\0')
14581 + /* Don't use the '%n' directive; instead, look
14582 + at the snprintf() return value. */
14588 + /* Look at the snprintf() return value. */
14589 + if (retcount < 0)
14591 + /* HP-UX 10.20 snprintf() is doubly deficient:
14592 + It doesn't understand the '%n' directive,
14593 + *and* it returns -1 (rather than the length
14594 + that would have been required) when the
14595 + buffer is too small. */
14596 + size_t bigger_need =
14597 + xsum (xtimes (allocated, 2), 12);
14598 + ENSURE_ALLOCATION (bigger_need);
14602 + count = retcount;
14607 + /* Attempt to handle failure. */
14610 + if (!(result == resultbuf || result == NULL))
14612 + if (buf_malloced != NULL)
14613 + free (buf_malloced);
14620 + if (count >= tmp_length)
14621 + /* tmp_length was incorrectly calculated - fix the
14626 + /* Make room for the result. */
14627 + if (count >= maxlen)
14629 + /* Need at least count bytes. But allocate
14630 + proportionally, to avoid looping eternally if
14631 + snprintf() reports a too small count. */
14633 + xmax (xsum (length, count), xtimes (allocated, 2));
14635 + ENSURE_ALLOCATION (n);
14642 + /* The snprintf() result did fit. */
14644 + /* Append the sprintf() result. */
14645 + memcpy (result + length, tmp, count * sizeof (CHAR_T));
14646 + if (tmp != tmpbuf)
14657 + /* Add the final NUL. */
14658 + ENSURE_ALLOCATION (xsum (length, 1));
14659 + result[length] = '\0';
14661 + if (result != resultbuf && length + 1 < allocated)
14663 + /* Shrink the allocated memory if possible. */
14666 + memory = (CHAR_T *) realloc (result, (length + 1) * sizeof (CHAR_T));
14667 + if (memory != NULL)
14671 + if (buf_malloced != NULL)
14672 + free (buf_malloced);
14674 + *lengthp = length;
14678 + if (!(result == resultbuf || result == NULL))
14680 + if (buf_malloced != NULL)
14681 + free (buf_malloced);
14690 +#undef USE_SNPRINTF
14691 +#undef PRINTF_PARSE
14697 +++ lxpanel-0.5.6/intl/dcigettext.c
14699 +/* Implementation of the internal dcigettext function.
14700 + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
14702 + This program is free software; you can redistribute it and/or modify it
14703 + under the terms of the GNU Library General Public License as published
14704 + by the Free Software Foundation; either version 2, or (at your option)
14705 + any later version.
14707 + This program is distributed in the hope that it will be useful,
14708 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14709 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14710 + Library General Public License for more details.
14712 + You should have received a copy of the GNU Library General Public
14713 + License along with this program; if not, write to the Free Software
14714 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
14717 +/* Tell glibc's <string.h> to provide a prototype for mempcpy().
14718 + This must come before <config.h> because <config.h> may include
14719 + <features.h>, and once <features.h> has been included, it's too late. */
14720 +#ifndef _GNU_SOURCE
14721 +# define _GNU_SOURCE 1
14724 +#ifdef HAVE_CONFIG_H
14725 +# include <config.h>
14728 +#include <sys/types.h>
14731 +# define alloca __builtin_alloca
14732 +# define HAVE_ALLOCA 1
14735 +# include <malloc.h>
14736 +# define alloca _alloca
14738 +# if defined HAVE_ALLOCA_H || defined _LIBC
14739 +# include <alloca.h>
14752 +#include <errno.h>
14756 +#ifndef __set_errno
14757 +# define __set_errno(val) errno = (val)
14760 +#include <stddef.h>
14761 +#include <stdlib.h>
14762 +#include <string.h>
14764 +#if defined HAVE_UNISTD_H || defined _LIBC
14765 +# include <unistd.h>
14768 +#include <locale.h>
14771 + /* Guess whether integer division by zero raises signal SIGFPE.
14772 + Set to 1 only if you know for sure. In case of doubt, set to 0. */
14773 +# if defined __alpha__ || defined __arm__ || defined __i386__ \
14774 + || defined __m68k__ || defined __s390__
14775 +# define INTDIV0_RAISES_SIGFPE 1
14777 +# define INTDIV0_RAISES_SIGFPE 0
14780 +#if !INTDIV0_RAISES_SIGFPE
14781 +# include <signal.h>
14784 +#if defined HAVE_SYS_PARAM_H || defined _LIBC
14785 +# include <sys/param.h>
14788 +#include "gettextP.h"
14789 +#include "plural-exp.h"
14791 +# include <libintl.h>
14793 +# include "libgnuintl.h"
14795 +#include "hash-string.h"
14797 +/* Thread safetyness. */
14799 +# include <bits/libc-lock.h>
14801 +/* Provide dummy implementation if this is outside glibc. */
14802 +# define __libc_lock_define_initialized(CLASS, NAME)
14803 +# define __libc_lock_lock(NAME)
14804 +# define __libc_lock_unlock(NAME)
14805 +# define __libc_rwlock_define_initialized(CLASS, NAME)
14806 +# define __libc_rwlock_rdlock(NAME)
14807 +# define __libc_rwlock_unlock(NAME)
14810 +/* Alignment of types. */
14811 +#if defined __GNUC__ && __GNUC__ >= 2
14812 +# define alignof(TYPE) __alignof__ (TYPE)
14814 +# define alignof(TYPE) \
14815 + ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)
14818 +/* The internal variables in the standalone libintl.a must have different
14819 + names than the internal variables in GNU libc, otherwise programs
14820 + using libintl.a cannot be linked statically. */
14821 +#if !defined _LIBC
14822 +# define _nl_default_default_domain libintl_nl_default_default_domain
14823 +# define _nl_current_default_domain libintl_nl_current_default_domain
14824 +# define _nl_default_dirname libintl_nl_default_dirname
14825 +# define _nl_domain_bindings libintl_nl_domain_bindings
14828 +/* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>. */
14830 +# define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
14833 +/* @@ end of prolog @@ */
14836 +/* Rename the non ANSI C functions. This is required by the standard
14837 + because some ANSI C functions will require linking with this object
14838 + file and the name space must not be polluted. */
14839 +# define getcwd __getcwd
14841 +# define stpcpy __stpcpy
14843 +# define tfind __tfind
14845 +# if !defined HAVE_GETCWD
14847 +# define getcwd(buf, max) getwd (buf)
14850 +# define getcwd(buf, max) (getcwd) (buf, max, 0)
14855 +# ifndef HAVE_STPCPY
14856 +static char *stpcpy (char *dest, const char *src);
14858 +# ifndef HAVE_MEMPCPY
14859 +static void *mempcpy (void *dest, const void *src, size_t n);
14863 +/* Amount to increase buffer size by in each try. */
14864 +#define PATH_INCR 32
14866 +/* The following is from pathmax.h. */
14867 +/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
14868 + PATH_MAX but might cause redefinition warnings when sys/param.h is
14869 + later included (as on MORE/BSD 4.3). */
14870 +#if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__)
14871 +# include <limits.h>
14874 +#ifndef _POSIX_PATH_MAX
14875 +# define _POSIX_PATH_MAX 255
14878 +#if !defined PATH_MAX && defined _PC_PATH_MAX
14879 +# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
14882 +/* Don't include sys/param.h if it already has been. */
14883 +#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14884 +# include <sys/param.h>
14887 +#if !defined PATH_MAX && defined MAXPATHLEN
14888 +# define PATH_MAX MAXPATHLEN
14892 +# define PATH_MAX _POSIX_PATH_MAX
14895 +/* Pathname support.
14896 + ISSLASH(C) tests whether C is a directory separator character.
14897 + IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not,
14898 + it may be concatenated to a directory pathname.
14899 + IS_PATH_WITH_DIR(P) tests whether P contains a directory specification.
14901 +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
14902 + /* Win32, OS/2, DOS */
14903 +# define ISSLASH(C) ((C) == '/' || (C) == '\\')
14904 +# define HAS_DEVICE(P) \
14905 + ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \
14906 + && (P)[1] == ':')
14907 +# define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P))
14908 +# define IS_PATH_WITH_DIR(P) \
14909 + (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P))
14912 +# define ISSLASH(C) ((C) == '/')
14913 +# define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0])
14914 +# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL)
14917 +/* This is the type used for the search tree where known translations
14919 +struct known_translation_t
14921 + /* Domain in which to search. */
14922 + char *domainname;
14924 + /* The category. */
14927 + /* State of the catalog counter at the point the string was found. */
14930 + /* Catalog where the string was found. */
14931 + struct loaded_l10nfile *domain;
14933 + /* And finally the translation. */
14934 + const char *translation;
14935 + size_t translation_length;
14937 + /* Pointer to the string in question. */
14938 + char msgid[ZERO];
14941 +/* Root of the search tree with known translations. We can use this
14942 + only if the system provides the `tsearch' function family. */
14943 +#if defined HAVE_TSEARCH || defined _LIBC
14944 +# include <search.h>
14946 +static void *root;
14949 +# define tsearch __tsearch
14952 +/* Function to compare two entries in the table of known translations. */
14954 +transcmp (const void *p1, const void *p2)
14956 + const struct known_translation_t *s1;
14957 + const struct known_translation_t *s2;
14960 + s1 = (const struct known_translation_t *) p1;
14961 + s2 = (const struct known_translation_t *) p2;
14963 + result = strcmp (s1->msgid, s2->msgid);
14966 + result = strcmp (s1->domainname, s2->domainname);
14968 + /* We compare the category last (though this is the cheapest
14969 + operation) since it is hopefully always the same (namely
14971 + result = s1->category - s2->category;
14979 +# define INTVARDEF(name)
14982 +# define INTUSE(name) name
14985 +/* Name of the default domain used for gettext(3) prior any call to
14986 + textdomain(3). The default value for this is "messages". */
14987 +const char _nl_default_default_domain[] attribute_hidden = "messages";
14989 +/* Value used as the default domain for gettext(3). */
14990 +const char *_nl_current_default_domain attribute_hidden
14991 + = _nl_default_default_domain;
14993 +/* Contains the default location of the message catalogs. */
14994 +#if defined __EMX__
14995 +extern const char _nl_default_dirname[];
14997 +const char _nl_default_dirname[] = LOCALEDIR;
14998 +INTVARDEF (_nl_default_dirname)
15001 +/* List with bindings of specific domains created by bindtextdomain()
15003 +struct binding *_nl_domain_bindings;
15005 +/* Prototypes for local functions. */
15006 +static char *plural_lookup (struct loaded_l10nfile *domain,
15007 + unsigned long int n,
15008 + const char *translation, size_t translation_len)
15009 + internal_function;
15010 +static const char *guess_category_value (int category,
15011 + const char *categoryname)
15012 + internal_function;
15014 +# include "../locale/localeinfo.h"
15015 +# define category_to_name(category) _nl_category_names[category]
15017 +static const char *category_to_name (int category) internal_function;
15021 +/* For those loosing systems which don't have `alloca' we have to add
15022 + some additional code emulating it. */
15023 +#ifdef HAVE_ALLOCA
15024 +/* Nothing has to be done. */
15025 +# define freea(p) /* nothing */
15026 +# define ADD_BLOCK(list, address) /* nothing */
15027 +# define FREE_BLOCKS(list) /* nothing */
15032 + struct block_list *next;
15034 +# define ADD_BLOCK(list, addr) \
15036 + struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \
15037 + /* If we cannot get a free block we cannot add the new element to \
15039 + if (newp != NULL) { \
15040 + newp->address = (addr); \
15041 + newp->next = (list); \
15045 +# define FREE_BLOCKS(list) \
15047 + while (list != NULL) { \
15048 + struct block_list *old = list; \
15049 + list = list->next; \
15050 + free (old->address); \
15055 +# define alloca(size) (malloc (size))
15056 +# define freea(p) free (p)
15057 +#endif /* have alloca */
15061 +/* List of blocks allocated for translations. */
15062 +typedef struct transmem_list
15064 + struct transmem_list *next;
15066 +} transmem_block_t;
15067 +static struct transmem_list *transmem_list;
15069 +typedef unsigned char transmem_block_t;
15073 +/* Names for the libintl functions are a problem. They must not clash
15074 + with existing names and they should follow ANSI C. But this source
15075 + code is also used in GNU C Library where the names have a __
15076 + prefix. So we have to make a difference here. */
15078 +# define DCIGETTEXT __dcigettext
15080 +# define DCIGETTEXT libintl_dcigettext
15083 +/* Lock variable to protect the global data in the gettext implementation. */
15085 +__libc_rwlock_define_initialized (, _nl_state_lock attribute_hidden)
15088 +/* Checking whether the binaries runs SUID must be done and glibc provides
15089 + easier methods therefore we make a difference here. */
15091 +# define ENABLE_SECURE __libc_enable_secure
15092 +# define DETERMINE_SECURE
15094 +# ifndef HAVE_GETUID
15095 +# define getuid() 0
15097 +# ifndef HAVE_GETGID
15098 +# define getgid() 0
15100 +# ifndef HAVE_GETEUID
15101 +# define geteuid() getuid()
15103 +# ifndef HAVE_GETEGID
15104 +# define getegid() getgid()
15106 +static int enable_secure;
15107 +# define ENABLE_SECURE (enable_secure == 1)
15108 +# define DETERMINE_SECURE \
15109 + if (enable_secure == 0) \
15111 + if (getuid () != geteuid () || getgid () != getegid ()) \
15112 + enable_secure = 1; \
15114 + enable_secure = -1; \
15118 +/* Get the function to evaluate the plural expression. */
15119 +#include "eval-plural.h"
15121 +/* Look up MSGID in the DOMAINNAME message catalog for the current
15122 + CATEGORY locale and, if PLURAL is nonzero, search over string
15123 + depending on the plural form determined by N. */
15125 +DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
15126 + int plural, unsigned long int n, int category)
15128 +#ifndef HAVE_ALLOCA
15129 + struct block_list *block_list = NULL;
15131 + struct loaded_l10nfile *domain;
15132 + struct binding *binding;
15133 + const char *categoryname;
15134 + const char *categoryvalue;
15135 + char *dirname, *xdomainname;
15136 + char *single_locale;
15140 +#if defined HAVE_TSEARCH || defined _LIBC
15141 + struct known_translation_t *search;
15142 + struct known_translation_t **foundp = NULL;
15143 + size_t msgid_len;
15145 + size_t domainname_len;
15147 + /* If no real MSGID is given return NULL. */
15148 + if (msgid1 == NULL)
15152 + if (category < 0 || category >= __LC_LAST || category == LC_ALL)
15154 + return (plural == 0
15155 + ? (char *) msgid1
15156 + /* Use the Germanic plural rule. */
15157 + : n == 1 ? (char *) msgid1 : (char *) msgid2);
15160 + __libc_rwlock_rdlock (_nl_state_lock);
15162 + /* If DOMAINNAME is NULL, we are interested in the default domain. If
15163 + CATEGORY is not LC_MESSAGES this might not make much sense but the
15164 + definition left this undefined. */
15165 + if (domainname == NULL)
15166 + domainname = _nl_current_default_domain;
15168 + /* OS/2 specific: backward compatibility with older libintl versions */
15169 +#ifdef LC_MESSAGES_COMPAT
15170 + if (category == LC_MESSAGES_COMPAT)
15171 + category = LC_MESSAGES;
15174 +#if defined HAVE_TSEARCH || defined _LIBC
15175 + msgid_len = strlen (msgid1) + 1;
15177 + /* Try to find the translation among those which we found at
15179 + search = (struct known_translation_t *)
15180 + alloca (offsetof (struct known_translation_t, msgid) + msgid_len);
15181 + memcpy (search->msgid, msgid1, msgid_len);
15182 + search->domainname = (char *) domainname;
15183 + search->category = category;
15185 + foundp = (struct known_translation_t **) tfind (search, &root, transcmp);
15187 + if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr)
15189 + /* Now deal with plural. */
15191 + retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation,
15192 + (*foundp)->translation_length);
15194 + retval = (char *) (*foundp)->translation;
15196 + __libc_rwlock_unlock (_nl_state_lock);
15201 + /* Preserve the `errno' value. */
15202 + saved_errno = errno;
15204 + /* See whether this is a SUID binary or not. */
15205 + DETERMINE_SECURE;
15207 + /* First find matching binding. */
15208 + for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)
15210 + int compare = strcmp (domainname, binding->domainname);
15211 + if (compare == 0)
15212 + /* We found it! */
15216 + /* It is not in the list. */
15222 + if (binding == NULL)
15223 + dirname = (char *) INTUSE(_nl_default_dirname);
15224 + else if (IS_ABSOLUTE_PATH (binding->dirname))
15225 + dirname = binding->dirname;
15228 + /* We have a relative path. Make it absolute now. */
15229 + size_t dirname_len = strlen (binding->dirname) + 1;
15233 + path_max = (unsigned int) PATH_MAX;
15234 + path_max += 2; /* The getcwd docs say to do this. */
15238 + dirname = (char *) alloca (path_max + dirname_len);
15239 + ADD_BLOCK (block_list, dirname);
15242 + ret = getcwd (dirname, path_max);
15243 + if (ret != NULL || errno != ERANGE)
15246 + path_max += path_max / 2;
15247 + path_max += PATH_INCR;
15251 + /* We cannot get the current working directory. Don't signal an
15252 + error but simply return the default string. */
15253 + goto return_untranslated;
15255 + stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname);
15258 + /* Now determine the symbolic name of CATEGORY and its value. */
15259 + categoryname = category_to_name (category);
15260 + categoryvalue = guess_category_value (category, categoryname);
15262 + domainname_len = strlen (domainname);
15263 + xdomainname = (char *) alloca (strlen (categoryname)
15264 + + domainname_len + 5);
15265 + ADD_BLOCK (block_list, xdomainname);
15267 + stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"),
15268 + domainname, domainname_len),
15271 + /* Creating working area. */
15272 + single_locale = (char *) alloca (strlen (categoryvalue) + 1);
15273 + ADD_BLOCK (block_list, single_locale);
15276 + /* Search for the given string. This is a loop because we perhaps
15277 + got an ordered list of languages to consider for the translation. */
15280 + /* Make CATEGORYVALUE point to the next element of the list. */
15281 + while (categoryvalue[0] != '\0' && categoryvalue[0] == ':')
15283 + if (categoryvalue[0] == '\0')
15285 + /* The whole contents of CATEGORYVALUE has been searched but
15286 + no valid entry has been found. We solve this situation
15287 + by implicitly appending a "C" entry, i.e. no translation
15288 + will take place. */
15289 + single_locale[0] = 'C';
15290 + single_locale[1] = '\0';
15294 + char *cp = single_locale;
15295 + while (categoryvalue[0] != '\0' && categoryvalue[0] != ':')
15296 + *cp++ = *categoryvalue++;
15299 + /* When this is a SUID binary we must not allow accessing files
15300 + outside the dedicated directories. */
15301 + if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale))
15302 + /* Ingore this entry. */
15306 + /* If the current locale value is C (or POSIX) we don't load a
15307 + domain. Return the MSGID. */
15308 + if (strcmp (single_locale, "C") == 0
15309 + || strcmp (single_locale, "POSIX") == 0)
15312 + /* Find structure describing the message catalog matching the
15313 + DOMAINNAME and CATEGORY. */
15314 + domain = _nl_find_domain (dirname, single_locale, xdomainname, binding);
15316 + if (domain != NULL)
15318 + retval = _nl_find_msg (domain, binding, msgid1, &retlen);
15320 + if (retval == NULL)
15324 + for (cnt = 0; domain->successor[cnt] != NULL; ++cnt)
15326 + retval = _nl_find_msg (domain->successor[cnt], binding,
15327 + msgid1, &retlen);
15329 + if (retval != NULL)
15331 + domain = domain->successor[cnt];
15337 + if (retval != NULL)
15339 + /* Found the translation of MSGID1 in domain DOMAIN:
15340 + starting at RETVAL, RETLEN bytes. */
15341 + FREE_BLOCKS (block_list);
15342 +#if defined HAVE_TSEARCH || defined _LIBC
15343 + if (foundp == NULL)
15345 + /* Create a new entry and add it to the search tree. */
15346 + struct known_translation_t *newp;
15348 + newp = (struct known_translation_t *)
15349 + malloc (offsetof (struct known_translation_t, msgid)
15350 + + msgid_len + domainname_len + 1);
15351 + if (newp != NULL)
15353 + newp->domainname =
15354 + mempcpy (newp->msgid, msgid1, msgid_len);
15355 + memcpy (newp->domainname, domainname, domainname_len + 1);
15356 + newp->category = category;
15357 + newp->counter = _nl_msg_cat_cntr;
15358 + newp->domain = domain;
15359 + newp->translation = retval;
15360 + newp->translation_length = retlen;
15362 + /* Insert the entry in the search tree. */
15363 + foundp = (struct known_translation_t **)
15364 + tsearch (newp, &root, transcmp);
15365 + if (foundp == NULL
15366 + || __builtin_expect (*foundp != newp, 0))
15367 + /* The insert failed. */
15373 + /* We can update the existing entry. */
15374 + (*foundp)->counter = _nl_msg_cat_cntr;
15375 + (*foundp)->domain = domain;
15376 + (*foundp)->translation = retval;
15377 + (*foundp)->translation_length = retlen;
15380 + __set_errno (saved_errno);
15382 + /* Now deal with plural. */
15384 + retval = plural_lookup (domain, n, retval, retlen);
15386 + __libc_rwlock_unlock (_nl_state_lock);
15392 + return_untranslated:
15393 + /* Return the untranslated MSGID. */
15394 + FREE_BLOCKS (block_list);
15395 + __libc_rwlock_unlock (_nl_state_lock);
15397 + if (!ENABLE_SECURE)
15399 + extern void _nl_log_untranslated (const char *logfilename,
15400 + const char *domainname,
15401 + const char *msgid1, const char *msgid2,
15403 + const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED");
15405 + if (logfilename != NULL && logfilename[0] != '\0')
15406 + _nl_log_untranslated (logfilename, domainname, msgid1, msgid2, plural);
15409 + __set_errno (saved_errno);
15410 + return (plural == 0
15411 + ? (char *) msgid1
15412 + /* Use the Germanic plural rule. */
15413 + : n == 1 ? (char *) msgid1 : (char *) msgid2);
15419 +_nl_find_msg (struct loaded_l10nfile *domain_file,
15420 + struct binding *domainbinding, const char *msgid,
15423 + struct loaded_domain *domain;
15424 + nls_uint32 nstrings;
15427 + size_t resultlen;
15429 + if (domain_file->decided == 0)
15430 + _nl_load_domain (domain_file, domainbinding);
15432 + if (domain_file->data == NULL)
15435 + domain = (struct loaded_domain *) domain_file->data;
15437 + nstrings = domain->nstrings;
15439 + /* Locate the MSGID and its translation. */
15440 + if (domain->hash_tab != NULL)
15442 + /* Use the hashing table. */
15443 + nls_uint32 len = strlen (msgid);
15444 + nls_uint32 hash_val = hash_string (msgid);
15445 + nls_uint32 idx = hash_val % domain->hash_size;
15446 + nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2));
15450 + nls_uint32 nstr =
15451 + W (domain->must_swap_hash_tab, domain->hash_tab[idx]);
15454 + /* Hash table entry is empty. */
15459 + /* Compare msgid with the original string at index nstr.
15460 + We compare the lengths with >=, not ==, because plural entries
15461 + are represented by strings with an embedded NUL. */
15462 + if (nstr < nstrings
15463 + ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len
15464 + && (strcmp (msgid,
15465 + domain->data + W (domain->must_swap,
15466 + domain->orig_tab[nstr].offset))
15468 + : domain->orig_sysdep_tab[nstr - nstrings].length > len
15469 + && (strcmp (msgid,
15470 + domain->orig_sysdep_tab[nstr - nstrings].pointer)
15477 + if (idx >= domain->hash_size - incr)
15478 + idx -= domain->hash_size - incr;
15486 + /* Try the default method: binary search in the sorted array of
15488 + size_t top, bottom;
15492 + while (bottom < top)
15496 + act = (bottom + top) / 2;
15497 + cmp_val = strcmp (msgid, (domain->data
15498 + + W (domain->must_swap,
15499 + domain->orig_tab[act].offset)));
15502 + else if (cmp_val > 0)
15503 + bottom = act + 1;
15507 + /* No translation was found. */
15512 + /* The translation was found at index ACT. If we have to convert the
15513 + string to use a different character set, this is the time. */
15514 + if (act < nstrings)
15516 + result = (char *)
15517 + (domain->data + W (domain->must_swap, domain->trans_tab[act].offset));
15518 + resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1;
15522 + result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer;
15523 + resultlen = domain->trans_sysdep_tab[act - nstrings].length;
15526 +#if defined _LIBC || HAVE_ICONV
15527 + if (domain->codeset_cntr
15528 + != (domainbinding != NULL ? domainbinding->codeset_cntr : 0))
15530 + /* The domain's codeset has changed through bind_textdomain_codeset()
15531 + since the message catalog was initialized or last accessed. We
15532 + have to reinitialize the converter. */
15533 + _nl_free_domain_conv (domain);
15534 + _nl_init_domain_conv (domain_file, domain, domainbinding);
15539 + domain->conv != (__gconv_t) -1
15542 + domain->conv != (iconv_t) -1
15547 + /* We are supposed to do a conversion. First allocate an
15548 + appropriate table with the same structure as the table
15549 + of translations in the file, where we can put the pointers
15550 + to the converted strings in.
15551 + There is a slight complication with plural entries. They
15552 + are represented by consecutive NUL terminated strings. We
15553 + handle this case by converting RESULTLEN bytes, including
15556 + if (domain->conv_tab == NULL
15557 + && ((domain->conv_tab =
15558 + (char **) calloc (nstrings + domain->n_sysdep_strings,
15559 + sizeof (char *)))
15561 + /* Mark that we didn't succeed allocating a table. */
15562 + domain->conv_tab = (char **) -1;
15564 + if (__builtin_expect (domain->conv_tab == (char **) -1, 0))
15565 + /* Nothing we can do, no more memory. */
15568 + if (domain->conv_tab[act] == NULL)
15570 + /* We haven't used this string so far, so it is not
15571 + translated yet. Do this now. */
15572 + /* We use a bit more efficient memory handling.
15573 + We allocate always larger blocks which get used over
15574 + time. This is faster than many small allocations. */
15575 + __libc_lock_define_initialized (static, lock)
15576 +# define INITIAL_BLOCK_SIZE 4080
15577 + static unsigned char *freemem;
15578 + static size_t freemem_size;
15580 + const unsigned char *inbuf;
15581 + unsigned char *outbuf;
15582 + int malloc_count;
15584 + transmem_block_t *transmem_list = NULL;
15587 + __libc_lock_lock (lock);
15589 + inbuf = (const unsigned char *) result;
15590 + outbuf = freemem + sizeof (size_t);
15592 + malloc_count = 0;
15595 + transmem_block_t *newmem;
15597 + size_t non_reversible;
15600 + if (freemem_size < sizeof (size_t))
15601 + goto resize_freemem;
15603 + res = __gconv (domain->conv,
15604 + &inbuf, inbuf + resultlen,
15606 + outbuf + freemem_size - sizeof (size_t),
15607 + &non_reversible);
15609 + if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT)
15612 + if (res != __GCONV_FULL_OUTPUT)
15614 + __libc_lock_unlock (lock);
15621 + const char *inptr = (const char *) inbuf;
15622 + size_t inleft = resultlen;
15623 + char *outptr = (char *) outbuf;
15626 + if (freemem_size < sizeof (size_t))
15627 + goto resize_freemem;
15629 + outleft = freemem_size - sizeof (size_t);
15630 + if (iconv (domain->conv,
15631 + (ICONV_CONST char **) &inptr, &inleft,
15632 + &outptr, &outleft)
15633 + != (size_t) (-1))
15635 + outbuf = (unsigned char *) outptr;
15638 + if (errno != E2BIG)
15640 + __libc_lock_unlock (lock);
15647 + /* We must allocate a new buffer or resize the old one. */
15648 + if (malloc_count > 0)
15651 + freemem_size = malloc_count * INITIAL_BLOCK_SIZE;
15652 + newmem = (transmem_block_t *) realloc (transmem_list,
15655 + if (newmem != NULL)
15656 + transmem_list = transmem_list->next;
15659 + struct transmem_list *old = transmem_list;
15661 + transmem_list = transmem_list->next;
15668 + malloc_count = 1;
15669 + freemem_size = INITIAL_BLOCK_SIZE;
15670 + newmem = (transmem_block_t *) malloc (freemem_size);
15672 + if (__builtin_expect (newmem == NULL, 0))
15675 + freemem_size = 0;
15676 + __libc_lock_unlock (lock);
15681 + /* Add the block to the list of blocks we have to free
15682 + at some point. */
15683 + newmem->next = transmem_list;
15684 + transmem_list = newmem;
15686 + freemem = newmem->data;
15687 + freemem_size -= offsetof (struct transmem_list, data);
15689 + transmem_list = newmem;
15690 + freemem = newmem;
15693 + outbuf = freemem + sizeof (size_t);
15696 + /* We have now in our buffer a converted string. Put this
15697 + into the table of conversions. */
15698 + *(size_t *) freemem = outbuf - freemem - sizeof (size_t);
15699 + domain->conv_tab[act] = (char *) freemem;
15700 + /* Shrink freemem, but keep it aligned. */
15701 + freemem_size -= outbuf - freemem;
15702 + freemem = outbuf;
15703 + freemem += freemem_size & (alignof (size_t) - 1);
15704 + freemem_size = freemem_size & ~ (alignof (size_t) - 1);
15706 + __libc_lock_unlock (lock);
15709 + /* Now domain->conv_tab[act] contains the translation of all
15710 + the plural variants. */
15711 + result = domain->conv_tab[act] + sizeof (size_t);
15712 + resultlen = *(size_t *) domain->conv_tab[act];
15716 + /* The result string is converted. */
15718 +#endif /* _LIBC || HAVE_ICONV */
15720 + *lengthp = resultlen;
15725 +/* Look up a plural variant. */
15728 +plural_lookup (struct loaded_l10nfile *domain, unsigned long int n,
15729 + const char *translation, size_t translation_len)
15731 + struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;
15732 + unsigned long int index;
15735 + index = plural_eval (domaindata->plural, n);
15736 + if (index >= domaindata->nplurals)
15737 + /* This should never happen. It means the plural expression and the
15738 + given maximum value do not match. */
15741 + /* Skip INDEX strings at TRANSLATION. */
15743 + while (index-- > 0)
15746 + p = __rawmemchr (p, '\0');
15748 + p = strchr (p, '\0');
15750 + /* And skip over the NUL byte. */
15753 + if (p >= translation + translation_len)
15754 + /* This should never happen. It means the plural expression
15755 + evaluated to a value larger than the number of variants
15756 + available for MSGID1. */
15757 + return (char *) translation;
15759 + return (char *) p;
15763 +/* Return string representation of locale CATEGORY. */
15764 +static const char *
15766 +category_to_name (int category)
15768 + const char *retval;
15770 + switch (category)
15774 + retval = "LC_COLLATE";
15779 + retval = "LC_CTYPE";
15782 +#ifdef LC_MONETARY
15783 + case LC_MONETARY:
15784 + retval = "LC_MONETARY";
15789 + retval = "LC_NUMERIC";
15794 + retval = "LC_TIME";
15797 +#ifdef LC_MESSAGES
15798 + case LC_MESSAGES:
15799 + retval = "LC_MESSAGES";
15802 +#ifdef LC_RESPONSE
15803 + case LC_RESPONSE:
15804 + retval = "LC_RESPONSE";
15809 + /* This might not make sense but is perhaps better than any other
15811 + retval = "LC_ALL";
15815 + /* If you have a better idea for a default value let me know. */
15816 + retval = "LC_XXX";
15823 +/* Guess value of current locale from value of the environment variables. */
15824 +static const char *
15826 +guess_category_value (int category, const char *categoryname)
15828 + const char *language;
15829 + const char *retval;
15831 + /* The highest priority value is the `LANGUAGE' environment
15832 + variable. But we don't use the value if the currently selected
15833 + locale is the C locale. This is a GNU extension. */
15834 + language = getenv ("LANGUAGE");
15835 + if (language != NULL && language[0] == '\0')
15838 + /* We have to proceed with the POSIX methods of looking to `LC_ALL',
15839 + `LC_xxx', and `LANG'. On some systems this can be done by the
15840 + `setlocale' function itself. */
15842 + retval = __current_locale_name (category);
15844 + retval = _nl_locale_name (category, categoryname);
15847 + /* Ignore LANGUAGE if the locale is set to "C" because
15848 + 1. "C" locale usually uses the ASCII encoding, and most international
15849 + messages use non-ASCII characters. These characters get displayed
15850 + as question marks (if using glibc's iconv()) or as invalid 8-bit
15851 + characters (because other iconv()s refuse to convert most non-ASCII
15852 + characters to ASCII). In any case, the output is ugly.
15853 + 2. The precise output of some programs in the "C" locale is specified
15854 + by POSIX and should not depend on environment variables like
15855 + "LANGUAGE". We allow such programs to use gettext(). */
15856 + return language != NULL && strcmp (retval, "C") != 0 ? language : retval;
15859 +/* @@ begin of epilog @@ */
15861 +/* We don't want libintl.a to depend on any other library. So we
15862 + avoid the non-standard function stpcpy. In GNU C Library this
15863 + function is available, though. Also allow the symbol HAVE_STPCPY
15864 + to be defined. */
15865 +#if !_LIBC && !HAVE_STPCPY
15867 +stpcpy (char *dest, const char *src)
15869 + while ((*dest++ = *src++) != '\0')
15870 + /* Do nothing. */ ;
15875 +#if !_LIBC && !HAVE_MEMPCPY
15877 +mempcpy (void *dest, const void *src, size_t n)
15879 + return (void *) ((char *) memcpy (dest, src, n) + n);
15885 +/* If we want to free all resources we have to do some work at
15886 + program's end. */
15887 +libc_freeres_fn (free_mem)
15891 + while (_nl_domain_bindings != NULL)
15893 + struct binding *oldp = _nl_domain_bindings;
15894 + _nl_domain_bindings = _nl_domain_bindings->next;
15895 + if (oldp->dirname != INTUSE(_nl_default_dirname))
15896 + /* Yes, this is a pointer comparison. */
15897 + free (oldp->dirname);
15898 + free (oldp->codeset);
15902 + if (_nl_current_default_domain != _nl_default_default_domain)
15903 + /* Yes, again a pointer comparison. */
15904 + free ((char *) _nl_current_default_domain);
15906 + /* Remove the search tree with the known translations. */
15907 + __tdestroy (root, free);
15910 + while (transmem_list != NULL)
15912 + old = transmem_list;
15913 + transmem_list = transmem_list->next;
15919 +++ lxpanel-0.5.6/intl/ChangeLog
15921 +2004-01-29 GNU <bug-gnu-gettext@gnu.org>
15923 + * Version 0.14.1 released.
15926 +++ lxpanel-0.5.6/intl/os2compat.h
15928 +/* OS/2 compatibility defines.
15929 + This file is intended to be included from config.h
15930 + Copyright (C) 2001-2002 Free Software Foundation, Inc.
15932 + This program is free software; you can redistribute it and/or modify it
15933 + under the terms of the GNU Library General Public License as published
15934 + by the Free Software Foundation; either version 2, or (at your option)
15935 + any later version.
15937 + This program is distributed in the hope that it will be useful,
15938 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15939 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15940 + Library General Public License for more details.
15942 + You should have received a copy of the GNU Library General Public
15943 + License along with this program; if not, write to the Free Software
15944 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
15947 +/* When included from os2compat.h we need all the original definitions */
15951 +#define LIBDIR _nlos2_libdir
15952 +extern char *_nlos2_libdir;
15955 +#define LOCALEDIR _nlos2_localedir
15956 +extern char *_nlos2_localedir;
15958 +#undef LOCALE_ALIAS_PATH
15959 +#define LOCALE_ALIAS_PATH _nlos2_localealiaspath
15960 +extern char *_nlos2_localealiaspath;
15964 +#undef HAVE_STRCASECMP
15965 +#define HAVE_STRCASECMP 1
15966 +#define strcasecmp stricmp
15967 +#define strncasecmp strnicmp
15969 +/* We have our own getenv() which works even if library is compiled as DLL */
15970 +#define getenv _nl_getenv
15972 +/* Older versions of gettext used -1 as the value of LC_MESSAGES */
15973 +#define LC_MESSAGES_COMPAT (-1)
15975 +++ lxpanel-0.5.6/intl/plural-exp.c
15977 +/* Expression parsing for plural form selection.
15978 + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc.
15979 + Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
15981 + This program is free software; you can redistribute it and/or modify it
15982 + under the terms of the GNU Library General Public License as published
15983 + by the Free Software Foundation; either version 2, or (at your option)
15984 + any later version.
15986 + This program is distributed in the hope that it will be useful,
15987 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15988 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15989 + Library General Public License for more details.
15991 + You should have received a copy of the GNU Library General Public
15992 + License along with this program; if not, write to the Free Software
15993 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
15996 +#ifdef HAVE_CONFIG_H
15997 +# include <config.h>
16000 +#include <ctype.h>
16001 +#include <stdlib.h>
16002 +#include <string.h>
16004 +#include "plural-exp.h"
16006 +#if (defined __GNUC__ && !defined __APPLE_CC__) \
16007 + || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
16009 +/* These structs are the constant expression for the germanic plural
16010 + form determination. It represents the expression "n != 1". */
16011 +static const struct expression plvar =
16014 + .operation = var,
16016 +static const struct expression plone =
16019 + .operation = num,
16025 +struct expression GERMANIC_PLURAL =
16028 + .operation = not_equal,
16033 + [0] = (struct expression *) &plvar,
16034 + [1] = (struct expression *) &plone
16039 +# define INIT_GERMANIC_PLURAL()
16043 +/* For compilers without support for ISO C 99 struct/union initializers:
16044 + Initialization at run-time. */
16046 +static struct expression plvar;
16047 +static struct expression plone;
16048 +struct expression GERMANIC_PLURAL;
16051 +init_germanic_plural ()
16053 + if (plone.val.num == 0)
16056 + plvar.operation = var;
16059 + plone.operation = num;
16060 + plone.val.num = 1;
16062 + GERMANIC_PLURAL.nargs = 2;
16063 + GERMANIC_PLURAL.operation = not_equal;
16064 + GERMANIC_PLURAL.val.args[0] = &plvar;
16065 + GERMANIC_PLURAL.val.args[1] = &plone;
16069 +# define INIT_GERMANIC_PLURAL() init_germanic_plural ()
16075 +EXTRACT_PLURAL_EXPRESSION (const char *nullentry, struct expression **pluralp,
16076 + unsigned long int *npluralsp)
16078 + if (nullentry != NULL)
16080 + const char *plural;
16081 + const char *nplurals;
16083 + plural = strstr (nullentry, "plural=");
16084 + nplurals = strstr (nullentry, "nplurals=");
16085 + if (plural == NULL || nplurals == NULL)
16090 + unsigned long int n;
16091 + struct parse_args args;
16093 + /* First get the number. */
16095 + while (*nplurals != '\0' && isspace ((unsigned char) *nplurals))
16097 + if (!(*nplurals >= '0' && *nplurals <= '9'))
16099 +#if defined HAVE_STRTOUL || defined _LIBC
16100 + n = strtoul (nplurals, &endp, 10);
16102 + for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++)
16103 + n = n * 10 + (*endp - '0');
16105 + if (nplurals == endp)
16109 + /* Due to the restrictions bison imposes onto the interface of the
16110 + scanner function we have to put the input string and the result
16111 + passed up from the parser into the same structure which address
16112 + is passed down to the parser. */
16114 + args.cp = plural;
16115 + if (PLURAL_PARSE (&args) != 0)
16117 + *pluralp = args.res;
16122 + /* By default we are using the Germanic form: singular form only
16123 + for `one', the plural form otherwise. Yes, this is also what
16124 + English is using since English is a Germanic language. */
16126 + INIT_GERMANIC_PLURAL ();
16127 + *pluralp = &GERMANIC_PLURAL;
16132 +++ lxpanel-0.5.6/intl/wprintf-parse.h
16134 +/* Parse printf format string.
16135 + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc.
16137 + This program is free software; you can redistribute it and/or modify it
16138 + under the terms of the GNU Library General Public License as published
16139 + by the Free Software Foundation; either version 2, or (at your option)
16140 + any later version.
16142 + This program is distributed in the hope that it will be useful,
16143 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16144 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16145 + Library General Public License for more details.
16147 + You should have received a copy of the GNU Library General Public
16148 + License along with this program; if not, write to the Free Software
16149 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16152 +#ifndef _WPRINTF_PARSE_H
16153 +#define _WPRINTF_PARSE_H
16155 +#include "printf-args.h"
16159 +#define FLAG_GROUP 1 /* ' flag */
16160 +#define FLAG_LEFT 2 /* - flag */
16161 +#define FLAG_SHOWSIGN 4 /* + flag */
16162 +#define FLAG_SPACE 8 /* space flag */
16163 +#define FLAG_ALT 16 /* # flag */
16164 +#define FLAG_ZERO 32
16166 +/* arg_index value indicating that no argument is consumed. */
16167 +#define ARG_NONE (~(size_t)0)
16169 +/* A parsed directive. */
16172 + const wchar_t* dir_start;
16173 + const wchar_t* dir_end;
16175 + const wchar_t* width_start;
16176 + const wchar_t* width_end;
16177 + size_t width_arg_index;
16178 + const wchar_t* precision_start;
16179 + const wchar_t* precision_end;
16180 + size_t precision_arg_index;
16181 + wchar_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */
16182 + size_t arg_index;
16184 +wchar_t_directive;
16186 +/* A parsed format string. */
16190 + wchar_t_directive *dir;
16191 + size_t max_width_length;
16192 + size_t max_precision_length;
16194 +wchar_t_directives;
16197 +/* Parses the format string. Fills in the number N of directives, and fills
16198 + in directives[0], ..., directives[N-1], and sets directives[N].dir_start
16199 + to the end of the format string. Also fills in the arg_type fields of the
16200 + arguments and the needed count of arguments. */
16206 +int wprintf_parse (const wchar_t *format, wchar_t_directives *d, arguments *a);
16208 +#endif /* _WPRINTF_PARSE_H */
16210 +++ lxpanel-0.5.6/intl/os2compat.c
16212 +/* OS/2 compatibility functions.
16213 + Copyright (C) 2001-2002 Free Software Foundation, Inc.
16215 + This program is free software; you can redistribute it and/or modify it
16216 + under the terms of the GNU Library General Public License as published
16217 + by the Free Software Foundation; either version 2, or (at your option)
16218 + any later version.
16220 + This program is distributed in the hope that it will be useful,
16221 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16222 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16223 + Library General Public License for more details.
16225 + You should have received a copy of the GNU Library General Public
16226 + License along with this program; if not, write to the Free Software
16227 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16231 +#ifdef HAVE_CONFIG_H
16232 +#include <config.h>
16235 +#include <stdlib.h>
16236 +#include <string.h>
16237 +#include <sys/param.h>
16239 +/* A version of getenv() that works from DLLs */
16240 +extern unsigned long DosScanEnv (const unsigned char *pszName, unsigned char **ppszValue);
16243 +_nl_getenv (const char *name)
16245 + unsigned char *value;
16246 + if (DosScanEnv (name, &value))
16252 +/* A fixed size buffer. */
16253 +char libintl_nl_default_dirname[MAXPATHLEN+1];
16255 +char *_nlos2_libdir = NULL;
16256 +char *_nlos2_localealiaspath = NULL;
16257 +char *_nlos2_localedir = NULL;
16259 +static __attribute__((constructor)) void
16260 +nlos2_initialize ()
16262 + char *root = getenv ("UNIXROOT");
16263 + char *gnulocaledir = getenv ("GNULOCALEDIR");
16265 + _nlos2_libdir = gnulocaledir;
16266 + if (!_nlos2_libdir)
16270 + size_t sl = strlen (root);
16271 + _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1);
16272 + memcpy (_nlos2_libdir, root, sl);
16273 + memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
16276 + _nlos2_libdir = LIBDIR;
16279 + _nlos2_localealiaspath = gnulocaledir;
16280 + if (!_nlos2_localealiaspath)
16284 + size_t sl = strlen (root);
16285 + _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1);
16286 + memcpy (_nlos2_localealiaspath, root, sl);
16287 + memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
16290 + _nlos2_localealiaspath = LOCALE_ALIAS_PATH;
16293 + _nlos2_localedir = gnulocaledir;
16294 + if (!_nlos2_localedir)
16298 + size_t sl = strlen (root);
16299 + _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1);
16300 + memcpy (_nlos2_localedir, root, sl);
16301 + memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
16304 + _nlos2_localedir = LOCALEDIR;
16307 + if (strlen (_nlos2_localedir) <= MAXPATHLEN)
16308 + strcpy (libintl_nl_default_dirname, _nlos2_localedir);
16311 +++ lxpanel-0.5.6/intl/printf-parse.h
16313 +/* Parse printf format string.
16314 + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc.
16316 + This program is free software; you can redistribute it and/or modify it
16317 + under the terms of the GNU Library General Public License as published
16318 + by the Free Software Foundation; either version 2, or (at your option)
16319 + any later version.
16321 + This program is distributed in the hope that it will be useful,
16322 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16323 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16324 + Library General Public License for more details.
16326 + You should have received a copy of the GNU Library General Public
16327 + License along with this program; if not, write to the Free Software
16328 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16331 +#ifndef _PRINTF_PARSE_H
16332 +#define _PRINTF_PARSE_H
16334 +#include "printf-args.h"
16338 +#define FLAG_GROUP 1 /* ' flag */
16339 +#define FLAG_LEFT 2 /* - flag */
16340 +#define FLAG_SHOWSIGN 4 /* + flag */
16341 +#define FLAG_SPACE 8 /* space flag */
16342 +#define FLAG_ALT 16 /* # flag */
16343 +#define FLAG_ZERO 32
16345 +/* arg_index value indicating that no argument is consumed. */
16346 +#define ARG_NONE (~(size_t)0)
16348 +/* A parsed directive. */
16351 + const char* dir_start;
16352 + const char* dir_end;
16354 + const char* width_start;
16355 + const char* width_end;
16356 + size_t width_arg_index;
16357 + const char* precision_start;
16358 + const char* precision_end;
16359 + size_t precision_arg_index;
16360 + char conversion; /* d i o u x X f e E g G c s p n U % but not C S */
16361 + size_t arg_index;
16365 +/* A parsed format string. */
16369 + char_directive *dir;
16370 + size_t max_width_length;
16371 + size_t max_precision_length;
16376 +/* Parses the format string. Fills in the number N of directives, and fills
16377 + in directives[0], ..., directives[N-1], and sets directives[N].dir_start
16378 + to the end of the format string. Also fills in the arg_type fields of the
16379 + arguments and the needed count of arguments. */
16385 +int printf_parse (const char *format, char_directives *d, arguments *a);
16387 +#endif /* _PRINTF_PARSE_H */
16389 +++ lxpanel-0.5.6/intl/plural.y
16392 +/* Expression parsing for plural form selection.
16393 + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc.
16394 + Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
16396 + This program is free software; you can redistribute it and/or modify it
16397 + under the terms of the GNU Library General Public License as published
16398 + by the Free Software Foundation; either version 2, or (at your option)
16399 + any later version.
16401 + This program is distributed in the hope that it will be useful,
16402 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16403 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16404 + Library General Public License for more details.
16406 + You should have received a copy of the GNU Library General Public
16407 + License along with this program; if not, write to the Free Software
16408 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16411 +/* The bison generated parser uses alloca. AIX 3 forces us to put this
16412 + declaration at the beginning of the file. The declaration in bison's
16413 + skeleton file comes too late. This must come before <config.h>
16414 + because <config.h> may include arbitrary system headers. */
16415 +#if defined _AIX && !defined __GNUC__
16419 +#ifdef HAVE_CONFIG_H
16420 +# include <config.h>
16423 +#include <stddef.h>
16424 +#include <stdlib.h>
16425 +#include "plural-exp.h"
16427 +/* The main function generated by the parser is called __gettextparse,
16428 + but we want it to be called PLURAL_PARSE. */
16430 +# define __gettextparse PLURAL_PARSE
16433 +#define YYLEX_PARAM &((struct parse_args *) arg)->cp
16434 +#define YYPARSE_PARAM arg
16440 + unsigned long int num;
16441 + enum operator op;
16442 + struct expression *exp;
16446 +/* Prototypes for local functions. */
16447 +static int yylex (YYSTYPE *lval, const char **pexp);
16448 +static void yyerror (const char *str);
16450 +/* Allocation of expressions. */
16452 +static struct expression *
16453 +new_exp (int nargs, enum operator op, struct expression * const *args)
16456 + struct expression *newp;
16458 + /* If any of the argument could not be malloc'ed, just return NULL. */
16459 + for (i = nargs - 1; i >= 0; i--)
16460 + if (args[i] == NULL)
16463 + /* Allocate a new expression. */
16464 + newp = (struct expression *) malloc (sizeof (*newp));
16465 + if (newp != NULL)
16467 + newp->nargs = nargs;
16468 + newp->operation = op;
16469 + for (i = nargs - 1; i >= 0; i--)
16470 + newp->val.args[i] = args[i];
16475 + for (i = nargs - 1; i >= 0; i--)
16476 + FREE_EXPRESSION (args[i]);
16481 +static inline struct expression *
16482 +new_exp_0 (enum operator op)
16484 + return new_exp (0, op, NULL);
16487 +static inline struct expression *
16488 +new_exp_1 (enum operator op, struct expression *right)
16490 + struct expression *args[1];
16493 + return new_exp (1, op, args);
16496 +static struct expression *
16497 +new_exp_2 (enum operator op, struct expression *left, struct expression *right)
16499 + struct expression *args[2];
16503 + return new_exp (2, op, args);
16506 +static inline struct expression *
16507 +new_exp_3 (enum operator op, struct expression *bexp,
16508 + struct expression *tbranch, struct expression *fbranch)
16510 + struct expression *args[3];
16513 + args[1] = tbranch;
16514 + args[2] = fbranch;
16515 + return new_exp (3, op, args);
16520 +/* This declares that all operators have the same associativity and the
16521 + precedence order as in C. See [Harbison, Steele: C, A Reference Manual].
16522 + There is no unary minus and no bitwise operators.
16523 + Operators with the same syntactic behaviour have been merged into a single
16524 + token, to save space in the array generated by bison. */
16525 +%right '?' /* ? */
16526 +%left '|' /* || */
16527 +%left '&' /* && */
16528 +%left EQUOP2 /* == != */
16529 +%left CMPOP2 /* < > <= >= */
16530 +%left ADDOP2 /* + - */
16531 +%left MULOP2 /* * / % */
16532 +%right '!' /* ! */
16534 +%token <op> EQUOP2 CMPOP2 ADDOP2 MULOP2
16535 +%token <num> NUMBER
16544 + ((struct parse_args *) arg)->res = $1;
16548 +exp: exp '?' exp ':' exp
16550 + $$ = new_exp_3 (qmop, $1, $3, $5);
16554 + $$ = new_exp_2 (lor, $1, $3);
16558 + $$ = new_exp_2 (land, $1, $3);
16562 + $$ = new_exp_2 ($2, $1, $3);
16566 + $$ = new_exp_2 ($2, $1, $3);
16570 + $$ = new_exp_2 ($2, $1, $3);
16574 + $$ = new_exp_2 ($2, $1, $3);
16578 + $$ = new_exp_1 (lnot, $2);
16582 + $$ = new_exp_0 (var);
16586 + if (($$ = new_exp_0 (num)) != NULL)
16587 + $$->val.num = $1;
16599 +FREE_EXPRESSION (struct expression *exp)
16604 + /* Handle the recursive case. */
16605 + switch (exp->nargs)
16608 + FREE_EXPRESSION (exp->val.args[2]);
16609 + /* FALLTHROUGH */
16611 + FREE_EXPRESSION (exp->val.args[1]);
16612 + /* FALLTHROUGH */
16614 + FREE_EXPRESSION (exp->val.args[0]);
16615 + /* FALLTHROUGH */
16625 +yylex (YYSTYPE *lval, const char **pexp)
16627 + const char *exp = *pexp;
16632 + if (exp[0] == '\0')
16638 + if (exp[0] != ' ' && exp[0] != '\t')
16647 + case '0': case '1': case '2': case '3': case '4':
16648 + case '5': case '6': case '7': case '8': case '9':
16650 + unsigned long int n = result - '0';
16651 + while (exp[0] >= '0' && exp[0] <= '9')
16654 + n += exp[0] - '0';
16663 + if (exp[0] == '=')
16666 + lval->op = equal;
16670 + result = YYERRCODE;
16674 + if (exp[0] == '=')
16677 + lval->op = not_equal;
16684 + if (exp[0] == result)
16687 + result = YYERRCODE;
16691 + if (exp[0] == '=')
16694 + lval->op = less_or_equal;
16697 + lval->op = less_than;
16702 + if (exp[0] == '=')
16705 + lval->op = greater_or_equal;
16708 + lval->op = greater_than;
16718 + lval->op = divide;
16723 + lval->op = module;
16733 + lval->op = minus;
16742 + /* Nothing, just return the character. */
16748 + /* Be safe and let the user call this function again. */
16754 + result = YYERRCODE;
16768 +yyerror (const char *str)
16770 + /* Do nothing. We don't print error messages here. */
16773 +++ lxpanel-0.5.6/intl/VERSION
16775 +GNU gettext library from gettext-0.14.1
16777 +++ lxpanel-0.5.6/intl/config.charset
16780 +# Output a system dependent table of character encoding aliases.
16782 +# Copyright (C) 2000-2004 Free Software Foundation, Inc.
16784 +# This program is free software; you can redistribute it and/or modify it
16785 +# under the terms of the GNU Library General Public License as published
16786 +# by the Free Software Foundation; either version 2, or (at your option)
16787 +# any later version.
16789 +# This program is distributed in the hope that it will be useful,
16790 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
16791 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16792 +# Library General Public License for more details.
16794 +# You should have received a copy of the GNU Library General Public
16795 +# License along with this program; if not, write to the Free Software
16796 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16799 +# The table consists of lines of the form
16802 +# ALIAS is the (system dependent) result of "nl_langinfo (CODESET)".
16803 +# ALIAS is compared in a case sensitive way.
16805 +# CANONICAL is the GNU canonical name for this character encoding.
16806 +# It must be an encoding supported by libiconv. Support by GNU libc is
16807 +# also desirable. CANONICAL is case insensitive. Usually an upper case
16808 +# MIME charset name is preferred.
16809 +# The current list of GNU canonical charset names is as follows.
16811 +# name MIME? used by which systems
16812 +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd darwin
16813 +# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd darwin
16814 +# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd darwin
16815 +# ISO-8859-3 Y glibc solaris
16816 +# ISO-8859-4 Y osf solaris freebsd darwin
16817 +# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd darwin
16818 +# ISO-8859-6 Y glibc aix hpux solaris
16819 +# ISO-8859-7 Y glibc aix hpux irix osf solaris
16820 +# ISO-8859-8 Y glibc aix hpux osf solaris
16821 +# ISO-8859-9 Y glibc aix hpux irix osf solaris
16822 +# ISO-8859-13 glibc
16823 +# ISO-8859-14 glibc
16824 +# ISO-8859-15 glibc aix osf solaris freebsd
16825 +# KOI8-R Y glibc solaris freebsd darwin
16826 +# KOI8-U Y glibc freebsd darwin
16830 +# CP850 aix osf dos
16839 +# CP866 freebsd darwin dos
16843 +# CP932 aix woe32 dos
16845 +# CP949 osf woe32 dos
16852 +# CP1251 glibc solaris darwin woe32
16853 +# CP1252 aix woe32
16856 +# CP1255 glibc woe32
16859 +# GB2312 Y glibc aix hpux irix solaris freebsd darwin
16860 +# EUC-JP Y glibc aix hpux irix osf solaris freebsd darwin
16861 +# EUC-KR Y glibc aix hpux irix osf solaris freebsd darwin
16862 +# EUC-TW glibc aix hpux irix osf solaris
16863 +# BIG5 Y glibc aix hpux osf solaris freebsd darwin
16864 +# BIG5-HKSCS glibc solaris
16865 +# GBK glibc aix osf solaris woe32 dos
16866 +# GB18030 glibc solaris
16867 +# SHIFT_JIS Y hpux osf solaris freebsd darwin
16868 +# JOHAB glibc solaris woe32
16869 +# TIS-620 glibc aix hpux osf solaris
16871 +# TCVN5712-1 glibc
16872 +# GEORGIAN-PS glibc
16877 +# HP-TURKISH8 hpux
16881 +# UTF-8 Y glibc aix hpux osf solaris
16883 +# Note: Names which are not marked as being a MIME name should not be used in
16884 +# Internet protocols for information interchange (mail, news, etc.).
16886 +# Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications
16887 +# must understand both names and treat them as equivalent.
16889 +# The first argument passed to this file is the canonical host specification,
16890 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
16892 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
16895 +os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'`
16896 +echo "# This file contains a table of character encoding aliases,"
16897 +echo "# suitable for operating system '${os}'."
16898 +echo "# It was automatically generated from config.charset."
16899 +# List of references, updated during installation:
16900 +echo "# Packages using this file: "
16903 + # Linux libc5 doesn't have nl_langinfo(CODESET); therefore
16904 + # localcharset.c falls back to using the full locale name
16905 + # from the environment variables.
16907 + echo "POSIX ASCII"
16908 + for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \
16909 + en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \
16910 + en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \
16911 + es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \
16912 + et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \
16913 + fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \
16914 + it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \
16916 + echo "$l ISO-8859-1"
16917 + echo "$l.iso-8859-1 ISO-8859-1"
16918 + echo "$l.iso-8859-15 ISO-8859-15"
16919 + echo "$l.iso-8859-15@euro ISO-8859-15"
16920 + echo "$l@euro ISO-8859-15"
16921 + echo "$l.cp-437 CP437"
16922 + echo "$l.cp-850 CP850"
16923 + echo "$l.cp-1252 CP1252"
16924 + echo "$l.cp-1252@euro CP1252"
16925 + #echo "$l.atari-st ATARI-ST" # not a commonly used encoding
16926 + echo "$l.utf-8 UTF-8"
16927 + echo "$l.utf-8@euro UTF-8"
16929 + for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \
16930 + sl_SI sr sr_CS sr_YU; do
16931 + echo "$l ISO-8859-2"
16932 + echo "$l.iso-8859-2 ISO-8859-2"
16933 + echo "$l.cp-852 CP852"
16934 + echo "$l.cp-1250 CP1250"
16935 + echo "$l.utf-8 UTF-8"
16937 + for l in mk mk_MK ru ru_RU; do
16938 + echo "$l ISO-8859-5"
16939 + echo "$l.iso-8859-5 ISO-8859-5"
16940 + echo "$l.koi8-r KOI8-R"
16941 + echo "$l.cp-866 CP866"
16942 + echo "$l.cp-1251 CP1251"
16943 + echo "$l.utf-8 UTF-8"
16945 + for l in ar ar_SA; do
16946 + echo "$l ISO-8859-6"
16947 + echo "$l.iso-8859-6 ISO-8859-6"
16948 + echo "$l.cp-864 CP864"
16949 + #echo "$l.cp-868 CP868" # not a commonly used encoding
16950 + echo "$l.cp-1256 CP1256"
16951 + echo "$l.utf-8 UTF-8"
16953 + for l in el el_GR gr gr_GR; do
16954 + echo "$l ISO-8859-7"
16955 + echo "$l.iso-8859-7 ISO-8859-7"
16956 + echo "$l.cp-869 CP869"
16957 + echo "$l.cp-1253 CP1253"
16958 + echo "$l.cp-1253@euro CP1253"
16959 + echo "$l.utf-8 UTF-8"
16960 + echo "$l.utf-8@euro UTF-8"
16962 + for l in he he_IL iw iw_IL; do
16963 + echo "$l ISO-8859-8"
16964 + echo "$l.iso-8859-8 ISO-8859-8"
16965 + echo "$l.cp-862 CP862"
16966 + echo "$l.cp-1255 CP1255"
16967 + echo "$l.utf-8 UTF-8"
16969 + for l in tr tr_TR; do
16970 + echo "$l ISO-8859-9"
16971 + echo "$l.iso-8859-9 ISO-8859-9"
16972 + echo "$l.cp-857 CP857"
16973 + echo "$l.cp-1254 CP1254"
16974 + echo "$l.utf-8 UTF-8"
16976 + for l in lt lt_LT lv lv_LV; do
16977 + #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name
16978 + echo "$l ISO-8859-13"
16980 + for l in ru_UA uk uk_UA; do
16983 + for l in zh zh_CN; do
16984 + #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name
16987 + for l in ja ja_JP ja_JP.EUC; do
16990 + for l in ko ko_KR; do
16993 + for l in th th_TH; do
16994 + echo "$l TIS-620"
16996 + for l in fa fa_IR; do
16997 + #echo "$l ISIRI-3342" # a broken encoding
16998 + echo "$l.utf-8 UTF-8"
17002 + # With glibc-2.1 or newer, we don't need any canonicalization,
17003 + # because glibc has iconv and both glibc and libiconv support all
17004 + # GNU canonical names directly. Therefore, the Makefile does not
17005 + # need to install the alias file at all.
17006 + # The following applies only to glibc-2.0.x and older libcs.
17007 + echo "ISO_646.IRV:1983 ASCII"
17010 + echo "ISO8859-1 ISO-8859-1"
17011 + echo "ISO8859-2 ISO-8859-2"
17012 + echo "ISO8859-5 ISO-8859-5"
17013 + echo "ISO8859-6 ISO-8859-6"
17014 + echo "ISO8859-7 ISO-8859-7"
17015 + echo "ISO8859-8 ISO-8859-8"
17016 + echo "ISO8859-9 ISO-8859-9"
17017 + echo "ISO8859-15 ISO-8859-15"
17018 + echo "IBM-850 CP850"
17019 + echo "IBM-856 CP856"
17020 + echo "IBM-921 ISO-8859-13"
17021 + echo "IBM-922 CP922"
17022 + echo "IBM-932 CP932"
17023 + echo "IBM-943 CP943"
17024 + echo "IBM-1046 CP1046"
17025 + echo "IBM-1124 CP1124"
17026 + echo "IBM-1129 CP1129"
17027 + echo "IBM-1252 CP1252"
17028 + echo "IBM-eucCN GB2312"
17029 + echo "IBM-eucJP EUC-JP"
17030 + echo "IBM-eucKR EUC-KR"
17031 + echo "IBM-eucTW EUC-TW"
17034 + echo "TIS-620 TIS-620"
17035 + echo "UTF-8 UTF-8"
17038 + echo "iso88591 ISO-8859-1"
17039 + echo "iso88592 ISO-8859-2"
17040 + echo "iso88595 ISO-8859-5"
17041 + echo "iso88596 ISO-8859-6"
17042 + echo "iso88597 ISO-8859-7"
17043 + echo "iso88598 ISO-8859-8"
17044 + echo "iso88599 ISO-8859-9"
17045 + echo "iso885915 ISO-8859-15"
17046 + echo "roman8 HP-ROMAN8"
17047 + echo "arabic8 HP-ARABIC8"
17048 + echo "greek8 HP-GREEK8"
17049 + echo "hebrew8 HP-HEBREW8"
17050 + echo "turkish8 HP-TURKISH8"
17051 + echo "kana8 HP-KANA8"
17052 + echo "tis620 TIS-620"
17054 + echo "eucJP EUC-JP"
17055 + echo "eucKR EUC-KR"
17056 + echo "eucTW EUC-TW"
17057 + echo "hp15CN GB2312"
17058 + #echo "ccdc ?" # what is this?
17059 + echo "SJIS SHIFT_JIS"
17060 + echo "utf8 UTF-8"
17063 + echo "ISO8859-1 ISO-8859-1"
17064 + echo "ISO8859-2 ISO-8859-2"
17065 + echo "ISO8859-5 ISO-8859-5"
17066 + echo "ISO8859-7 ISO-8859-7"
17067 + echo "ISO8859-9 ISO-8859-9"
17068 + echo "eucCN GB2312"
17069 + echo "eucJP EUC-JP"
17070 + echo "eucKR EUC-KR"
17071 + echo "eucTW EUC-TW"
17074 + echo "ISO8859-1 ISO-8859-1"
17075 + echo "ISO8859-2 ISO-8859-2"
17076 + echo "ISO8859-4 ISO-8859-4"
17077 + echo "ISO8859-5 ISO-8859-5"
17078 + echo "ISO8859-7 ISO-8859-7"
17079 + echo "ISO8859-8 ISO-8859-8"
17080 + echo "ISO8859-9 ISO-8859-9"
17081 + echo "ISO8859-15 ISO-8859-15"
17082 + echo "cp850 CP850"
17084 + echo "dechanyu DEC-HANYU"
17085 + echo "dechanzi GB2312"
17086 + echo "deckanji DEC-KANJI"
17087 + echo "deckorean EUC-KR"
17088 + echo "eucJP EUC-JP"
17089 + echo "eucKR EUC-KR"
17090 + echo "eucTW EUC-TW"
17092 + echo "KSC5601 CP949"
17093 + echo "sdeckanji EUC-JP"
17094 + echo "SJIS SHIFT_JIS"
17095 + echo "TACTIS TIS-620"
17096 + echo "UTF-8 UTF-8"
17100 + echo "ISO8859-1 ISO-8859-1"
17101 + echo "ISO8859-2 ISO-8859-2"
17102 + echo "ISO8859-3 ISO-8859-3"
17103 + echo "ISO8859-4 ISO-8859-4"
17104 + echo "ISO8859-5 ISO-8859-5"
17105 + echo "ISO8859-6 ISO-8859-6"
17106 + echo "ISO8859-7 ISO-8859-7"
17107 + echo "ISO8859-8 ISO-8859-8"
17108 + echo "ISO8859-9 ISO-8859-9"
17109 + echo "ISO8859-15 ISO-8859-15"
17110 + echo "koi8-r KOI8-R"
17111 + echo "ansi-1251 CP1251"
17113 + echo "Big5-HKSCS BIG5-HKSCS"
17114 + echo "gb2312 GB2312"
17116 + echo "GB18030 GB18030"
17117 + echo "cns11643 EUC-TW"
17118 + echo "5601 EUC-KR"
17119 + echo "ko_KR.johap92 JOHAB"
17120 + echo "eucJP EUC-JP"
17121 + echo "PCK SHIFT_JIS"
17122 + echo "TIS620.2533 TIS-620"
17123 + #echo "sun_eu_greek ?" # what is this?
17124 + echo "UTF-8 UTF-8"
17127 + # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
17128 + # localcharset.c falls back to using the full locale name
17129 + # from the environment variables.
17130 + # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just
17131 + # reuse FreeBSD's locale data for OS/2.
17133 + echo "US-ASCII ASCII"
17134 + for l in la_LN lt_LN; do
17135 + echo "$l.ASCII ASCII"
17137 + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
17138 + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
17139 + lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do
17140 + echo "$l.ISO_8859-1 ISO-8859-1"
17141 + echo "$l.DIS_8859-15 ISO-8859-15"
17143 + for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do
17144 + echo "$l.ISO_8859-2 ISO-8859-2"
17146 + for l in la_LN lt_LT; do
17147 + echo "$l.ISO_8859-4 ISO-8859-4"
17149 + for l in ru_RU ru_SU; do
17150 + echo "$l.KOI8-R KOI8-R"
17151 + echo "$l.ISO_8859-5 ISO-8859-5"
17152 + echo "$l.CP866 CP866"
17154 + echo "uk_UA.KOI8-U KOI8-U"
17155 + echo "zh_TW.BIG5 BIG5"
17156 + echo "zh_TW.Big5 BIG5"
17157 + echo "zh_CN.EUC GB2312"
17158 + echo "ja_JP.EUC EUC-JP"
17159 + echo "ja_JP.SJIS SHIFT_JIS"
17160 + echo "ja_JP.Shift_JIS SHIFT_JIS"
17161 + echo "ko_KR.EUC EUC-KR"
17165 + echo "ISO8859-1 ISO-8859-1"
17166 + echo "ISO8859-2 ISO-8859-2"
17167 + echo "ISO8859-4 ISO-8859-4"
17168 + echo "ISO8859-5 ISO-8859-5"
17169 + echo "ISO8859-15 ISO-8859-15"
17170 + echo "eucCN GB2312"
17171 + echo "eucJP EUC-JP"
17172 + echo "eucKR EUC-KR"
17173 + echo "eucTW EUC-TW"
17175 + echo "SJIS SHIFT_JIS"
17178 + # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore
17179 + # localcharset.c falls back to using the full locale name
17180 + # from the environment variables.
17182 + for l in en_AU en_CA en_GB en_US la_LN; do
17183 + echo "$l.US-ASCII ASCII"
17185 + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
17186 + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \
17187 + nl_NL no_NO pt_PT sv_SE; do
17188 + echo "$l ISO-8859-1"
17189 + echo "$l.ISO8859-1 ISO-8859-1"
17190 + echo "$l.ISO8859-15 ISO-8859-15"
17192 + for l in la_LN; do
17193 + echo "$l.ISO8859-1 ISO-8859-1"
17194 + echo "$l.ISO8859-15 ISO-8859-15"
17196 + for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do
17197 + echo "$l.ISO8859-2 ISO-8859-2"
17199 + for l in la_LN lt_LT; do
17200 + echo "$l.ISO8859-4 ISO-8859-4"
17202 + for l in ru_RU; do
17203 + echo "$l.KOI8-R KOI8-R"
17204 + echo "$l.ISO8859-5 ISO-8859-5"
17205 + echo "$l.CP866 CP866"
17207 + for l in bg_BG; do
17208 + echo "$l.CP1251 CP1251"
17210 + echo "uk_UA.KOI8-U KOI8-U"
17211 + echo "zh_TW.BIG5 BIG5"
17212 + echo "zh_TW.Big5 BIG5"
17213 + echo "zh_CN.EUC GB2312"
17214 + echo "ja_JP.EUC EUC-JP"
17215 + echo "ja_JP.SJIS SHIFT_JIS"
17216 + echo "ko_KR.EUC EUC-KR"
17219 + # BeOS has a single locale, and it has UTF-8 encoding.
17223 + # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore
17224 + # localcharset.c falls back to using the full locale name
17225 + # from the environment variables.
17227 + echo "# The encodings given here may not all be correct."
17228 + echo "# If you find that the encoding given for your language and"
17229 + echo "# country is not the one your DOS machine actually uses, just"
17230 + echo "# correct it in this file, and send a mail to"
17231 + echo "# Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>"
17232 + echo "# and Bruno Haible <bruno@clisp.org>."
17235 + # ISO-8859-1 languages
17237 + echo "ca_ES CP850"
17238 + echo "da CP865" # not CP850 ??
17239 + echo "da_DK CP865" # not CP850 ??
17241 + echo "de_AT CP850"
17242 + echo "de_CH CP850"
17243 + echo "de_DE CP850"
17245 + echo "en_AU CP850" # not CP437 ??
17246 + echo "en_CA CP850"
17247 + echo "en_GB CP850"
17248 + echo "en_NZ CP437"
17249 + echo "en_US CP437"
17250 + echo "en_ZA CP850" # not CP437 ??
17252 + echo "es_AR CP850"
17253 + echo "es_BO CP850"
17254 + echo "es_CL CP850"
17255 + echo "es_CO CP850"
17256 + echo "es_CR CP850"
17257 + echo "es_CU CP850"
17258 + echo "es_DO CP850"
17259 + echo "es_EC CP850"
17260 + echo "es_ES CP850"
17261 + echo "es_GT CP850"
17262 + echo "es_HN CP850"
17263 + echo "es_MX CP850"
17264 + echo "es_NI CP850"
17265 + echo "es_PA CP850"
17266 + echo "es_PY CP850"
17267 + echo "es_PE CP850"
17268 + echo "es_SV CP850"
17269 + echo "es_UY CP850"
17270 + echo "es_VE CP850"
17272 + echo "et_EE CP850"
17274 + echo "eu_ES CP850"
17276 + echo "fi_FI CP850"
17278 + echo "fr_BE CP850"
17279 + echo "fr_CA CP850"
17280 + echo "fr_CH CP850"
17281 + echo "fr_FR CP850"
17283 + echo "ga_IE CP850"
17285 + echo "gd_GB CP850"
17287 + echo "gl_ES CP850"
17288 + echo "id CP850" # not CP437 ??
17289 + echo "id_ID CP850" # not CP437 ??
17290 + echo "is CP861" # not CP850 ??
17291 + echo "is_IS CP861" # not CP850 ??
17293 + echo "it_CH CP850"
17294 + echo "it_IT CP850"
17296 + echo "lt_LT CP775"
17298 + echo "lv_LV CP775"
17299 + echo "nb CP865" # not CP850 ??
17300 + echo "nb_NO CP865" # not CP850 ??
17302 + echo "nl_BE CP850"
17303 + echo "nl_NL CP850"
17304 + echo "nn CP865" # not CP850 ??
17305 + echo "nn_NO CP865" # not CP850 ??
17306 + echo "no CP865" # not CP850 ??
17307 + echo "no_NO CP865" # not CP850 ??
17309 + echo "pt_BR CP850"
17310 + echo "pt_PT CP850"
17312 + echo "sv_SE CP850"
17313 + # ISO-8859-2 languages
17315 + echo "cs_CZ CP852"
17317 + echo "hr_HR CP852"
17319 + echo "hu_HU CP852"
17321 + echo "pl_PL CP852"
17323 + echo "ro_RO CP852"
17325 + echo "sk_SK CP852"
17327 + echo "sl_SI CP852"
17329 + echo "sq_AL CP852"
17330 + echo "sr CP852" # CP852 or CP866 or CP855 ??
17331 + echo "sr_CS CP852" # CP852 or CP866 or CP855 ??
17332 + echo "sr_YU CP852" # CP852 or CP866 or CP855 ??
17333 + # ISO-8859-3 languages
17335 + echo "mt_MT CP850"
17336 + # ISO-8859-5 languages
17338 + echo "be_BE CP866"
17339 + echo "bg CP866" # not CP855 ??
17340 + echo "bg_BG CP866" # not CP855 ??
17341 + echo "mk CP866" # not CP855 ??
17342 + echo "mk_MK CP866" # not CP855 ??
17344 + echo "ru_RU CP866"
17346 + echo "uk_UA CP1125"
17347 + # ISO-8859-6 languages
17349 + echo "ar_AE CP864"
17350 + echo "ar_DZ CP864"
17351 + echo "ar_EG CP864"
17352 + echo "ar_IQ CP864"
17353 + echo "ar_IR CP864"
17354 + echo "ar_JO CP864"
17355 + echo "ar_KW CP864"
17356 + echo "ar_MA CP864"
17357 + echo "ar_OM CP864"
17358 + echo "ar_QA CP864"
17359 + echo "ar_SA CP864"
17360 + echo "ar_SY CP864"
17361 + # ISO-8859-7 languages
17363 + echo "el_GR CP869"
17364 + # ISO-8859-8 languages
17366 + echo "he_IL CP862"
17367 + # ISO-8859-9 languages
17369 + echo "tr_TR CP857"
17372 + echo "ja_JP CP932"
17375 + echo "zh_TW CP950" # not CP938 ??
17377 + echo "kr CP949" # not CP934 ??
17378 + echo "kr_KR CP949" # not CP934 ??
17381 + echo "th_TH CP874"
17384 + echo "eo_EO CP850"
17388 +++ lxpanel-0.5.6/intl/intl-compat.c
17390 +/* intl-compat.c - Stub functions to call gettext functions from GNU gettext
17392 + Copyright (C) 1995, 2000-2003 Software Foundation, Inc.
17394 + This program is free software; you can redistribute it and/or modify it
17395 + under the terms of the GNU Library General Public License as published
17396 + by the Free Software Foundation; either version 2, or (at your option)
17397 + any later version.
17399 + This program is distributed in the hope that it will be useful,
17400 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17401 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17402 + Library General Public License for more details.
17404 + You should have received a copy of the GNU Library General Public
17405 + License along with this program; if not, write to the Free Software
17406 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17409 +#ifdef HAVE_CONFIG_H
17410 +# include <config.h>
17413 +#include "gettextP.h"
17415 +/* @@ end of prolog @@ */
17417 +/* This file redirects the gettext functions (without prefix) to those
17418 + defined in the included GNU libintl library (with "libintl_" prefix).
17419 + It is compiled into libintl in order to make the AM_GNU_GETTEXT test
17420 + of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which
17421 + has the redirections primarily in the <libintl.h> include file.
17422 + It is also compiled into libgnuintl so that libgnuintl.so can be used
17423 + as LD_PRELOADable library on glibc systems, to provide the extra
17424 + features that the functions in the libc don't have (namely, logging). */
17434 +#undef bindtextdomain
17435 +#undef bind_textdomain_codeset
17438 +/* When building a DLL, we must export some functions. Note that because
17439 + the functions are only defined for binary backward compatibility, we
17440 + don't need to use __declspec(dllimport) in any case. */
17441 +#if defined _MSC_VER && BUILDING_DLL
17442 +# define DLL_EXPORTED __declspec(dllexport)
17444 +# define DLL_EXPORTED
17450 +gettext (const char *msgid)
17452 + return libintl_gettext (msgid);
17458 +dgettext (const char *domainname, const char *msgid)
17460 + return libintl_dgettext (domainname, msgid);
17466 +dcgettext (const char *domainname, const char *msgid, int category)
17468 + return libintl_dcgettext (domainname, msgid, category);
17474 +ngettext (const char *msgid1, const char *msgid2, unsigned long int n)
17476 + return libintl_ngettext (msgid1, msgid2, n);
17482 +dngettext (const char *domainname,
17483 + const char *msgid1, const char *msgid2, unsigned long int n)
17485 + return libintl_dngettext (domainname, msgid1, msgid2, n);
17491 +dcngettext (const char *domainname,
17492 + const char *msgid1, const char *msgid2, unsigned long int n,
17495 + return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
17501 +textdomain (const char *domainname)
17503 + return libintl_textdomain (domainname);
17509 +bindtextdomain (const char *domainname, const char *dirname)
17511 + return libintl_bindtextdomain (domainname, dirname);
17517 +bind_textdomain_codeset (const char *domainname, const char *codeset)
17519 + return libintl_bind_textdomain_codeset (domainname, codeset);
17522 +++ lxpanel-0.5.6/intl/dcngettext.c
17524 +/* Implementation of the dcngettext(3) function.
17525 + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
17527 + This program is free software; you can redistribute it and/or modify it
17528 + under the terms of the GNU Library General Public License as published
17529 + by the Free Software Foundation; either version 2, or (at your option)
17530 + any later version.
17532 + This program is distributed in the hope that it will be useful,
17533 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17534 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17535 + Library General Public License for more details.
17537 + You should have received a copy of the GNU Library General Public
17538 + License along with this program; if not, write to the Free Software
17539 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17542 +#ifdef HAVE_CONFIG_H
17543 +# include <config.h>
17546 +#include "gettextP.h"
17548 +# include <libintl.h>
17550 +# include "libgnuintl.h"
17553 +/* @@ end of prolog @@ */
17555 +/* Names for the libintl functions are a problem. They must not clash
17556 + with existing names and they should follow ANSI C. But this source
17557 + code is also used in GNU C Library where the names have a __
17558 + prefix. So we have to make a difference here. */
17560 +# define DCNGETTEXT __dcngettext
17561 +# define DCIGETTEXT __dcigettext
17563 +# define DCNGETTEXT libintl_dcngettext
17564 +# define DCIGETTEXT libintl_dcigettext
17567 +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
17570 +DCNGETTEXT (const char *domainname,
17571 + const char *msgid1, const char *msgid2, unsigned long int n,
17574 + return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category);
17578 +/* Alias for function name in GNU C Library. */
17579 +weak_alias (__dcngettext, dcngettext);
17582 +++ lxpanel-0.5.6/intl/Makefile.in
17584 +# Makefile for directory with message catalog handling library of GNU gettext
17585 +# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
17587 +# This program is free software; you can redistribute it and/or modify it
17588 +# under the terms of the GNU Library General Public License as published
17589 +# by the Free Software Foundation; either version 2, or (at your option)
17590 +# any later version.
17592 +# This program is distributed in the hope that it will be useful,
17593 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
17594 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17595 +# Library General Public License for more details.
17597 +# You should have received a copy of the GNU Library General Public
17598 +# License along with this program; if not, write to the Free Software
17599 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17602 +PACKAGE = @PACKAGE@
17603 +VERSION = @VERSION@
17608 +top_srcdir = @top_srcdir@
17613 +exec_prefix = @exec_prefix@
17614 +transform = @program_transform_name@
17616 +includedir = @includedir@
17617 +datadir = @datadir@
17618 +localedir = $(datadir)/locale
17619 +gettextsrcdir = $(datadir)/gettext/intl
17620 +aliaspath = $(localedir)
17623 +INSTALL = @INSTALL@
17624 +INSTALL_DATA = @INSTALL_DATA@
17625 +MKINSTALLDIRS = @MKINSTALLDIRS@
17626 +mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
17628 +l = @INTL_LIBTOOL_SUFFIX_PREFIX@
17632 +LIBTOOL = @LIBTOOL@
17634 +YACC = @INTLBISON@ -y -d
17635 +YFLAGS = --name-prefix=__gettext
17637 +DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
17638 +-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
17639 +-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
17640 +-Dset_relocation_prefix=libintl_set_relocation_prefix \
17641 +-Drelocate=libintl_relocate \
17642 +-DDEPENDS_ON_LIBICONV=1 @DEFS@
17643 +CPPFLAGS = @CPPFLAGS@
17645 +LDFLAGS = @LDFLAGS@
17648 +COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
17660 + printf-args.h printf-args.c \
17661 + printf-parse.h wprintf-parse.h printf-parse.c \
17662 + vasnprintf.h vasnwprintf.h vasnprintf.c \
17691 + bindtextdom.$lo \
17697 + localealias.$lo \
17700 + explodename.$lo \
17707 + localcharset.$lo \
17708 + relocatable.$lo \
17714 +DISTFILES.common = Makefile.in \
17715 +config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
17716 +DISTFILES.generated = plural.c
17717 +DISTFILES.normal = VERSION
17718 +DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
17719 +libgnuintl.h_vms Makefile.vms \
17720 +libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
17721 +DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
17722 +COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
17724 +all: all-@USE_INCLUDED_LIBINTL@
17725 +all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
17726 +all-no: all-no-@BUILD_INCLUDED_LIBINTL@
17727 +all-no-yes: libgnuintl.$la
17730 +libintl.a libgnuintl.a: $(OBJECTS)
17732 + $(AR) cru $@ $(OBJECTS)
17735 +libintl.la libgnuintl.la: $(OBJECTS)
17736 + $(LIBTOOL) --mode=link \
17737 + $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
17738 + $(OBJECTS) @LTLIBICONV@ $(LIBS) -lc \
17739 + -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
17740 + -rpath $(libdir) \
17743 +# Libtool's library version information for libintl.
17744 +# Before making a gettext release, the gettext maintainer must change this
17745 +# according to the libtool documentation, section "Library interface versions".
17746 +# Maintainers of other packages that include the intl directory must *not*
17747 +# change these values.
17753 +.SUFFIXES: .c .y .o .lo .sin .sed
17759 + $(YACC) $(YFLAGS) --output $@ $<
17762 +bindtextdom.lo: $(srcdir)/bindtextdom.c
17763 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
17764 +dcgettext.lo: $(srcdir)/dcgettext.c
17765 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
17766 +dgettext.lo: $(srcdir)/dgettext.c
17767 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
17768 +gettext.lo: $(srcdir)/gettext.c
17769 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
17770 +finddomain.lo: $(srcdir)/finddomain.c
17771 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
17772 +loadmsgcat.lo: $(srcdir)/loadmsgcat.c
17773 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
17774 +localealias.lo: $(srcdir)/localealias.c
17775 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
17776 +textdomain.lo: $(srcdir)/textdomain.c
17777 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
17778 +l10nflist.lo: $(srcdir)/l10nflist.c
17779 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
17780 +explodename.lo: $(srcdir)/explodename.c
17781 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
17782 +dcigettext.lo: $(srcdir)/dcigettext.c
17783 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
17784 +dcngettext.lo: $(srcdir)/dcngettext.c
17785 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
17786 +dngettext.lo: $(srcdir)/dngettext.c
17787 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
17788 +ngettext.lo: $(srcdir)/ngettext.c
17789 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
17790 +plural.lo: $(srcdir)/plural.c
17791 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
17792 +plural-exp.lo: $(srcdir)/plural-exp.c
17793 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
17794 +localcharset.lo: $(srcdir)/localcharset.c
17795 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
17796 +relocatable.lo: $(srcdir)/relocatable.c
17797 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
17798 +localename.lo: $(srcdir)/localename.c
17799 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
17800 +log.lo: $(srcdir)/log.c
17801 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
17802 +printf.lo: $(srcdir)/printf.c
17803 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
17804 +osdep.lo: $(srcdir)/osdep.c
17805 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
17806 +intl-compat.lo: $(srcdir)/intl-compat.c
17807 + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
17809 +ref-add.sed: $(srcdir)/ref-add.sin
17810 + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
17811 + mv t-ref-add.sed ref-add.sed
17812 +ref-del.sed: $(srcdir)/ref-del.sin
17813 + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
17814 + mv t-ref-del.sed ref-del.sed
17816 +INCLUDES = -I. -I$(srcdir) -I..
17818 +libgnuintl.h: $(srcdir)/libgnuintl.h.in
17819 + sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
17820 + -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
17821 + -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
17822 + -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
17823 + < $(srcdir)/libgnuintl.h.in > libgnuintl.h
17825 +libintl.h: libgnuintl.h
17826 + cp libgnuintl.h libintl.h
17828 +charset.alias: $(srcdir)/config.charset
17829 + $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
17834 +# We must not install the libintl.h/libintl.a files if we are on a
17835 +# system which has the GNU gettext() function in its C library or in a
17836 +# separate library.
17837 +# If you want to use the one which comes with this version of the
17838 +# package, you have to use `configure --with-included-gettext'.
17839 +install: install-exec install-data
17841 + if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
17842 + && test '@USE_INCLUDED_LIBINTL@' = yes; then \
17843 + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
17844 + $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
17845 + $(LIBTOOL) --mode=install \
17846 + $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
17847 + if test "@RELOCATABLE@" = yes; then \
17848 + dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
17849 + if test -n "$$dependencies"; then \
17850 + rm -f $(DESTDIR)$(libdir)/libintl.la; \
17856 + if test "$(PACKAGE)" = "gettext-tools" \
17857 + && test '@USE_INCLUDED_LIBINTL@' = no; then \
17858 + $(mkinstalldirs) $(DESTDIR)$(libdir); \
17859 + $(LIBTOOL) --mode=install \
17860 + $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
17861 + rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
17862 + $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
17863 + $(LIBTOOL) --mode=uninstall \
17864 + rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
17868 + if test '@USE_INCLUDED_LIBINTL@' = yes; then \
17869 + test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
17870 + temp=$(DESTDIR)$(libdir)/t-charset.alias; \
17871 + dest=$(DESTDIR)$(libdir)/charset.alias; \
17872 + if test -f $(DESTDIR)$(libdir)/charset.alias; then \
17873 + orig=$(DESTDIR)$(libdir)/charset.alias; \
17874 + sed -f ref-add.sed $$orig > $$temp; \
17875 + $(INSTALL_DATA) $$temp $$dest; \
17878 + if test @GLIBC21@ = no; then \
17879 + orig=charset.alias; \
17880 + sed -f ref-add.sed $$orig > $$temp; \
17881 + $(INSTALL_DATA) $$temp $$dest; \
17885 + $(mkinstalldirs) $(DESTDIR)$(localedir); \
17886 + test -f $(DESTDIR)$(localedir)/locale.alias \
17887 + && orig=$(DESTDIR)$(localedir)/locale.alias \
17888 + || orig=$(srcdir)/locale.alias; \
17889 + temp=$(DESTDIR)$(localedir)/t-locale.alias; \
17890 + dest=$(DESTDIR)$(localedir)/locale.alias; \
17891 + sed -f ref-add.sed $$orig > $$temp; \
17892 + $(INSTALL_DATA) $$temp $$dest; \
17898 + if test "$(PACKAGE)" = "gettext-tools"; then \
17899 + $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
17900 + $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
17901 + $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
17902 + dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
17903 + for file in $$dists; do \
17904 + $(INSTALL_DATA) $(srcdir)/$$file \
17905 + $(DESTDIR)$(gettextsrcdir)/$$file; \
17907 + chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
17908 + dists="$(DISTFILES.generated)"; \
17909 + for file in $$dists; do \
17910 + if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
17911 + $(INSTALL_DATA) $$dir/$$file \
17912 + $(DESTDIR)$(gettextsrcdir)/$$file; \
17914 + dists="$(DISTFILES.obsolete)"; \
17915 + for file in $$dists; do \
17916 + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
17922 +install-strip: install
17925 + if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
17926 + && test '@USE_INCLUDED_LIBINTL@' = yes; then \
17927 + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
17931 + if test "$(PACKAGE)" = "gettext-tools" \
17932 + && test '@USE_INCLUDED_LIBINTL@' = no; then \
17933 + $(mkinstalldirs) $(DESTDIR)$(libdir); \
17937 + if test '@USE_INCLUDED_LIBINTL@' = yes; then \
17938 + test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
17939 + $(mkinstalldirs) $(DESTDIR)$(localedir); \
17943 + if test "$(PACKAGE)" = "gettext-tools"; then \
17944 + $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
17949 +# Define this as empty until I found a useful application.
17953 + if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
17954 + && test '@USE_INCLUDED_LIBINTL@' = yes; then \
17955 + rm -f $(DESTDIR)$(includedir)/libintl.h; \
17956 + $(LIBTOOL) --mode=uninstall \
17957 + rm -f $(DESTDIR)$(libdir)/libintl.$la; \
17961 + if test "$(PACKAGE)" = "gettext-tools" \
17962 + && test '@USE_INCLUDED_LIBINTL@' = no; then \
17963 + rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
17967 + if test '@USE_INCLUDED_LIBINTL@' = yes; then \
17968 + if test -f $(DESTDIR)$(libdir)/charset.alias; then \
17969 + temp=$(DESTDIR)$(libdir)/t-charset.alias; \
17970 + dest=$(DESTDIR)$(libdir)/charset.alias; \
17971 + sed -f ref-del.sed $$dest > $$temp; \
17972 + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
17975 + $(INSTALL_DATA) $$temp $$dest; \
17979 + if test -f $(DESTDIR)$(localedir)/locale.alias; then \
17980 + temp=$(DESTDIR)$(localedir)/t-locale.alias; \
17981 + dest=$(DESTDIR)$(localedir)/locale.alias; \
17982 + sed -f ref-del.sed $$dest > $$temp; \
17983 + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
17986 + $(INSTALL_DATA) $$temp $$dest; \
17993 + if test "$(PACKAGE)" = "gettext-tools"; then \
17994 + for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
17995 + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
18001 +info dvi ps pdf html:
18003 +$(OBJECTS): ../config.h libgnuintl.h
18004 +bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
18005 +dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
18006 +explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
18007 +dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
18008 +dcigettext.$lo: $(srcdir)/eval-plural.h
18009 +localcharset.$lo: $(srcdir)/localcharset.h
18010 +localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
18011 +printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c
18015 +TAGS: $(HEADERS) $(SOURCES)
18016 + here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
18020 +CTAGS: $(HEADERS) $(SOURCES)
18021 + here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
18025 +ID: $(HEADERS) $(SOURCES)
18026 + here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
18030 + rm -f *.a *.la *.o *.obj *.lo core core.*
18031 + rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
18032 + rm -f -r .libs _libs
18034 +clean: mostlyclean
18037 + rm -f Makefile ID TAGS
18038 + if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
18039 + rm -f ChangeLog.inst $(DISTFILES.normal); \
18044 +maintainer-clean: distclean
18045 + @echo "This command is intended for maintainers to use;"
18046 + @echo "it deletes files that may require special tools to rebuild."
18049 +# GNU gettext needs not contain the file `VERSION' but contains some
18050 +# other files which should not be distributed in other packages.
18051 +distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
18052 +dist distdir: Makefile
18053 + if test "$(PACKAGE)" = "gettext-tools"; then \
18056 + if test "$(PACKAGE)" = "gettext-runtime"; then \
18057 + additional="$(DISTFILES.gettext)"; \
18059 + additional="$(DISTFILES.normal)"; \
18061 + $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
18062 + for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
18063 + if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
18064 + cp -p $$dir/$$file $(distdir); \
18068 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
18069 + cd $(top_builddir) && $(SHELL) ./config.status
18070 +# This would be more efficient, but doesn't work any more with autoconf-2.57,
18071 +# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
18072 +# cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
18074 +# Tell versions [3.59,3.63) of GNU make not to export all variables.
18075 +# Otherwise a system limit (for SysV at least) may be exceeded.
18078 +++ lxpanel-0.5.6/intl/plural.c
18080 +/* A Bison parser, made from plural.y
18081 + by GNU bison 1.35. */
18083 +#define YYBISON 1 /* Identify Bison output. */
18085 +#define yyparse __gettextparse
18086 +#define yylex __gettextlex
18087 +#define yyerror __gettexterror
18088 +#define yylval __gettextlval
18089 +#define yychar __gettextchar
18090 +#define yydebug __gettextdebug
18091 +#define yynerrs __gettextnerrs
18092 +# define EQUOP2 257
18093 +# define CMPOP2 258
18094 +# define ADDOP2 259
18095 +# define MULOP2 260
18096 +# define NUMBER 261
18098 +#line 1 "plural.y"
18100 +/* Expression parsing for plural form selection.
18101 + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc.
18102 + Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
18104 + This program is free software; you can redistribute it and/or modify it
18105 + under the terms of the GNU Library General Public License as published
18106 + by the Free Software Foundation; either version 2, or (at your option)
18107 + any later version.
18109 + This program is distributed in the hope that it will be useful,
18110 + but WITHOUT ANY WARRANTY; without even the implied warranty of
18111 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18112 + Library General Public License for more details.
18114 + You should have received a copy of the GNU Library General Public
18115 + License along with this program; if not, write to the Free Software
18116 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18119 +/* The bison generated parser uses alloca. AIX 3 forces us to put this
18120 + declaration at the beginning of the file. The declaration in bison's
18121 + skeleton file comes too late. This must come before <config.h>
18122 + because <config.h> may include arbitrary system headers. */
18123 +#if defined _AIX && !defined __GNUC__
18127 +#ifdef HAVE_CONFIG_H
18128 +# include <config.h>
18131 +#include <stddef.h>
18132 +#include <stdlib.h>
18133 +#include "plural-exp.h"
18135 +/* The main function generated by the parser is called __gettextparse,
18136 + but we want it to be called PLURAL_PARSE. */
18138 +# define __gettextparse PLURAL_PARSE
18141 +#define YYLEX_PARAM &((struct parse_args *) arg)->cp
18142 +#define YYPARSE_PARAM arg
18144 +#line 49 "plural.y"
18147 + unsigned long int num;
18148 + enum operator op;
18149 + struct expression *exp;
18151 +# define YYSTYPE yystype
18152 +# define YYSTYPE_IS_TRIVIAL 1
18154 +#line 55 "plural.y"
18156 +/* Prototypes for local functions. */
18157 +static int yylex (YYSTYPE *lval, const char **pexp);
18158 +static void yyerror (const char *str);
18160 +/* Allocation of expressions. */
18162 +static struct expression *
18163 +new_exp (int nargs, enum operator op, struct expression * const *args)
18166 + struct expression *newp;
18168 + /* If any of the argument could not be malloc'ed, just return NULL. */
18169 + for (i = nargs - 1; i >= 0; i--)
18170 + if (args[i] == NULL)
18173 + /* Allocate a new expression. */
18174 + newp = (struct expression *) malloc (sizeof (*newp));
18175 + if (newp != NULL)
18177 + newp->nargs = nargs;
18178 + newp->operation = op;
18179 + for (i = nargs - 1; i >= 0; i--)
18180 + newp->val.args[i] = args[i];
18185 + for (i = nargs - 1; i >= 0; i--)
18186 + FREE_EXPRESSION (args[i]);
18191 +static inline struct expression *
18192 +new_exp_0 (enum operator op)
18194 + return new_exp (0, op, NULL);
18197 +static inline struct expression *
18198 +new_exp_1 (enum operator op, struct expression *right)
18200 + struct expression *args[1];
18203 + return new_exp (1, op, args);
18206 +static struct expression *
18207 +new_exp_2 (enum operator op, struct expression *left, struct expression *right)
18209 + struct expression *args[2];
18213 + return new_exp (2, op, args);
18216 +static inline struct expression *
18217 +new_exp_3 (enum operator op, struct expression *bexp,
18218 + struct expression *tbranch, struct expression *fbranch)
18220 + struct expression *args[3];
18223 + args[1] = tbranch;
18224 + args[2] = fbranch;
18225 + return new_exp (3, op, args);
18229 +# define YYDEBUG 0
18234 +#define YYFINAL 27
18235 +#define YYFLAG -32768
18236 +#define YYNTBASE 16
18238 +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
18239 +#define YYTRANSLATE(x) ((unsigned)(x) <= 261 ? yytranslate[x] : 18)
18241 +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
18242 +static const char yytranslate[] =
18244 + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18245 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18246 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18247 + 2, 2, 2, 10, 2, 2, 2, 2, 5, 2,
18248 + 14, 15, 2, 2, 2, 2, 2, 2, 2, 2,
18249 + 2, 2, 2, 2, 2, 2, 2, 2, 12, 2,
18250 + 2, 2, 2, 3, 2, 2, 2, 2, 2, 2,
18251 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18252 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18253 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18254 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18255 + 13, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18256 + 2, 2, 2, 2, 4, 2, 2, 2, 2, 2,
18257 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18258 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18259 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18260 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18261 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18262 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18263 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18264 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18265 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18266 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18267 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18268 + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18269 + 2, 2, 2, 2, 2, 2, 1, 6, 7, 8,
18274 +static const short yyprhs[] =
18276 + 0, 0, 2, 8, 12, 16, 20, 24, 28, 32,
18279 +static const short yyrhs[] =
18281 + 17, 0, 17, 3, 17, 12, 17, 0, 17, 4,
18282 + 17, 0, 17, 5, 17, 0, 17, 6, 17, 0,
18283 + 17, 7, 17, 0, 17, 8, 17, 0, 17, 9,
18284 + 17, 0, 10, 17, 0, 13, 0, 11, 0, 14,
18291 +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
18292 +static const short yyrline[] =
18294 + 0, 150, 158, 162, 166, 170, 174, 178, 182, 186,
18300 +#if (YYDEBUG) || defined YYERROR_VERBOSE
18302 +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
18303 +static const char *const yytname[] =
18305 + "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2",
18306 + "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'",
18307 + "start", "exp", 0
18311 +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
18312 +static const short yyr1[] =
18314 + 0, 16, 17, 17, 17, 17, 17, 17, 17, 17,
18318 +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
18319 +static const short yyr2[] =
18321 + 0, 1, 5, 3, 3, 3, 3, 3, 3, 2,
18325 +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
18326 + doesn't specify something else to do. Zero means the default is an
18328 +static const short yydefact[] =
18330 + 0, 0, 11, 10, 0, 1, 9, 0, 0, 0,
18331 + 0, 0, 0, 0, 0, 12, 0, 3, 4, 5,
18332 + 6, 7, 8, 0, 2, 0, 0, 0
18335 +static const short yydefgoto[] =
18340 +static const short yypact[] =
18342 + -9, -9,-32768,-32768, -9, 34,-32768, 11, -9, -9,
18343 + -9, -9, -9, -9, -9,-32768, 24, 39, 43, 16,
18344 + 26, -3,-32768, -9, 34, 21, 53,-32768
18347 +static const short yypgoto[] =
18356 +static const short yytable[] =
18358 + 6, 1, 2, 7, 3, 4, 14, 16, 17, 18,
18359 + 19, 20, 21, 22, 8, 9, 10, 11, 12, 13,
18360 + 14, 26, 24, 12, 13, 14, 15, 8, 9, 10,
18361 + 11, 12, 13, 14, 13, 14, 23, 8, 9, 10,
18362 + 11, 12, 13, 14, 10, 11, 12, 13, 14, 11,
18366 +static const short yycheck[] =
18368 + 1, 10, 11, 4, 13, 14, 9, 8, 9, 10,
18369 + 11, 12, 13, 14, 3, 4, 5, 6, 7, 8,
18370 + 9, 0, 23, 7, 8, 9, 15, 3, 4, 5,
18371 + 6, 7, 8, 9, 8, 9, 12, 3, 4, 5,
18372 + 6, 7, 8, 9, 5, 6, 7, 8, 9, 6,
18377 +/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
18378 +#line 3 "/usr/local/share/bison/bison.simple"
18380 +/* Skeleton output parser for bison,
18382 + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
18385 + This program is free software; you can redistribute it and/or modify
18386 + it under the terms of the GNU General Public License as published by
18387 + the Free Software Foundation; either version 2, or (at your option)
18388 + any later version.
18390 + This program is distributed in the hope that it will be useful,
18391 + but WITHOUT ANY WARRANTY; without even the implied warranty of
18392 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18393 + GNU General Public License for more details.
18395 + You should have received a copy of the GNU General Public License
18396 + along with this program; if not, write to the Free Software
18397 + Foundation, Inc., 59 Temple Place - Suite 330,
18398 + Boston, MA 02111-1307, USA. */
18400 +/* As a special exception, when this file is copied by Bison into a
18401 + Bison output file, you may use that output file without restriction.
18402 + This special exception was added by the Free Software Foundation
18403 + in version 1.24 of Bison. */
18405 +/* This is the parser code that is written into each bison parser when
18406 + the %semantic_parser declaration is not specified in the grammar.
18407 + It was written by Richard Stallman by simplifying the hairy parser
18408 + used when %semantic_parser is specified. */
18410 +/* All symbols defined below should begin with yy or YY, to avoid
18411 + infringing on user name space. This should be done even for local
18412 + variables, as they might otherwise be expanded by user macros.
18413 + There are some unavoidable exceptions within include files to
18414 + define necessary library symbols; they are noted "INFRINGES ON
18415 + USER NAME SPACE" below. */
18417 +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
18419 +/* The parser invokes alloca or malloc; define the necessary symbols. */
18421 +# if YYSTACK_USE_ALLOCA
18422 +# define YYSTACK_ALLOC alloca
18424 +# ifndef YYSTACK_USE_ALLOCA
18425 +# if defined (alloca) || defined (_ALLOCA_H)
18426 +# define YYSTACK_ALLOC alloca
18429 +# define YYSTACK_ALLOC __builtin_alloca
18435 +# ifdef YYSTACK_ALLOC
18436 + /* Pacify GCC's `empty if-body' warning. */
18437 +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
18439 +# if defined (__STDC__) || defined (__cplusplus)
18440 +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
18441 +# define YYSIZE_T size_t
18443 +# define YYSTACK_ALLOC malloc
18444 +# define YYSTACK_FREE free
18446 +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
18449 +#if (! defined (yyoverflow) \
18450 + && (! defined (__cplusplus) \
18451 + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
18453 +/* A type that is properly aligned for any stack member. */
18463 +/* The size of the maximum gap between one aligned stack and the next. */
18464 +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
18466 +/* The size of an array large to enough to hold all stacks, each with
18469 +# define YYSTACK_BYTES(N) \
18470 + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
18471 + + 2 * YYSTACK_GAP_MAX)
18473 +# define YYSTACK_BYTES(N) \
18474 + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
18475 + + YYSTACK_GAP_MAX)
18478 +/* Copy COUNT objects from FROM to TO. The source and destination do
18482 +# define YYCOPY(To, From, Count) \
18483 + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
18485 +# define YYCOPY(To, From, Count) \
18488 + register YYSIZE_T yyi; \
18489 + for (yyi = 0; yyi < (Count); yyi++) \
18490 + (To)[yyi] = (From)[yyi]; \
18496 +/* Relocate STACK from its old location to the new one. The
18497 + local variables YYSIZE and YYSTACKSIZE give the old and new number of
18498 + elements in the stack, and YYPTR gives the new location of the
18499 + stack. Advance YYPTR to a properly aligned location for the next
18501 +# define YYSTACK_RELOCATE(Stack) \
18504 + YYSIZE_T yynewbytes; \
18505 + YYCOPY (&yyptr->Stack, Stack, yysize); \
18506 + Stack = &yyptr->Stack; \
18507 + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \
18508 + yyptr += yynewbytes / sizeof (*yyptr); \
18515 +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
18516 +# define YYSIZE_T __SIZE_TYPE__
18518 +#if ! defined (YYSIZE_T) && defined (size_t)
18519 +# define YYSIZE_T size_t
18521 +#if ! defined (YYSIZE_T)
18522 +# if defined (__STDC__) || defined (__cplusplus)
18523 +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
18524 +# define YYSIZE_T size_t
18527 +#if ! defined (YYSIZE_T)
18528 +# define YYSIZE_T unsigned int
18531 +#define yyerrok (yyerrstatus = 0)
18532 +#define yyclearin (yychar = YYEMPTY)
18533 +#define YYEMPTY -2
18535 +#define YYACCEPT goto yyacceptlab
18536 +#define YYABORT goto yyabortlab
18537 +#define YYERROR goto yyerrlab1
18538 +/* Like YYERROR except do call yyerror. This remains here temporarily
18539 + to ease the transition to the new meaning of YYERROR, for GCC.
18540 + Once GCC version 2 has supplanted version 1, this can go. */
18541 +#define YYFAIL goto yyerrlab
18542 +#define YYRECOVERING() (!!yyerrstatus)
18543 +#define YYBACKUP(Token, Value) \
18545 + if (yychar == YYEMPTY && yylen == 1) \
18547 + yychar = (Token); \
18548 + yylval = (Value); \
18549 + yychar1 = YYTRANSLATE (yychar); \
18555 + yyerror ("syntax error: cannot back up"); \
18560 +#define YYTERROR 1
18561 +#define YYERRCODE 256
18564 +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
18567 + When YYLLOC_DEFAULT is run, CURRENT is set the location of the
18568 + first token. By default, to implement support for ranges, extend
18569 + its range to the last symbol. */
18571 +#ifndef YYLLOC_DEFAULT
18572 +# define YYLLOC_DEFAULT(Current, Rhs, N) \
18573 + Current.last_line = Rhs[N].last_line; \
18574 + Current.last_column = Rhs[N].last_column;
18578 +/* YYLEX -- calling `yylex' with the right arguments. */
18582 +# ifdef YYLEX_PARAM
18583 +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
18585 +# define YYLEX yylex (&yylval, &yylloc)
18587 +# else /* !YYLSP_NEEDED */
18588 +# ifdef YYLEX_PARAM
18589 +# define YYLEX yylex (&yylval, YYLEX_PARAM)
18591 +# define YYLEX yylex (&yylval)
18593 +# endif /* !YYLSP_NEEDED */
18594 +#else /* !YYPURE */
18595 +# define YYLEX yylex ()
18596 +#endif /* !YYPURE */
18599 +/* Enable debugging if requested. */
18602 +# ifndef YYFPRINTF
18603 +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
18604 +# define YYFPRINTF fprintf
18607 +# define YYDPRINTF(Args) \
18610 + YYFPRINTF Args; \
18612 +/* Nonzero means print parse trace. It is left uninitialized so that
18613 + multiple parsers can coexist. */
18615 +#else /* !YYDEBUG */
18616 +# define YYDPRINTF(Args)
18617 +#endif /* !YYDEBUG */
18619 +/* YYINITDEPTH -- initial size of the parser's stacks. */
18620 +#ifndef YYINITDEPTH
18621 +# define YYINITDEPTH 200
18624 +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
18625 + if the built-in stack extension method is used).
18627 + Do not make this value too large; the results are undefined if
18628 + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
18629 + evaluated with infinite-precision integer arithmetic. */
18631 +#if YYMAXDEPTH == 0
18632 +# undef YYMAXDEPTH
18635 +#ifndef YYMAXDEPTH
18636 +# define YYMAXDEPTH 10000
18639 +#ifdef YYERROR_VERBOSE
18642 +# if defined (__GLIBC__) && defined (_STRING_H)
18643 +# define yystrlen strlen
18645 +/* Return the length of YYSTR. */
18647 +# if defined (__STDC__) || defined (__cplusplus)
18648 +yystrlen (const char *yystr)
18651 + const char *yystr;
18654 + register const char *yys = yystr;
18656 + while (*yys++ != '\0')
18659 + return yys - yystr - 1;
18665 +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
18666 +# define yystpcpy stpcpy
18668 +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
18671 +# if defined (__STDC__) || defined (__cplusplus)
18672 +yystpcpy (char *yydest, const char *yysrc)
18674 +yystpcpy (yydest, yysrc)
18676 + const char *yysrc;
18679 + register char *yyd = yydest;
18680 + register const char *yys = yysrc;
18682 + while ((*yyd++ = *yys++) != '\0')
18691 +#line 315 "/usr/local/share/bison/bison.simple"
18694 +/* The user can define YYPARSE_PARAM as the name of an argument to be passed
18695 + into yyparse. The argument should have type void *.
18696 + It should actually point to an object.
18697 + Grammar actions can access the variable by casting it
18698 + to the proper pointer type. */
18700 +#ifdef YYPARSE_PARAM
18701 +# if defined (__STDC__) || defined (__cplusplus)
18702 +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
18703 +# define YYPARSE_PARAM_DECL
18705 +# define YYPARSE_PARAM_ARG YYPARSE_PARAM
18706 +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
18708 +#else /* !YYPARSE_PARAM */
18709 +# define YYPARSE_PARAM_ARG
18710 +# define YYPARSE_PARAM_DECL
18711 +#endif /* !YYPARSE_PARAM */
18713 +/* Prevent warning if -Wstrict-prototypes. */
18715 +# ifdef YYPARSE_PARAM
18716 +int yyparse (void *);
18718 +int yyparse (void);
18722 +/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
18723 + variables are global, or local to YYPARSE. */
18725 +#define YY_DECL_NON_LSP_VARIABLES \
18726 +/* The lookahead symbol. */ \
18729 +/* The semantic value of the lookahead symbol. */ \
18732 +/* Number of parse errors so far. */ \
18736 +# define YY_DECL_VARIABLES \
18737 +YY_DECL_NON_LSP_VARIABLES \
18739 +/* Location data for the lookahead symbol. */ \
18742 +# define YY_DECL_VARIABLES \
18743 +YY_DECL_NON_LSP_VARIABLES
18747 +/* If nonreentrant, generate the variables here. */
18751 +#endif /* !YYPURE */
18754 +yyparse (YYPARSE_PARAM_ARG)
18755 + YYPARSE_PARAM_DECL
18757 + /* If reentrant, generate the variables here. */
18759 + YY_DECL_VARIABLES
18760 +#endif /* !YYPURE */
18762 + register int yystate;
18763 + register int yyn;
18765 + /* Number of tokens to shift before error messages enabled. */
18767 + /* Lookahead token as an internal (translated) token number. */
18770 + /* Three stacks and their tools:
18771 + `yyss': related to states,
18772 + `yyvs': related to semantic values,
18773 + `yyls': related to locations.
18775 + Refer to the stacks thru separate pointers, to allow yyoverflow
18776 + to reallocate them elsewhere. */
18778 + /* The state stack. */
18779 + short yyssa[YYINITDEPTH];
18780 + short *yyss = yyssa;
18781 + register short *yyssp;
18783 + /* The semantic value stack. */
18784 + YYSTYPE yyvsa[YYINITDEPTH];
18785 + YYSTYPE *yyvs = yyvsa;
18786 + register YYSTYPE *yyvsp;
18789 + /* The location stack. */
18790 + YYLTYPE yylsa[YYINITDEPTH];
18791 + YYLTYPE *yyls = yylsa;
18796 +# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
18798 +# define YYPOPSTACK (yyvsp--, yyssp--)
18801 + YYSIZE_T yystacksize = YYINITDEPTH;
18804 + /* The variables used to return semantic value and location from the
18805 + action routines. */
18811 + /* When reducing, the number of symbols on the RHS of the reduced
18815 + YYDPRINTF ((stderr, "Starting parse\n"));
18820 + yychar = YYEMPTY; /* Cause a token to be read. */
18822 + /* Initialize stack pointers.
18823 + Waste one element of value and location stack
18824 + so that they stay on the same level as the state stack.
18825 + The wasted elements are never initialized. */
18834 +/*------------------------------------------------------------.
18835 +| yynewstate -- Push a new state, which is found in yystate. |
18836 +`------------------------------------------------------------*/
18838 + /* In all cases, when you get here, the value and location stacks
18839 + have just been pushed. so pushing a state here evens the stacks.
18844 + *yyssp = yystate;
18846 + if (yyssp >= yyss + yystacksize - 1)
18848 + /* Get the current used size of the three stacks, in elements. */
18849 + YYSIZE_T yysize = yyssp - yyss + 1;
18853 + /* Give user a chance to reallocate the stack. Use copies of
18854 + these so that the &'s don't force the real ones into
18856 + YYSTYPE *yyvs1 = yyvs;
18857 + short *yyss1 = yyss;
18859 + /* Each stack pointer address is followed by the size of the
18860 + data in use in that stack, in bytes. */
18862 + YYLTYPE *yyls1 = yyls;
18863 + /* This used to be a conditional around just the two extra args,
18864 + but that might be undefined if yyoverflow is a macro. */
18865 + yyoverflow ("parser stack overflow",
18866 + &yyss1, yysize * sizeof (*yyssp),
18867 + &yyvs1, yysize * sizeof (*yyvsp),
18868 + &yyls1, yysize * sizeof (*yylsp),
18872 + yyoverflow ("parser stack overflow",
18873 + &yyss1, yysize * sizeof (*yyssp),
18874 + &yyvs1, yysize * sizeof (*yyvsp),
18880 +#else /* no yyoverflow */
18881 +# ifndef YYSTACK_RELOCATE
18882 + goto yyoverflowlab;
18884 + /* Extend the stack our own way. */
18885 + if (yystacksize >= YYMAXDEPTH)
18886 + goto yyoverflowlab;
18887 + yystacksize *= 2;
18888 + if (yystacksize > YYMAXDEPTH)
18889 + yystacksize = YYMAXDEPTH;
18892 + short *yyss1 = yyss;
18893 + union yyalloc *yyptr =
18894 + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
18896 + goto yyoverflowlab;
18897 + YYSTACK_RELOCATE (yyss);
18898 + YYSTACK_RELOCATE (yyvs);
18900 + YYSTACK_RELOCATE (yyls);
18902 +# undef YYSTACK_RELOCATE
18903 + if (yyss1 != yyssa)
18904 + YYSTACK_FREE (yyss1);
18907 +#endif /* no yyoverflow */
18909 + yyssp = yyss + yysize - 1;
18910 + yyvsp = yyvs + yysize - 1;
18912 + yylsp = yyls + yysize - 1;
18915 + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
18916 + (unsigned long int) yystacksize));
18918 + if (yyssp >= yyss + yystacksize - 1)
18922 + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
18932 +/* Do appropriate processing given the current state. */
18933 +/* Read a lookahead token if we need one and don't already have one. */
18936 + /* First try to decide what to do without reference to lookahead token. */
18938 + yyn = yypact[yystate];
18939 + if (yyn == YYFLAG)
18942 + /* Not known => get a lookahead token if don't already have one. */
18944 + /* yychar is either YYEMPTY or YYEOF
18945 + or a valid token in external form. */
18947 + if (yychar == YYEMPTY)
18949 + YYDPRINTF ((stderr, "Reading a token: "));
18953 + /* Convert token to internal form (in yychar1) for indexing tables with */
18955 + if (yychar <= 0) /* This means end of input. */
18958 + yychar = YYEOF; /* Don't call YYLEX any more */
18960 + YYDPRINTF ((stderr, "Now at end of input.\n"));
18964 + yychar1 = YYTRANSLATE (yychar);
18967 + /* We have to keep this `#if YYDEBUG', since we use variables
18968 + which are defined only if `YYDEBUG' is set. */
18971 + YYFPRINTF (stderr, "Next token is %d (%s",
18972 + yychar, yytname[yychar1]);
18973 + /* Give the individual parser a way to print the precise
18974 + meaning of a token, for further debugging info. */
18976 + YYPRINT (stderr, yychar, yylval);
18978 + YYFPRINTF (stderr, ")\n");
18984 + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
18987 + yyn = yytable[yyn];
18989 + /* yyn is what to do for this token type in this state.
18990 + Negative => reduce, -yyn is rule number.
18991 + Positive => shift, yyn is new state.
18992 + New state is final state => don't bother to shift,
18993 + just return success.
18994 + 0, or most negative number => error. */
18998 + if (yyn == YYFLAG)
19003 + else if (yyn == 0)
19006 + if (yyn == YYFINAL)
19009 + /* Shift the lookahead token. */
19010 + YYDPRINTF ((stderr, "Shifting token %d (%s), ",
19011 + yychar, yytname[yychar1]));
19013 + /* Discard the token being shifted unless it is eof. */
19014 + if (yychar != YYEOF)
19015 + yychar = YYEMPTY;
19017 + *++yyvsp = yylval;
19019 + *++yylsp = yylloc;
19022 + /* Count tokens shifted since error; after three, turn off error
19031 +/*-----------------------------------------------------------.
19032 +| yydefault -- do the default action for the current state. |
19033 +`-----------------------------------------------------------*/
19035 + yyn = yydefact[yystate];
19041 +/*-----------------------------.
19042 +| yyreduce -- Do a reduction. |
19043 +`-----------------------------*/
19045 + /* yyn is the number of a rule to reduce with. */
19046 + yylen = yyr2[yyn];
19048 + /* If YYLEN is nonzero, implement the default value of the action:
19051 + Otherwise, the following line sets YYVAL to the semantic value of
19052 + the lookahead token. This behavior is undocumented and Bison
19053 + users should not rely upon it. Assigning to YYVAL
19054 + unconditionally makes the parser a bit smaller, and it avoids a
19055 + GCC warning that YYVAL may be used uninitialized. */
19056 + yyval = yyvsp[1-yylen];
19059 + /* Similarly for the default location. Let the user run additional
19060 + commands if for instance locations are ranges. */
19061 + yyloc = yylsp[1-yylen];
19062 + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
19066 + /* We have to keep this `#if YYDEBUG', since we use variables which
19067 + are defined only if `YYDEBUG' is set. */
19072 + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
19073 + yyn, yyrline[yyn]);
19075 + /* Print the symbols being reduced, and their result. */
19076 + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
19077 + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
19078 + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
19085 +#line 151 "plural.y"
19087 + if (yyvsp[0].exp == NULL)
19089 + ((struct parse_args *) arg)->res = yyvsp[0].exp;
19093 +#line 159 "plural.y"
19095 + yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp);
19099 +#line 163 "plural.y"
19101 + yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp);
19105 +#line 167 "plural.y"
19107 + yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp);
19111 +#line 171 "plural.y"
19113 + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
19117 +#line 175 "plural.y"
19119 + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
19123 +#line 179 "plural.y"
19125 + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
19129 +#line 183 "plural.y"
19131 + yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
19135 +#line 187 "plural.y"
19137 + yyval.exp = new_exp_1 (lnot, yyvsp[0].exp);
19141 +#line 191 "plural.y"
19143 + yyval.exp = new_exp_0 (var);
19147 +#line 195 "plural.y"
19149 + if ((yyval.exp = new_exp_0 (num)) != NULL)
19150 + yyval.exp->val.num = yyvsp[0].num;
19154 +#line 200 "plural.y"
19156 + yyval.exp = yyvsp[-1].exp;
19161 +#line 705 "/usr/local/share/bison/bison.simple"
19173 + short *yyssp1 = yyss - 1;
19174 + YYFPRINTF (stderr, "state stack now");
19175 + while (yyssp1 != yyssp)
19176 + YYFPRINTF (stderr, " %d", *++yyssp1);
19177 + YYFPRINTF (stderr, "\n");
19181 + *++yyvsp = yyval;
19183 + *++yylsp = yyloc;
19186 + /* Now `shift' the result of the reduction. Determine what state
19187 + that goes to, based on the state we popped back to and the rule
19188 + number reduced by. */
19192 + yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
19193 + if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
19194 + yystate = yytable[yystate];
19196 + yystate = yydefgoto[yyn - YYNTBASE];
19201 +/*------------------------------------.
19202 +| yyerrlab -- here on detecting error |
19203 +`------------------------------------*/
19205 + /* If not already recovering from an error, report this error. */
19206 + if (!yyerrstatus)
19210 +#ifdef YYERROR_VERBOSE
19211 + yyn = yypact[yystate];
19213 + if (yyn > YYFLAG && yyn < YYLAST)
19215 + YYSIZE_T yysize = 0;
19217 + int yyx, yycount;
19220 + /* Start YYX at -YYN if negative to avoid negative indexes in
19222 + for (yyx = yyn < 0 ? -yyn : 0;
19223 + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
19224 + if (yycheck[yyx + yyn] == yyx)
19225 + yysize += yystrlen (yytname[yyx]) + 15, yycount++;
19226 + yysize += yystrlen ("parse error, unexpected ") + 1;
19227 + yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
19228 + yymsg = (char *) YYSTACK_ALLOC (yysize);
19231 + char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
19232 + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
19237 + for (yyx = yyn < 0 ? -yyn : 0;
19238 + yyx < (int) (sizeof (yytname) / sizeof (char *));
19240 + if (yycheck[yyx + yyn] == yyx)
19242 + const char *yyq = ! yycount ? ", expecting " : " or ";
19243 + yyp = yystpcpy (yyp, yyq);
19244 + yyp = yystpcpy (yyp, yytname[yyx]);
19249 + YYSTACK_FREE (yymsg);
19252 + yyerror ("parse error; also virtual memory exhausted");
19255 +#endif /* defined (YYERROR_VERBOSE) */
19256 + yyerror ("parse error");
19261 +/*--------------------------------------------------.
19262 +| yyerrlab1 -- error raised explicitly by an action |
19263 +`--------------------------------------------------*/
19265 + if (yyerrstatus == 3)
19267 + /* If just tried and failed to reuse lookahead token after an
19268 + error, discard it. */
19270 + /* return failure if at end of input */
19271 + if (yychar == YYEOF)
19273 + YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
19274 + yychar, yytname[yychar1]));
19275 + yychar = YYEMPTY;
19278 + /* Else will try to reuse lookahead token after shifting the error
19281 + yyerrstatus = 3; /* Each real token shifted decrements this */
19283 + goto yyerrhandle;
19286 +/*-------------------------------------------------------------------.
19287 +| yyerrdefault -- current state does not do anything special for the |
19289 +`-------------------------------------------------------------------*/
19292 + /* This is wrong; only states that explicitly want error tokens
19293 + should shift them. */
19295 + /* If its default is to accept any token, ok. Otherwise pop it. */
19296 + yyn = yydefact[yystate];
19302 +/*---------------------------------------------------------------.
19303 +| yyerrpop -- pop the current state because it cannot handle the |
19305 +`---------------------------------------------------------------*/
19307 + if (yyssp == yyss)
19310 + yystate = *--yyssp;
19318 + short *yyssp1 = yyss - 1;
19319 + YYFPRINTF (stderr, "Error: state stack now");
19320 + while (yyssp1 != yyssp)
19321 + YYFPRINTF (stderr, " %d", *++yyssp1);
19322 + YYFPRINTF (stderr, "\n");
19330 + yyn = yypact[yystate];
19331 + if (yyn == YYFLAG)
19332 + goto yyerrdefault;
19335 + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
19336 + goto yyerrdefault;
19338 + yyn = yytable[yyn];
19341 + if (yyn == YYFLAG)
19346 + else if (yyn == 0)
19349 + if (yyn == YYFINAL)
19352 + YYDPRINTF ((stderr, "Shifting error token, "));
19354 + *++yyvsp = yylval;
19356 + *++yylsp = yylloc;
19363 +/*-------------------------------------.
19364 +| yyacceptlab -- YYACCEPT comes here. |
19365 +`-------------------------------------*/
19370 +/*-----------------------------------.
19371 +| yyabortlab -- YYABORT comes here. |
19372 +`-----------------------------------*/
19377 +/*---------------------------------------------.
19378 +| yyoverflowab -- parser overflow comes here. |
19379 +`---------------------------------------------*/
19381 + yyerror ("parser stack overflow");
19383 + /* Fall through. */
19386 +#ifndef yyoverflow
19387 + if (yyss != yyssa)
19388 + YYSTACK_FREE (yyss);
19392 +#line 205 "plural.y"
19397 +FREE_EXPRESSION (struct expression *exp)
19402 + /* Handle the recursive case. */
19403 + switch (exp->nargs)
19406 + FREE_EXPRESSION (exp->val.args[2]);
19407 + /* FALLTHROUGH */
19409 + FREE_EXPRESSION (exp->val.args[1]);
19410 + /* FALLTHROUGH */
19412 + FREE_EXPRESSION (exp->val.args[0]);
19413 + /* FALLTHROUGH */
19423 +yylex (YYSTYPE *lval, const char **pexp)
19425 + const char *exp = *pexp;
19430 + if (exp[0] == '\0')
19436 + if (exp[0] != ' ' && exp[0] != '\t')
19445 + case '0': case '1': case '2': case '3': case '4':
19446 + case '5': case '6': case '7': case '8': case '9':
19448 + unsigned long int n = result - '0';
19449 + while (exp[0] >= '0' && exp[0] <= '9')
19452 + n += exp[0] - '0';
19461 + if (exp[0] == '=')
19464 + lval->op = equal;
19468 + result = YYERRCODE;
19472 + if (exp[0] == '=')
19475 + lval->op = not_equal;
19482 + if (exp[0] == result)
19485 + result = YYERRCODE;
19489 + if (exp[0] == '=')
19492 + lval->op = less_or_equal;
19495 + lval->op = less_than;
19500 + if (exp[0] == '=')
19503 + lval->op = greater_or_equal;
19506 + lval->op = greater_than;
19516 + lval->op = divide;
19521 + lval->op = module;
19531 + lval->op = minus;
19540 + /* Nothing, just return the character. */
19546 + /* Be safe and let the user call this function again. */
19552 + result = YYERRCODE;
19566 +yyerror (const char *str)
19568 + /* Do nothing. We don't print error messages here. */
19571 +++ lxpanel-0.5.6/intl/loadmsgcat.c
19573 +/* Load needed message catalogs.
19574 + Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc.
19576 + This program is free software; you can redistribute it and/or modify it
19577 + under the terms of the GNU Library General Public License as published
19578 + by the Free Software Foundation; either version 2, or (at your option)
19579 + any later version.
19581 + This program is distributed in the hope that it will be useful,
19582 + but WITHOUT ANY WARRANTY; without even the implied warranty of
19583 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19584 + Library General Public License for more details.
19586 + You should have received a copy of the GNU Library General Public
19587 + License along with this program; if not, write to the Free Software
19588 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19591 +/* Tell glibc's <string.h> to provide a prototype for mempcpy().
19592 + This must come before <config.h> because <config.h> may include
19593 + <features.h>, and once <features.h> has been included, it's too late. */
19594 +#ifndef _GNU_SOURCE
19595 +# define _GNU_SOURCE 1
19598 +#ifdef HAVE_CONFIG_H
19599 +# include <config.h>
19602 +#include <ctype.h>
19603 +#include <errno.h>
19604 +#include <fcntl.h>
19605 +#include <sys/types.h>
19606 +#include <sys/stat.h>
19610 +# define alloca __builtin_alloca
19611 +# define HAVE_ALLOCA 1
19614 +# include <malloc.h>
19615 +# define alloca _alloca
19617 +# if defined HAVE_ALLOCA_H || defined _LIBC
19618 +# include <alloca.h>
19631 +#include <stdlib.h>
19632 +#include <string.h>
19634 +#if defined HAVE_UNISTD_H || defined _LIBC
19635 +# include <unistd.h>
19639 +# include <langinfo.h>
19640 +# include <locale.h>
19643 +#if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \
19644 + || (defined _LIBC && defined _POSIX_MAPPED_FILES)
19645 +# include <sys/mman.h>
19647 +# define HAVE_MMAP 1
19652 +#if defined HAVE_STDINT_H_WITH_UINTMAX || defined _LIBC
19653 +# include <stdint.h>
19655 +#if defined HAVE_INTTYPES_H || defined _LIBC
19656 +# include <inttypes.h>
19660 +#include "gettextP.h"
19661 +#include "hash-string.h"
19662 +#include "plural-exp.h"
19665 +# include "../locale/localeinfo.h"
19668 +/* Provide fallback values for macros that ought to be defined in <inttypes.h>.
19669 + Note that our fallback values need not be literal strings, because we don't
19670 + use them with preprocessor string concatenation. */
19671 +#if !defined PRId8 || PRI_MACROS_BROKEN
19673 +# define PRId8 "d"
19675 +#if !defined PRIi8 || PRI_MACROS_BROKEN
19677 +# define PRIi8 "i"
19679 +#if !defined PRIo8 || PRI_MACROS_BROKEN
19681 +# define PRIo8 "o"
19683 +#if !defined PRIu8 || PRI_MACROS_BROKEN
19685 +# define PRIu8 "u"
19687 +#if !defined PRIx8 || PRI_MACROS_BROKEN
19689 +# define PRIx8 "x"
19691 +#if !defined PRIX8 || PRI_MACROS_BROKEN
19693 +# define PRIX8 "X"
19695 +#if !defined PRId16 || PRI_MACROS_BROKEN
19697 +# define PRId16 "d"
19699 +#if !defined PRIi16 || PRI_MACROS_BROKEN
19701 +# define PRIi16 "i"
19703 +#if !defined PRIo16 || PRI_MACROS_BROKEN
19705 +# define PRIo16 "o"
19707 +#if !defined PRIu16 || PRI_MACROS_BROKEN
19709 +# define PRIu16 "u"
19711 +#if !defined PRIx16 || PRI_MACROS_BROKEN
19713 +# define PRIx16 "x"
19715 +#if !defined PRIX16 || PRI_MACROS_BROKEN
19717 +# define PRIX16 "X"
19719 +#if !defined PRId32 || PRI_MACROS_BROKEN
19721 +# define PRId32 "d"
19723 +#if !defined PRIi32 || PRI_MACROS_BROKEN
19725 +# define PRIi32 "i"
19727 +#if !defined PRIo32 || PRI_MACROS_BROKEN
19729 +# define PRIo32 "o"
19731 +#if !defined PRIu32 || PRI_MACROS_BROKEN
19733 +# define PRIu32 "u"
19735 +#if !defined PRIx32 || PRI_MACROS_BROKEN
19737 +# define PRIx32 "x"
19739 +#if !defined PRIX32 || PRI_MACROS_BROKEN
19741 +# define PRIX32 "X"
19743 +#if !defined PRId64 || PRI_MACROS_BROKEN
19745 +# define PRId64 (sizeof (long) == 8 ? "ld" : "lld")
19747 +#if !defined PRIi64 || PRI_MACROS_BROKEN
19749 +# define PRIi64 (sizeof (long) == 8 ? "li" : "lli")
19751 +#if !defined PRIo64 || PRI_MACROS_BROKEN
19753 +# define PRIo64 (sizeof (long) == 8 ? "lo" : "llo")
19755 +#if !defined PRIu64 || PRI_MACROS_BROKEN
19757 +# define PRIu64 (sizeof (long) == 8 ? "lu" : "llu")
19759 +#if !defined PRIx64 || PRI_MACROS_BROKEN
19761 +# define PRIx64 (sizeof (long) == 8 ? "lx" : "llx")
19763 +#if !defined PRIX64 || PRI_MACROS_BROKEN
19765 +# define PRIX64 (sizeof (long) == 8 ? "lX" : "llX")
19767 +#if !defined PRIdLEAST8 || PRI_MACROS_BROKEN
19768 +# undef PRIdLEAST8
19769 +# define PRIdLEAST8 "d"
19771 +#if !defined PRIiLEAST8 || PRI_MACROS_BROKEN
19772 +# undef PRIiLEAST8
19773 +# define PRIiLEAST8 "i"
19775 +#if !defined PRIoLEAST8 || PRI_MACROS_BROKEN
19776 +# undef PRIoLEAST8
19777 +# define PRIoLEAST8 "o"
19779 +#if !defined PRIuLEAST8 || PRI_MACROS_BROKEN
19780 +# undef PRIuLEAST8
19781 +# define PRIuLEAST8 "u"
19783 +#if !defined PRIxLEAST8 || PRI_MACROS_BROKEN
19784 +# undef PRIxLEAST8
19785 +# define PRIxLEAST8 "x"
19787 +#if !defined PRIXLEAST8 || PRI_MACROS_BROKEN
19788 +# undef PRIXLEAST8
19789 +# define PRIXLEAST8 "X"
19791 +#if !defined PRIdLEAST16 || PRI_MACROS_BROKEN
19792 +# undef PRIdLEAST16
19793 +# define PRIdLEAST16 "d"
19795 +#if !defined PRIiLEAST16 || PRI_MACROS_BROKEN
19796 +# undef PRIiLEAST16
19797 +# define PRIiLEAST16 "i"
19799 +#if !defined PRIoLEAST16 || PRI_MACROS_BROKEN
19800 +# undef PRIoLEAST16
19801 +# define PRIoLEAST16 "o"
19803 +#if !defined PRIuLEAST16 || PRI_MACROS_BROKEN
19804 +# undef PRIuLEAST16
19805 +# define PRIuLEAST16 "u"
19807 +#if !defined PRIxLEAST16 || PRI_MACROS_BROKEN
19808 +# undef PRIxLEAST16
19809 +# define PRIxLEAST16 "x"
19811 +#if !defined PRIXLEAST16 || PRI_MACROS_BROKEN
19812 +# undef PRIXLEAST16
19813 +# define PRIXLEAST16 "X"
19815 +#if !defined PRIdLEAST32 || PRI_MACROS_BROKEN
19816 +# undef PRIdLEAST32
19817 +# define PRIdLEAST32 "d"
19819 +#if !defined PRIiLEAST32 || PRI_MACROS_BROKEN
19820 +# undef PRIiLEAST32
19821 +# define PRIiLEAST32 "i"
19823 +#if !defined PRIoLEAST32 || PRI_MACROS_BROKEN
19824 +# undef PRIoLEAST32
19825 +# define PRIoLEAST32 "o"
19827 +#if !defined PRIuLEAST32 || PRI_MACROS_BROKEN
19828 +# undef PRIuLEAST32
19829 +# define PRIuLEAST32 "u"
19831 +#if !defined PRIxLEAST32 || PRI_MACROS_BROKEN
19832 +# undef PRIxLEAST32
19833 +# define PRIxLEAST32 "x"
19835 +#if !defined PRIXLEAST32 || PRI_MACROS_BROKEN
19836 +# undef PRIXLEAST32
19837 +# define PRIXLEAST32 "X"
19839 +#if !defined PRIdLEAST64 || PRI_MACROS_BROKEN
19840 +# undef PRIdLEAST64
19841 +# define PRIdLEAST64 PRId64
19843 +#if !defined PRIiLEAST64 || PRI_MACROS_BROKEN
19844 +# undef PRIiLEAST64
19845 +# define PRIiLEAST64 PRIi64
19847 +#if !defined PRIoLEAST64 || PRI_MACROS_BROKEN
19848 +# undef PRIoLEAST64
19849 +# define PRIoLEAST64 PRIo64
19851 +#if !defined PRIuLEAST64 || PRI_MACROS_BROKEN
19852 +# undef PRIuLEAST64
19853 +# define PRIuLEAST64 PRIu64
19855 +#if !defined PRIxLEAST64 || PRI_MACROS_BROKEN
19856 +# undef PRIxLEAST64
19857 +# define PRIxLEAST64 PRIx64
19859 +#if !defined PRIXLEAST64 || PRI_MACROS_BROKEN
19860 +# undef PRIXLEAST64
19861 +# define PRIXLEAST64 PRIX64
19863 +#if !defined PRIdFAST8 || PRI_MACROS_BROKEN
19865 +# define PRIdFAST8 "d"
19867 +#if !defined PRIiFAST8 || PRI_MACROS_BROKEN
19869 +# define PRIiFAST8 "i"
19871 +#if !defined PRIoFAST8 || PRI_MACROS_BROKEN
19873 +# define PRIoFAST8 "o"
19875 +#if !defined PRIuFAST8 || PRI_MACROS_BROKEN
19877 +# define PRIuFAST8 "u"
19879 +#if !defined PRIxFAST8 || PRI_MACROS_BROKEN
19881 +# define PRIxFAST8 "x"
19883 +#if !defined PRIXFAST8 || PRI_MACROS_BROKEN
19885 +# define PRIXFAST8 "X"
19887 +#if !defined PRIdFAST16 || PRI_MACROS_BROKEN
19888 +# undef PRIdFAST16
19889 +# define PRIdFAST16 "d"
19891 +#if !defined PRIiFAST16 || PRI_MACROS_BROKEN
19892 +# undef PRIiFAST16
19893 +# define PRIiFAST16 "i"
19895 +#if !defined PRIoFAST16 || PRI_MACROS_BROKEN
19896 +# undef PRIoFAST16
19897 +# define PRIoFAST16 "o"
19899 +#if !defined PRIuFAST16 || PRI_MACROS_BROKEN
19900 +# undef PRIuFAST16
19901 +# define PRIuFAST16 "u"
19903 +#if !defined PRIxFAST16 || PRI_MACROS_BROKEN
19904 +# undef PRIxFAST16
19905 +# define PRIxFAST16 "x"
19907 +#if !defined PRIXFAST16 || PRI_MACROS_BROKEN
19908 +# undef PRIXFAST16
19909 +# define PRIXFAST16 "X"
19911 +#if !defined PRIdFAST32 || PRI_MACROS_BROKEN
19912 +# undef PRIdFAST32
19913 +# define PRIdFAST32 "d"
19915 +#if !defined PRIiFAST32 || PRI_MACROS_BROKEN
19916 +# undef PRIiFAST32
19917 +# define PRIiFAST32 "i"
19919 +#if !defined PRIoFAST32 || PRI_MACROS_BROKEN
19920 +# undef PRIoFAST32
19921 +# define PRIoFAST32 "o"
19923 +#if !defined PRIuFAST32 || PRI_MACROS_BROKEN
19924 +# undef PRIuFAST32
19925 +# define PRIuFAST32 "u"
19927 +#if !defined PRIxFAST32 || PRI_MACROS_BROKEN
19928 +# undef PRIxFAST32
19929 +# define PRIxFAST32 "x"
19931 +#if !defined PRIXFAST32 || PRI_MACROS_BROKEN
19932 +# undef PRIXFAST32
19933 +# define PRIXFAST32 "X"
19935 +#if !defined PRIdFAST64 || PRI_MACROS_BROKEN
19936 +# undef PRIdFAST64
19937 +# define PRIdFAST64 PRId64
19939 +#if !defined PRIiFAST64 || PRI_MACROS_BROKEN
19940 +# undef PRIiFAST64
19941 +# define PRIiFAST64 PRIi64
19943 +#if !defined PRIoFAST64 || PRI_MACROS_BROKEN
19944 +# undef PRIoFAST64
19945 +# define PRIoFAST64 PRIo64
19947 +#if !defined PRIuFAST64 || PRI_MACROS_BROKEN
19948 +# undef PRIuFAST64
19949 +# define PRIuFAST64 PRIu64
19951 +#if !defined PRIxFAST64 || PRI_MACROS_BROKEN
19952 +# undef PRIxFAST64
19953 +# define PRIxFAST64 PRIx64
19955 +#if !defined PRIXFAST64 || PRI_MACROS_BROKEN
19956 +# undef PRIXFAST64
19957 +# define PRIXFAST64 PRIX64
19959 +#if !defined PRIdMAX || PRI_MACROS_BROKEN
19961 +# define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld")
19963 +#if !defined PRIiMAX || PRI_MACROS_BROKEN
19965 +# define PRIiMAX (sizeof (uintmax_t) == sizeof (long) ? "li" : "lli")
19967 +#if !defined PRIoMAX || PRI_MACROS_BROKEN
19969 +# define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo")
19971 +#if !defined PRIuMAX || PRI_MACROS_BROKEN
19973 +# define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu")
19975 +#if !defined PRIxMAX || PRI_MACROS_BROKEN
19977 +# define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx")
19979 +#if !defined PRIXMAX || PRI_MACROS_BROKEN
19981 +# define PRIXMAX (sizeof (uintmax_t) == sizeof (long) ? "lX" : "llX")
19983 +#if !defined PRIdPTR || PRI_MACROS_BROKEN
19985 +# define PRIdPTR \
19986 + (sizeof (void *) == sizeof (long) ? "ld" : \
19987 + sizeof (void *) == sizeof (int) ? "d" : \
19990 +#if !defined PRIiPTR || PRI_MACROS_BROKEN
19992 +# define PRIiPTR \
19993 + (sizeof (void *) == sizeof (long) ? "li" : \
19994 + sizeof (void *) == sizeof (int) ? "i" : \
19997 +#if !defined PRIoPTR || PRI_MACROS_BROKEN
19999 +# define PRIoPTR \
20000 + (sizeof (void *) == sizeof (long) ? "lo" : \
20001 + sizeof (void *) == sizeof (int) ? "o" : \
20004 +#if !defined PRIuPTR || PRI_MACROS_BROKEN
20006 +# define PRIuPTR \
20007 + (sizeof (void *) == sizeof (long) ? "lu" : \
20008 + sizeof (void *) == sizeof (int) ? "u" : \
20011 +#if !defined PRIxPTR || PRI_MACROS_BROKEN
20013 +# define PRIxPTR \
20014 + (sizeof (void *) == sizeof (long) ? "lx" : \
20015 + sizeof (void *) == sizeof (int) ? "x" : \
20018 +#if !defined PRIXPTR || PRI_MACROS_BROKEN
20020 +# define PRIXPTR \
20021 + (sizeof (void *) == sizeof (long) ? "lX" : \
20022 + sizeof (void *) == sizeof (int) ? "X" : \
20026 +/* @@ end of prolog @@ */
20029 +/* Rename the non ISO C functions. This is required by the standard
20030 + because some ISO C functions will require linking with this object
20031 + file and the name space must not be polluted. */
20032 +# define open __open
20033 +# define close __close
20034 +# define read __read
20035 +# define mmap __mmap
20036 +# define munmap __munmap
20039 +/* For those losing systems which don't have `alloca' we have to add
20040 + some additional code emulating it. */
20041 +#ifdef HAVE_ALLOCA
20042 +# define freea(p) /* nothing */
20044 +# define alloca(n) malloc (n)
20045 +# define freea(p) free (p)
20048 +/* For systems that distinguish between text and binary I/O.
20049 + O_BINARY is usually declared in <fcntl.h>. */
20050 +#if !defined O_BINARY && defined _O_BINARY
20051 + /* For MSC-compatible compilers. */
20052 +# define O_BINARY _O_BINARY
20053 +# define O_TEXT _O_TEXT
20056 + /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
20060 +/* On reasonable systems, binary I/O is the default. */
20062 +# define O_BINARY 0
20066 +/* We need a sign, whether a new catalog was loaded, which can be associated
20067 + with all translations. This is important if the translations are
20068 + cached by one of GCC's features. */
20069 +int _nl_msg_cat_cntr;
20072 +/* Expand a system dependent string segment. Return NULL if unsupported. */
20073 +static const char *
20074 +get_sysdep_segment_value (const char *name)
20076 + /* Test for an ISO C 99 section 7.8.1 format string directive.
20078 + P R I { d | i | o | u | x | X }
20079 + { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */
20080 + /* We don't use a table of 14 times 6 'const char *' strings here, because
20081 + data relocations cost startup time. */
20082 + if (name[0] == 'P' && name[1] == 'R' && name[2] == 'I')
20084 + if (name[3] == 'd' || name[3] == 'i' || name[3] == 'o' || name[3] == 'u'
20085 + || name[3] == 'x' || name[3] == 'X')
20087 + if (name[4] == '8' && name[5] == '\0')
20089 + if (name[3] == 'd')
20091 + if (name[3] == 'i')
20093 + if (name[3] == 'o')
20095 + if (name[3] == 'u')
20097 + if (name[3] == 'x')
20099 + if (name[3] == 'X')
20103 + if (name[4] == '1' && name[5] == '6' && name[6] == '\0')
20105 + if (name[3] == 'd')
20107 + if (name[3] == 'i')
20109 + if (name[3] == 'o')
20111 + if (name[3] == 'u')
20113 + if (name[3] == 'x')
20115 + if (name[3] == 'X')
20119 + if (name[4] == '3' && name[5] == '2' && name[6] == '\0')
20121 + if (name[3] == 'd')
20123 + if (name[3] == 'i')
20125 + if (name[3] == 'o')
20127 + if (name[3] == 'u')
20129 + if (name[3] == 'x')
20131 + if (name[3] == 'X')
20135 + if (name[4] == '6' && name[5] == '4' && name[6] == '\0')
20137 + if (name[3] == 'd')
20139 + if (name[3] == 'i')
20141 + if (name[3] == 'o')
20143 + if (name[3] == 'u')
20145 + if (name[3] == 'x')
20147 + if (name[3] == 'X')
20151 + if (name[4] == 'L' && name[5] == 'E' && name[6] == 'A'
20152 + && name[7] == 'S' && name[8] == 'T')
20154 + if (name[9] == '8' && name[10] == '\0')
20156 + if (name[3] == 'd')
20157 + return PRIdLEAST8;
20158 + if (name[3] == 'i')
20159 + return PRIiLEAST8;
20160 + if (name[3] == 'o')
20161 + return PRIoLEAST8;
20162 + if (name[3] == 'u')
20163 + return PRIuLEAST8;
20164 + if (name[3] == 'x')
20165 + return PRIxLEAST8;
20166 + if (name[3] == 'X')
20167 + return PRIXLEAST8;
20170 + if (name[9] == '1' && name[10] == '6' && name[11] == '\0')
20172 + if (name[3] == 'd')
20173 + return PRIdLEAST16;
20174 + if (name[3] == 'i')
20175 + return PRIiLEAST16;
20176 + if (name[3] == 'o')
20177 + return PRIoLEAST16;
20178 + if (name[3] == 'u')
20179 + return PRIuLEAST16;
20180 + if (name[3] == 'x')
20181 + return PRIxLEAST16;
20182 + if (name[3] == 'X')
20183 + return PRIXLEAST16;
20186 + if (name[9] == '3' && name[10] == '2' && name[11] == '\0')
20188 + if (name[3] == 'd')
20189 + return PRIdLEAST32;
20190 + if (name[3] == 'i')
20191 + return PRIiLEAST32;
20192 + if (name[3] == 'o')
20193 + return PRIoLEAST32;
20194 + if (name[3] == 'u')
20195 + return PRIuLEAST32;
20196 + if (name[3] == 'x')
20197 + return PRIxLEAST32;
20198 + if (name[3] == 'X')
20199 + return PRIXLEAST32;
20202 + if (name[9] == '6' && name[10] == '4' && name[11] == '\0')
20204 + if (name[3] == 'd')
20205 + return PRIdLEAST64;
20206 + if (name[3] == 'i')
20207 + return PRIiLEAST64;
20208 + if (name[3] == 'o')
20209 + return PRIoLEAST64;
20210 + if (name[3] == 'u')
20211 + return PRIuLEAST64;
20212 + if (name[3] == 'x')
20213 + return PRIxLEAST64;
20214 + if (name[3] == 'X')
20215 + return PRIXLEAST64;
20219 + if (name[4] == 'F' && name[5] == 'A' && name[6] == 'S'
20220 + && name[7] == 'T')
20222 + if (name[8] == '8' && name[9] == '\0')
20224 + if (name[3] == 'd')
20225 + return PRIdFAST8;
20226 + if (name[3] == 'i')
20227 + return PRIiFAST8;
20228 + if (name[3] == 'o')
20229 + return PRIoFAST8;
20230 + if (name[3] == 'u')
20231 + return PRIuFAST8;
20232 + if (name[3] == 'x')
20233 + return PRIxFAST8;
20234 + if (name[3] == 'X')
20235 + return PRIXFAST8;
20238 + if (name[8] == '1' && name[9] == '6' && name[10] == '\0')
20240 + if (name[3] == 'd')
20241 + return PRIdFAST16;
20242 + if (name[3] == 'i')
20243 + return PRIiFAST16;
20244 + if (name[3] == 'o')
20245 + return PRIoFAST16;
20246 + if (name[3] == 'u')
20247 + return PRIuFAST16;
20248 + if (name[3] == 'x')
20249 + return PRIxFAST16;
20250 + if (name[3] == 'X')
20251 + return PRIXFAST16;
20254 + if (name[8] == '3' && name[9] == '2' && name[10] == '\0')
20256 + if (name[3] == 'd')
20257 + return PRIdFAST32;
20258 + if (name[3] == 'i')
20259 + return PRIiFAST32;
20260 + if (name[3] == 'o')
20261 + return PRIoFAST32;
20262 + if (name[3] == 'u')
20263 + return PRIuFAST32;
20264 + if (name[3] == 'x')
20265 + return PRIxFAST32;
20266 + if (name[3] == 'X')
20267 + return PRIXFAST32;
20270 + if (name[8] == '6' && name[9] == '4' && name[10] == '\0')
20272 + if (name[3] == 'd')
20273 + return PRIdFAST64;
20274 + if (name[3] == 'i')
20275 + return PRIiFAST64;
20276 + if (name[3] == 'o')
20277 + return PRIoFAST64;
20278 + if (name[3] == 'u')
20279 + return PRIuFAST64;
20280 + if (name[3] == 'x')
20281 + return PRIxFAST64;
20282 + if (name[3] == 'X')
20283 + return PRIXFAST64;
20287 + if (name[4] == 'M' && name[5] == 'A' && name[6] == 'X'
20288 + && name[7] == '\0')
20290 + if (name[3] == 'd')
20292 + if (name[3] == 'i')
20294 + if (name[3] == 'o')
20296 + if (name[3] == 'u')
20298 + if (name[3] == 'x')
20300 + if (name[3] == 'X')
20304 + if (name[4] == 'P' && name[5] == 'T' && name[6] == 'R'
20305 + && name[7] == '\0')
20307 + if (name[3] == 'd')
20309 + if (name[3] == 'i')
20311 + if (name[3] == 'o')
20313 + if (name[3] == 'u')
20315 + if (name[3] == 'x')
20317 + if (name[3] == 'X')
20323 + /* Test for a glibc specific printf() format directive flag. */
20324 + if (name[0] == 'I' && name[1] == '\0')
20326 +#if defined _LIBC || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
20327 + /* The 'I' flag, in numeric format directives, replaces ASCII digits
20328 + with the 'outdigits' defined in the LC_CTYPE locale facet. This is
20329 + used for Farsi (Persian) and maybe Arabic. */
20335 + /* Other system dependent strings are not valid. */
20339 +/* Initialize the codeset dependent parts of an opened message catalog.
20340 + Return the header entry. */
20343 +_nl_init_domain_conv (struct loaded_l10nfile *domain_file,
20344 + struct loaded_domain *domain,
20345 + struct binding *domainbinding)
20347 + /* Find out about the character set the file is encoded with.
20348 + This can be found (in textual form) in the entry "". If this
20349 + entry does not exist or if this does not contain the `charset='
20350 + information, we will assume the charset matches the one the
20351 + current locale and we don't have to perform any conversion. */
20353 + size_t nullentrylen;
20355 + /* Preinitialize fields, to avoid recursion during _nl_find_msg. */
20356 + domain->codeset_cntr =
20357 + (domainbinding != NULL ? domainbinding->codeset_cntr : 0);
20359 + domain->conv = (__gconv_t) -1;
20362 + domain->conv = (iconv_t) -1;
20365 + domain->conv_tab = NULL;
20367 + /* Get the header entry. */
20368 + nullentry = _nl_find_msg (domain_file, domainbinding, "", &nullentrylen);
20370 + if (nullentry != NULL)
20372 +#if defined _LIBC || HAVE_ICONV
20373 + const char *charsetstr;
20375 + charsetstr = strstr (nullentry, "charset=");
20376 + if (charsetstr != NULL)
20380 + const char *outcharset;
20382 + charsetstr += strlen ("charset=");
20383 + len = strcspn (charsetstr, " \t\n");
20385 + charset = (char *) alloca (len + 1);
20386 +# if defined _LIBC || HAVE_MEMPCPY
20387 + *((char *) mempcpy (charset, charsetstr, len)) = '\0';
20389 + memcpy (charset, charsetstr, len);
20390 + charset[len] = '\0';
20393 + /* The output charset should normally be determined by the
20394 + locale. But sometimes the locale is not used or not correctly
20395 + set up, so we provide a possibility for the user to override
20396 + this. Moreover, the value specified through
20397 + bind_textdomain_codeset overrides both. */
20398 + if (domainbinding != NULL && domainbinding->codeset != NULL)
20399 + outcharset = domainbinding->codeset;
20402 + outcharset = getenv ("OUTPUT_CHARSET");
20403 + if (outcharset == NULL || outcharset[0] == '\0')
20406 + outcharset = _NL_CURRENT (LC_CTYPE, CODESET);
20409 + extern const char *locale_charset (void);
20410 + outcharset = locale_charset ();
20417 + /* We always want to use transliteration. */
20418 + outcharset = norm_add_slashes (outcharset, "TRANSLIT");
20419 + charset = norm_add_slashes (charset, NULL);
20420 + if (__gconv_open (outcharset, charset, &domain->conv,
20421 + GCONV_AVOID_NOCONV)
20423 + domain->conv = (__gconv_t) -1;
20426 + /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5,
20427 + we want to use transliteration. */
20428 +# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \
20429 + || _LIBICONV_VERSION >= 0x0105
20430 + if (strchr (outcharset, '/') == NULL)
20434 + len = strlen (outcharset);
20435 + tmp = (char *) alloca (len + 10 + 1);
20436 + memcpy (tmp, outcharset, len);
20437 + memcpy (tmp + len, "//TRANSLIT", 10 + 1);
20438 + outcharset = tmp;
20440 + domain->conv = iconv_open (outcharset, charset);
20442 + freea (outcharset);
20446 + domain->conv = iconv_open (outcharset, charset);
20452 +#endif /* _LIBC || HAVE_ICONV */
20455 + return nullentry;
20458 +/* Frees the codeset dependent parts of an opened message catalog. */
20461 +_nl_free_domain_conv (struct loaded_domain *domain)
20463 + if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1)
20464 + free (domain->conv_tab);
20467 + if (domain->conv != (__gconv_t) -1)
20468 + __gconv_close (domain->conv);
20471 + if (domain->conv != (iconv_t) -1)
20472 + iconv_close (domain->conv);
20477 +/* Load the message catalogs specified by FILENAME. If it is no valid
20478 + message catalog do nothing. */
20481 +_nl_load_domain (struct loaded_l10nfile *domain_file,
20482 + struct binding *domainbinding)
20487 + struct stat64 st;
20491 + struct mo_file_header *data = (struct mo_file_header *) -1;
20492 + int use_mmap = 0;
20493 + struct loaded_domain *domain;
20495 + const char *nullentry;
20497 + domain_file->decided = 1;
20498 + domain_file->data = NULL;
20500 + /* Note that it would be useless to store domainbinding in domain_file
20501 + because domainbinding might be == NULL now but != NULL later (after
20502 + a call to bind_textdomain_codeset). */
20504 + /* If the record does not represent a valid locale the FILENAME
20505 + might be NULL. This can happen when according to the given
20506 + specification the locale file name is different for XPG and CEN
20508 + if (domain_file->filename == NULL)
20511 + /* Try to open the addressed file. */
20512 + fd = open (domain_file->filename, O_RDONLY | O_BINARY);
20516 + /* We must know about the size of the file. */
20519 + __builtin_expect (fstat64 (fd, &st) != 0, 0)
20521 + __builtin_expect (fstat (fd, &st) != 0, 0)
20523 + || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0)
20524 + || __builtin_expect (size < sizeof (struct mo_file_header), 0))
20526 + /* Something went wrong. */
20532 + /* Now we are ready to load the file. If mmap() is available we try
20533 + this first. If not available or it failed we try to load it. */
20534 + data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
20535 + MAP_PRIVATE, fd, 0);
20537 + if (__builtin_expect (data != (struct mo_file_header *) -1, 1))
20539 + /* mmap() call was successful. */
20545 + /* If the data is not yet available (i.e. mmap'ed) we try to load
20547 + if (data == (struct mo_file_header *) -1)
20552 + data = (struct mo_file_header *) malloc (size);
20553 + if (data == NULL)
20557 + read_ptr = (char *) data;
20560 + long int nb = (long int) read (fd, read_ptr, to_read);
20564 + if (nb == -1 && errno == EINTR)
20573 + while (to_read > 0);
20578 + /* Using the magic number we can test whether it really is a message
20580 + if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED,
20583 + /* The magic number is wrong: not a message catalog file. */
20586 + munmap ((caddr_t) data, size);
20593 + domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain));
20594 + if (domain == NULL)
20596 + domain_file->data = domain;
20598 + domain->data = (char *) data;
20599 + domain->use_mmap = use_mmap;
20600 + domain->mmap_size = size;
20601 + domain->must_swap = data->magic != _MAGIC;
20602 + domain->malloced = NULL;
20604 + /* Fill in the information about the available tables. */
20605 + revision = W (domain->must_swap, data->revision);
20606 + /* We support only the major revisions 0 and 1. */
20607 + switch (revision >> 16)
20611 + domain->nstrings = W (domain->must_swap, data->nstrings);
20612 + domain->orig_tab = (const struct string_desc *)
20613 + ((char *) data + W (domain->must_swap, data->orig_tab_offset));
20614 + domain->trans_tab = (const struct string_desc *)
20615 + ((char *) data + W (domain->must_swap, data->trans_tab_offset));
20616 + domain->hash_size = W (domain->must_swap, data->hash_tab_size);
20617 + domain->hash_tab =
20618 + (domain->hash_size > 2
20619 + ? (const nls_uint32 *)
20620 + ((char *) data + W (domain->must_swap, data->hash_tab_offset))
20622 + domain->must_swap_hash_tab = domain->must_swap;
20624 + /* Now dispatch on the minor revision. */
20625 + switch (revision & 0xffff)
20628 + domain->n_sysdep_strings = 0;
20629 + domain->orig_sysdep_tab = NULL;
20630 + domain->trans_sysdep_tab = NULL;
20635 + nls_uint32 n_sysdep_strings;
20637 + if (domain->hash_tab == NULL)
20638 + /* This is invalid. These minor revisions need a hash table. */
20641 + n_sysdep_strings =
20642 + W (domain->must_swap, data->n_sysdep_strings);
20643 + if (n_sysdep_strings > 0)
20645 + nls_uint32 n_sysdep_segments;
20646 + const struct sysdep_segment *sysdep_segments;
20647 + const char **sysdep_segment_values;
20648 + const nls_uint32 *orig_sysdep_tab;
20649 + const nls_uint32 *trans_sysdep_tab;
20650 + nls_uint32 n_inmem_sysdep_strings;
20653 + struct sysdep_string_desc *inmem_orig_sysdep_tab;
20654 + struct sysdep_string_desc *inmem_trans_sysdep_tab;
20655 + nls_uint32 *inmem_hash_tab;
20656 + unsigned int i, j;
20658 + /* Get the values of the system dependent segments. */
20659 + n_sysdep_segments =
20660 + W (domain->must_swap, data->n_sysdep_segments);
20661 + sysdep_segments = (const struct sysdep_segment *)
20663 + + W (domain->must_swap, data->sysdep_segments_offset));
20664 + sysdep_segment_values =
20665 + alloca (n_sysdep_segments * sizeof (const char *));
20666 + for (i = 0; i < n_sysdep_segments; i++)
20668 + const char *name =
20670 + + W (domain->must_swap, sysdep_segments[i].offset);
20671 + nls_uint32 namelen =
20672 + W (domain->must_swap, sysdep_segments[i].length);
20674 + if (!(namelen > 0 && name[namelen - 1] == '\0'))
20676 + freea (sysdep_segment_values);
20680 + sysdep_segment_values[i] = get_sysdep_segment_value (name);
20683 + orig_sysdep_tab = (const nls_uint32 *)
20685 + + W (domain->must_swap, data->orig_sysdep_tab_offset));
20686 + trans_sysdep_tab = (const nls_uint32 *)
20688 + + W (domain->must_swap, data->trans_sysdep_tab_offset));
20690 + /* Compute the amount of additional memory needed for the
20691 + system dependent strings and the augmented hash table.
20692 + At the same time, also drop string pairs which refer to
20693 + an undefined system dependent segment. */
20694 + n_inmem_sysdep_strings = 0;
20695 + memneed = domain->hash_size * sizeof (nls_uint32);
20696 + for (i = 0; i < n_sysdep_strings; i++)
20701 + for (j = 0; j < 2; j++)
20703 + const struct sysdep_string *sysdep_string =
20704 + (const struct sysdep_string *)
20706 + + W (domain->must_swap,
20708 + ? orig_sysdep_tab[i]
20709 + : trans_sysdep_tab[i]));
20711 + const struct segment_pair *p = sysdep_string->segments;
20713 + if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END)
20714 + for (p = sysdep_string->segments;; p++)
20716 + nls_uint32 sysdepref;
20718 + need += W (domain->must_swap, p->segsize);
20720 + sysdepref = W (domain->must_swap, p->sysdepref);
20721 + if (sysdepref == SEGMENTS_END)
20724 + if (sysdepref >= n_sysdep_segments)
20727 + freea (sysdep_segment_values);
20731 + if (sysdep_segment_values[sysdepref] == NULL)
20733 + /* This particular string pair is invalid. */
20738 + need += strlen (sysdep_segment_values[sysdepref]);
20748 + n_inmem_sysdep_strings++;
20749 + memneed += needs[0] + needs[1];
20752 + memneed += 2 * n_inmem_sysdep_strings
20753 + * sizeof (struct sysdep_string_desc);
20755 + if (n_inmem_sysdep_strings > 0)
20759 + /* Allocate additional memory. */
20760 + mem = (char *) malloc (memneed);
20764 + domain->malloced = mem;
20765 + inmem_orig_sysdep_tab = (struct sysdep_string_desc *) mem;
20766 + mem += n_inmem_sysdep_strings
20767 + * sizeof (struct sysdep_string_desc);
20768 + inmem_trans_sysdep_tab = (struct sysdep_string_desc *) mem;
20769 + mem += n_inmem_sysdep_strings
20770 + * sizeof (struct sysdep_string_desc);
20771 + inmem_hash_tab = (nls_uint32 *) mem;
20772 + mem += domain->hash_size * sizeof (nls_uint32);
20774 + /* Compute the system dependent strings. */
20776 + for (i = 0; i < n_sysdep_strings; i++)
20780 + for (j = 0; j < 2; j++)
20782 + const struct sysdep_string *sysdep_string =
20783 + (const struct sysdep_string *)
20785 + + W (domain->must_swap,
20787 + ? orig_sysdep_tab[i]
20788 + : trans_sysdep_tab[i]));
20789 + const struct segment_pair *p =
20790 + sysdep_string->segments;
20792 + if (W (domain->must_swap, p->sysdepref)
20794 + for (p = sysdep_string->segments;; p++)
20796 + nls_uint32 sysdepref;
20799 + W (domain->must_swap, p->sysdepref);
20800 + if (sysdepref == SEGMENTS_END)
20803 + if (sysdep_segment_values[sysdepref] == NULL)
20805 + /* This particular string pair is
20818 + for (j = 0; j < 2; j++)
20820 + const struct sysdep_string *sysdep_string =
20821 + (const struct sysdep_string *)
20823 + + W (domain->must_swap,
20825 + ? orig_sysdep_tab[i]
20826 + : trans_sysdep_tab[i]));
20827 + const char *static_segments =
20829 + + W (domain->must_swap, sysdep_string->offset);
20830 + const struct segment_pair *p =
20831 + sysdep_string->segments;
20833 + /* Concatenate the segments, and fill
20834 + inmem_orig_sysdep_tab[k] (for j == 0) and
20835 + inmem_trans_sysdep_tab[k] (for j == 1). */
20837 + struct sysdep_string_desc *inmem_tab_entry =
20839 + ? inmem_orig_sysdep_tab
20840 + : inmem_trans_sysdep_tab)
20843 + if (W (domain->must_swap, p->sysdepref)
20846 + /* Only one static segment. */
20847 + inmem_tab_entry->length =
20848 + W (domain->must_swap, p->segsize);
20849 + inmem_tab_entry->pointer = static_segments;
20853 + inmem_tab_entry->pointer = mem;
20855 + for (p = sysdep_string->segments;; p++)
20857 + nls_uint32 segsize =
20858 + W (domain->must_swap, p->segsize);
20859 + nls_uint32 sysdepref =
20860 + W (domain->must_swap, p->sysdepref);
20865 + memcpy (mem, static_segments, segsize);
20867 + static_segments += segsize;
20870 + if (sysdepref == SEGMENTS_END)
20873 + n = strlen (sysdep_segment_values[sysdepref]);
20874 + memcpy (mem, sysdep_segment_values[sysdepref], n);
20878 + inmem_tab_entry->length =
20879 + mem - inmem_tab_entry->pointer;
20886 + if (k != n_inmem_sysdep_strings)
20889 + /* Compute the augmented hash table. */
20890 + for (i = 0; i < domain->hash_size; i++)
20891 + inmem_hash_tab[i] =
20892 + W (domain->must_swap_hash_tab, domain->hash_tab[i]);
20893 + for (i = 0; i < n_inmem_sysdep_strings; i++)
20895 + const char *msgid = inmem_orig_sysdep_tab[i].pointer;
20896 + nls_uint32 hash_val = hash_string (msgid);
20897 + nls_uint32 idx = hash_val % domain->hash_size;
20898 + nls_uint32 incr =
20899 + 1 + (hash_val % (domain->hash_size - 2));
20903 + if (inmem_hash_tab[idx] == 0)
20905 + /* Hash table entry is empty. Use it. */
20906 + inmem_hash_tab[idx] = 1 + domain->nstrings + i;
20910 + if (idx >= domain->hash_size - incr)
20911 + idx -= domain->hash_size - incr;
20917 + domain->n_sysdep_strings = n_inmem_sysdep_strings;
20918 + domain->orig_sysdep_tab = inmem_orig_sysdep_tab;
20919 + domain->trans_sysdep_tab = inmem_trans_sysdep_tab;
20921 + domain->hash_tab = inmem_hash_tab;
20922 + domain->must_swap_hash_tab = 0;
20926 + domain->n_sysdep_strings = 0;
20927 + domain->orig_sysdep_tab = NULL;
20928 + domain->trans_sysdep_tab = NULL;
20931 + freea (sysdep_segment_values);
20935 + domain->n_sysdep_strings = 0;
20936 + domain->orig_sysdep_tab = NULL;
20937 + domain->trans_sysdep_tab = NULL;
20944 + /* This is an invalid revision. */
20946 + /* This is an invalid .mo file. */
20947 + if (domain->malloced)
20948 + free (domain->malloced);
20951 + munmap ((caddr_t) data, size);
20956 + domain_file->data = NULL;
20960 + /* Now initialize the character set converter from the character set
20961 + the file is encoded with (found in the header entry) to the domain's
20962 + specified character set or the locale's character set. */
20963 + nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding);
20965 + /* Also look for a plural specification. */
20966 + EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals);
20973 +_nl_unload_domain (struct loaded_domain *domain)
20975 + if (domain->plural != &__gettext_germanic_plural)
20976 + __gettext_free_exp (domain->plural);
20978 + _nl_free_domain_conv (domain);
20980 + if (domain->malloced)
20981 + free (domain->malloced);
20983 +# ifdef _POSIX_MAPPED_FILES
20984 + if (domain->use_mmap)
20985 + munmap ((caddr_t) domain->data, domain->mmap_size);
20987 +# endif /* _POSIX_MAPPED_FILES */
20988 + free ((void *) domain->data);
20994 +++ lxpanel-0.5.6/intl/printf-parse.c
20996 +/* Formatted output to strings.
20997 + Copyright (C) 1999-2000, 2002-2003 Free Software Foundation, Inc.
20999 + This program is free software; you can redistribute it and/or modify it
21000 + under the terms of the GNU Library General Public License as published
21001 + by the Free Software Foundation; either version 2, or (at your option)
21002 + any later version.
21004 + This program is distributed in the hope that it will be useful,
21005 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21006 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21007 + Library General Public License for more details.
21009 + You should have received a copy of the GNU Library General Public
21010 + License along with this program; if not, write to the Free Software
21011 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21014 +#ifdef HAVE_CONFIG_H
21015 +# include <config.h>
21018 +/* Specification. */
21019 +#if WIDE_CHAR_VERSION
21020 +# include "wprintf-parse.h"
21022 +# include "printf-parse.h"
21025 +/* Get size_t, NULL. */
21026 +#include <stddef.h>
21028 +/* Get intmax_t. */
21029 +#if HAVE_STDINT_H_WITH_UINTMAX
21030 +# include <stdint.h>
21032 +#if HAVE_INTTYPES_H_WITH_UINTMAX
21033 +# include <inttypes.h>
21036 +/* malloc(), realloc(), free(). */
21037 +#include <stdlib.h>
21039 +/* Checked size_t computations. */
21040 +#include "xsize.h"
21042 +#if WIDE_CHAR_VERSION
21043 +# define PRINTF_PARSE wprintf_parse
21044 +# define CHAR_T wchar_t
21045 +# define DIRECTIVE wchar_t_directive
21046 +# define DIRECTIVES wchar_t_directives
21048 +# define PRINTF_PARSE printf_parse
21049 +# define CHAR_T char
21050 +# define DIRECTIVE char_directive
21051 +# define DIRECTIVES char_directives
21058 +PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
21060 + const CHAR_T *cp = format; /* pointer into format */
21061 + size_t arg_posn = 0; /* number of regular arguments consumed */
21062 + size_t d_allocated; /* allocated elements of d->dir */
21063 + size_t a_allocated; /* allocated elements of a->arg */
21064 + size_t max_width_length = 0;
21065 + size_t max_precision_length = 0;
21069 + d->dir = malloc (d_allocated * sizeof (DIRECTIVE));
21070 + if (d->dir == NULL)
21071 + /* Out of memory. */
21078 +#define REGISTER_ARG(_index_,_type_) \
21080 + size_t n = (_index_); \
21081 + if (n >= a_allocated) \
21083 + size_t memory_size; \
21084 + argument *memory; \
21086 + a_allocated = xtimes (a_allocated, 2); \
21087 + if (a_allocated <= n) \
21088 + a_allocated = xsum (n, 1); \
21089 + memory_size = xtimes (a_allocated, sizeof (argument)); \
21090 + if (size_overflow_p (memory_size)) \
21091 + /* Overflow, would lead to out of memory. */ \
21093 + memory = (a->arg \
21094 + ? realloc (a->arg, memory_size) \
21095 + : malloc (memory_size)); \
21096 + if (memory == NULL) \
21097 + /* Out of memory. */ \
21099 + a->arg = memory; \
21101 + while (a->count <= n) \
21102 + a->arg[a->count++].type = TYPE_NONE; \
21103 + if (a->arg[n].type == TYPE_NONE) \
21104 + a->arg[n].type = (_type_); \
21105 + else if (a->arg[n].type != (_type_)) \
21106 + /* Ambiguous type for positional argument. */ \
21110 + while (*cp != '\0')
21112 + CHAR_T c = *cp++;
21115 + size_t arg_index = ARG_NONE;
21116 + DIRECTIVE *dp = &d->dir[d->count];/* pointer to next directive */
21118 + /* Initialize the next directive. */
21119 + dp->dir_start = cp - 1;
21121 + dp->width_start = NULL;
21122 + dp->width_end = NULL;
21123 + dp->width_arg_index = ARG_NONE;
21124 + dp->precision_start = NULL;
21125 + dp->precision_end = NULL;
21126 + dp->precision_arg_index = ARG_NONE;
21127 + dp->arg_index = ARG_NONE;
21129 + /* Test for positional argument. */
21130 + if (*cp >= '0' && *cp <= '9')
21132 + const CHAR_T *np;
21134 + for (np = cp; *np >= '0' && *np <= '9'; np++)
21140 + for (np = cp; *np >= '0' && *np <= '9'; np++)
21141 + n = xsum (xtimes (n, 10), *np - '0');
21143 + /* Positional argument 0. */
21145 + if (size_overflow_p (n))
21146 + /* n too large, would lead to out of memory later. */
21148 + arg_index = n - 1;
21153 + /* Read the flags. */
21158 + dp->flags |= FLAG_GROUP;
21161 + else if (*cp == '-')
21163 + dp->flags |= FLAG_LEFT;
21166 + else if (*cp == '+')
21168 + dp->flags |= FLAG_SHOWSIGN;
21171 + else if (*cp == ' ')
21173 + dp->flags |= FLAG_SPACE;
21176 + else if (*cp == '#')
21178 + dp->flags |= FLAG_ALT;
21181 + else if (*cp == '0')
21183 + dp->flags |= FLAG_ZERO;
21190 + /* Parse the field width. */
21193 + dp->width_start = cp;
21195 + dp->width_end = cp;
21196 + if (max_width_length < 1)
21197 + max_width_length = 1;
21199 + /* Test for positional argument. */
21200 + if (*cp >= '0' && *cp <= '9')
21202 + const CHAR_T *np;
21204 + for (np = cp; *np >= '0' && *np <= '9'; np++)
21210 + for (np = cp; *np >= '0' && *np <= '9'; np++)
21211 + n = xsum (xtimes (n, 10), *np - '0');
21213 + /* Positional argument 0. */
21215 + if (size_overflow_p (n))
21216 + /* n too large, would lead to out of memory later. */
21218 + dp->width_arg_index = n - 1;
21222 + if (dp->width_arg_index == ARG_NONE)
21224 + dp->width_arg_index = arg_posn++;
21225 + if (dp->width_arg_index == ARG_NONE)
21226 + /* arg_posn wrapped around. */
21229 + REGISTER_ARG (dp->width_arg_index, TYPE_INT);
21231 + else if (*cp >= '0' && *cp <= '9')
21233 + size_t width_length;
21235 + dp->width_start = cp;
21236 + for (; *cp >= '0' && *cp <= '9'; cp++)
21238 + dp->width_end = cp;
21239 + width_length = dp->width_end - dp->width_start;
21240 + if (max_width_length < width_length)
21241 + max_width_length = width_length;
21244 + /* Parse the precision. */
21250 + dp->precision_start = cp - 1;
21252 + dp->precision_end = cp;
21253 + if (max_precision_length < 2)
21254 + max_precision_length = 2;
21256 + /* Test for positional argument. */
21257 + if (*cp >= '0' && *cp <= '9')
21259 + const CHAR_T *np;
21261 + for (np = cp; *np >= '0' && *np <= '9'; np++)
21267 + for (np = cp; *np >= '0' && *np <= '9'; np++)
21268 + n = xsum (xtimes (n, 10), *np - '0');
21270 + /* Positional argument 0. */
21272 + if (size_overflow_p (n))
21273 + /* n too large, would lead to out of memory
21276 + dp->precision_arg_index = n - 1;
21280 + if (dp->precision_arg_index == ARG_NONE)
21282 + dp->precision_arg_index = arg_posn++;
21283 + if (dp->precision_arg_index == ARG_NONE)
21284 + /* arg_posn wrapped around. */
21287 + REGISTER_ARG (dp->precision_arg_index, TYPE_INT);
21291 + size_t precision_length;
21293 + dp->precision_start = cp - 1;
21294 + for (; *cp >= '0' && *cp <= '9'; cp++)
21296 + dp->precision_end = cp;
21297 + precision_length = dp->precision_end - dp->precision_start;
21298 + if (max_precision_length < precision_length)
21299 + max_precision_length = precision_length;
21306 + /* Parse argument type/size specifiers. */
21314 + flags |= (1 << (flags & 1));
21317 + else if (*cp == 'L')
21322 + else if (*cp == 'l')
21327 +#ifdef HAVE_INTMAX_T
21328 + else if (*cp == 'j')
21330 + if (sizeof (intmax_t) > sizeof (long))
21332 + /* intmax_t = long long */
21335 + else if (sizeof (intmax_t) > sizeof (int))
21337 + /* intmax_t = long */
21343 + else if (*cp == 'z' || *cp == 'Z')
21345 + /* 'z' is standardized in ISO C 99, but glibc uses 'Z'
21346 + because the warning facility in gcc-2.95.2 understands
21347 + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */
21348 + if (sizeof (size_t) > sizeof (long))
21350 + /* size_t = long long */
21353 + else if (sizeof (size_t) > sizeof (int))
21355 + /* size_t = long */
21360 + else if (*cp == 't')
21362 + if (sizeof (ptrdiff_t) > sizeof (long))
21364 + /* ptrdiff_t = long long */
21367 + else if (sizeof (ptrdiff_t) > sizeof (int))
21369 + /* ptrdiff_t = long */
21378 + /* Read the conversion character. */
21382 + case 'd': case 'i':
21383 +#ifdef HAVE_LONG_LONG
21384 + if (flags >= 16 || (flags & 4))
21385 + type = TYPE_LONGLONGINT;
21389 + type = TYPE_LONGINT;
21390 + else if (flags & 2)
21391 + type = TYPE_SCHAR;
21392 + else if (flags & 1)
21393 + type = TYPE_SHORT;
21397 + case 'o': case 'u': case 'x': case 'X':
21398 +#ifdef HAVE_LONG_LONG
21399 + if (flags >= 16 || (flags & 4))
21400 + type = TYPE_ULONGLONGINT;
21404 + type = TYPE_ULONGINT;
21405 + else if (flags & 2)
21406 + type = TYPE_UCHAR;
21407 + else if (flags & 1)
21408 + type = TYPE_USHORT;
21410 + type = TYPE_UINT;
21412 + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G':
21413 + case 'a': case 'A':
21414 +#ifdef HAVE_LONG_DOUBLE
21415 + if (flags >= 16 || (flags & 4))
21416 + type = TYPE_LONGDOUBLE;
21419 + type = TYPE_DOUBLE;
21423 +#ifdef HAVE_WINT_T
21424 + type = TYPE_WIDE_CHAR;
21429 + type = TYPE_CHAR;
21431 +#ifdef HAVE_WINT_T
21433 + type = TYPE_WIDE_CHAR;
21439 +#ifdef HAVE_WCHAR_T
21440 + type = TYPE_WIDE_STRING;
21445 + type = TYPE_STRING;
21447 +#ifdef HAVE_WCHAR_T
21449 + type = TYPE_WIDE_STRING;
21454 + type = TYPE_POINTER;
21457 +#ifdef HAVE_LONG_LONG
21458 + if (flags >= 16 || (flags & 4))
21459 + type = TYPE_COUNT_LONGLONGINT_POINTER;
21463 + type = TYPE_COUNT_LONGINT_POINTER;
21464 + else if (flags & 2)
21465 + type = TYPE_COUNT_SCHAR_POINTER;
21466 + else if (flags & 1)
21467 + type = TYPE_COUNT_SHORT_POINTER;
21469 + type = TYPE_COUNT_INT_POINTER;
21472 + type = TYPE_NONE;
21475 + /* Unknown conversion character. */
21480 + if (type != TYPE_NONE)
21482 + dp->arg_index = arg_index;
21483 + if (dp->arg_index == ARG_NONE)
21485 + dp->arg_index = arg_posn++;
21486 + if (dp->arg_index == ARG_NONE)
21487 + /* arg_posn wrapped around. */
21490 + REGISTER_ARG (dp->arg_index, type);
21492 + dp->conversion = c;
21493 + dp->dir_end = cp;
21497 + if (d->count >= d_allocated)
21499 + size_t memory_size;
21500 + DIRECTIVE *memory;
21502 + d_allocated = xtimes (d_allocated, 2);
21503 + memory_size = xtimes (d_allocated, sizeof (DIRECTIVE));
21504 + if (size_overflow_p (memory_size))
21505 + /* Overflow, would lead to out of memory. */
21507 + memory = realloc (d->dir, memory_size);
21508 + if (memory == NULL)
21509 + /* Out of memory. */
21515 + d->dir[d->count].dir_start = cp;
21517 + d->max_width_length = max_width_length;
21518 + d->max_precision_length = max_precision_length;
21532 +#undef PRINTF_PARSE
21534 +++ lxpanel-0.5.6/intl/libgnuintl.h.in
21536 +/* Message catalogs for internationalization.
21537 + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc.
21539 + This program is free software; you can redistribute it and/or modify it
21540 + under the terms of the GNU Library General Public License as published
21541 + by the Free Software Foundation; either version 2, or (at your option)
21542 + any later version.
21544 + This program is distributed in the hope that it will be useful,
21545 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21546 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21547 + Library General Public License for more details.
21549 + You should have received a copy of the GNU Library General Public
21550 + License along with this program; if not, write to the Free Software
21551 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21554 +#ifndef _LIBINTL_H
21555 +#define _LIBINTL_H 1
21557 +#include <locale.h>
21559 +/* The LC_MESSAGES locale category is the category used by the functions
21560 + gettext() and dgettext(). It is specified in POSIX, but not in ANSI C.
21561 + On systems that don't define it, use an arbitrary value instead.
21562 + On Solaris, <locale.h> defines __LOCALE_H (or _LOCALE_H in Solaris 2.5)
21563 + then includes <libintl.h> (i.e. this file!) and then only defines
21564 + LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES
21566 +#if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun))
21567 +# define LC_MESSAGES 1729
21570 +/* We define an additional symbol to signal that we use the GNU
21571 + implementation of gettext. */
21572 +#define __USE_GNU_GETTEXT 1
21574 +/* Provide information about the supported file formats. Returns the
21575 + maximum minor revision number supported for a given major revision. */
21576 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) \
21577 + ((major) == 0 ? 1 : -1)
21579 +/* Resolve a platform specific conflict on DJGPP. GNU gettext takes
21580 + precedence over _conio_gettext. */
21585 +#ifdef __cplusplus
21590 +/* We redirect the functions to those prefixed with "libintl_". This is
21591 + necessary, because some systems define gettext/textdomain/... in the C
21592 + library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer).
21593 + If we used the unprefixed names, there would be cases where the
21594 + definition in the C library would override the one in the libintl.so
21595 + shared library. Recall that on ELF systems, the symbols are looked
21596 + up in the following order:
21597 + 1. in the executable,
21598 + 2. in the shared libraries specified on the link command line, in order,
21599 + 3. in the dependencies of the shared libraries specified on the link
21601 + 4. in the dlopen()ed shared libraries, in the order in which they were
21603 + The definition in the C library would override the one in libintl.so if
21605 + * -lc is given on the link command line and -lintl isn't, or
21606 + * -lc is given on the link command line before -lintl, or
21607 + * libintl.so is a dependency of a dlopen()ed shared library but not
21608 + linked to the executable at link time.
21609 + Since Solaris gettext() behaves differently than GNU gettext(), this
21610 + would be unacceptable.
21612 + The redirection happens by default through macros in C, so that &gettext
21613 + is independent of the compilation unit, but through inline functions in
21614 + C++, in order not to interfere with the name mangling of class fields or
21615 + class methods called 'gettext'. */
21617 +/* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS.
21618 + If he doesn't, we choose the method. A third possible method is
21619 + _INTL_REDIRECT_ASM, supported only by GCC. */
21620 +#if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS)
21621 +# if __GNUC__ >= 2 && !defined __APPLE_CC__ && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus)
21622 +# define _INTL_REDIRECT_ASM
21624 +# ifdef __cplusplus
21625 +# define _INTL_REDIRECT_INLINE
21627 +# define _INTL_REDIRECT_MACROS
21631 +/* Auxiliary macros. */
21632 +#ifdef _INTL_REDIRECT_ASM
21633 +# define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname))
21634 +# define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring
21635 +# define _INTL_STRINGIFY(prefix) #prefix
21637 +# define _INTL_ASM(cname)
21640 +/* Look up MSGID in the current default message catalog for the current
21641 + LC_MESSAGES locale. If not found, returns MSGID itself (the default
21643 +#ifdef _INTL_REDIRECT_INLINE
21644 +extern char *libintl_gettext (const char *__msgid);
21645 +static inline char *gettext (const char *__msgid)
21647 + return libintl_gettext (__msgid);
21650 +#ifdef _INTL_REDIRECT_MACROS
21651 +# define gettext libintl_gettext
21653 +extern char *gettext (const char *__msgid)
21654 + _INTL_ASM (libintl_gettext);
21657 +/* Look up MSGID in the DOMAINNAME message catalog for the current
21658 + LC_MESSAGES locale. */
21659 +#ifdef _INTL_REDIRECT_INLINE
21660 +extern char *libintl_dgettext (const char *__domainname, const char *__msgid);
21661 +static inline char *dgettext (const char *__domainname, const char *__msgid)
21663 + return libintl_dgettext (__domainname, __msgid);
21666 +#ifdef _INTL_REDIRECT_MACROS
21667 +# define dgettext libintl_dgettext
21669 +extern char *dgettext (const char *__domainname, const char *__msgid)
21670 + _INTL_ASM (libintl_dgettext);
21673 +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
21675 +#ifdef _INTL_REDIRECT_INLINE
21676 +extern char *libintl_dcgettext (const char *__domainname, const char *__msgid,
21678 +static inline char *dcgettext (const char *__domainname, const char *__msgid,
21681 + return libintl_dcgettext (__domainname, __msgid, __category);
21684 +#ifdef _INTL_REDIRECT_MACROS
21685 +# define dcgettext libintl_dcgettext
21687 +extern char *dcgettext (const char *__domainname, const char *__msgid,
21689 + _INTL_ASM (libintl_dcgettext);
21693 +/* Similar to `gettext' but select the plural form corresponding to the
21695 +#ifdef _INTL_REDIRECT_INLINE
21696 +extern char *libintl_ngettext (const char *__msgid1, const char *__msgid2,
21697 + unsigned long int __n);
21698 +static inline char *ngettext (const char *__msgid1, const char *__msgid2,
21699 + unsigned long int __n)
21701 + return libintl_ngettext (__msgid1, __msgid2, __n);
21704 +#ifdef _INTL_REDIRECT_MACROS
21705 +# define ngettext libintl_ngettext
21707 +extern char *ngettext (const char *__msgid1, const char *__msgid2,
21708 + unsigned long int __n)
21709 + _INTL_ASM (libintl_ngettext);
21712 +/* Similar to `dgettext' but select the plural form corresponding to the
21714 +#ifdef _INTL_REDIRECT_INLINE
21715 +extern char *libintl_dngettext (const char *__domainname, const char *__msgid1,
21716 + const char *__msgid2, unsigned long int __n);
21717 +static inline char *dngettext (const char *__domainname, const char *__msgid1,
21718 + const char *__msgid2, unsigned long int __n)
21720 + return libintl_dngettext (__domainname, __msgid1, __msgid2, __n);
21723 +#ifdef _INTL_REDIRECT_MACROS
21724 +# define dngettext libintl_dngettext
21726 +extern char *dngettext (const char *__domainname,
21727 + const char *__msgid1, const char *__msgid2,
21728 + unsigned long int __n)
21729 + _INTL_ASM (libintl_dngettext);
21732 +/* Similar to `dcgettext' but select the plural form corresponding to the
21734 +#ifdef _INTL_REDIRECT_INLINE
21735 +extern char *libintl_dcngettext (const char *__domainname,
21736 + const char *__msgid1, const char *__msgid2,
21737 + unsigned long int __n, int __category);
21738 +static inline char *dcngettext (const char *__domainname,
21739 + const char *__msgid1, const char *__msgid2,
21740 + unsigned long int __n, int __category)
21742 + return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category);
21745 +#ifdef _INTL_REDIRECT_MACROS
21746 +# define dcngettext libintl_dcngettext
21748 +extern char *dcngettext (const char *__domainname,
21749 + const char *__msgid1, const char *__msgid2,
21750 + unsigned long int __n, int __category)
21751 + _INTL_ASM (libintl_dcngettext);
21755 +/* Set the current default message catalog to DOMAINNAME.
21756 + If DOMAINNAME is null, return the current default.
21757 + If DOMAINNAME is "", reset to the default of "messages". */
21758 +#ifdef _INTL_REDIRECT_INLINE
21759 +extern char *libintl_textdomain (const char *__domainname);
21760 +static inline char *textdomain (const char *__domainname)
21762 + return libintl_textdomain (__domainname);
21765 +#ifdef _INTL_REDIRECT_MACROS
21766 +# define textdomain libintl_textdomain
21768 +extern char *textdomain (const char *__domainname)
21769 + _INTL_ASM (libintl_textdomain);
21772 +/* Specify that the DOMAINNAME message catalog will be found
21773 + in DIRNAME rather than in the system locale data base. */
21774 +#ifdef _INTL_REDIRECT_INLINE
21775 +extern char *libintl_bindtextdomain (const char *__domainname,
21776 + const char *__dirname);
21777 +static inline char *bindtextdomain (const char *__domainname,
21778 + const char *__dirname)
21780 + return libintl_bindtextdomain (__domainname, __dirname);
21783 +#ifdef _INTL_REDIRECT_MACROS
21784 +# define bindtextdomain libintl_bindtextdomain
21786 +extern char *bindtextdomain (const char *__domainname, const char *__dirname)
21787 + _INTL_ASM (libintl_bindtextdomain);
21790 +/* Specify the character encoding in which the messages from the
21791 + DOMAINNAME message catalog will be returned. */
21792 +#ifdef _INTL_REDIRECT_INLINE
21793 +extern char *libintl_bind_textdomain_codeset (const char *__domainname,
21794 + const char *__codeset);
21795 +static inline char *bind_textdomain_codeset (const char *__domainname,
21796 + const char *__codeset)
21798 + return libintl_bind_textdomain_codeset (__domainname, __codeset);
21801 +#ifdef _INTL_REDIRECT_MACROS
21802 +# define bind_textdomain_codeset libintl_bind_textdomain_codeset
21804 +extern char *bind_textdomain_codeset (const char *__domainname,
21805 + const char *__codeset)
21806 + _INTL_ASM (libintl_bind_textdomain_codeset);
21810 +/* Support for format strings with positions in *printf(), following the
21811 + POSIX/XSI specification.
21812 + Note: These replacements for the *printf() functions are visible only
21813 + in source files that #include <libintl.h> or #include "gettext.h".
21814 + Packages that use *printf() in source files that don't refer to _()
21815 + or gettext() but for which the format string could be the return value
21816 + of _() or gettext() need to add this #include. Oh well. */
21818 +#if !@HAVE_POSIX_PRINTF@
21820 +#include <stdio.h>
21821 +#include <stddef.h>
21823 +/* Get va_list. */
21824 +#if __STDC__ || defined __cplusplus || defined _MSC_VER
21825 +# include <stdarg.h>
21827 +# include <varargs.h>
21831 +#define fprintf libintl_fprintf
21832 +extern int fprintf (FILE *, const char *, ...);
21834 +#define vfprintf libintl_vfprintf
21835 +extern int vfprintf (FILE *, const char *, va_list);
21838 +#define printf libintl_printf
21839 +extern int printf (const char *, ...);
21841 +#define vprintf libintl_vprintf
21842 +extern int vprintf (const char *, va_list);
21845 +#define sprintf libintl_sprintf
21846 +extern int sprintf (char *, const char *, ...);
21848 +#define vsprintf libintl_vsprintf
21849 +extern int vsprintf (char *, const char *, va_list);
21851 +#if @HAVE_SNPRINTF@
21854 +#define snprintf libintl_snprintf
21855 +extern int snprintf (char *, size_t, const char *, ...);
21857 +#define vsnprintf libintl_vsnprintf
21858 +extern int vsnprintf (char *, size_t, const char *, va_list);
21862 +#if @HAVE_ASPRINTF@
21865 +#define asprintf libintl_asprintf
21866 +extern int asprintf (char **, const char *, ...);
21868 +#define vasprintf libintl_vasprintf
21869 +extern int vasprintf (char **, const char *, va_list);
21873 +#if @HAVE_WPRINTF@
21876 +#define fwprintf libintl_fwprintf
21877 +extern int fwprintf (FILE *, const wchar_t *, ...);
21879 +#define vfwprintf libintl_vfwprintf
21880 +extern int vfwprintf (FILE *, const wchar_t *, va_list);
21883 +#define wprintf libintl_wprintf
21884 +extern int wprintf (const wchar_t *, ...);
21886 +#define vwprintf libintl_vwprintf
21887 +extern int vwprintf (const wchar_t *, va_list);
21890 +#define swprintf libintl_swprintf
21891 +extern int swprintf (wchar_t *, size_t, const wchar_t *, ...);
21893 +#define vswprintf libintl_vswprintf
21894 +extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
21901 +/* Support for relocatable packages. */
21903 +/* Sets the original and the current installation prefix of the package.
21904 + Relocation simply replaces a pathname starting with the original prefix
21905 + by the corresponding pathname with the current prefix instead. Both
21906 + prefixes should be directory names without trailing slash (i.e. use ""
21907 + instead of "/"). */
21908 +#define libintl_set_relocation_prefix libintl_set_relocation_prefix
21910 + libintl_set_relocation_prefix (const char *orig_prefix,
21911 + const char *curr_prefix);
21914 +#ifdef __cplusplus
21918 +#endif /* libintl.h */
21920 +++ lxpanel-0.5.6/intl/vasnprintf.h
21922 +/* vsprintf with automatic memory allocation.
21923 + Copyright (C) 2002-2003 Free Software Foundation, Inc.
21925 + This program is free software; you can redistribute it and/or modify it
21926 + under the terms of the GNU Library General Public License as published
21927 + by the Free Software Foundation; either version 2, or (at your option)
21928 + any later version.
21930 + This program is distributed in the hope that it will be useful,
21931 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21932 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21933 + Library General Public License for more details.
21935 + You should have received a copy of the GNU Library General Public
21936 + License along with this program; if not, write to the Free Software
21937 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21940 +#ifndef _VASNPRINTF_H
21941 +#define _VASNPRINTF_H
21943 +/* Get va_list. */
21944 +#include <stdarg.h>
21947 +#include <stddef.h>
21949 +#ifndef __attribute__
21950 +/* This feature is available in gcc versions 2.5 and later. */
21951 +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
21952 +# define __attribute__(Spec) /* empty */
21954 +/* The __-protected variants of `format' and `printf' attributes
21955 + are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
21956 +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
21957 +# define __format__ format
21958 +# define __printf__ printf
21962 +#ifdef __cplusplus
21966 +/* Write formatted output to a string dynamically allocated with malloc().
21967 + You can pass a preallocated buffer for the result in RESULTBUF and its
21968 + size in *LENGTHP; otherwise you pass RESULTBUF = NULL.
21969 + If successful, return the address of the string (this may be = RESULTBUF
21970 + if no dynamic memory allocation was necessary) and set *LENGTHP to the
21971 + number of resulting bytes, excluding the trailing NUL. Upon error, set
21972 + errno and return NULL. */
21973 +extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
21974 + __attribute__ ((__format__ (__printf__, 3, 4)));
21975 +extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
21976 + __attribute__ ((__format__ (__printf__, 3, 0)));
21978 +#ifdef __cplusplus
21982 +#endif /* _VASNPRINTF_H */
21984 +++ lxpanel-0.5.6/intl/hash-string.h
21986 +/* Description of GNU message catalog format: string hashing function.
21987 + Copyright (C) 1995, 1997-1998, 2000-2003 Free Software Foundation, Inc.
21989 + This program is free software; you can redistribute it and/or modify it
21990 + under the terms of the GNU Library General Public License as published
21991 + by the Free Software Foundation; either version 2, or (at your option)
21992 + any later version.
21994 + This program is distributed in the hope that it will be useful,
21995 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21996 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21997 + Library General Public License for more details.
21999 + You should have received a copy of the GNU Library General Public
22000 + License along with this program; if not, write to the Free Software
22001 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22004 +/* @@ end of prolog @@ */
22006 +/* We assume to have `unsigned long int' value with at least 32 bits. */
22007 +#define HASHWORDBITS 32
22010 +/* Defines the so called `hashpjw' function by P.J. Weinberger
22011 + [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
22012 + 1986, 1987 Bell Telephone Laboratories, Inc.] */
22013 +static inline unsigned long int
22014 +hash_string (const char *str_param)
22016 + unsigned long int hval, g;
22017 + const char *str = str_param;
22019 + /* Compute the hash value for the given string. */
22021 + while (*str != '\0')
22024 + hval += (unsigned char) *str++;
22025 + g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
22028 + hval ^= g >> (HASHWORDBITS - 8);
22035 +++ lxpanel-0.5.6/intl/osdep.c
22037 +/* OS dependent parts of libintl.
22038 + Copyright (C) 2001-2002 Free Software Foundation, Inc.
22040 + This program is free software; you can redistribute it and/or modify it
22041 + under the terms of the GNU Library General Public License as published
22042 + by the Free Software Foundation; either version 2, or (at your option)
22043 + any later version.
22045 + This program is distributed in the hope that it will be useful,
22046 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22047 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22048 + Library General Public License for more details.
22050 + You should have received a copy of the GNU Library General Public
22051 + License along with this program; if not, write to the Free Software
22052 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22055 +#if defined __EMX__
22056 +# include "os2compat.c"
22058 +/* Avoid AIX compiler warning. */
22059 +typedef int dummy;
22062 +++ lxpanel-0.5.6/intl/bindtextdom.c
22064 +/* Implementation of the bindtextdomain(3) function
22065 + Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
22067 + This program is free software; you can redistribute it and/or modify it
22068 + under the terms of the GNU Library General Public License as published
22069 + by the Free Software Foundation; either version 2, or (at your option)
22070 + any later version.
22072 + This program is distributed in the hope that it will be useful,
22073 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22074 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22075 + Library General Public License for more details.
22077 + You should have received a copy of the GNU Library General Public
22078 + License along with this program; if not, write to the Free Software
22079 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22082 +#ifdef HAVE_CONFIG_H
22083 +# include <config.h>
22086 +#include <stddef.h>
22087 +#include <stdlib.h>
22088 +#include <string.h>
22091 +# include <libintl.h>
22093 +# include "libgnuintl.h"
22095 +#include "gettextP.h"
22098 +/* We have to handle multi-threaded applications. */
22099 +# include <bits/libc-lock.h>
22101 +/* Provide dummy implementation if this is outside glibc. */
22102 +# define __libc_rwlock_define(CLASS, NAME)
22103 +# define __libc_rwlock_wrlock(NAME)
22104 +# define __libc_rwlock_unlock(NAME)
22107 +/* The internal variables in the standalone libintl.a must have different
22108 + names than the internal variables in GNU libc, otherwise programs
22109 + using libintl.a cannot be linked statically. */
22110 +#if !defined _LIBC
22111 +# define _nl_default_dirname libintl_nl_default_dirname
22112 +# define _nl_domain_bindings libintl_nl_domain_bindings
22115 +/* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>. */
22117 +# define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
22120 +/* @@ end of prolog @@ */
22122 +/* Contains the default location of the message catalogs. */
22123 +extern const char _nl_default_dirname[];
22125 +extern const char _nl_default_dirname_internal[] attribute_hidden;
22127 +# define INTUSE(name) name
22130 +/* List with bindings of specific domains. */
22131 +extern struct binding *_nl_domain_bindings;
22133 +/* Lock variable to protect the global data in the gettext implementation. */
22134 +__libc_rwlock_define (extern, _nl_state_lock attribute_hidden)
22137 +/* Names for the libintl functions are a problem. They must not clash
22138 + with existing names and they should follow ANSI C. But this source
22139 + code is also used in GNU C Library where the names have a __
22140 + prefix. So we have to make a difference here. */
22142 +# define BINDTEXTDOMAIN __bindtextdomain
22143 +# define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset
22145 +# define strdup(str) __strdup (str)
22148 +# define BINDTEXTDOMAIN libintl_bindtextdomain
22149 +# define BIND_TEXTDOMAIN_CODESET libintl_bind_textdomain_codeset
22152 +/* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP
22153 + to be used for the DOMAINNAME message catalog.
22154 + If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not
22155 + modified, only the current value is returned.
22156 + If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither
22157 + modified nor returned. */
22159 +set_binding_values (const char *domainname,
22160 + const char **dirnamep, const char **codesetp)
22162 + struct binding *binding;
22165 + /* Some sanity checks. */
22166 + if (domainname == NULL || domainname[0] == '\0')
22169 + *dirnamep = NULL;
22171 + *codesetp = NULL;
22175 + __libc_rwlock_wrlock (_nl_state_lock);
22179 + for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)
22181 + int compare = strcmp (domainname, binding->domainname);
22182 + if (compare == 0)
22183 + /* We found it! */
22187 + /* It is not in the list. */
22193 + if (binding != NULL)
22197 + const char *dirname = *dirnamep;
22199 + if (dirname == NULL)
22200 + /* The current binding has be to returned. */
22201 + *dirnamep = binding->dirname;
22204 + /* The domain is already bound. If the new value and the old
22205 + one are equal we simply do nothing. Otherwise replace the
22207 + char *result = binding->dirname;
22208 + if (strcmp (dirname, result) != 0)
22210 + if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0)
22211 + result = (char *) INTUSE(_nl_default_dirname);
22214 +#if defined _LIBC || defined HAVE_STRDUP
22215 + result = strdup (dirname);
22217 + size_t len = strlen (dirname) + 1;
22218 + result = (char *) malloc (len);
22219 + if (__builtin_expect (result != NULL, 1))
22220 + memcpy (result, dirname, len);
22224 + if (__builtin_expect (result != NULL, 1))
22226 + if (binding->dirname != INTUSE(_nl_default_dirname))
22227 + free (binding->dirname);
22229 + binding->dirname = result;
22233 + *dirnamep = result;
22239 + const char *codeset = *codesetp;
22241 + if (codeset == NULL)
22242 + /* The current binding has be to returned. */
22243 + *codesetp = binding->codeset;
22246 + /* The domain is already bound. If the new value and the old
22247 + one are equal we simply do nothing. Otherwise replace the
22249 + char *result = binding->codeset;
22250 + if (result == NULL || strcmp (codeset, result) != 0)
22252 +#if defined _LIBC || defined HAVE_STRDUP
22253 + result = strdup (codeset);
22255 + size_t len = strlen (codeset) + 1;
22256 + result = (char *) malloc (len);
22257 + if (__builtin_expect (result != NULL, 1))
22258 + memcpy (result, codeset, len);
22261 + if (__builtin_expect (result != NULL, 1))
22263 + if (binding->codeset != NULL)
22264 + free (binding->codeset);
22266 + binding->codeset = result;
22267 + binding->codeset_cntr++;
22271 + *codesetp = result;
22275 + else if ((dirnamep == NULL || *dirnamep == NULL)
22276 + && (codesetp == NULL || *codesetp == NULL))
22278 + /* Simply return the default values. */
22280 + *dirnamep = INTUSE(_nl_default_dirname);
22282 + *codesetp = NULL;
22286 + /* We have to create a new binding. */
22287 + size_t len = strlen (domainname) + 1;
22288 + struct binding *new_binding =
22289 + (struct binding *) malloc (offsetof (struct binding, domainname) + len);
22291 + if (__builtin_expect (new_binding == NULL, 0))
22294 + memcpy (new_binding->domainname, domainname, len);
22298 + const char *dirname = *dirnamep;
22300 + if (dirname == NULL)
22301 + /* The default value. */
22302 + dirname = INTUSE(_nl_default_dirname);
22305 + if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0)
22306 + dirname = INTUSE(_nl_default_dirname);
22310 +#if defined _LIBC || defined HAVE_STRDUP
22311 + result = strdup (dirname);
22312 + if (__builtin_expect (result == NULL, 0))
22313 + goto failed_dirname;
22315 + size_t len = strlen (dirname) + 1;
22316 + result = (char *) malloc (len);
22317 + if (__builtin_expect (result == NULL, 0))
22318 + goto failed_dirname;
22319 + memcpy (result, dirname, len);
22321 + dirname = result;
22324 + *dirnamep = dirname;
22325 + new_binding->dirname = (char *) dirname;
22328 + /* The default value. */
22329 + new_binding->dirname = (char *) INTUSE(_nl_default_dirname);
22331 + new_binding->codeset_cntr = 0;
22335 + const char *codeset = *codesetp;
22337 + if (codeset != NULL)
22341 +#if defined _LIBC || defined HAVE_STRDUP
22342 + result = strdup (codeset);
22343 + if (__builtin_expect (result == NULL, 0))
22344 + goto failed_codeset;
22346 + size_t len = strlen (codeset) + 1;
22347 + result = (char *) malloc (len);
22348 + if (__builtin_expect (result == NULL, 0))
22349 + goto failed_codeset;
22350 + memcpy (result, codeset, len);
22352 + codeset = result;
22353 + new_binding->codeset_cntr++;
22355 + *codesetp = codeset;
22356 + new_binding->codeset = (char *) codeset;
22359 + new_binding->codeset = NULL;
22361 + /* Now enqueue it. */
22362 + if (_nl_domain_bindings == NULL
22363 + || strcmp (domainname, _nl_domain_bindings->domainname) < 0)
22365 + new_binding->next = _nl_domain_bindings;
22366 + _nl_domain_bindings = new_binding;
22370 + binding = _nl_domain_bindings;
22371 + while (binding->next != NULL
22372 + && strcmp (domainname, binding->next->domainname) > 0)
22373 + binding = binding->next;
22375 + new_binding->next = binding->next;
22376 + binding->next = new_binding;
22381 + /* Here we deal with memory allocation failures. */
22385 + if (new_binding->dirname != INTUSE(_nl_default_dirname))
22386 + free (new_binding->dirname);
22388 + free (new_binding);
22391 + *dirnamep = NULL;
22393 + *codesetp = NULL;
22397 + /* If we modified any binding, we flush the caches. */
22399 + ++_nl_msg_cat_cntr;
22401 + __libc_rwlock_unlock (_nl_state_lock);
22404 +/* Specify that the DOMAINNAME message catalog will be found
22405 + in DIRNAME rather than in the system locale data base. */
22407 +BINDTEXTDOMAIN (const char *domainname, const char *dirname)
22409 + set_binding_values (domainname, &dirname, NULL);
22410 + return (char *) dirname;
22413 +/* Specify the character encoding in which the messages from the
22414 + DOMAINNAME message catalog will be returned. */
22416 +BIND_TEXTDOMAIN_CODESET (const char *domainname, const char *codeset)
22418 + set_binding_values (domainname, NULL, &codeset);
22419 + return (char *) codeset;
22423 +/* Aliases for function names in GNU C Library. */
22424 +weak_alias (__bindtextdomain, bindtextdomain);
22425 +weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset);
22428 +++ lxpanel-0.5.6/intl/xsize.h
22430 +/* xsize.h -- Checked size_t computations.
22432 + Copyright (C) 2003 Free Software Foundation, Inc.
22434 + This program is free software; you can redistribute it and/or modify it
22435 + under the terms of the GNU Library General Public License as published
22436 + by the Free Software Foundation; either version 2, or (at your option)
22437 + any later version.
22439 + This program is distributed in the hope that it will be useful,
22440 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22441 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22442 + Library General Public License for more details.
22444 + You should have received a copy of the GNU Library General Public
22445 + License along with this program; if not, write to the Free Software
22446 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22453 +#include <stddef.h>
22455 +/* Get SIZE_MAX. */
22456 +#include <limits.h>
22458 +# include <stdint.h>
22461 +/* The size of memory objects is often computed through expressions of
22462 + type size_t. Example:
22463 + void* p = malloc (header_size + n * element_size).
22464 + These computations can lead to overflow. When this happens, malloc()
22465 + returns a piece of memory that is way too small, and the program then
22466 + crashes while attempting to fill the memory.
22467 + To avoid this, the functions and macros in this file check for overflow.
22468 + The convention is that SIZE_MAX represents overflow.
22469 + malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc
22470 + implementation that uses mmap --, it's recommended to use size_overflow_p()
22471 + or size_in_bounds_p() before invoking malloc().
22472 + The example thus becomes:
22473 + size_t size = xsum (header_size, xtimes (n, element_size));
22474 + void *p = (size_in_bounds_p (size) ? malloc (size) : NULL);
22477 +/* Convert an arbitrary value >= 0 to type size_t. */
22478 +#define xcast_size_t(N) \
22479 + ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX)
22481 +/* Sum of two sizes, with overflow check. */
22482 +static inline size_t
22484 +__attribute__ ((__pure__))
22486 +xsum (size_t size1, size_t size2)
22488 + size_t sum = size1 + size2;
22489 + return (sum >= size1 ? sum : SIZE_MAX);
22492 +/* Sum of three sizes, with overflow check. */
22493 +static inline size_t
22495 +__attribute__ ((__pure__))
22497 +xsum3 (size_t size1, size_t size2, size_t size3)
22499 + return xsum (xsum (size1, size2), size3);
22502 +/* Sum of four sizes, with overflow check. */
22503 +static inline size_t
22505 +__attribute__ ((__pure__))
22507 +xsum4 (size_t size1, size_t size2, size_t size3, size_t size4)
22509 + return xsum (xsum (xsum (size1, size2), size3), size4);
22512 +/* Maximum of two sizes, with overflow check. */
22513 +static inline size_t
22515 +__attribute__ ((__pure__))
22517 +xmax (size_t size1, size_t size2)
22519 + /* No explicit check is needed here, because for any n:
22520 + max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. */
22521 + return (size1 >= size2 ? size1 : size2);
22524 +/* Multiplication of a count with an element size, with overflow check.
22525 + The count must be >= 0 and the element size must be > 0.
22526 + This is a macro, not an inline function, so that it works correctly even
22527 + when N is of a wider tupe and N > SIZE_MAX. */
22528 +#define xtimes(N, ELSIZE) \
22529 + ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX)
22531 +/* Check for overflow. */
22532 +#define size_overflow_p(SIZE) \
22533 + ((SIZE) == SIZE_MAX)
22534 +/* Check against overflow. */
22535 +#define size_in_bounds_p(SIZE) \
22536 + ((SIZE) != SIZE_MAX)
22538 +#endif /* _XSIZE_H */
22540 +++ lxpanel-0.5.6/intl/textdomain.c
22542 +/* Implementation of the textdomain(3) function.
22543 + Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
22545 + This program is free software; you can redistribute it and/or modify it
22546 + under the terms of the GNU Library General Public License as published
22547 + by the Free Software Foundation; either version 2, or (at your option)
22548 + any later version.
22550 + This program is distributed in the hope that it will be useful,
22551 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22552 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22553 + Library General Public License for more details.
22555 + You should have received a copy of the GNU Library General Public
22556 + License along with this program; if not, write to the Free Software
22557 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22560 +#ifdef HAVE_CONFIG_H
22561 +# include <config.h>
22564 +#include <stdlib.h>
22565 +#include <string.h>
22568 +# include <libintl.h>
22570 +# include "libgnuintl.h"
22572 +#include "gettextP.h"
22575 +/* We have to handle multi-threaded applications. */
22576 +# include <bits/libc-lock.h>
22578 +/* Provide dummy implementation if this is outside glibc. */
22579 +# define __libc_rwlock_define(CLASS, NAME)
22580 +# define __libc_rwlock_wrlock(NAME)
22581 +# define __libc_rwlock_unlock(NAME)
22584 +/* The internal variables in the standalone libintl.a must have different
22585 + names than the internal variables in GNU libc, otherwise programs
22586 + using libintl.a cannot be linked statically. */
22587 +#if !defined _LIBC
22588 +# define _nl_default_default_domain libintl_nl_default_default_domain
22589 +# define _nl_current_default_domain libintl_nl_current_default_domain
22592 +/* @@ end of prolog @@ */
22594 +/* Name of the default text domain. */
22595 +extern const char _nl_default_default_domain[] attribute_hidden;
22597 +/* Default text domain in which entries for gettext(3) are to be found. */
22598 +extern const char *_nl_current_default_domain attribute_hidden;
22601 +/* Names for the libintl functions are a problem. They must not clash
22602 + with existing names and they should follow ANSI C. But this source
22603 + code is also used in GNU C Library where the names have a __
22604 + prefix. So we have to make a difference here. */
22606 +# define TEXTDOMAIN __textdomain
22608 +# define strdup(str) __strdup (str)
22611 +# define TEXTDOMAIN libintl_textdomain
22614 +/* Lock variable to protect the global data in the gettext implementation. */
22615 +__libc_rwlock_define (extern, _nl_state_lock attribute_hidden)
22617 +/* Set the current default message catalog to DOMAINNAME.
22618 + If DOMAINNAME is null, return the current default.
22619 + If DOMAINNAME is "", reset to the default of "messages". */
22621 +TEXTDOMAIN (const char *domainname)
22623 + char *new_domain;
22624 + char *old_domain;
22626 + /* A NULL pointer requests the current setting. */
22627 + if (domainname == NULL)
22628 + return (char *) _nl_current_default_domain;
22630 + __libc_rwlock_wrlock (_nl_state_lock);
22632 + old_domain = (char *) _nl_current_default_domain;
22634 + /* If domain name is the null string set to default domain "messages". */
22635 + if (domainname[0] == '\0'
22636 + || strcmp (domainname, _nl_default_default_domain) == 0)
22638 + _nl_current_default_domain = _nl_default_default_domain;
22639 + new_domain = (char *) _nl_current_default_domain;
22641 + else if (strcmp (domainname, old_domain) == 0)
22642 + /* This can happen and people will use it to signal that some
22643 + environment variable changed. */
22644 + new_domain = old_domain;
22647 + /* If the following malloc fails `_nl_current_default_domain'
22648 + will be NULL. This value will be returned and so signals we
22649 + are out of core. */
22650 +#if defined _LIBC || defined HAVE_STRDUP
22651 + new_domain = strdup (domainname);
22653 + size_t len = strlen (domainname) + 1;
22654 + new_domain = (char *) malloc (len);
22655 + if (new_domain != NULL)
22656 + memcpy (new_domain, domainname, len);
22659 + if (new_domain != NULL)
22660 + _nl_current_default_domain = new_domain;
22663 + /* We use this possibility to signal a change of the loaded catalogs
22664 + since this is most likely the case and there is no other easy we
22665 + to do it. Do it only when the call was successful. */
22666 + if (new_domain != NULL)
22668 + ++_nl_msg_cat_cntr;
22670 + if (old_domain != new_domain && old_domain != _nl_default_default_domain)
22671 + free (old_domain);
22674 + __libc_rwlock_unlock (_nl_state_lock);
22676 + return new_domain;
22680 +/* Alias for function name in GNU C Library. */
22681 +weak_alias (__textdomain, textdomain);
22684 +++ lxpanel-0.5.6/intl/explodename.c
22686 +/* Copyright (C) 1995-1998, 2000-2001, 2003 Free Software Foundation, Inc.
22687 + Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
22689 + This program is free software; you can redistribute it and/or modify it
22690 + under the terms of the GNU Library General Public License as published
22691 + by the Free Software Foundation; either version 2, or (at your option)
22692 + any later version.
22694 + This program is distributed in the hope that it will be useful,
22695 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22696 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22697 + Library General Public License for more details.
22699 + You should have received a copy of the GNU Library General Public
22700 + License along with this program; if not, write to the Free Software
22701 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22704 +#ifdef HAVE_CONFIG_H
22705 +# include <config.h>
22708 +#include <stdlib.h>
22709 +#include <string.h>
22710 +#include <sys/types.h>
22712 +#include "loadinfo.h"
22714 +/* On some strange systems still no definition of NULL is found. Sigh! */
22716 +# if defined __STDC__ && __STDC__
22717 +# define NULL ((void *) 0)
22723 +/* @@ end of prolog @@ */
22726 +_nl_find_language (const char *name)
22728 + while (name[0] != '\0' && name[0] != '_' && name[0] != '@'
22729 + && name[0] != '+' && name[0] != ',')
22732 + return (char *) name;
22737 +_nl_explode_name (char *name,
22738 + const char **language, const char **modifier,
22739 + const char **territory, const char **codeset,
22740 + const char **normalized_codeset, const char **special,
22741 + const char **sponsor, const char **revision)
22743 + enum { undecided, xpg, cen } syntax;
22747 + *modifier = NULL;
22748 + *territory = NULL;
22750 + *normalized_codeset = NULL;
22753 + *revision = NULL;
22755 + /* Now we determine the single parts of the locale name. First
22756 + look for the language. Termination symbols are `_' and `@' if
22757 + we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */
22759 + syntax = undecided;
22760 + *language = cp = name;
22761 + cp = _nl_find_language (*language);
22763 + if (*language == cp)
22764 + /* This does not make sense: language has to be specified. Use
22765 + this entry as it is without exploding. Perhaps it is an alias. */
22766 + cp = strchr (*language, '\0');
22767 + else if (cp[0] == '_')
22769 + /* Next is the territory. */
22771 + *territory = ++cp;
22773 + while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@'
22774 + && cp[0] != '+' && cp[0] != ',' && cp[0] != '_')
22777 + mask |= TERRITORY;
22779 + if (cp[0] == '.')
22781 + /* Next is the codeset. */
22786 + while (cp[0] != '\0' && cp[0] != '@')
22789 + mask |= XPG_CODESET;
22791 + if (*codeset != cp && (*codeset)[0] != '\0')
22793 + *normalized_codeset = _nl_normalize_codeset (*codeset,
22795 + if (strcmp (*codeset, *normalized_codeset) == 0)
22796 + free ((char *) *normalized_codeset);
22798 + mask |= XPG_NORM_CODESET;
22803 + if (cp[0] == '@' || (syntax != xpg && cp[0] == '+'))
22805 + /* Next is the modifier. */
22806 + syntax = cp[0] == '@' ? xpg : cen;
22808 + *modifier = ++cp;
22810 + while (syntax == cen && cp[0] != '\0' && cp[0] != '+'
22811 + && cp[0] != ',' && cp[0] != '_')
22814 + mask |= XPG_MODIFIER | CEN_AUDIENCE;
22817 + if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_'))
22821 + if (cp[0] == '+')
22823 + /* Next is special application (CEN syntax). */
22827 + while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_')
22830 + mask |= CEN_SPECIAL;
22833 + if (cp[0] == ',')
22835 + /* Next is sponsor (CEN syntax). */
22839 + while (cp[0] != '\0' && cp[0] != '_')
22842 + mask |= CEN_SPONSOR;
22845 + if (cp[0] == '_')
22847 + /* Next is revision (CEN syntax). */
22849 + *revision = ++cp;
22851 + mask |= CEN_REVISION;
22855 + /* For CEN syntax values it might be important to have the
22856 + separator character in the file name, not for XPG syntax. */
22857 + if (syntax == xpg)
22859 + if (*territory != NULL && (*territory)[0] == '\0')
22860 + mask &= ~TERRITORY;
22862 + if (*codeset != NULL && (*codeset)[0] == '\0')
22863 + mask &= ~XPG_CODESET;
22865 + if (*modifier != NULL && (*modifier)[0] == '\0')
22866 + mask &= ~XPG_MODIFIER;
22872 +++ lxpanel-0.5.6/intl/gettext.c
22874 +/* Implementation of gettext(3) function.
22875 + Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc.
22877 + This program is free software; you can redistribute it and/or modify it
22878 + under the terms of the GNU Library General Public License as published
22879 + by the Free Software Foundation; either version 2, or (at your option)
22880 + any later version.
22882 + This program is distributed in the hope that it will be useful,
22883 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22884 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22885 + Library General Public License for more details.
22887 + You should have received a copy of the GNU Library General Public
22888 + License along with this program; if not, write to the Free Software
22889 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22892 +#ifdef HAVE_CONFIG_H
22893 +# include <config.h>
22897 +# define __need_NULL
22898 +# include <stddef.h>
22900 +# include <stdlib.h> /* Just for NULL. */
22903 +#include "gettextP.h"
22905 +# include <libintl.h>
22907 +# include "libgnuintl.h"
22910 +/* @@ end of prolog @@ */
22912 +/* Names for the libintl functions are a problem. They must not clash
22913 + with existing names and they should follow ANSI C. But this source
22914 + code is also used in GNU C Library where the names have a __
22915 + prefix. So we have to make a difference here. */
22917 +# define GETTEXT __gettext
22918 +# define DCGETTEXT INTUSE(__dcgettext)
22920 +# define GETTEXT libintl_gettext
22921 +# define DCGETTEXT libintl_dcgettext
22924 +/* Look up MSGID in the current default message catalog for the current
22925 + LC_MESSAGES locale. If not found, returns MSGID itself (the default
22928 +GETTEXT (const char *msgid)
22930 + return DCGETTEXT (NULL, msgid, LC_MESSAGES);
22934 +/* Alias for function name in GNU C Library. */
22935 +weak_alias (__gettext, gettext);
22938 +++ lxpanel-0.5.6/intl/ref-add.sin
22940 +# Add this package to a list of references stored in a text file.
22942 +# Copyright (C) 2000 Free Software Foundation, Inc.
22944 +# This program is free software; you can redistribute it and/or modify it
22945 +# under the terms of the GNU Library General Public License as published
22946 +# by the Free Software Foundation; either version 2, or (at your option)
22947 +# any later version.
22949 +# This program is distributed in the hope that it will be useful,
22950 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
22951 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22952 +# Library General Public License for more details.
22954 +# You should have received a copy of the GNU Library General Public
22955 +# License along with this program; if not, write to the Free Software
22956 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22959 +# Written by Bruno Haible <haible@clisp.cons.org>.
22961 +/^# Packages using this file: / {
22962 + s/# Packages using this file://
22965 + s/ @PACKAGE@ / @PACKAGE@ /
22967 + s/ $/ @PACKAGE@ /
22969 + s/^/# Packages using this file:/
22972 +++ lxpanel-0.5.6/intl/vasnwprintf.h
22974 +/* vswprintf with automatic memory allocation.
22975 + Copyright (C) 2002-2003 Free Software Foundation, Inc.
22977 + This program is free software; you can redistribute it and/or modify it
22978 + under the terms of the GNU Library General Public License as published
22979 + by the Free Software Foundation; either version 2, or (at your option)
22980 + any later version.
22982 + This program is distributed in the hope that it will be useful,
22983 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22984 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22985 + Library General Public License for more details.
22987 + You should have received a copy of the GNU Library General Public
22988 + License along with this program; if not, write to the Free Software
22989 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22992 +#ifndef _VASNWPRINTF_H
22993 +#define _VASNWPRINTF_H
22995 +/* Get va_list. */
22996 +#include <stdarg.h>
22998 +/* Get wchar_t, size_t. */
22999 +#include <stddef.h>
23001 +#ifdef __cplusplus
23005 +/* Write formatted output to a string dynamically allocated with malloc().
23006 + You can pass a preallocated buffer for the result in RESULTBUF and its
23007 + size in *LENGTHP; otherwise you pass RESULTBUF = NULL.
23008 + If successful, return the address of the string (this may be = RESULTBUF
23009 + if no dynamic memory allocation was necessary) and set *LENGTHP to the
23010 + number of resulting bytes, excluding the trailing NUL. Upon error, set
23011 + errno and return NULL. */
23012 +extern wchar_t * asnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, ...);
23013 +extern wchar_t * vasnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, va_list args);
23015 +#ifdef __cplusplus
23019 +#endif /* _VASNWPRINTF_H */
23021 +++ lxpanel-0.5.6/intl/gettextP.h
23023 +/* Header describing internals of libintl library.
23024 + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
23025 + Written by Ulrich Drepper <drepper@cygnus.com>, 1995.
23027 + This program is free software; you can redistribute it and/or modify it
23028 + under the terms of the GNU Library General Public License as published
23029 + by the Free Software Foundation; either version 2, or (at your option)
23030 + any later version.
23032 + This program is distributed in the hope that it will be useful,
23033 + but WITHOUT ANY WARRANTY; without even the implied warranty of
23034 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23035 + Library General Public License for more details.
23037 + You should have received a copy of the GNU Library General Public
23038 + License along with this program; if not, write to the Free Software
23039 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23042 +#ifndef _GETTEXTP_H
23043 +#define _GETTEXTP_H
23045 +#include <stddef.h> /* Get size_t. */
23048 +# include "../iconv/gconv_int.h"
23051 +# include <iconv.h>
23055 +#include "loadinfo.h"
23057 +#include "gmo.h" /* Get nls_uint32. */
23059 +/* @@ end of prolog @@ */
23061 +#ifndef internal_function
23062 +# define internal_function
23065 +#ifndef attribute_hidden
23066 +# define attribute_hidden
23069 +/* Tell the compiler when a conditional or integer expression is
23070 + almost always true or almost always false. */
23071 +#ifndef HAVE_BUILTIN_EXPECT
23072 +# define __builtin_expect(expr, val) (expr)
23076 +# define W(flag, data) ((flag) ? SWAP (data) : (data))
23081 +# include <byteswap.h>
23082 +# define SWAP(i) bswap_32 (i)
23084 +static inline nls_uint32
23088 + return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
23093 +/* In-memory representation of system dependent string. */
23094 +struct sysdep_string_desc
23096 + /* Length of addressed string, including the trailing NUL. */
23098 + /* Pointer to addressed string. */
23099 + const char *pointer;
23102 +/* The representation of an opened message catalog. */
23103 +struct loaded_domain
23105 + /* Pointer to memory containing the .mo file. */
23106 + const char *data;
23107 + /* 1 if the memory is mmap()ed, 0 if the memory is malloc()ed. */
23109 + /* Size of mmap()ed memory. */
23110 + size_t mmap_size;
23111 + /* 1 if the .mo file uses a different endianness than this machine. */
23113 + /* Pointer to additional malloc()ed memory. */
23116 + /* Number of static strings pairs. */
23117 + nls_uint32 nstrings;
23118 + /* Pointer to descriptors of original strings in the file. */
23119 + const struct string_desc *orig_tab;
23120 + /* Pointer to descriptors of translated strings in the file. */
23121 + const struct string_desc *trans_tab;
23123 + /* Number of system dependent strings pairs. */
23124 + nls_uint32 n_sysdep_strings;
23125 + /* Pointer to descriptors of original sysdep strings. */
23126 + const struct sysdep_string_desc *orig_sysdep_tab;
23127 + /* Pointer to descriptors of translated sysdep strings. */
23128 + const struct sysdep_string_desc *trans_sysdep_tab;
23130 + /* Size of hash table. */
23131 + nls_uint32 hash_size;
23132 + /* Pointer to hash table. */
23133 + const nls_uint32 *hash_tab;
23134 + /* 1 if the hash table uses a different endianness than this machine. */
23135 + int must_swap_hash_tab;
23137 + int codeset_cntr;
23147 + struct expression *plural;
23148 + unsigned long int nplurals;
23151 +/* We want to allocate a string at the end of the struct. But ISO C
23152 + doesn't allow zero sized arrays. */
23159 +/* A set of settings bound to a message domain. Used to store settings
23160 + from bindtextdomain() and bind_textdomain_codeset(). */
23163 + struct binding *next;
23165 + int codeset_cntr; /* Incremented each time codeset changes. */
23167 + char domainname[ZERO];
23170 +/* A counter which is incremented each time some previous translations
23172 + This variable is part of the external ABI of the GNU libintl. */
23173 +extern int _nl_msg_cat_cntr;
23176 +const char *_nl_locale_name (int category, const char *categoryname);
23179 +struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale,
23180 + const char *__domainname,
23181 + struct binding *__domainbinding)
23182 + internal_function;
23183 +void _nl_load_domain (struct loaded_l10nfile *__domain,
23184 + struct binding *__domainbinding)
23185 + internal_function;
23186 +void _nl_unload_domain (struct loaded_domain *__domain)
23187 + internal_function;
23188 +const char *_nl_init_domain_conv (struct loaded_l10nfile *__domain_file,
23189 + struct loaded_domain *__domain,
23190 + struct binding *__domainbinding)
23191 + internal_function;
23192 +void _nl_free_domain_conv (struct loaded_domain *__domain)
23193 + internal_function;
23195 +char *_nl_find_msg (struct loaded_l10nfile *domain_file,
23196 + struct binding *domainbinding, const char *msgid,
23198 + internal_function;
23201 +extern char *__gettext (const char *__msgid);
23202 +extern char *__dgettext (const char *__domainname, const char *__msgid);
23203 +extern char *__dcgettext (const char *__domainname, const char *__msgid,
23205 +extern char *__ngettext (const char *__msgid1, const char *__msgid2,
23206 + unsigned long int __n);
23207 +extern char *__dngettext (const char *__domainname,
23208 + const char *__msgid1, const char *__msgid2,
23209 + unsigned long int n);
23210 +extern char *__dcngettext (const char *__domainname,
23211 + const char *__msgid1, const char *__msgid2,
23212 + unsigned long int __n, int __category);
23213 +extern char *__dcigettext (const char *__domainname,
23214 + const char *__msgid1, const char *__msgid2,
23215 + int __plural, unsigned long int __n,
23217 +extern char *__textdomain (const char *__domainname);
23218 +extern char *__bindtextdomain (const char *__domainname,
23219 + const char *__dirname);
23220 +extern char *__bind_textdomain_codeset (const char *__domainname,
23221 + const char *__codeset);
23223 +/* Declare the exported libintl_* functions, in a way that allows us to
23224 + call them under their real name. */
23225 +# undef _INTL_REDIRECT_INLINE
23226 +# undef _INTL_REDIRECT_MACROS
23227 +# define _INTL_REDIRECT_MACROS
23228 +# include "libgnuintl.h"
23229 +extern char *libintl_dcigettext (const char *__domainname,
23230 + const char *__msgid1, const char *__msgid2,
23231 + int __plural, unsigned long int __n,
23235 +/* @@ begin of epilog @@ */
23237 +#endif /* gettextP.h */
23239 +++ lxpanel-0.5.6/intl/ref-del.sin
23241 +# Remove this package from a list of references stored in a text file.
23243 +# Copyright (C) 2000 Free Software Foundation, Inc.
23245 +# This program is free software; you can redistribute it and/or modify it
23246 +# under the terms of the GNU Library General Public License as published
23247 +# by the Free Software Foundation; either version 2, or (at your option)
23248 +# any later version.
23250 +# This program is distributed in the hope that it will be useful,
23251 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
23252 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23253 +# Library General Public License for more details.
23255 +# You should have received a copy of the GNU Library General Public
23256 +# License along with this program; if not, write to the Free Software
23257 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23260 +# Written by Bruno Haible <haible@clisp.cons.org>.
23262 +/^# Packages using this file: / {
23263 + s/# Packages using this file://
23265 + s/^/# Packages using this file:/
23268 +++ lxpanel-0.5.6/intl/localcharset.h
23270 +/* Determine a canonical name for the current locale's character encoding.
23271 + Copyright (C) 2000-2003 Free Software Foundation, Inc.
23272 + This file is part of the GNU CHARSET Library.
23274 + This program is free software; you can redistribute it and/or modify it
23275 + under the terms of the GNU Library General Public License as published
23276 + by the Free Software Foundation; either version 2, or (at your option)
23277 + any later version.
23279 + This program is distributed in the hope that it will be useful,
23280 + but WITHOUT ANY WARRANTY; without even the implied warranty of
23281 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23282 + Library General Public License for more details.
23284 + You should have received a copy of the GNU Library General Public
23285 + License along with this program; if not, write to the Free Software
23286 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23289 +#ifndef _LOCALCHARSET_H
23290 +#define _LOCALCHARSET_H
23293 +#ifdef __cplusplus
23298 +/* Determine the current locale's character encoding, and canonicalize it
23299 + into one of the canonical names listed in config.charset.
23300 + The result must not be freed; it is statically allocated.
23301 + If the canonical name cannot be determined, the result is a non-canonical
23303 +extern const char * locale_charset (void);
23306 +#ifdef __cplusplus
23311 +#endif /* _LOCALCHARSET_H */
23313 +++ lxpanel-0.5.6/intl/printf-args.h
23315 +/* Decomposed printf argument list.
23316 + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc.
23318 + This program is free software; you can redistribute it and/or modify it
23319 + under the terms of the GNU Library General Public License as published
23320 + by the Free Software Foundation; either version 2, or (at your option)
23321 + any later version.
23323 + This program is distributed in the hope that it will be useful,
23324 + but WITHOUT ANY WARRANTY; without even the implied warranty of
23325 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23326 + Library General Public License for more details.
23328 + You should have received a copy of the GNU Library General Public
23329 + License along with this program; if not, write to the Free Software
23330 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23333 +#ifndef _PRINTF_ARGS_H
23334 +#define _PRINTF_ARGS_H
23337 +#include <stddef.h>
23339 +/* Get wchar_t. */
23340 +#ifdef HAVE_WCHAR_T
23341 +# include <stddef.h>
23345 +#ifdef HAVE_WINT_T
23346 +# include <wchar.h>
23349 +/* Get va_list. */
23350 +#include <stdarg.h>
23353 +/* Argument types */
23365 +#ifdef HAVE_LONG_LONG
23366 + TYPE_LONGLONGINT,
23367 + TYPE_ULONGLONGINT,
23370 +#ifdef HAVE_LONG_DOUBLE
23374 +#ifdef HAVE_WINT_T
23378 +#ifdef HAVE_WCHAR_T
23379 + TYPE_WIDE_STRING,
23382 + TYPE_COUNT_SCHAR_POINTER,
23383 + TYPE_COUNT_SHORT_POINTER,
23384 + TYPE_COUNT_INT_POINTER,
23385 + TYPE_COUNT_LONGINT_POINTER
23386 +#ifdef HAVE_LONG_LONG
23387 +, TYPE_COUNT_LONGLONGINT_POINTER
23391 +/* Polymorphic argument */
23397 + signed char a_schar;
23398 + unsigned char a_uchar;
23400 + unsigned short a_ushort;
23402 + unsigned int a_uint;
23403 + long int a_longint;
23404 + unsigned long int a_ulongint;
23405 +#ifdef HAVE_LONG_LONG
23406 + long long int a_longlongint;
23407 + unsigned long long int a_ulonglongint;
23411 +#ifdef HAVE_LONG_DOUBLE
23412 + long double a_longdouble;
23415 +#ifdef HAVE_WINT_T
23416 + wint_t a_wide_char;
23418 + const char* a_string;
23419 +#ifdef HAVE_WCHAR_T
23420 + const wchar_t* a_wide_string;
23423 + signed char * a_count_schar_pointer;
23424 + short * a_count_short_pointer;
23425 + int * a_count_int_pointer;
23426 + long int * a_count_longint_pointer;
23427 +#ifdef HAVE_LONG_LONG
23428 + long long int * a_count_longlongint_pointer;
23443 +/* Fetch the arguments, putting them into a. */
23449 +int printf_fetchargs (va_list args, arguments *a);
23451 +#endif /* _PRINTF_ARGS_H */
23453 +++ lxpanel-0.5.6/intl/plural-exp.h
23455 +/* Expression parsing and evaluation for plural form selection.
23456 + Copyright (C) 2000-2003 Free Software Foundation, Inc.
23457 + Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
23459 + This program is free software; you can redistribute it and/or modify it
23460 + under the terms of the GNU Library General Public License as published
23461 + by the Free Software Foundation; either version 2, or (at your option)
23462 + any later version.
23464 + This program is distributed in the hope that it will be useful,
23465 + but WITHOUT ANY WARRANTY; without even the implied warranty of
23466 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23467 + Library General Public License for more details.
23469 + You should have received a copy of the GNU Library General Public
23470 + License along with this program; if not, write to the Free Software
23471 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23474 +#ifndef _PLURAL_EXP_H
23475 +#define _PLURAL_EXP_H
23477 +#ifndef internal_function
23478 +# define internal_function
23481 +#ifndef attribute_hidden
23482 +# define attribute_hidden
23486 +/* This is the representation of the expressions to determine the
23490 + int nargs; /* Number of arguments. */
23493 + /* Without arguments: */
23494 + var, /* The variable "n". */
23495 + num, /* Decimal number. */
23496 + /* Unary operators: */
23497 + lnot, /* Logical NOT. */
23498 + /* Binary operators: */
23499 + mult, /* Multiplication. */
23500 + divide, /* Division. */
23501 + module, /* Modulo operation. */
23502 + plus, /* Addition. */
23503 + minus, /* Subtraction. */
23504 + less_than, /* Comparison. */
23505 + greater_than, /* Comparison. */
23506 + less_or_equal, /* Comparison. */
23507 + greater_or_equal, /* Comparison. */
23508 + equal, /* Comparison for equality. */
23509 + not_equal, /* Comparison for inequality. */
23510 + land, /* Logical AND. */
23511 + lor, /* Logical OR. */
23512 + /* Ternary operators: */
23513 + qmop /* Question mark operator. */
23517 + unsigned long int num; /* Number value for `num'. */
23518 + struct expression *args[3]; /* Up to three arguments. */
23522 +/* This is the data structure to pass information to the parser and get
23523 + the result in a thread-safe way. */
23527 + struct expression *res;
23531 +/* Names for the libintl functions are a problem. This source code is used
23532 + 1. in the GNU C Library library,
23533 + 2. in the GNU libintl library,
23534 + 3. in the GNU gettext tools.
23535 + The function names in each situation must be different, to allow for
23536 + binary incompatible changes in 'struct expression'. Furthermore,
23537 + 1. in the GNU C Library library, the names have a __ prefix,
23538 + 2.+3. in the GNU libintl library and in the GNU gettext tools, the names
23539 + must follow ANSI C and not start with __.
23540 + So we have to distinguish the three cases. */
23542 +# define FREE_EXPRESSION __gettext_free_exp
23543 +# define PLURAL_PARSE __gettextparse
23544 +# define GERMANIC_PLURAL __gettext_germanic_plural
23545 +# define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural
23546 +#elif defined (IN_LIBINTL)
23547 +# define FREE_EXPRESSION libintl_gettext_free_exp
23548 +# define PLURAL_PARSE libintl_gettextparse
23549 +# define GERMANIC_PLURAL libintl_gettext_germanic_plural
23550 +# define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural
23552 +# define FREE_EXPRESSION free_plural_expression
23553 +# define PLURAL_PARSE parse_plural_expression
23554 +# define GERMANIC_PLURAL germanic_plural
23555 +# define EXTRACT_PLURAL_EXPRESSION extract_plural_expression
23558 +extern void FREE_EXPRESSION (struct expression *exp)
23559 + internal_function;
23560 +extern int PLURAL_PARSE (void *arg);
23561 +extern struct expression GERMANIC_PLURAL attribute_hidden;
23562 +extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry,
23563 + struct expression **pluralp,
23564 + unsigned long int *npluralsp)
23565 + internal_function;
23567 +#if !defined (_LIBC) && !defined (IN_LIBINTL)
23568 +extern unsigned long int plural_eval (struct expression *pexp,
23569 + unsigned long int n);
23572 +#endif /* _PLURAL_EXP_H */
23574 +++ lxpanel-0.5.6/intl/l10nflist.c
23576 +/* Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
23577 + Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
23579 + This program is free software; you can redistribute it and/or modify it
23580 + under the terms of the GNU Library General Public License as published
23581 + by the Free Software Foundation; either version 2, or (at your option)
23582 + any later version.
23584 + This program is distributed in the hope that it will be useful,
23585 + but WITHOUT ANY WARRANTY; without even the implied warranty of
23586 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23587 + Library General Public License for more details.
23589 + You should have received a copy of the GNU Library General Public
23590 + License along with this program; if not, write to the Free Software
23591 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23594 +/* Tell glibc's <string.h> to provide a prototype for stpcpy().
23595 + This must come before <config.h> because <config.h> may include
23596 + <features.h>, and once <features.h> has been included, it's too late. */
23597 +#ifndef _GNU_SOURCE
23598 +# define _GNU_SOURCE 1
23601 +#ifdef HAVE_CONFIG_H
23602 +# include <config.h>
23605 +#include <string.h>
23607 +#if defined _LIBC || defined HAVE_ARGZ_H
23608 +# include <argz.h>
23610 +#include <ctype.h>
23611 +#include <sys/types.h>
23612 +#include <stdlib.h>
23614 +#include "loadinfo.h"
23616 +/* On some strange systems still no definition of NULL is found. Sigh! */
23618 +# if defined __STDC__ && __STDC__
23619 +# define NULL ((void *) 0)
23625 +/* @@ end of prolog @@ */
23628 +/* Rename the non ANSI C functions. This is required by the standard
23629 + because some ANSI C functions will require linking with this object
23630 + file and the name space must not be polluted. */
23632 +# define stpcpy(dest, src) __stpcpy(dest, src)
23635 +# ifndef HAVE_STPCPY
23636 +static char *stpcpy (char *dest, const char *src);
23640 +/* Pathname support.
23641 + ISSLASH(C) tests whether C is a directory separator character.
23642 + IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not,
23643 + it may be concatenated to a directory pathname.
23645 +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
23646 + /* Win32, OS/2, DOS */
23647 +# define ISSLASH(C) ((C) == '/' || (C) == '\\')
23648 +# define HAS_DEVICE(P) \
23649 + ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \
23650 + && (P)[1] == ':')
23651 +# define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P))
23654 +# define ISSLASH(C) ((C) == '/')
23655 +# define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0])
23658 +/* Define function which are usually not available. */
23660 +#if !defined _LIBC && !defined HAVE___ARGZ_COUNT
23661 +/* Returns the number of strings in ARGZ. */
23663 +argz_count__ (const char *argz, size_t len)
23665 + size_t count = 0;
23668 + size_t part_len = strlen (argz);
23669 + argz += part_len + 1;
23670 + len -= part_len + 1;
23675 +# undef __argz_count
23676 +# define __argz_count(argz, len) argz_count__ (argz, len)
23679 +# define __argz_count(argz, len) INTUSE(__argz_count) (argz, len)
23681 +#endif /* !_LIBC && !HAVE___ARGZ_COUNT */
23683 +#if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY
23684 +/* Make '\0' separated arg vector ARGZ printable by converting all the '\0's
23685 + except the last into the character SEP. */
23687 +argz_stringify__ (char *argz, size_t len, int sep)
23691 + size_t part_len = strlen (argz);
23692 + argz += part_len;
23693 + len -= part_len + 1;
23698 +# undef __argz_stringify
23699 +# define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep)
23702 +# define __argz_stringify(argz, len, sep) \
23703 + INTUSE(__argz_stringify) (argz, len, sep)
23705 +#endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */
23707 +#if !defined _LIBC && !defined HAVE___ARGZ_NEXT
23709 +argz_next__ (char *argz, size_t argz_len, const char *entry)
23713 + if (entry < argz + argz_len)
23714 + entry = strchr (entry, '\0') + 1;
23716 + return entry >= argz + argz_len ? NULL : (char *) entry;
23719 + if (argz_len > 0)
23724 +# undef __argz_next
23725 +# define __argz_next(argz, len, entry) argz_next__ (argz, len, entry)
23726 +#endif /* !_LIBC && !HAVE___ARGZ_NEXT */
23729 +/* Return number of bits set in X. */
23733 + /* We assume that no more than 16 bits are used. */
23734 + x = ((x & ~0x5555) >> 1) + (x & 0x5555);
23735 + x = ((x & ~0x3333) >> 2) + (x & 0x3333);
23736 + x = ((x >> 4) + x) & 0x0f0f;
23737 + x = ((x >> 8) + x) & 0xff;
23743 +struct loaded_l10nfile *
23744 +_nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list,
23745 + const char *dirlist, size_t dirlist_len,
23746 + int mask, const char *language, const char *territory,
23747 + const char *codeset, const char *normalized_codeset,
23748 + const char *modifier, const char *special,
23749 + const char *sponsor, const char *revision,
23750 + const char *filename, int do_allocate)
23752 + char *abs_filename;
23753 + struct loaded_l10nfile **lastp;
23754 + struct loaded_l10nfile *retval;
23756 + size_t dirlist_count;
23760 + /* If LANGUAGE contains an absolute directory specification, we ignore
23762 + if (IS_ABSOLUTE_PATH (language))
23765 + /* Allocate room for the full file name. */
23766 + abs_filename = (char *) malloc (dirlist_len
23767 + + strlen (language)
23768 + + ((mask & TERRITORY) != 0
23769 + ? strlen (territory) + 1 : 0)
23770 + + ((mask & XPG_CODESET) != 0
23771 + ? strlen (codeset) + 1 : 0)
23772 + + ((mask & XPG_NORM_CODESET) != 0
23773 + ? strlen (normalized_codeset) + 1 : 0)
23774 + + (((mask & XPG_MODIFIER) != 0
23775 + || (mask & CEN_AUDIENCE) != 0)
23776 + ? strlen (modifier) + 1 : 0)
23777 + + ((mask & CEN_SPECIAL) != 0
23778 + ? strlen (special) + 1 : 0)
23779 + + (((mask & CEN_SPONSOR) != 0
23780 + || (mask & CEN_REVISION) != 0)
23781 + ? (1 + ((mask & CEN_SPONSOR) != 0
23782 + ? strlen (sponsor) : 0)
23783 + + ((mask & CEN_REVISION) != 0
23784 + ? strlen (revision) + 1 : 0)) : 0)
23785 + + 1 + strlen (filename) + 1);
23787 + if (abs_filename == NULL)
23790 + /* Construct file name. */
23791 + cp = abs_filename;
23792 + if (dirlist_len > 0)
23794 + memcpy (cp, dirlist, dirlist_len);
23795 + __argz_stringify (cp, dirlist_len, PATH_SEPARATOR);
23796 + cp += dirlist_len;
23800 + cp = stpcpy (cp, language);
23802 + if ((mask & TERRITORY) != 0)
23805 + cp = stpcpy (cp, territory);
23807 + if ((mask & XPG_CODESET) != 0)
23810 + cp = stpcpy (cp, codeset);
23812 + if ((mask & XPG_NORM_CODESET) != 0)
23815 + cp = stpcpy (cp, normalized_codeset);
23817 + if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0)
23819 + /* This component can be part of both syntaces but has different
23820 + leading characters. For CEN we use `+', else `@'. */
23821 + *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@';
23822 + cp = stpcpy (cp, modifier);
23824 + if ((mask & CEN_SPECIAL) != 0)
23827 + cp = stpcpy (cp, special);
23829 + if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0)
23832 + if ((mask & CEN_SPONSOR) != 0)
23833 + cp = stpcpy (cp, sponsor);
23834 + if ((mask & CEN_REVISION) != 0)
23837 + cp = stpcpy (cp, revision);
23842 + stpcpy (cp, filename);
23844 + /* Look in list of already loaded domains whether it is already
23846 + lastp = l10nfile_list;
23847 + for (retval = *l10nfile_list; retval != NULL; retval = retval->next)
23848 + if (retval->filename != NULL)
23850 + int compare = strcmp (retval->filename, abs_filename);
23851 + if (compare == 0)
23852 + /* We found it! */
23856 + /* It's not in the list. */
23861 + lastp = &retval->next;
23864 + if (retval != NULL || do_allocate == 0)
23866 + free (abs_filename);
23870 + dirlist_count = (dirlist_len > 0 ? __argz_count (dirlist, dirlist_len) : 1);
23872 + /* Allocate a new loaded_l10nfile. */
23874 + (struct loaded_l10nfile *)
23875 + malloc (sizeof (*retval)
23876 + + (((dirlist_count << pop (mask)) + (dirlist_count > 1 ? 1 : 0))
23877 + * sizeof (struct loaded_l10nfile *)));
23878 + if (retval == NULL)
23881 + retval->filename = abs_filename;
23883 + /* We set retval->data to NULL here; it is filled in later.
23884 + Setting retval->decided to 1 here means that retval does not
23885 + correspond to a real file (dirlist_count > 1) or is not worth
23886 + looking up (if an unnormalized codeset was specified). */
23887 + retval->decided = (dirlist_count > 1
23888 + || ((mask & XPG_CODESET) != 0
23889 + && (mask & XPG_NORM_CODESET) != 0));
23890 + retval->data = NULL;
23892 + retval->next = *lastp;
23896 + /* Recurse to fill the inheritance list of RETVAL.
23897 + If the DIRLIST is a real list (i.e. DIRLIST_COUNT > 1), the RETVAL
23898 + entry does not correspond to a real file; retval->filename contains
23899 + colons. In this case we loop across all elements of DIRLIST and
23900 + across all bit patterns dominated by MASK.
23901 + If the DIRLIST is a single directory or entirely redundant (i.e.
23902 + DIRLIST_COUNT == 1), we loop across all bit patterns dominated by
23903 + MASK, excluding MASK itself.
23904 + In either case, we loop down from MASK to 0. This has the effect
23905 + that the extra bits in the locale name are dropped in this order:
23906 + first the modifier, then the territory, then the codeset, then the
23907 + normalized_codeset. */
23908 + for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt)
23909 + if ((cnt & ~mask) == 0
23910 + && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0)
23911 + && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0))
23913 + if (dirlist_count > 1)
23915 + /* Iterate over all elements of the DIRLIST. */
23916 + char *dir = NULL;
23918 + while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir))
23920 + retval->successor[entries++]
23921 + = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1,
23922 + cnt, language, territory, codeset,
23923 + normalized_codeset, modifier, special,
23924 + sponsor, revision, filename, 1);
23927 + retval->successor[entries++]
23928 + = _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len,
23929 + cnt, language, territory, codeset,
23930 + normalized_codeset, modifier, special,
23931 + sponsor, revision, filename, 1);
23933 + retval->successor[entries] = NULL;
23938 +/* Normalize codeset name. There is no standard for the codeset
23939 + names. Normalization allows the user to use any of the common
23940 + names. The return value is dynamically allocated and has to be
23941 + freed by the caller. */
23943 +_nl_normalize_codeset (const char *codeset, size_t name_len)
23946 + int only_digit = 1;
23951 + for (cnt = 0; cnt < name_len; ++cnt)
23952 + if (isalnum ((unsigned char) codeset[cnt]))
23956 + if (isalpha ((unsigned char) codeset[cnt]))
23960 + retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1);
23962 + if (retval != NULL)
23965 + wp = stpcpy (retval, "iso");
23969 + for (cnt = 0; cnt < name_len; ++cnt)
23970 + if (isalpha ((unsigned char) codeset[cnt]))
23971 + *wp++ = tolower ((unsigned char) codeset[cnt]);
23972 + else if (isdigit ((unsigned char) codeset[cnt]))
23973 + *wp++ = codeset[cnt];
23978 + return (const char *) retval;
23982 +/* @@ begin of epilog @@ */
23984 +/* We don't want libintl.a to depend on any other library. So we
23985 + avoid the non-standard function stpcpy. In GNU C Library this
23986 + function is available, though. Also allow the symbol HAVE_STPCPY
23987 + to be defined. */
23988 +#if !_LIBC && !HAVE_STPCPY
23990 +stpcpy (char *dest, const char *src)
23992 + while ((*dest++ = *src++) != '\0')
23993 + /* Do nothing. */ ;
23998 +++ lxpanel-0.5.6/intl/relocatable.h
24000 +/* Provide relocatable packages.
24001 + Copyright (C) 2003 Free Software Foundation, Inc.
24002 + Written by Bruno Haible <bruno@clisp.org>, 2003.
24004 + This program is free software; you can redistribute it and/or modify it
24005 + under the terms of the GNU Library General Public License as published
24006 + by the Free Software Foundation; either version 2, or (at your option)
24007 + any later version.
24009 + This program is distributed in the hope that it will be useful,
24010 + but WITHOUT ANY WARRANTY; without even the implied warranty of
24011 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24012 + Library General Public License for more details.
24014 + You should have received a copy of the GNU Library General Public
24015 + License along with this program; if not, write to the Free Software
24016 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
24019 +#ifndef _RELOCATABLE_H
24020 +#define _RELOCATABLE_H
24022 +#ifdef __cplusplus
24027 +/* This can be enabled through the configure --enable-relocatable option. */
24028 +#if ENABLE_RELOCATABLE
24030 +/* When building a DLL, we must export some functions. Note that because
24031 + this is a private .h file, we don't need to use __declspec(dllimport)
24033 +#if defined _MSC_VER && BUILDING_DLL
24034 +# define RELOCATABLE_DLL_EXPORTED __declspec(dllexport)
24036 +# define RELOCATABLE_DLL_EXPORTED
24039 +/* Sets the original and the current installation prefix of the package.
24040 + Relocation simply replaces a pathname starting with the original prefix
24041 + by the corresponding pathname with the current prefix instead. Both
24042 + prefixes should be directory names without trailing slash (i.e. use ""
24043 + instead of "/"). */
24044 +extern RELOCATABLE_DLL_EXPORTED void
24045 + set_relocation_prefix (const char *orig_prefix,
24046 + const char *curr_prefix);
24048 +/* Returns the pathname, relocated according to the current installation
24050 +extern const char * relocate (const char *pathname);
24052 +/* Memory management: relocate() leaks memory, because it has to construct
24053 + a fresh pathname. If this is a problem because your program calls
24054 + relocate() frequently, think about caching the result. */
24056 +/* Convenience function:
24057 + Computes the current installation prefix, based on the original
24058 + installation prefix, the original installation directory of a particular
24059 + file, and the current pathname of this file. Returns NULL upon failure. */
24060 +extern const char * compute_curr_prefix (const char *orig_installprefix,
24061 + const char *orig_installdir,
24062 + const char *curr_pathname);
24066 +/* By default, we use the hardwired pathnames. */
24067 +#define relocate(pathname) (pathname)
24072 +#ifdef __cplusplus
24076 +#endif /* _RELOCATABLE_H */
24078 +++ lxpanel-0.5.6/intl/localcharset.c
24080 +/* Determine a canonical name for the current locale's character encoding.
24082 + Copyright (C) 2000-2003 Free Software Foundation, Inc.
24084 + This program is free software; you can redistribute it and/or modify it
24085 + under the terms of the GNU Library General Public License as published
24086 + by the Free Software Foundation; either version 2, or (at your option)
24087 + any later version.
24089 + This program is distributed in the hope that it will be useful,
24090 + but WITHOUT ANY WARRANTY; without even the implied warranty of
24091 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24092 + Library General Public License for more details.
24094 + You should have received a copy of the GNU Library General Public
24095 + License along with this program; if not, write to the Free Software
24096 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
24099 +/* Written by Bruno Haible <bruno@clisp.org>. */
24101 +#ifdef HAVE_CONFIG_H
24102 +# include <config.h>
24105 +/* Specification. */
24106 +#include "localcharset.h"
24109 +# include <stddef.h>
24112 +#include <stdio.h>
24114 +# include <string.h>
24116 +# include <strings.h>
24119 +# include <stdlib.h>
24122 +#if defined _WIN32 || defined __WIN32__
24123 +# undef WIN32 /* avoid warning on mingw32 */
24127 +#if defined __EMX__
24128 +/* Assume EMX program runs on OS/2, even if compiled under DOS. */
24132 +#if !defined WIN32
24133 +# if HAVE_LANGINFO_CODESET
24134 +# include <langinfo.h>
24136 +# if HAVE_SETLOCALE
24137 +# include <locale.h>
24140 +#elif defined WIN32
24141 +# define WIN32_LEAN_AND_MEAN
24142 +# include <windows.h>
24149 +#if ENABLE_RELOCATABLE
24150 +# include "relocatable.h"
24152 +# define relocate(pathname) (pathname)
24155 +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
24156 + /* Win32, OS/2, DOS */
24157 +# define ISSLASH(C) ((C) == '/' || (C) == '\\')
24160 +#ifndef DIRECTORY_SEPARATOR
24161 +# define DIRECTORY_SEPARATOR '/'
24165 +# define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR)
24168 +#if HAVE_DECL_GETC_UNLOCKED
24170 +# define getc getc_unlocked
24173 +/* The following static variable is declared 'volatile' to avoid a
24174 + possible multithread problem in the function get_charset_aliases. If we
24175 + are running in a threaded environment, and if two threads initialize
24176 + 'charset_aliases' simultaneously, both will produce the same value,
24177 + and everything will be ok if the two assignments to 'charset_aliases'
24178 + are atomic. But I don't know what will happen if the two assignments mix. */
24180 +# define volatile /* empty */
24182 +/* Pointer to the contents of the charset.alias file, if it has already been
24183 + read, else NULL. Its format is:
24184 + ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */
24185 +static const char * volatile charset_aliases;
24187 +/* Return a pointer to the contents of the charset.alias file. */
24188 +static const char *
24189 +get_charset_aliases ()
24193 + cp = charset_aliases;
24196 +#if !(defined VMS || defined WIN32)
24198 + const char *dir = relocate (LIBDIR);
24199 + const char *base = "charset.alias";
24202 + /* Concatenate dir and base into freshly allocated file_name. */
24204 + size_t dir_len = strlen (dir);
24205 + size_t base_len = strlen (base);
24206 + int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1]));
24207 + file_name = (char *) malloc (dir_len + add_slash + base_len + 1);
24208 + if (file_name != NULL)
24210 + memcpy (file_name, dir, dir_len);
24212 + file_name[dir_len] = DIRECTORY_SEPARATOR;
24213 + memcpy (file_name + dir_len + add_slash, base, base_len + 1);
24217 + if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL)
24218 + /* Out of memory or file not found, treat it as empty. */
24222 + /* Parse the file's contents. */
24226 + char *res_ptr = NULL;
24227 + size_t res_size = 0;
24235 + if (c == '\n' || c == ' ' || c == '\t')
24239 + /* Skip comment, to end of line. */
24242 + while (!(c == EOF || c == '\n'));
24248 + if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
24250 + l1 = strlen (buf1);
24251 + l2 = strlen (buf2);
24252 + if (res_size == 0)
24254 + res_size = l1 + 1 + l2 + 1;
24255 + res_ptr = (char *) malloc (res_size + 1);
24259 + res_size += l1 + 1 + l2 + 1;
24260 + res_ptr = (char *) realloc (res_ptr, res_size + 1);
24262 + if (res_ptr == NULL)
24264 + /* Out of memory. */
24268 + strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
24269 + strcpy (res_ptr + res_size - (l2 + 1), buf2);
24272 + if (res_size == 0)
24276 + *(res_ptr + res_size) = '\0';
24281 + if (file_name != NULL)
24282 + free (file_name);
24287 + /* To avoid the troubles of an extra file charset.alias_vms in the
24288 + sources of many GNU packages, simply inline the aliases here. */
24289 + /* The list of encodings is taken from the OpenVMS 7.3-1 documentation
24290 + "Compaq C Run-Time Library Reference Manual for OpenVMS systems"
24291 + section 10.7 "Handling Different Character Sets". */
24292 + cp = "ISO8859-1" "\0" "ISO-8859-1" "\0"
24293 + "ISO8859-2" "\0" "ISO-8859-2" "\0"
24294 + "ISO8859-5" "\0" "ISO-8859-5" "\0"
24295 + "ISO8859-7" "\0" "ISO-8859-7" "\0"
24296 + "ISO8859-8" "\0" "ISO-8859-8" "\0"
24297 + "ISO8859-9" "\0" "ISO-8859-9" "\0"
24299 + "eucJP" "\0" "EUC-JP" "\0"
24300 + "SJIS" "\0" "SHIFT_JIS" "\0"
24301 + "DECKANJI" "\0" "DEC-KANJI" "\0"
24302 + "SDECKANJI" "\0" "EUC-JP" "\0"
24304 + "eucTW" "\0" "EUC-TW" "\0"
24305 + "DECHANYU" "\0" "DEC-HANYU" "\0"
24306 + "DECHANZI" "\0" "GB2312" "\0"
24308 + "DECKOREAN" "\0" "EUC-KR" "\0";
24311 +# if defined WIN32
24312 + /* To avoid the troubles of installing a separate file in the same
24313 + directory as the DLL and of retrieving the DLL's directory at
24314 + runtime, simply inline the aliases here. */
24316 + cp = "CP936" "\0" "GBK" "\0"
24317 + "CP1361" "\0" "JOHAB" "\0"
24318 + "CP20127" "\0" "ASCII" "\0"
24319 + "CP20866" "\0" "KOI8-R" "\0"
24320 + "CP21866" "\0" "KOI8-RU" "\0"
24321 + "CP28591" "\0" "ISO-8859-1" "\0"
24322 + "CP28592" "\0" "ISO-8859-2" "\0"
24323 + "CP28593" "\0" "ISO-8859-3" "\0"
24324 + "CP28594" "\0" "ISO-8859-4" "\0"
24325 + "CP28595" "\0" "ISO-8859-5" "\0"
24326 + "CP28596" "\0" "ISO-8859-6" "\0"
24327 + "CP28597" "\0" "ISO-8859-7" "\0"
24328 + "CP28598" "\0" "ISO-8859-8" "\0"
24329 + "CP28599" "\0" "ISO-8859-9" "\0"
24330 + "CP28605" "\0" "ISO-8859-15" "\0";
24334 + charset_aliases = cp;
24340 +/* Determine the current locale's character encoding, and canonicalize it
24341 + into one of the canonical names listed in config.charset.
24342 + The result must not be freed; it is statically allocated.
24343 + If the canonical name cannot be determined, the result is a non-canonical
24352 + const char *codeset;
24353 + const char *aliases;
24355 +#if !(defined WIN32 || defined OS2)
24357 +# if HAVE_LANGINFO_CODESET
24359 + /* Most systems support nl_langinfo (CODESET) nowadays. */
24360 + codeset = nl_langinfo (CODESET);
24364 + /* On old systems which lack it, use setlocale or getenv. */
24365 + const char *locale = NULL;
24367 + /* But most old systems don't have a complete set of locales. Some
24368 + (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't
24369 + use setlocale here; it would return "C" when it doesn't support the
24370 + locale name the user has set. */
24371 +# if HAVE_SETLOCALE && 0
24372 + locale = setlocale (LC_CTYPE, NULL);
24374 + if (locale == NULL || locale[0] == '\0')
24376 + locale = getenv ("LC_ALL");
24377 + if (locale == NULL || locale[0] == '\0')
24379 + locale = getenv ("LC_CTYPE");
24380 + if (locale == NULL || locale[0] == '\0')
24381 + locale = getenv ("LANG");
24385 + /* On some old systems, one used to set locale = "iso8859_1". On others,
24386 + you set it to "language_COUNTRY.charset". In any case, we resolve it
24387 + through the charset.alias file. */
24388 + codeset = locale;
24392 +#elif defined WIN32
24394 + static char buf[2 + 10 + 1];
24396 + /* Woe32 has a function returning the locale's codepage as a number. */
24397 + sprintf (buf, "CP%u", GetACP ());
24402 + const char *locale;
24403 + static char buf[2 + 10 + 1];
24407 + /* Allow user to override the codeset, as set in the operating system,
24408 + with standard language environment variables. */
24409 + locale = getenv ("LC_ALL");
24410 + if (locale == NULL || locale[0] == '\0')
24412 + locale = getenv ("LC_CTYPE");
24413 + if (locale == NULL || locale[0] == '\0')
24414 + locale = getenv ("LANG");
24416 + if (locale != NULL && locale[0] != '\0')
24418 + /* If the locale name contains an encoding after the dot, return it. */
24419 + const char *dot = strchr (locale, '.');
24423 + const char *modifier;
24426 + /* Look for the possible @... trailer and remove it, if any. */
24427 + modifier = strchr (dot, '@');
24428 + if (modifier == NULL)
24430 + if (modifier - dot < sizeof (buf))
24432 + memcpy (buf, dot, modifier - dot);
24433 + buf [modifier - dot] = '\0';
24438 + /* Resolve through the charset.alias file. */
24439 + codeset = locale;
24443 + /* OS/2 has a function returning the locale's codepage as a number. */
24444 + if (DosQueryCp (sizeof (cp), cp, &cplen))
24448 + sprintf (buf, "CP%u", cp[0]);
24455 + if (codeset == NULL)
24456 + /* The canonical name cannot be determined. */
24459 + /* Resolve alias. */
24460 + for (aliases = get_charset_aliases ();
24461 + *aliases != '\0';
24462 + aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
24463 + if (strcmp (codeset, aliases) == 0
24464 + || (aliases[0] == '*' && aliases[1] == '\0'))
24466 + codeset = aliases + strlen (aliases) + 1;
24470 + /* Don't return an empty string. GNU libc and GNU libiconv interpret
24471 + the empty string as denoting "the locale's character encoding",
24472 + thus GNU libiconv would call this function a second time. */
24473 + if (codeset[0] == '\0')
24474 + codeset = "ASCII";
24479 +++ lxpanel-0.5.6/intl/printf.c
24481 +/* Formatted output to strings, using POSIX/XSI format strings with positions.
24482 + Copyright (C) 2003 Free Software Foundation, Inc.
24483 + Written by Bruno Haible <bruno@clisp.org>, 2003.
24485 + This program is free software; you can redistribute it and/or modify it
24486 + under the terms of the GNU Library General Public License as published
24487 + by the Free Software Foundation; either version 2, or (at your option)
24488 + any later version.
24490 + This program is distributed in the hope that it will be useful,
24491 + but WITHOUT ANY WARRANTY; without even the implied warranty of
24492 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24493 + Library General Public License for more details.
24495 + You should have received a copy of the GNU Library General Public
24496 + License along with this program; if not, write to the Free Software
24497 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
24500 +#ifdef HAVE_CONFIG_H
24501 +# include <config.h>
24505 +# define alloca __builtin_alloca
24506 +# define HAVE_ALLOCA 1
24509 +# include <malloc.h>
24510 +# define alloca _alloca
24512 +# if defined HAVE_ALLOCA_H || defined _LIBC
24513 +# include <alloca.h>
24526 +#include <stdio.h>
24528 +#if !HAVE_POSIX_PRINTF
24530 +#include <stdlib.h>
24531 +#include <string.h>
24533 +/* When building a DLL, we must export some functions. Note that because
24534 + the functions are only defined for binary backward compatibility, we
24535 + don't need to use __declspec(dllimport) in any case. */
24536 +#if defined _MSC_VER && BUILDING_DLL
24537 +# define DLL_EXPORTED __declspec(dllexport)
24539 +# define DLL_EXPORTED
24542 +#define STATIC static
24544 +/* Define auxiliary functions declared in "printf-args.h". */
24545 +#include "printf-args.c"
24547 +/* Define auxiliary functions declared in "printf-parse.h". */
24548 +#include "printf-parse.c"
24550 +/* Define functions declared in "vasnprintf.h". */
24551 +#define vasnprintf libintl_vasnprintf
24552 +#include "vasnprintf.c"
24553 +#if 0 /* not needed */
24554 +#define asnprintf libintl_asnprintf
24555 +#include "asnprintf.c"
24560 +libintl_vfprintf (FILE *stream, const char *format, va_list args)
24562 + if (strchr (format, '$') == NULL)
24563 + return vfprintf (stream, format, args);
24567 + char *result = libintl_vasnprintf (NULL, &length, format, args);
24569 + if (result != NULL)
24571 + if (fwrite (result, 1, length, stream) == length)
24581 +libintl_fprintf (FILE *stream, const char *format, ...)
24586 + va_start (args, format);
24587 + retval = libintl_vfprintf (stream, format, args);
24594 +libintl_vprintf (const char *format, va_list args)
24596 + return libintl_vfprintf (stdout, format, args);
24601 +libintl_printf (const char *format, ...)
24606 + va_start (args, format);
24607 + retval = libintl_vprintf (format, args);
24614 +libintl_vsprintf (char *resultbuf, const char *format, va_list args)
24616 + if (strchr (format, '$') == NULL)
24617 + return vsprintf (resultbuf, format, args);
24620 + size_t length = (size_t) ~0 / (4 * sizeof (char));
24621 + char *result = libintl_vasnprintf (resultbuf, &length, format, args);
24622 + if (result != resultbuf)
24634 +libintl_sprintf (char *resultbuf, const char *format, ...)
24639 + va_start (args, format);
24640 + retval = libintl_vsprintf (resultbuf, format, args);
24647 +# if HAVE_DECL__SNPRINTF
24649 +# define system_vsnprintf _vsnprintf
24652 +# define system_vsnprintf vsnprintf
24657 +libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args)
24659 + if (strchr (format, '$') == NULL)
24660 + return system_vsnprintf (resultbuf, length, format, args);
24663 + size_t maxlength = length;
24664 + char *result = libintl_vasnprintf (resultbuf, &length, format, args);
24665 + if (result != resultbuf)
24667 + if (maxlength > 0)
24669 + if (length < maxlength)
24671 + memcpy (resultbuf, result, maxlength - 1);
24672 + resultbuf[maxlength - 1] = '\0';
24684 +libintl_snprintf (char *resultbuf, size_t length, const char *format, ...)
24689 + va_start (args, format);
24690 + retval = libintl_vsnprintf (resultbuf, length, format, args);
24701 +libintl_vasprintf (char **resultp, const char *format, va_list args)
24704 + char *result = libintl_vasnprintf (NULL, &length, format, args);
24705 + if (result == NULL)
24707 + *resultp = result;
24713 +libintl_asprintf (char **resultp, const char *format, ...)
24718 + va_start (args, format);
24719 + retval = libintl_vasprintf (resultp, format, args);
24728 +#include <wchar.h>
24730 +#define WIDE_CHAR_VERSION 1
24732 +/* Define auxiliary functions declared in "wprintf-parse.h". */
24733 +#include "printf-parse.c"
24735 +/* Define functions declared in "vasnprintf.h". */
24736 +#define vasnwprintf libintl_vasnwprintf
24737 +#include "vasnprintf.c"
24738 +#if 0 /* not needed */
24739 +#define asnwprintf libintl_asnwprintf
24740 +#include "asnprintf.c"
24743 +# if HAVE_DECL__SNWPRINTF
24745 +# define system_vswprintf _vsnwprintf
24748 +# define system_vswprintf vswprintf
24753 +libintl_vfwprintf (FILE *stream, const wchar_t *format, va_list args)
24755 + if (wcschr (format, '$') == NULL)
24756 + return vfwprintf (stream, format, args);
24760 + wchar_t *result = libintl_vasnwprintf (NULL, &length, format, args);
24762 + if (result != NULL)
24765 + for (i = 0; i < length; i++)
24766 + if (fputwc (result[i], stream) == WEOF)
24778 +libintl_fwprintf (FILE *stream, const wchar_t *format, ...)
24783 + va_start (args, format);
24784 + retval = libintl_vfwprintf (stream, format, args);
24791 +libintl_vwprintf (const wchar_t *format, va_list args)
24793 + return libintl_vfwprintf (stdout, format, args);
24798 +libintl_wprintf (const wchar_t *format, ...)
24803 + va_start (args, format);
24804 + retval = libintl_vwprintf (format, args);
24811 +libintl_vswprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, va_list args)
24813 + if (wcschr (format, '$') == NULL)
24814 + return system_vswprintf (resultbuf, length, format, args);
24817 + size_t maxlength = length;
24818 + wchar_t *result = libintl_vasnwprintf (resultbuf, &length, format, args);
24819 + if (result != resultbuf)
24821 + if (maxlength > 0)
24823 + if (length < maxlength)
24825 + memcpy (resultbuf, result, (maxlength - 1) * sizeof (wchar_t));
24826 + resultbuf[maxlength - 1] = 0;
24838 +libintl_swprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, ...)
24843 + va_start (args, format);
24844 + retval = libintl_vswprintf (resultbuf, length, format, args);
24853 +++ lxpanel-0.5.6/intl/localename.c
24855 +/* Determine the current selected locale.
24856 + Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc.
24858 + This program is free software; you can redistribute it and/or modify it
24859 + under the terms of the GNU Library General Public License as published
24860 + by the Free Software Foundation; either version 2, or (at your option)
24861 + any later version.
24863 + This program is distributed in the hope that it will be useful,
24864 + but WITHOUT ANY WARRANTY; without even the implied warranty of
24865 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24866 + Library General Public License for more details.
24868 + You should have received a copy of the GNU Library General Public
24869 + License along with this program; if not, write to the Free Software
24870 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
24873 +/* Written by Ulrich Drepper <drepper@gnu.org>, 1995. */
24874 +/* Win32 code written by Tor Lillqvist <tml@iki.fi>. */
24876 +#ifdef HAVE_CONFIG_H
24877 +# include <config.h>
24880 +#include <stdlib.h>
24881 +#include <locale.h>
24883 +#if defined _WIN32 || defined __WIN32__
24884 +# undef WIN32 /* avoid warning on mingw32 */
24889 +# define WIN32_LEAN_AND_MEAN
24890 +# include <windows.h>
24891 +/* List of language codes, sorted by value:
24893 + 0x02 LANG_BULGARIAN
24894 + 0x03 LANG_CATALAN
24895 + 0x04 LANG_CHINESE
24900 + 0x09 LANG_ENGLISH
24901 + 0x0a LANG_SPANISH
24902 + 0x0b LANG_FINNISH
24905 + 0x0e LANG_HUNGARIAN
24906 + 0x0f LANG_ICELANDIC
24907 + 0x10 LANG_ITALIAN
24908 + 0x11 LANG_JAPANESE
24911 + 0x14 LANG_NORWEGIAN
24913 + 0x16 LANG_PORTUGUESE
24914 + 0x17 LANG_RHAETO_ROMANCE
24915 + 0x18 LANG_ROMANIAN
24916 + 0x19 LANG_RUSSIAN
24917 + 0x1a LANG_CROATIAN == LANG_SERBIAN
24919 + 0x1c LANG_ALBANIAN
24920 + 0x1d LANG_SWEDISH
24922 + 0x1f LANG_TURKISH
24924 + 0x21 LANG_INDONESIAN
24925 + 0x22 LANG_UKRAINIAN
24926 + 0x23 LANG_BELARUSIAN
24927 + 0x24 LANG_SLOVENIAN
24928 + 0x25 LANG_ESTONIAN
24929 + 0x26 LANG_LATVIAN
24930 + 0x27 LANG_LITHUANIAN
24933 + 0x2a LANG_VIETNAMESE
24934 + 0x2b LANG_ARMENIAN
24937 + 0x2e LANG_SORBIAN
24938 + 0x2f LANG_MACEDONIAN
24945 + 0x36 LANG_AFRIKAANS
24946 + 0x37 LANG_GEORGIAN
24947 + 0x38 LANG_FAEROESE
24949 + 0x3a LANG_MALTESE
24952 + 0x3d LANG_YIDDISH
24956 + 0x41 LANG_SWAHILI
24957 + 0x42 LANG_TURKMEN
24960 + 0x45 LANG_BENGALI
24961 + 0x46 LANG_PUNJABI
24962 + 0x47 LANG_GUJARATI
24966 + 0x4b LANG_KANNADA
24967 + 0x4c LANG_MALAYALAM
24968 + 0x4d LANG_ASSAMESE
24969 + 0x4e LANG_MARATHI
24970 + 0x4f LANG_SANSKRIT
24971 + 0x50 LANG_MONGOLIAN
24972 + 0x51 LANG_TIBETAN
24974 + 0x53 LANG_CAMBODIAN
24976 + 0x55 LANG_BURMESE
24977 + 0x56 LANG_GALICIAN
24978 + 0x57 LANG_KONKANI
24979 + 0x58 LANG_MANIPURI
24982 + 0x5b LANG_SINHALESE
24983 + 0x5c LANG_CHEROKEE
24984 + 0x5d LANG_INUKTITUT
24985 + 0x5e LANG_AMHARIC
24986 + 0x5f LANG_TAMAZIGHT
24987 + 0x60 LANG_KASHMIRI
24989 + 0x62 LANG_FRISIAN
24991 + 0x64 LANG_TAGALOG
24994 + 0x67 LANG_FULFULDE
25001 + 0x73 LANG_TIGRINYA
25002 + 0x74 LANG_GUARANI
25003 + 0x75 LANG_HAWAIIAN
25007 + 0x79 LANG_PAPIAMENTU
25009 +/* Mingw headers don't have latest language and sublanguage codes. */
25010 +# ifndef LANG_AFRIKAANS
25011 +# define LANG_AFRIKAANS 0x36
25013 +# ifndef LANG_ALBANIAN
25014 +# define LANG_ALBANIAN 0x1c
25016 +# ifndef LANG_AMHARIC
25017 +# define LANG_AMHARIC 0x5e
25019 +# ifndef LANG_ARABIC
25020 +# define LANG_ARABIC 0x01
25022 +# ifndef LANG_ARMENIAN
25023 +# define LANG_ARMENIAN 0x2b
25025 +# ifndef LANG_ASSAMESE
25026 +# define LANG_ASSAMESE 0x4d
25028 +# ifndef LANG_AZERI
25029 +# define LANG_AZERI 0x2c
25031 +# ifndef LANG_BASQUE
25032 +# define LANG_BASQUE 0x2d
25034 +# ifndef LANG_BELARUSIAN
25035 +# define LANG_BELARUSIAN 0x23
25037 +# ifndef LANG_BENGALI
25038 +# define LANG_BENGALI 0x45
25040 +# ifndef LANG_BURMESE
25041 +# define LANG_BURMESE 0x55
25043 +# ifndef LANG_CAMBODIAN
25044 +# define LANG_CAMBODIAN 0x53
25046 +# ifndef LANG_CATALAN
25047 +# define LANG_CATALAN 0x03
25049 +# ifndef LANG_CHEROKEE
25050 +# define LANG_CHEROKEE 0x5c
25052 +# ifndef LANG_DIVEHI
25053 +# define LANG_DIVEHI 0x65
25056 +# define LANG_EDO 0x66
25058 +# ifndef LANG_ESTONIAN
25059 +# define LANG_ESTONIAN 0x25
25061 +# ifndef LANG_FAEROESE
25062 +# define LANG_FAEROESE 0x38
25064 +# ifndef LANG_FARSI
25065 +# define LANG_FARSI 0x29
25067 +# ifndef LANG_FRISIAN
25068 +# define LANG_FRISIAN 0x62
25070 +# ifndef LANG_FULFULDE
25071 +# define LANG_FULFULDE 0x67
25073 +# ifndef LANG_GAELIC
25074 +# define LANG_GAELIC 0x3c
25076 +# ifndef LANG_GALICIAN
25077 +# define LANG_GALICIAN 0x56
25079 +# ifndef LANG_GEORGIAN
25080 +# define LANG_GEORGIAN 0x37
25082 +# ifndef LANG_GUARANI
25083 +# define LANG_GUARANI 0x74
25085 +# ifndef LANG_GUJARATI
25086 +# define LANG_GUJARATI 0x47
25088 +# ifndef LANG_HAUSA
25089 +# define LANG_HAUSA 0x68
25091 +# ifndef LANG_HAWAIIAN
25092 +# define LANG_HAWAIIAN 0x75
25094 +# ifndef LANG_HEBREW
25095 +# define LANG_HEBREW 0x0d
25097 +# ifndef LANG_HINDI
25098 +# define LANG_HINDI 0x39
25100 +# ifndef LANG_IBIBIO
25101 +# define LANG_IBIBIO 0x69
25103 +# ifndef LANG_IGBO
25104 +# define LANG_IGBO 0x70
25106 +# ifndef LANG_INDONESIAN
25107 +# define LANG_INDONESIAN 0x21
25109 +# ifndef LANG_INUKTITUT
25110 +# define LANG_INUKTITUT 0x5d
25112 +# ifndef LANG_KANNADA
25113 +# define LANG_KANNADA 0x4b
25115 +# ifndef LANG_KANURI
25116 +# define LANG_KANURI 0x71
25118 +# ifndef LANG_KASHMIRI
25119 +# define LANG_KASHMIRI 0x60
25121 +# ifndef LANG_KAZAK
25122 +# define LANG_KAZAK 0x3f
25124 +# ifndef LANG_KONKANI
25125 +# define LANG_KONKANI 0x57
25127 +# ifndef LANG_KYRGYZ
25128 +# define LANG_KYRGYZ 0x40
25131 +# define LANG_LAO 0x54
25133 +# ifndef LANG_LATIN
25134 +# define LANG_LATIN 0x76
25136 +# ifndef LANG_LATVIAN
25137 +# define LANG_LATVIAN 0x26
25139 +# ifndef LANG_LITHUANIAN
25140 +# define LANG_LITHUANIAN 0x27
25142 +# ifndef LANG_MACEDONIAN
25143 +# define LANG_MACEDONIAN 0x2f
25145 +# ifndef LANG_MALAY
25146 +# define LANG_MALAY 0x3e
25148 +# ifndef LANG_MALAYALAM
25149 +# define LANG_MALAYALAM 0x4c
25151 +# ifndef LANG_MALTESE
25152 +# define LANG_MALTESE 0x3a
25154 +# ifndef LANG_MANIPURI
25155 +# define LANG_MANIPURI 0x58
25157 +# ifndef LANG_MARATHI
25158 +# define LANG_MARATHI 0x4e
25160 +# ifndef LANG_MONGOLIAN
25161 +# define LANG_MONGOLIAN 0x50
25163 +# ifndef LANG_NEPALI
25164 +# define LANG_NEPALI 0x61
25166 +# ifndef LANG_ORIYA
25167 +# define LANG_ORIYA 0x48
25169 +# ifndef LANG_OROMO
25170 +# define LANG_OROMO 0x72
25172 +# ifndef LANG_PAPIAMENTU
25173 +# define LANG_PAPIAMENTU 0x79
25175 +# ifndef LANG_PASHTO
25176 +# define LANG_PASHTO 0x63
25178 +# ifndef LANG_PUNJABI
25179 +# define LANG_PUNJABI 0x46
25181 +# ifndef LANG_RHAETO_ROMANCE
25182 +# define LANG_RHAETO_ROMANCE 0x17
25184 +# ifndef LANG_SAAMI
25185 +# define LANG_SAAMI 0x3b
25187 +# ifndef LANG_SANSKRIT
25188 +# define LANG_SANSKRIT 0x4f
25190 +# ifndef LANG_SERBIAN
25191 +# define LANG_SERBIAN 0x1a
25193 +# ifndef LANG_SINDHI
25194 +# define LANG_SINDHI 0x59
25196 +# ifndef LANG_SINHALESE
25197 +# define LANG_SINHALESE 0x5b
25199 +# ifndef LANG_SLOVAK
25200 +# define LANG_SLOVAK 0x1b
25202 +# ifndef LANG_SOMALI
25203 +# define LANG_SOMALI 0x77
25205 +# ifndef LANG_SORBIAN
25206 +# define LANG_SORBIAN 0x2e
25208 +# ifndef LANG_SUTU
25209 +# define LANG_SUTU 0x30
25211 +# ifndef LANG_SWAHILI
25212 +# define LANG_SWAHILI 0x41
25214 +# ifndef LANG_SYRIAC
25215 +# define LANG_SYRIAC 0x5a
25217 +# ifndef LANG_TAGALOG
25218 +# define LANG_TAGALOG 0x64
25220 +# ifndef LANG_TAJIK
25221 +# define LANG_TAJIK 0x28
25223 +# ifndef LANG_TAMAZIGHT
25224 +# define LANG_TAMAZIGHT 0x5f
25226 +# ifndef LANG_TAMIL
25227 +# define LANG_TAMIL 0x49
25229 +# ifndef LANG_TATAR
25230 +# define LANG_TATAR 0x44
25232 +# ifndef LANG_TELUGU
25233 +# define LANG_TELUGU 0x4a
25235 +# ifndef LANG_THAI
25236 +# define LANG_THAI 0x1e
25238 +# ifndef LANG_TIBETAN
25239 +# define LANG_TIBETAN 0x51
25241 +# ifndef LANG_TIGRINYA
25242 +# define LANG_TIGRINYA 0x73
25244 +# ifndef LANG_TSONGA
25245 +# define LANG_TSONGA 0x31
25247 +# ifndef LANG_TSWANA
25248 +# define LANG_TSWANA 0x32
25250 +# ifndef LANG_TURKMEN
25251 +# define LANG_TURKMEN 0x42
25253 +# ifndef LANG_UKRAINIAN
25254 +# define LANG_UKRAINIAN 0x22
25256 +# ifndef LANG_URDU
25257 +# define LANG_URDU 0x20
25259 +# ifndef LANG_UZBEK
25260 +# define LANG_UZBEK 0x43
25262 +# ifndef LANG_VENDA
25263 +# define LANG_VENDA 0x33
25265 +# ifndef LANG_VIETNAMESE
25266 +# define LANG_VIETNAMESE 0x2a
25268 +# ifndef LANG_WELSH
25269 +# define LANG_WELSH 0x52
25271 +# ifndef LANG_XHOSA
25272 +# define LANG_XHOSA 0x34
25275 +# define LANG_YI 0x78
25277 +# ifndef LANG_YIDDISH
25278 +# define LANG_YIDDISH 0x3d
25280 +# ifndef LANG_YORUBA
25281 +# define LANG_YORUBA 0x6a
25283 +# ifndef LANG_ZULU
25284 +# define LANG_ZULU 0x35
25286 +# ifndef SUBLANG_ARABIC_SAUDI_ARABIA
25287 +# define SUBLANG_ARABIC_SAUDI_ARABIA 0x01
25289 +# ifndef SUBLANG_ARABIC_IRAQ
25290 +# define SUBLANG_ARABIC_IRAQ 0x02
25292 +# ifndef SUBLANG_ARABIC_EGYPT
25293 +# define SUBLANG_ARABIC_EGYPT 0x03
25295 +# ifndef SUBLANG_ARABIC_LIBYA
25296 +# define SUBLANG_ARABIC_LIBYA 0x04
25298 +# ifndef SUBLANG_ARABIC_ALGERIA
25299 +# define SUBLANG_ARABIC_ALGERIA 0x05
25301 +# ifndef SUBLANG_ARABIC_MOROCCO
25302 +# define SUBLANG_ARABIC_MOROCCO 0x06
25304 +# ifndef SUBLANG_ARABIC_TUNISIA
25305 +# define SUBLANG_ARABIC_TUNISIA 0x07
25307 +# ifndef SUBLANG_ARABIC_OMAN
25308 +# define SUBLANG_ARABIC_OMAN 0x08
25310 +# ifndef SUBLANG_ARABIC_YEMEN
25311 +# define SUBLANG_ARABIC_YEMEN 0x09
25313 +# ifndef SUBLANG_ARABIC_SYRIA
25314 +# define SUBLANG_ARABIC_SYRIA 0x0a
25316 +# ifndef SUBLANG_ARABIC_JORDAN
25317 +# define SUBLANG_ARABIC_JORDAN 0x0b
25319 +# ifndef SUBLANG_ARABIC_LEBANON
25320 +# define SUBLANG_ARABIC_LEBANON 0x0c
25322 +# ifndef SUBLANG_ARABIC_KUWAIT
25323 +# define SUBLANG_ARABIC_KUWAIT 0x0d
25325 +# ifndef SUBLANG_ARABIC_UAE
25326 +# define SUBLANG_ARABIC_UAE 0x0e
25328 +# ifndef SUBLANG_ARABIC_BAHRAIN
25329 +# define SUBLANG_ARABIC_BAHRAIN 0x0f
25331 +# ifndef SUBLANG_ARABIC_QATAR
25332 +# define SUBLANG_ARABIC_QATAR 0x10
25334 +# ifndef SUBLANG_AZERI_LATIN
25335 +# define SUBLANG_AZERI_LATIN 0x01
25337 +# ifndef SUBLANG_AZERI_CYRILLIC
25338 +# define SUBLANG_AZERI_CYRILLIC 0x02
25340 +# ifndef SUBLANG_BENGALI_INDIA
25341 +# define SUBLANG_BENGALI_INDIA 0x00
25343 +# ifndef SUBLANG_BENGALI_BANGLADESH
25344 +# define SUBLANG_BENGALI_BANGLADESH 0x01
25346 +# ifndef SUBLANG_CHINESE_MACAU
25347 +# define SUBLANG_CHINESE_MACAU 0x05
25349 +# ifndef SUBLANG_ENGLISH_SOUTH_AFRICA
25350 +# define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07
25352 +# ifndef SUBLANG_ENGLISH_JAMAICA
25353 +# define SUBLANG_ENGLISH_JAMAICA 0x08
25355 +# ifndef SUBLANG_ENGLISH_CARIBBEAN
25356 +# define SUBLANG_ENGLISH_CARIBBEAN 0x09
25358 +# ifndef SUBLANG_ENGLISH_BELIZE
25359 +# define SUBLANG_ENGLISH_BELIZE 0x0a
25361 +# ifndef SUBLANG_ENGLISH_TRINIDAD
25362 +# define SUBLANG_ENGLISH_TRINIDAD 0x0b
25364 +# ifndef SUBLANG_ENGLISH_ZIMBABWE
25365 +# define SUBLANG_ENGLISH_ZIMBABWE 0x0c
25367 +# ifndef SUBLANG_ENGLISH_PHILIPPINES
25368 +# define SUBLANG_ENGLISH_PHILIPPINES 0x0d
25370 +# ifndef SUBLANG_ENGLISH_INDONESIA
25371 +# define SUBLANG_ENGLISH_INDONESIA 0x0e
25373 +# ifndef SUBLANG_ENGLISH_HONGKONG
25374 +# define SUBLANG_ENGLISH_HONGKONG 0x0f
25376 +# ifndef SUBLANG_ENGLISH_INDIA
25377 +# define SUBLANG_ENGLISH_INDIA 0x10
25379 +# ifndef SUBLANG_ENGLISH_MALAYSIA
25380 +# define SUBLANG_ENGLISH_MALAYSIA 0x11
25382 +# ifndef SUBLANG_ENGLISH_SINGAPORE
25383 +# define SUBLANG_ENGLISH_SINGAPORE 0x12
25385 +# ifndef SUBLANG_FRENCH_LUXEMBOURG
25386 +# define SUBLANG_FRENCH_LUXEMBOURG 0x05
25388 +# ifndef SUBLANG_FRENCH_MONACO
25389 +# define SUBLANG_FRENCH_MONACO 0x06
25391 +# ifndef SUBLANG_FRENCH_WESTINDIES
25392 +# define SUBLANG_FRENCH_WESTINDIES 0x07
25394 +# ifndef SUBLANG_FRENCH_REUNION
25395 +# define SUBLANG_FRENCH_REUNION 0x08
25397 +# ifndef SUBLANG_FRENCH_CONGO
25398 +# define SUBLANG_FRENCH_CONGO 0x09
25400 +# ifndef SUBLANG_FRENCH_SENEGAL
25401 +# define SUBLANG_FRENCH_SENEGAL 0x0a
25403 +# ifndef SUBLANG_FRENCH_CAMEROON
25404 +# define SUBLANG_FRENCH_CAMEROON 0x0b
25406 +# ifndef SUBLANG_FRENCH_COTEDIVOIRE
25407 +# define SUBLANG_FRENCH_COTEDIVOIRE 0x0c
25409 +# ifndef SUBLANG_FRENCH_MALI
25410 +# define SUBLANG_FRENCH_MALI 0x0d
25412 +# ifndef SUBLANG_FRENCH_MOROCCO
25413 +# define SUBLANG_FRENCH_MOROCCO 0x0e
25415 +# ifndef SUBLANG_FRENCH_HAITI
25416 +# define SUBLANG_FRENCH_HAITI 0x0f
25418 +# ifndef SUBLANG_GERMAN_LUXEMBOURG
25419 +# define SUBLANG_GERMAN_LUXEMBOURG 0x04
25421 +# ifndef SUBLANG_GERMAN_LIECHTENSTEIN
25422 +# define SUBLANG_GERMAN_LIECHTENSTEIN 0x05
25424 +# ifndef SUBLANG_KASHMIRI_INDIA
25425 +# define SUBLANG_KASHMIRI_INDIA 0x02
25427 +# ifndef SUBLANG_MALAY_MALAYSIA
25428 +# define SUBLANG_MALAY_MALAYSIA 0x01
25430 +# ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM
25431 +# define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02
25433 +# ifndef SUBLANG_NEPALI_INDIA
25434 +# define SUBLANG_NEPALI_INDIA 0x02
25436 +# ifndef SUBLANG_PUNJABI_INDIA
25437 +# define SUBLANG_PUNJABI_INDIA 0x00
25439 +# ifndef SUBLANG_PUNJABI_PAKISTAN
25440 +# define SUBLANG_PUNJABI_PAKISTAN 0x01
25442 +# ifndef SUBLANG_ROMANIAN_ROMANIA
25443 +# define SUBLANG_ROMANIAN_ROMANIA 0x00
25445 +# ifndef SUBLANG_ROMANIAN_MOLDOVA
25446 +# define SUBLANG_ROMANIAN_MOLDOVA 0x01
25448 +# ifndef SUBLANG_SERBIAN_LATIN
25449 +# define SUBLANG_SERBIAN_LATIN 0x02
25451 +# ifndef SUBLANG_SERBIAN_CYRILLIC
25452 +# define SUBLANG_SERBIAN_CYRILLIC 0x03
25454 +# ifndef SUBLANG_SINDHI_INDIA
25455 +# define SUBLANG_SINDHI_INDIA 0x00
25457 +# ifndef SUBLANG_SINDHI_PAKISTAN
25458 +# define SUBLANG_SINDHI_PAKISTAN 0x01
25460 +# ifndef SUBLANG_SPANISH_GUATEMALA
25461 +# define SUBLANG_SPANISH_GUATEMALA 0x04
25463 +# ifndef SUBLANG_SPANISH_COSTA_RICA
25464 +# define SUBLANG_SPANISH_COSTA_RICA 0x05
25466 +# ifndef SUBLANG_SPANISH_PANAMA
25467 +# define SUBLANG_SPANISH_PANAMA 0x06
25469 +# ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC
25470 +# define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07
25472 +# ifndef SUBLANG_SPANISH_VENEZUELA
25473 +# define SUBLANG_SPANISH_VENEZUELA 0x08
25475 +# ifndef SUBLANG_SPANISH_COLOMBIA
25476 +# define SUBLANG_SPANISH_COLOMBIA 0x09
25478 +# ifndef SUBLANG_SPANISH_PERU
25479 +# define SUBLANG_SPANISH_PERU 0x0a
25481 +# ifndef SUBLANG_SPANISH_ARGENTINA
25482 +# define SUBLANG_SPANISH_ARGENTINA 0x0b
25484 +# ifndef SUBLANG_SPANISH_ECUADOR
25485 +# define SUBLANG_SPANISH_ECUADOR 0x0c
25487 +# ifndef SUBLANG_SPANISH_CHILE
25488 +# define SUBLANG_SPANISH_CHILE 0x0d
25490 +# ifndef SUBLANG_SPANISH_URUGUAY
25491 +# define SUBLANG_SPANISH_URUGUAY 0x0e
25493 +# ifndef SUBLANG_SPANISH_PARAGUAY
25494 +# define SUBLANG_SPANISH_PARAGUAY 0x0f
25496 +# ifndef SUBLANG_SPANISH_BOLIVIA
25497 +# define SUBLANG_SPANISH_BOLIVIA 0x10
25499 +# ifndef SUBLANG_SPANISH_EL_SALVADOR
25500 +# define SUBLANG_SPANISH_EL_SALVADOR 0x11
25502 +# ifndef SUBLANG_SPANISH_HONDURAS
25503 +# define SUBLANG_SPANISH_HONDURAS 0x12
25505 +# ifndef SUBLANG_SPANISH_NICARAGUA
25506 +# define SUBLANG_SPANISH_NICARAGUA 0x13
25508 +# ifndef SUBLANG_SPANISH_PUERTO_RICO
25509 +# define SUBLANG_SPANISH_PUERTO_RICO 0x14
25511 +# ifndef SUBLANG_SWEDISH_FINLAND
25512 +# define SUBLANG_SWEDISH_FINLAND 0x02
25514 +# ifndef SUBLANG_TAMAZIGHT_ARABIC
25515 +# define SUBLANG_TAMAZIGHT_ARABIC 0x01
25517 +# ifndef SUBLANG_TAMAZIGHT_LATIN
25518 +# define SUBLANG_TAMAZIGHT_LATIN 0x02
25520 +# ifndef SUBLANG_TIGRINYA_ETHIOPIA
25521 +# define SUBLANG_TIGRINYA_ETHIOPIA 0x00
25523 +# ifndef SUBLANG_TIGRINYA_ERITREA
25524 +# define SUBLANG_TIGRINYA_ERITREA 0x01
25526 +# ifndef SUBLANG_URDU_PAKISTAN
25527 +# define SUBLANG_URDU_PAKISTAN 0x01
25529 +# ifndef SUBLANG_URDU_INDIA
25530 +# define SUBLANG_URDU_INDIA 0x02
25532 +# ifndef SUBLANG_UZBEK_LATIN
25533 +# define SUBLANG_UZBEK_LATIN 0x01
25535 +# ifndef SUBLANG_UZBEK_CYRILLIC
25536 +# define SUBLANG_UZBEK_CYRILLIC 0x02
25540 +/* XPG3 defines the result of 'setlocale (category, NULL)' as:
25541 + "Directs 'setlocale()' to query 'category' and return the current
25542 + setting of 'local'."
25543 + However it does not specify the exact format. Neither do SUSV2 and
25544 + ISO C 99. So we can use this feature only on selected systems (e.g.
25545 + those using GNU C Library). */
25546 +#if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2)
25547 +# define HAVE_LOCALE_NULL
25550 +/* Determine the current locale's name, and canonicalize it into XPG syntax
25551 + language[_territory[.codeset]][@modifier]
25552 + The codeset part in the result is not reliable; the locale_charset()
25553 + should be used for codeset information instead.
25554 + The result must not be freed; it is statically allocated. */
25557 +_nl_locale_name (int category, const char *categoryname)
25559 + const char *retval;
25563 + /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.
25564 + On some systems this can be done by the 'setlocale' function itself. */
25565 +# if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
25566 + retval = setlocale (category, NULL);
25568 + /* Setting of LC_ALL overwrites all other. */
25569 + retval = getenv ("LC_ALL");
25570 + if (retval == NULL || retval[0] == '\0')
25572 + /* Next comes the name of the desired category. */
25573 + retval = getenv (categoryname);
25574 + if (retval == NULL || retval[0] == '\0')
25576 + /* Last possibility is the LANG environment variable. */
25577 + retval = getenv ("LANG");
25578 + if (retval == NULL || retval[0] == '\0')
25579 + /* We use C as the default domain. POSIX says this is
25580 + implementation defined. */
25590 + /* Return an XPG style locale name language[_territory][@modifier].
25591 + Don't even bother determining the codeset; it's not useful in this
25592 + context, because message catalogs are not specific to a single
25597 + int primary, sub;
25599 + /* Let the user override the system settings through environment
25600 + variables, as on POSIX systems. */
25601 + retval = getenv ("LC_ALL");
25602 + if (retval != NULL && retval[0] != '\0')
25604 + retval = getenv (categoryname);
25605 + if (retval != NULL && retval[0] != '\0')
25607 + retval = getenv ("LANG");
25608 + if (retval != NULL && retval[0] != '\0')
25611 + /* Use native Win32 API locale ID. */
25612 + lcid = GetThreadLocale ();
25614 + /* Strip off the sorting rules, keep only the language part. */
25615 + langid = LANGIDFROMLCID (lcid);
25617 + /* Split into language and territory part. */
25618 + primary = PRIMARYLANGID (langid);
25619 + sub = SUBLANGID (langid);
25621 + /* Dispatch on language.
25622 + See also http://www.unicode.org/unicode/onlinedat/languages.html .
25623 + For details about languages, see http://www.ethnologue.com/ . */
25626 + case LANG_AFRIKAANS: return "af_ZA";
25627 + case LANG_ALBANIAN: return "sq_AL";
25628 + case LANG_AMHARIC: return "am_ET";
25629 + case LANG_ARABIC:
25632 + case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA";
25633 + case SUBLANG_ARABIC_IRAQ: return "ar_IQ";
25634 + case SUBLANG_ARABIC_EGYPT: return "ar_EG";
25635 + case SUBLANG_ARABIC_LIBYA: return "ar_LY";
25636 + case SUBLANG_ARABIC_ALGERIA: return "ar_DZ";
25637 + case SUBLANG_ARABIC_MOROCCO: return "ar_MA";
25638 + case SUBLANG_ARABIC_TUNISIA: return "ar_TN";
25639 + case SUBLANG_ARABIC_OMAN: return "ar_OM";
25640 + case SUBLANG_ARABIC_YEMEN: return "ar_YE";
25641 + case SUBLANG_ARABIC_SYRIA: return "ar_SY";
25642 + case SUBLANG_ARABIC_JORDAN: return "ar_JO";
25643 + case SUBLANG_ARABIC_LEBANON: return "ar_LB";
25644 + case SUBLANG_ARABIC_KUWAIT: return "ar_KW";
25645 + case SUBLANG_ARABIC_UAE: return "ar_AE";
25646 + case SUBLANG_ARABIC_BAHRAIN: return "ar_BH";
25647 + case SUBLANG_ARABIC_QATAR: return "ar_QA";
25650 + case LANG_ARMENIAN: return "hy_AM";
25651 + case LANG_ASSAMESE: return "as_IN";
25655 + /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */
25656 + case SUBLANG_AZERI_LATIN: return "az_AZ@latin";
25657 + case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic";
25660 + case LANG_BASQUE:
25661 + return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */
25662 + case LANG_BELARUSIAN: return "be_BY";
25663 + case LANG_BENGALI:
25666 + case SUBLANG_BENGALI_INDIA: return "bn_IN";
25667 + case SUBLANG_BENGALI_BANGLADESH: return "bn_BD";
25670 + case LANG_BULGARIAN: return "bg_BG";
25671 + case LANG_BURMESE: return "my_MM";
25672 + case LANG_CAMBODIAN: return "km_KH";
25673 + case LANG_CATALAN: return "ca_ES";
25674 + case LANG_CHEROKEE: return "chr_US";
25675 + case LANG_CHINESE:
25678 + case SUBLANG_CHINESE_TRADITIONAL: return "zh_TW";
25679 + case SUBLANG_CHINESE_SIMPLIFIED: return "zh_CN";
25680 + case SUBLANG_CHINESE_HONGKONG: return "zh_HK";
25681 + case SUBLANG_CHINESE_SINGAPORE: return "zh_SG";
25682 + case SUBLANG_CHINESE_MACAU: return "zh_MO";
25685 + case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN
25686 + * What used to be called Serbo-Croatian
25687 + * should really now be two separate
25688 + * languages because of political reasons.
25689 + * (Says tml, who knows nothing about Serbian
25691 + * (I can feel those flames coming already.)
25695 + case SUBLANG_DEFAULT: return "hr_HR";
25696 + case SUBLANG_SERBIAN_LATIN: return "sr_CS";
25697 + case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic";
25700 + case LANG_CZECH: return "cs_CZ";
25701 + case LANG_DANISH: return "da_DK";
25702 + case LANG_DIVEHI: return "dv_MV";
25706 + case SUBLANG_DUTCH: return "nl_NL";
25707 + case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE";
25710 + case LANG_EDO: return "bin_NG";
25711 + case LANG_ENGLISH:
25714 + /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought
25715 + * English was the language spoken in England.
25718 + case SUBLANG_ENGLISH_US: return "en_US";
25719 + case SUBLANG_ENGLISH_UK: return "en_GB";
25720 + case SUBLANG_ENGLISH_AUS: return "en_AU";
25721 + case SUBLANG_ENGLISH_CAN: return "en_CA";
25722 + case SUBLANG_ENGLISH_NZ: return "en_NZ";
25723 + case SUBLANG_ENGLISH_EIRE: return "en_IE";
25724 + case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA";
25725 + case SUBLANG_ENGLISH_JAMAICA: return "en_JM";
25726 + case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */
25727 + case SUBLANG_ENGLISH_BELIZE: return "en_BZ";
25728 + case SUBLANG_ENGLISH_TRINIDAD: return "en_TT";
25729 + case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW";
25730 + case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH";
25731 + case SUBLANG_ENGLISH_INDONESIA: return "en_ID";
25732 + case SUBLANG_ENGLISH_HONGKONG: return "en_HK";
25733 + case SUBLANG_ENGLISH_INDIA: return "en_IN";
25734 + case SUBLANG_ENGLISH_MALAYSIA: return "en_MY";
25735 + case SUBLANG_ENGLISH_SINGAPORE: return "en_SG";
25738 + case LANG_ESTONIAN: return "et_EE";
25739 + case LANG_FAEROESE: return "fo_FO";
25740 + case LANG_FARSI: return "fa_IR";
25741 + case LANG_FINNISH: return "fi_FI";
25742 + case LANG_FRENCH:
25745 + case SUBLANG_FRENCH: return "fr_FR";
25746 + case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE";
25747 + case SUBLANG_FRENCH_CANADIAN: return "fr_CA";
25748 + case SUBLANG_FRENCH_SWISS: return "fr_CH";
25749 + case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU";
25750 + case SUBLANG_FRENCH_MONACO: return "fr_MC";
25751 + case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */
25752 + case SUBLANG_FRENCH_REUNION: return "fr_RE";
25753 + case SUBLANG_FRENCH_CONGO: return "fr_CG";
25754 + case SUBLANG_FRENCH_SENEGAL: return "fr_SN";
25755 + case SUBLANG_FRENCH_CAMEROON: return "fr_CM";
25756 + case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI";
25757 + case SUBLANG_FRENCH_MALI: return "fr_ML";
25758 + case SUBLANG_FRENCH_MOROCCO: return "fr_MA";
25759 + case SUBLANG_FRENCH_HAITI: return "fr_HT";
25762 + case LANG_FRISIAN: return "fy_NL";
25763 + case LANG_FULFULDE:
25764 + /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */
25766 + case LANG_GAELIC:
25769 + case 0x01: /* SCOTTISH */ return "gd_GB";
25770 + case 0x02: /* IRISH */ return "ga_IE";
25773 + case LANG_GALICIAN: return "gl_ES";
25774 + case LANG_GEORGIAN: return "ka_GE";
25775 + case LANG_GERMAN:
25778 + case SUBLANG_GERMAN: return "de_DE";
25779 + case SUBLANG_GERMAN_SWISS: return "de_CH";
25780 + case SUBLANG_GERMAN_AUSTRIAN: return "de_AT";
25781 + case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU";
25782 + case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI";
25785 + case LANG_GREEK: return "el_GR";
25786 + case LANG_GUARANI: return "gn_PY";
25787 + case LANG_GUJARATI: return "gu_IN";
25788 + case LANG_HAUSA: return "ha_NG";
25789 + case LANG_HAWAIIAN:
25790 + /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers)
25791 + or Hawaii Creole English ("cpe_US", 600000 speakers)? */
25793 + case LANG_HEBREW: return "he_IL";
25794 + case LANG_HINDI: return "hi_IN";
25795 + case LANG_HUNGARIAN: return "hu_HU";
25796 + case LANG_IBIBIO: return "nic_NG";
25797 + case LANG_ICELANDIC: return "is_IS";
25798 + case LANG_IGBO: return "ig_NG";
25799 + case LANG_INDONESIAN: return "id_ID";
25800 + case LANG_INUKTITUT: return "iu_CA";
25801 + case LANG_ITALIAN:
25804 + case SUBLANG_ITALIAN: return "it_IT";
25805 + case SUBLANG_ITALIAN_SWISS: return "it_CH";
25808 + case LANG_JAPANESE: return "ja_JP";
25809 + case LANG_KANNADA: return "kn_IN";
25810 + case LANG_KANURI: return "kr_NG";
25811 + case LANG_KASHMIRI:
25814 + case SUBLANG_DEFAULT: return "ks_PK";
25815 + case SUBLANG_KASHMIRI_INDIA: return "ks_IN";
25818 + case LANG_KAZAK: return "kk_KZ";
25819 + case LANG_KONKANI:
25820 + /* FIXME: Adjust this when such locales appear on Unix. */
25822 + case LANG_KOREAN: return "ko_KR";
25823 + case LANG_KYRGYZ: return "ky_KG";
25824 + case LANG_LAO: return "lo_LA";
25825 + case LANG_LATIN: return "la_VA";
25826 + case LANG_LATVIAN: return "lv_LV";
25827 + case LANG_LITHUANIAN: return "lt_LT";
25828 + case LANG_MACEDONIAN: return "mk_MK";
25832 + case SUBLANG_MALAY_MALAYSIA: return "ms_MY";
25833 + case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN";
25836 + case LANG_MALAYALAM: return "ml_IN";
25837 + case LANG_MALTESE: return "mt_MT";
25838 + case LANG_MANIPURI:
25839 + /* FIXME: Adjust this when such locales appear on Unix. */
25841 + case LANG_MARATHI: return "mr_IN";
25842 + case LANG_MONGOLIAN:
25843 + return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */
25844 + case LANG_NEPALI:
25847 + case SUBLANG_DEFAULT: return "ne_NP";
25848 + case SUBLANG_NEPALI_INDIA: return "ne_IN";
25851 + case LANG_NORWEGIAN:
25854 + case SUBLANG_NORWEGIAN_BOKMAL: return "no_NO";
25855 + case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO";
25858 + case LANG_ORIYA: return "or_IN";
25859 + case LANG_OROMO: return "om_ET";
25860 + case LANG_PAPIAMENTU: return "pap_AN";
25861 + case LANG_PASHTO:
25862 + return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */
25863 + case LANG_POLISH: return "pl_PL";
25864 + case LANG_PORTUGUESE:
25867 + case SUBLANG_PORTUGUESE: return "pt_PT";
25868 + /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT.
25869 + Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */
25870 + case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR";
25873 + case LANG_PUNJABI:
25876 + case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */
25877 + case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */
25880 + case LANG_RHAETO_ROMANCE: return "rm_CH";
25881 + case LANG_ROMANIAN:
25884 + case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO";
25885 + case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD";
25888 + case LANG_RUSSIAN:
25889 + return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */
25890 + case LANG_SAAMI: /* actually Northern Sami */ return "se_NO";
25891 + case LANG_SANSKRIT: return "sa_IN";
25892 + case LANG_SINDHI:
25895 + case SUBLANG_SINDHI_INDIA: return "sd_IN";
25896 + case SUBLANG_SINDHI_PAKISTAN: return "sd_PK";
25899 + case LANG_SINHALESE: return "si_LK";
25900 + case LANG_SLOVAK: return "sk_SK";
25901 + case LANG_SLOVENIAN: return "sl_SI";
25902 + case LANG_SOMALI: return "so_SO";
25903 + case LANG_SORBIAN:
25904 + /* FIXME: Adjust this when such locales appear on Unix. */
25906 + case LANG_SPANISH:
25909 + case SUBLANG_SPANISH: return "es_ES";
25910 + case SUBLANG_SPANISH_MEXICAN: return "es_MX";
25911 + case SUBLANG_SPANISH_MODERN:
25912 + return "es_ES@modern"; /* not seen on Unix */
25913 + case SUBLANG_SPANISH_GUATEMALA: return "es_GT";
25914 + case SUBLANG_SPANISH_COSTA_RICA: return "es_CR";
25915 + case SUBLANG_SPANISH_PANAMA: return "es_PA";
25916 + case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO";
25917 + case SUBLANG_SPANISH_VENEZUELA: return "es_VE";
25918 + case SUBLANG_SPANISH_COLOMBIA: return "es_CO";
25919 + case SUBLANG_SPANISH_PERU: return "es_PE";
25920 + case SUBLANG_SPANISH_ARGENTINA: return "es_AR";
25921 + case SUBLANG_SPANISH_ECUADOR: return "es_EC";
25922 + case SUBLANG_SPANISH_CHILE: return "es_CL";
25923 + case SUBLANG_SPANISH_URUGUAY: return "es_UY";
25924 + case SUBLANG_SPANISH_PARAGUAY: return "es_PY";
25925 + case SUBLANG_SPANISH_BOLIVIA: return "es_BO";
25926 + case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV";
25927 + case SUBLANG_SPANISH_HONDURAS: return "es_HN";
25928 + case SUBLANG_SPANISH_NICARAGUA: return "es_NI";
25929 + case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR";
25932 + case LANG_SUTU: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */
25933 + case LANG_SWAHILI: return "sw_KE";
25934 + case LANG_SWEDISH:
25937 + case SUBLANG_DEFAULT: return "sv_SE";
25938 + case SUBLANG_SWEDISH_FINLAND: return "sv_FI";
25941 + case LANG_SYRIAC: return "syr_TR"; /* An extinct language. */
25942 + case LANG_TAGALOG: return "tl_PH";
25943 + case LANG_TAJIK: return "tg_TJ";
25944 + case LANG_TAMAZIGHT:
25947 + /* FIXME: Adjust this when Tamazight locales appear on Unix. */
25948 + case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic";
25949 + case SUBLANG_TAMAZIGHT_LATIN: return "ber_MA@latin";
25953 + return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */
25954 + case LANG_TATAR: return "tt_RU";
25955 + case LANG_TELUGU: return "te_IN";
25956 + case LANG_THAI: return "th_TH";
25957 + case LANG_TIBETAN: return "bo_CN";
25958 + case LANG_TIGRINYA:
25961 + case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET";
25962 + case SUBLANG_TIGRINYA_ERITREA: return "ti_ER";
25965 + case LANG_TSONGA: return "ts_ZA";
25966 + case LANG_TSWANA: return "tn_BW";
25967 + case LANG_TURKISH: return "tr_TR";
25968 + case LANG_TURKMEN: return "tk_TM";
25969 + case LANG_UKRAINIAN: return "uk_UA";
25973 + case SUBLANG_URDU_PAKISTAN: return "ur_PK";
25974 + case SUBLANG_URDU_INDIA: return "ur_IN";
25980 + case SUBLANG_UZBEK_LATIN: return "uz_UZ";
25981 + case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic";
25984 + case LANG_VENDA: return "ve_ZA";
25985 + case LANG_VIETNAMESE: return "vi_VN";
25986 + case LANG_WELSH: return "cy_GB";
25987 + case LANG_XHOSA: return "xh_ZA";
25988 + case LANG_YI: return "sit_CN";
25989 + case LANG_YIDDISH: return "yi_IL";
25990 + case LANG_YORUBA: return "yo_NG";
25991 + case LANG_ZULU: return "zu_ZA";
25992 + default: return "C";
25998 +++ lxpanel-0.5.6/intl/loadinfo.h
26000 +/* Copyright (C) 1996-1999, 2000-2003 Free Software Foundation, Inc.
26001 + This file is part of the GNU C Library.
26002 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
26004 + This program is free software; you can redistribute it and/or modify it
26005 + under the terms of the GNU Library General Public License as published
26006 + by the Free Software Foundation; either version 2, or (at your option)
26007 + any later version.
26009 + This program is distributed in the hope that it will be useful,
26010 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26011 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26012 + Library General Public License for more details.
26014 + You should have received a copy of the GNU Library General Public
26015 + License along with this program; if not, write to the Free Software
26016 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26019 +#ifndef _LOADINFO_H
26020 +#define _LOADINFO_H 1
26022 +/* Declarations of locale dependent catalog lookup functions.
26025 + localealias.c Possibly replace a locale name by another.
26026 + explodename.c Split a locale name into its various fields.
26027 + l10nflist.c Generate a list of filenames of possible message catalogs.
26028 + finddomain.c Find and open the relevant message catalogs.
26030 + The main function _nl_find_domain() in finddomain.c is declared
26034 +#ifndef internal_function
26035 +# define internal_function
26038 +/* Tell the compiler when a conditional or integer expression is
26039 + almost always true or almost always false. */
26040 +#ifndef HAVE_BUILTIN_EXPECT
26041 +# define __builtin_expect(expr, val) (expr)
26044 +/* Separator in PATH like lists of pathnames. */
26045 +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
26046 + /* Win32, OS/2, DOS */
26047 +# define PATH_SEPARATOR ';'
26050 +# define PATH_SEPARATOR ':'
26053 +/* Encoding of locale name parts. */
26054 +#define CEN_REVISION 1
26055 +#define CEN_SPONSOR 2
26056 +#define CEN_SPECIAL 4
26057 +#define XPG_NORM_CODESET 8
26058 +#define XPG_CODESET 16
26059 +#define TERRITORY 32
26060 +#define CEN_AUDIENCE 64
26061 +#define XPG_MODIFIER 128
26063 +#define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
26064 +#define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
26067 +struct loaded_l10nfile
26069 + const char *filename;
26072 + const void *data;
26074 + struct loaded_l10nfile *next;
26075 + struct loaded_l10nfile *successor[1];
26079 +/* Normalize codeset name. There is no standard for the codeset
26080 + names. Normalization allows the user to use any of the common
26081 + names. The return value is dynamically allocated and has to be
26082 + freed by the caller. */
26083 +extern const char *_nl_normalize_codeset (const char *codeset,
26084 + size_t name_len);
26086 +/* Lookup a locale dependent file.
26087 + *L10NFILE_LIST denotes a pool of lookup results of locale dependent
26088 + files of the same kind, sorted in decreasing order of ->filename.
26089 + DIRLIST and DIRLIST_LEN are an argz list of directories in which to
26090 + look, containing at least one directory (i.e. DIRLIST_LEN > 0).
26091 + MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER,
26092 + SPECIAL, SPONSOR, REVISION are the pieces of the locale name, as
26093 + produced by _nl_explode_name(). FILENAME is the filename suffix.
26094 + The return value is the lookup result, either found in *L10NFILE_LIST,
26095 + or - if DO_ALLOCATE is nonzero - freshly allocated, or possibly NULL.
26096 + If the return value is non-NULL, it is added to *L10NFILE_LIST, and
26097 + its ->next field denotes the chaining inside *L10NFILE_LIST, and
26098 + furthermore its ->successor[] field contains a list of other lookup
26099 + results from which this lookup result inherits. */
26100 +extern struct loaded_l10nfile *
26101 +_nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list,
26102 + const char *dirlist, size_t dirlist_len, int mask,
26103 + const char *language, const char *territory,
26104 + const char *codeset, const char *normalized_codeset,
26105 + const char *modifier, const char *special,
26106 + const char *sponsor, const char *revision,
26107 + const char *filename, int do_allocate);
26109 +/* Lookup the real locale name for a locale alias NAME, or NULL if
26110 + NAME is not a locale alias (but possibly a real locale name).
26111 + The return value is statically allocated and must not be freed. */
26112 +extern const char *_nl_expand_alias (const char *name);
26114 +/* Split a locale name NAME into its pieces: language, modifier,
26115 + territory, codeset, special, sponsor, revision.
26116 + NAME gets destructively modified: NUL bytes are inserted here and
26117 + there. *LANGUAGE gets assigned NAME. Each of *MODIFIER, *TERRITORY,
26118 + *CODESET, *SPECIAL, *SPONSOR, *REVISION gets assigned either a
26119 + pointer into the old NAME string, or NULL. *NORMALIZED_CODESET
26120 + gets assigned the expanded *CODESET, if it is different from *CODESET;
26121 + this one is dynamically allocated and has to be freed by the caller.
26122 + The return value is a bitmask, where each bit corresponds to one
26124 + XPG_MODIFIER, CEN_AUDIENCE for *MODIFIER,
26125 + TERRITORY for *TERRITORY,
26126 + XPG_CODESET for *CODESET,
26127 + XPG_NORM_CODESET for *NORMALIZED_CODESET,
26128 + CEN_SPECIAL for *SPECIAL,
26129 + CEN_SPONSOR for *SPONSOR,
26130 + CEN_REVISION for *REVISION.
26132 +extern int _nl_explode_name (char *name, const char **language,
26133 + const char **modifier, const char **territory,
26134 + const char **codeset,
26135 + const char **normalized_codeset,
26136 + const char **special, const char **sponsor,
26137 + const char **revision);
26139 +/* Split a locale name NAME into a leading language part and all the
26140 + rest. Return a pointer to the first character after the language,
26141 + i.e. to the first byte of the rest. */
26142 +extern char *_nl_find_language (const char *name);
26144 +#endif /* loadinfo.h */
26146 +++ lxpanel-0.5.6/intl/relocatable.c
26148 +/* Provide relocatable packages.
26149 + Copyright (C) 2003 Free Software Foundation, Inc.
26150 + Written by Bruno Haible <bruno@clisp.org>, 2003.
26152 + This program is free software; you can redistribute it and/or modify it
26153 + under the terms of the GNU Library General Public License as published
26154 + by the Free Software Foundation; either version 2, or (at your option)
26155 + any later version.
26157 + This program is distributed in the hope that it will be useful,
26158 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26159 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26160 + Library General Public License for more details.
26162 + You should have received a copy of the GNU Library General Public
26163 + License along with this program; if not, write to the Free Software
26164 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26168 +/* Tell glibc's <stdio.h> to provide a prototype for getline().
26169 + This must come before <config.h> because <config.h> may include
26170 + <features.h>, and once <features.h> has been included, it's too late. */
26171 +#ifndef _GNU_SOURCE
26172 +# define _GNU_SOURCE 1
26175 +#ifdef HAVE_CONFIG_H
26176 +# include "config.h"
26179 +/* Specification. */
26180 +#include "relocatable.h"
26182 +#if ENABLE_RELOCATABLE
26184 +#include <stddef.h>
26185 +#include <stdio.h>
26186 +#include <stdlib.h>
26187 +#include <string.h>
26190 +# define xmalloc malloc
26192 +# include "xalloc.h"
26195 +#if defined _WIN32 || defined __WIN32__
26196 +# define WIN32_LEAN_AND_MEAN
26197 +# include <windows.h>
26200 +#if DEPENDS_ON_LIBCHARSET
26201 +# include <libcharset.h>
26203 +#if DEPENDS_ON_LIBICONV && HAVE_ICONV
26204 +# include <iconv.h>
26206 +#if DEPENDS_ON_LIBINTL && ENABLE_NLS
26207 +# include <libintl.h>
26210 +/* Faked cheap 'bool'. */
26218 +/* Pathname support.
26219 + ISSLASH(C) tests whether C is a directory separator character.
26220 + IS_PATH_WITH_DIR(P) tests whether P contains a directory specification.
26222 +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
26223 + /* Win32, OS/2, DOS */
26224 +# define ISSLASH(C) ((C) == '/' || (C) == '\\')
26225 +# define HAS_DEVICE(P) \
26226 + ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \
26227 + && (P)[1] == ':')
26228 +# define IS_PATH_WITH_DIR(P) \
26229 + (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P))
26230 +# define FILESYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0)
26233 +# define ISSLASH(C) ((C) == '/')
26234 +# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL)
26235 +# define FILESYSTEM_PREFIX_LEN(P) 0
26238 +/* Original installation prefix. */
26239 +static char *orig_prefix;
26240 +static size_t orig_prefix_len;
26241 +/* Current installation prefix. */
26242 +static char *curr_prefix;
26243 +static size_t curr_prefix_len;
26244 +/* These prefixes do not end in a slash. Anything that will be concatenated
26245 + to them must start with a slash. */
26247 +/* Sets the original and the current installation prefix of this module.
26248 + Relocation simply replaces a pathname starting with the original prefix
26249 + by the corresponding pathname with the current prefix instead. Both
26250 + prefixes should be directory names without trailing slash (i.e. use ""
26251 + instead of "/"). */
26253 +set_this_relocation_prefix (const char *orig_prefix_arg,
26254 + const char *curr_prefix_arg)
26256 + if (orig_prefix_arg != NULL && curr_prefix_arg != NULL
26257 + /* Optimization: if orig_prefix and curr_prefix are equal, the
26258 + relocation is a nop. */
26259 + && strcmp (orig_prefix_arg, curr_prefix_arg) != 0)
26261 + /* Duplicate the argument strings. */
26264 + orig_prefix_len = strlen (orig_prefix_arg);
26265 + curr_prefix_len = strlen (curr_prefix_arg);
26266 + memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1);
26268 + if (memory != NULL)
26271 + memcpy (memory, orig_prefix_arg, orig_prefix_len + 1);
26272 + orig_prefix = memory;
26273 + memory += orig_prefix_len + 1;
26274 + memcpy (memory, curr_prefix_arg, curr_prefix_len + 1);
26275 + curr_prefix = memory;
26279 + orig_prefix = NULL;
26280 + curr_prefix = NULL;
26281 + /* Don't worry about wasted memory here - this function is usually only
26285 +/* Sets the original and the current installation prefix of the package.
26286 + Relocation simply replaces a pathname starting with the original prefix
26287 + by the corresponding pathname with the current prefix instead. Both
26288 + prefixes should be directory names without trailing slash (i.e. use ""
26289 + instead of "/"). */
26291 +set_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg)
26293 + set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
26295 + /* Now notify all dependent libraries. */
26296 +#if DEPENDS_ON_LIBCHARSET
26297 + libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
26299 +#if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109
26300 + libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
26302 +#if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix
26303 + libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
26307 +#if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR)
26309 +/* Convenience function:
26310 + Computes the current installation prefix, based on the original
26311 + installation prefix, the original installation directory of a particular
26312 + file, and the current pathname of this file. Returns NULL upon failure. */
26314 +#define compute_curr_prefix local_compute_curr_prefix
26318 +compute_curr_prefix (const char *orig_installprefix,
26319 + const char *orig_installdir,
26320 + const char *curr_pathname)
26322 + const char *curr_installdir;
26323 + const char *rel_installdir;
26325 + if (curr_pathname == NULL)
26328 + /* Determine the relative installation directory, relative to the prefix.
26329 + This is simply the difference between orig_installprefix and
26330 + orig_installdir. */
26331 + if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix))
26333 + /* Shouldn't happen - nothing should be installed outside $(prefix). */
26335 + rel_installdir = orig_installdir + strlen (orig_installprefix);
26337 + /* Determine the current installation directory. */
26339 + const char *p_base = curr_pathname + FILESYSTEM_PREFIX_LEN (curr_pathname);
26340 + const char *p = curr_pathname + strlen (curr_pathname);
26343 + while (p > p_base)
26346 + if (ISSLASH (*p))
26350 + q = (char *) xmalloc (p - curr_pathname + 1);
26355 + memcpy (q, curr_pathname, p - curr_pathname);
26356 + q[p - curr_pathname] = '\0';
26357 + curr_installdir = q;
26360 + /* Compute the current installation prefix by removing the trailing
26361 + rel_installdir from it. */
26363 + const char *rp = rel_installdir + strlen (rel_installdir);
26364 + const char *cp = curr_installdir + strlen (curr_installdir);
26365 + const char *cp_base =
26366 + curr_installdir + FILESYSTEM_PREFIX_LEN (curr_installdir);
26368 + while (rp > rel_installdir && cp > cp_base)
26370 + bool same = false;
26371 + const char *rpi = rp;
26372 + const char *cpi = cp;
26374 + while (rpi > rel_installdir && cpi > cp_base)
26378 + if (ISSLASH (*rpi) || ISSLASH (*cpi))
26380 + if (ISSLASH (*rpi) && ISSLASH (*cpi))
26384 +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
26385 + /* Win32, OS/2, DOS - case insignificant filesystem */
26386 + if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi)
26387 + != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi))
26390 + if (*rpi != *cpi)
26396 + /* The last pathname component was the same. opi and cpi now point
26397 + to the slash before it. */
26402 + if (rp > rel_installdir)
26403 + /* Unexpected: The curr_installdir does not end with rel_installdir. */
26407 + size_t curr_prefix_len = cp - curr_installdir;
26408 + char *curr_prefix;
26410 + curr_prefix = (char *) xmalloc (curr_prefix_len + 1);
26412 + if (curr_prefix == NULL)
26415 + memcpy (curr_prefix, curr_installdir, curr_prefix_len);
26416 + curr_prefix[curr_prefix_len] = '\0';
26418 + return curr_prefix;
26423 +#endif /* !IN_LIBRARY || PIC */
26425 +#if defined PIC && defined INSTALLDIR
26427 +/* Full pathname of shared library, or NULL. */
26428 +static char *shared_library_fullname;
26430 +#if defined _WIN32 || defined __WIN32__
26432 +/* Determine the full pathname of the shared library when it is loaded. */
26435 +DllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved)
26439 + if (event == DLL_PROCESS_ATTACH)
26441 + /* The DLL is being loaded into an application's address range. */
26442 + static char location[MAX_PATH];
26444 + if (!GetModuleFileName (module_handle, location, sizeof (location)))
26445 + /* Shouldn't happen. */
26448 + if (!IS_PATH_WITH_DIR (location))
26449 + /* Shouldn't happen. */
26452 + shared_library_fullname = strdup (location);
26461 +find_shared_library_fullname ()
26463 +#if defined __linux__ && __GLIBC__ >= 2
26464 + /* Linux has /proc/self/maps. glibc 2 has the getline() function. */
26467 + /* Open the current process' maps file. It describes one VMA per line. */
26468 + fp = fopen ("/proc/self/maps", "r");
26471 + unsigned long address = (unsigned long) &find_shared_library_fullname;
26474 + unsigned long start, end;
26477 + if (fscanf (fp, "%lx-%lx", &start, &end) != 2)
26479 + if (address >= start && address <= end - 1)
26481 + /* Found it. Now see if this line contains a filename. */
26482 + while (c = getc (fp), c != EOF && c != '\n' && c != '/')
26490 + shared_library_fullname = NULL; size = 0;
26491 + len = getline (&shared_library_fullname, &size, fp);
26494 + /* Success: filled shared_library_fullname. */
26495 + if (len > 0 && shared_library_fullname[len - 1] == '\n')
26496 + shared_library_fullname[len - 1] = '\0';
26501 + while (c = getc (fp), c != EOF && c != '\n')
26509 +#endif /* WIN32 / Unix */
26511 +/* Return the full pathname of the current shared library.
26512 + Return NULL if unknown.
26513 + Guaranteed to work only on Linux and Woe32. */
26515 +get_shared_library_fullname ()
26517 +#if !(defined _WIN32 || defined __WIN32__)
26518 + static bool tried_find_shared_library_fullname;
26519 + if (!tried_find_shared_library_fullname)
26521 + find_shared_library_fullname ();
26522 + tried_find_shared_library_fullname = true;
26525 + return shared_library_fullname;
26530 +/* Returns the pathname, relocated according to the current installation
26533 +relocate (const char *pathname)
26535 +#if defined PIC && defined INSTALLDIR
26536 + static int initialized;
26538 + /* Initialization code for a shared library. */
26539 + if (!initialized)
26541 + /* At this point, orig_prefix and curr_prefix likely have already been
26542 + set through the main program's set_program_name_and_installdir
26543 + function. This is sufficient in the case that the library has
26544 + initially been installed in the same orig_prefix. But we can do
26545 + better, to also cover the cases that 1. it has been installed
26546 + in a different prefix before being moved to orig_prefix and (later)
26547 + to curr_prefix, 2. unlike the program, it has not moved away from
26549 + const char *orig_installprefix = INSTALLPREFIX;
26550 + const char *orig_installdir = INSTALLDIR;
26551 + const char *curr_prefix_better;
26553 + curr_prefix_better =
26554 + compute_curr_prefix (orig_installprefix, orig_installdir,
26555 + get_shared_library_fullname ());
26556 + if (curr_prefix_better == NULL)
26557 + curr_prefix_better = curr_prefix;
26559 + set_relocation_prefix (orig_installprefix, curr_prefix_better);
26565 + /* Note: It is not necessary to perform case insensitive comparison here,
26566 + even for DOS-like filesystems, because the pathname argument was
26567 + typically created from the same Makefile variable as orig_prefix came
26569 + if (orig_prefix != NULL && curr_prefix != NULL
26570 + && strncmp (pathname, orig_prefix, orig_prefix_len) == 0)
26572 + if (pathname[orig_prefix_len] == '\0')
26573 + /* pathname equals orig_prefix. */
26574 + return curr_prefix;
26575 + if (ISSLASH (pathname[orig_prefix_len]))
26577 + /* pathname starts with orig_prefix. */
26578 + const char *pathname_tail = &pathname[orig_prefix_len];
26580 + (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
26583 + if (result != NULL)
26586 + memcpy (result, curr_prefix, curr_prefix_len);
26587 + strcpy (result + curr_prefix_len, pathname_tail);
26592 + /* Nothing to relocate. */
26598 +++ lxpanel-0.5.6/intl/ngettext.c
26600 +/* Implementation of ngettext(3) function.
26601 + Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc.
26603 + This program is free software; you can redistribute it and/or modify it
26604 + under the terms of the GNU Library General Public License as published
26605 + by the Free Software Foundation; either version 2, or (at your option)
26606 + any later version.
26608 + This program is distributed in the hope that it will be useful,
26609 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26610 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26611 + Library General Public License for more details.
26613 + You should have received a copy of the GNU Library General Public
26614 + License along with this program; if not, write to the Free Software
26615 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26618 +#ifdef HAVE_CONFIG_H
26619 +# include <config.h>
26623 +# define __need_NULL
26624 +# include <stddef.h>
26626 +# include <stdlib.h> /* Just for NULL. */
26629 +#include "gettextP.h"
26631 +# include <libintl.h>
26633 +# include "libgnuintl.h"
26636 +#include <locale.h>
26638 +/* @@ end of prolog @@ */
26640 +/* Names for the libintl functions are a problem. They must not clash
26641 + with existing names and they should follow ANSI C. But this source
26642 + code is also used in GNU C Library where the names have a __
26643 + prefix. So we have to make a difference here. */
26645 +# define NGETTEXT __ngettext
26646 +# define DCNGETTEXT __dcngettext
26648 +# define NGETTEXT libintl_ngettext
26649 +# define DCNGETTEXT libintl_dcngettext
26652 +/* Look up MSGID in the current default message catalog for the current
26653 + LC_MESSAGES locale. If not found, returns MSGID itself (the default
26656 +NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n)
26658 + return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES);
26662 +/* Alias for function name in GNU C Library. */
26663 +weak_alias (__ngettext, ngettext);
26666 +++ lxpanel-0.5.6/intl/gmo.h
26668 +/* Description of GNU message catalog format: general file layout.
26669 + Copyright (C) 1995, 1997, 2000-2002, 2004 Free Software Foundation, Inc.
26671 + This program is free software; you can redistribute it and/or modify it
26672 + under the terms of the GNU Library General Public License as published
26673 + by the Free Software Foundation; either version 2, or (at your option)
26674 + any later version.
26676 + This program is distributed in the hope that it will be useful,
26677 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26678 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26679 + Library General Public License for more details.
26681 + You should have received a copy of the GNU Library General Public
26682 + License along with this program; if not, write to the Free Software
26683 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26686 +#ifndef _GETTEXT_H
26687 +#define _GETTEXT_H 1
26689 +#include <limits.h>
26691 +/* @@ end of prolog @@ */
26693 +/* The magic number of the GNU message catalog format. */
26694 +#define _MAGIC 0x950412de
26695 +#define _MAGIC_SWAPPED 0xde120495
26697 +/* Revision number of the currently used .mo (binary) file format. */
26698 +#define MO_REVISION_NUMBER 0
26699 +#define MO_REVISION_NUMBER_WITH_SYSDEP_I 1
26701 +/* The following contortions are an attempt to use the C preprocessor
26702 + to determine an unsigned integral type that is 32 bits wide. An
26703 + alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
26704 + as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work
26705 + when cross-compiling. */
26708 +# define UINT_MAX_32_BITS 4294967295U
26710 +# define UINT_MAX_32_BITS 0xFFFFFFFF
26713 +/* If UINT_MAX isn't defined, assume it's a 32-bit type.
26714 + This should be valid for all systems GNU cares about because
26715 + that doesn't include 16-bit systems, and only modern systems
26716 + (that certainly have <limits.h>) have 64+-bit integral types. */
26719 +# define UINT_MAX UINT_MAX_32_BITS
26722 +#if UINT_MAX == UINT_MAX_32_BITS
26723 +typedef unsigned nls_uint32;
26725 +# if USHRT_MAX == UINT_MAX_32_BITS
26726 +typedef unsigned short nls_uint32;
26728 +# if ULONG_MAX == UINT_MAX_32_BITS
26729 +typedef unsigned long nls_uint32;
26731 + /* The following line is intended to throw an error. Using #error is
26732 + not portable enough. */
26733 + "Cannot determine unsigned 32-bit data type."
26739 +/* Header for binary .mo file format. */
26740 +struct mo_file_header
26742 + /* The magic number. */
26743 + nls_uint32 magic;
26744 + /* The revision number of the file format. */
26745 + nls_uint32 revision;
26747 + /* The following are only used in .mo files with major revision 0 or 1. */
26749 + /* The number of strings pairs. */
26750 + nls_uint32 nstrings;
26751 + /* Offset of table with start offsets of original strings. */
26752 + nls_uint32 orig_tab_offset;
26753 + /* Offset of table with start offsets of translated strings. */
26754 + nls_uint32 trans_tab_offset;
26755 + /* Size of hash table. */
26756 + nls_uint32 hash_tab_size;
26757 + /* Offset of first hash table entry. */
26758 + nls_uint32 hash_tab_offset;
26760 + /* The following are only used in .mo files with minor revision >= 1. */
26762 + /* The number of system dependent segments. */
26763 + nls_uint32 n_sysdep_segments;
26764 + /* Offset of table describing system dependent segments. */
26765 + nls_uint32 sysdep_segments_offset;
26766 + /* The number of system dependent strings pairs. */
26767 + nls_uint32 n_sysdep_strings;
26768 + /* Offset of table with start offsets of original sysdep strings. */
26769 + nls_uint32 orig_sysdep_tab_offset;
26770 + /* Offset of table with start offsets of translated sysdep strings. */
26771 + nls_uint32 trans_sysdep_tab_offset;
26774 +/* Descriptor for static string contained in the binary .mo file. */
26775 +struct string_desc
26777 + /* Length of addressed string, not including the trailing NUL. */
26778 + nls_uint32 length;
26779 + /* Offset of string in file. */
26780 + nls_uint32 offset;
26783 +/* The following are only used in .mo files with minor revision >= 1. */
26785 +/* Descriptor for system dependent string segment. */
26786 +struct sysdep_segment
26788 + /* Length of addressed string, including the trailing NUL. */
26789 + nls_uint32 length;
26790 + /* Offset of string in file. */
26791 + nls_uint32 offset;
26794 +/* Descriptor for system dependent string. */
26795 +struct sysdep_string
26797 + /* Offset of static string segments in file. */
26798 + nls_uint32 offset;
26799 + /* Alternating sequence of static and system dependent segments.
26800 + The last segment is a static segment, including the trailing NUL. */
26801 + struct segment_pair
26803 + /* Size of static segment. */
26804 + nls_uint32 segsize;
26805 + /* Reference to system dependent string segment, or ~0 at the end. */
26806 + nls_uint32 sysdepref;
26810 +/* Marker for the end of the segments[] array. This has the value 0xFFFFFFFF,
26811 + regardless whether 'int' is 16 bit, 32 bit, or 64 bit. */
26812 +#define SEGMENTS_END ((nls_uint32) ~0)
26814 +/* @@ begin of epilog @@ */
26816 +#endif /* gettext.h */
26818 +++ lxpanel-0.5.6/intl/dgettext.c
26820 +/* Implementation of the dgettext(3) function.
26821 + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc.
26823 + This program is free software; you can redistribute it and/or modify it
26824 + under the terms of the GNU Library General Public License as published
26825 + by the Free Software Foundation; either version 2, or (at your option)
26826 + any later version.
26828 + This program is distributed in the hope that it will be useful,
26829 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26830 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26831 + Library General Public License for more details.
26833 + You should have received a copy of the GNU Library General Public
26834 + License along with this program; if not, write to the Free Software
26835 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26838 +#ifdef HAVE_CONFIG_H
26839 +# include <config.h>
26842 +#include "gettextP.h"
26844 +#include <locale.h>
26847 +# include <libintl.h>
26849 +# include "libgnuintl.h"
26852 +/* @@ end of prolog @@ */
26854 +/* Names for the libintl functions are a problem. They must not clash
26855 + with existing names and they should follow ANSI C. But this source
26856 + code is also used in GNU C Library where the names have a __
26857 + prefix. So we have to make a difference here. */
26859 +# define DGETTEXT __dgettext
26860 +# define DCGETTEXT INTUSE(__dcgettext)
26862 +# define DGETTEXT libintl_dgettext
26863 +# define DCGETTEXT libintl_dcgettext
26866 +/* Look up MSGID in the DOMAINNAME message catalog of the current
26867 + LC_MESSAGES locale. */
26869 +DGETTEXT (const char *domainname, const char *msgid)
26871 + return DCGETTEXT (domainname, msgid, LC_MESSAGES);
26875 +/* Alias for function name in GNU C Library. */
26876 +weak_alias (__dgettext, dgettext);
26879 +++ lxpanel-0.5.6/intl/locale.alias
26881 +# Locale name alias data base.
26882 +# Copyright (C) 1996-2001,2003 Free Software Foundation, Inc.
26884 +# This program is free software; you can redistribute it and/or modify it
26885 +# under the terms of the GNU Library General Public License as published
26886 +# by the Free Software Foundation; either version 2, or (at your option)
26887 +# any later version.
26889 +# This program is distributed in the hope that it will be useful,
26890 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
26891 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26892 +# Library General Public License for more details.
26894 +# You should have received a copy of the GNU Library General Public
26895 +# License along with this program; if not, write to the Free Software
26896 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26899 +# The format of this file is the same as for the corresponding file of
26900 +# the X Window System, which normally can be found in
26901 +# /usr/lib/X11/locale/locale.alias
26902 +# A single line contains two fields: an alias and a substitution value.
26903 +# All entries are case independent.
26905 +# Note: This file is far from being complete. If you have a value for
26906 +# your own site which you think might be useful for others too, share
26907 +# it with the rest of us. Send it using the `glibcbug' script to
26910 +# Packages using this file:
26912 +bokmal nb_NO.ISO-8859-1
26913 +bokmål nb_NO.ISO-8859-1
26914 +catalan ca_ES.ISO-8859-1
26915 +croatian hr_HR.ISO-8859-2
26916 +czech cs_CZ.ISO-8859-2
26917 +danish da_DK.ISO-8859-1
26918 +dansk da_DK.ISO-8859-1
26919 +deutsch de_DE.ISO-8859-1
26920 +dutch nl_NL.ISO-8859-1
26921 +eesti et_EE.ISO-8859-1
26922 +estonian et_EE.ISO-8859-1
26923 +finnish fi_FI.ISO-8859-1
26924 +français fr_FR.ISO-8859-1
26925 +french fr_FR.ISO-8859-1
26926 +galego gl_ES.ISO-8859-1
26927 +galician gl_ES.ISO-8859-1
26928 +german de_DE.ISO-8859-1
26929 +greek el_GR.ISO-8859-7
26930 +hebrew he_IL.ISO-8859-8
26931 +hrvatski hr_HR.ISO-8859-2
26932 +hungarian hu_HU.ISO-8859-2
26933 +icelandic is_IS.ISO-8859-1
26934 +italian it_IT.ISO-8859-1
26935 +japanese ja_JP.eucJP
26936 +japanese.euc ja_JP.eucJP
26938 +ja_JP.ujis ja_JP.eucJP
26939 +japanese.sjis ja_JP.SJIS
26940 +korean ko_KR.eucKR
26941 +korean.euc ko_KR.eucKR
26943 +lithuanian lt_LT.ISO-8859-13
26944 +no_NO nb_NO.ISO-8859-1
26945 +no_NO.ISO-8859-1 nb_NO.ISO-8859-1
26946 +norwegian nb_NO.ISO-8859-1
26947 +nynorsk nn_NO.ISO-8859-1
26948 +polish pl_PL.ISO-8859-2
26949 +portuguese pt_PT.ISO-8859-1
26950 +romanian ro_RO.ISO-8859-2
26951 +russian ru_RU.ISO-8859-5
26952 +slovak sk_SK.ISO-8859-2
26953 +slovene sl_SI.ISO-8859-2
26954 +slovenian sl_SI.ISO-8859-2
26955 +spanish es_ES.ISO-8859-1
26956 +swedish sv_SE.ISO-8859-1
26957 +thai th_TH.TIS-620
26958 +turkish tr_TR.ISO-8859-9
26960 +++ lxpanel-0.5.6/intl/printf-args.c
26962 +/* Decomposed printf argument list.
26963 + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc.
26965 + This program is free software; you can redistribute it and/or modify it
26966 + under the terms of the GNU Library General Public License as published
26967 + by the Free Software Foundation; either version 2, or (at your option)
26968 + any later version.
26970 + This program is distributed in the hope that it will be useful,
26971 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26972 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26973 + Library General Public License for more details.
26975 + You should have received a copy of the GNU Library General Public
26976 + License along with this program; if not, write to the Free Software
26977 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26980 +#ifdef HAVE_CONFIG_H
26981 +# include <config.h>
26984 +/* Specification. */
26985 +#include "printf-args.h"
26991 +printf_fetchargs (va_list args, arguments *a)
26996 + for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++)
26997 + switch (ap->type)
27000 + ap->a.a_schar = va_arg (args, /*signed char*/ int);
27003 + ap->a.a_uchar = va_arg (args, /*unsigned char*/ int);
27006 + ap->a.a_short = va_arg (args, /*short*/ int);
27008 + case TYPE_USHORT:
27009 + ap->a.a_ushort = va_arg (args, /*unsigned short*/ int);
27012 + ap->a.a_int = va_arg (args, int);
27015 + ap->a.a_uint = va_arg (args, unsigned int);
27017 + case TYPE_LONGINT:
27018 + ap->a.a_longint = va_arg (args, long int);
27020 + case TYPE_ULONGINT:
27021 + ap->a.a_ulongint = va_arg (args, unsigned long int);
27023 +#ifdef HAVE_LONG_LONG
27024 + case TYPE_LONGLONGINT:
27025 + ap->a.a_longlongint = va_arg (args, long long int);
27027 + case TYPE_ULONGLONGINT:
27028 + ap->a.a_ulonglongint = va_arg (args, unsigned long long int);
27031 + case TYPE_DOUBLE:
27032 + ap->a.a_double = va_arg (args, double);
27034 +#ifdef HAVE_LONG_DOUBLE
27035 + case TYPE_LONGDOUBLE:
27036 + ap->a.a_longdouble = va_arg (args, long double);
27040 + ap->a.a_char = va_arg (args, int);
27042 +#ifdef HAVE_WINT_T
27043 + case TYPE_WIDE_CHAR:
27044 + ap->a.a_wide_char = va_arg (args, wint_t);
27047 + case TYPE_STRING:
27048 + ap->a.a_string = va_arg (args, const char *);
27050 +#ifdef HAVE_WCHAR_T
27051 + case TYPE_WIDE_STRING:
27052 + ap->a.a_wide_string = va_arg (args, const wchar_t *);
27055 + case TYPE_POINTER:
27056 + ap->a.a_pointer = va_arg (args, void *);
27058 + case TYPE_COUNT_SCHAR_POINTER:
27059 + ap->a.a_count_schar_pointer = va_arg (args, signed char *);
27061 + case TYPE_COUNT_SHORT_POINTER:
27062 + ap->a.a_count_short_pointer = va_arg (args, short *);
27064 + case TYPE_COUNT_INT_POINTER:
27065 + ap->a.a_count_int_pointer = va_arg (args, int *);
27067 + case TYPE_COUNT_LONGINT_POINTER:
27068 + ap->a.a_count_longint_pointer = va_arg (args, long int *);
27070 +#ifdef HAVE_LONG_LONG
27071 + case TYPE_COUNT_LONGLONGINT_POINTER:
27072 + ap->a.a_count_longlongint_pointer = va_arg (args, long long int *);
27076 + /* Unknown type. */
27082 +++ lxpanel-0.5.6/intl/localealias.c
27084 +/* Handle aliases for locale names.
27085 + Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc.
27087 + This program is free software; you can redistribute it and/or modify it
27088 + under the terms of the GNU Library General Public License as published
27089 + by the Free Software Foundation; either version 2, or (at your option)
27090 + any later version.
27092 + This program is distributed in the hope that it will be useful,
27093 + but WITHOUT ANY WARRANTY; without even the implied warranty of
27094 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27095 + Library General Public License for more details.
27097 + You should have received a copy of the GNU Library General Public
27098 + License along with this program; if not, write to the Free Software
27099 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
27102 +/* Tell glibc's <string.h> to provide a prototype for mempcpy().
27103 + This must come before <config.h> because <config.h> may include
27104 + <features.h>, and once <features.h> has been included, it's too late. */
27105 +#ifndef _GNU_SOURCE
27106 +# define _GNU_SOURCE 1
27109 +#ifdef HAVE_CONFIG_H
27110 +# include <config.h>
27113 +#include <ctype.h>
27114 +#include <stdio.h>
27115 +#if defined _LIBC || defined HAVE___FSETLOCKING
27116 +# include <stdio_ext.h>
27118 +#include <sys/types.h>
27122 +# define alloca __builtin_alloca
27123 +# define HAVE_ALLOCA 1
27126 +# include <malloc.h>
27127 +# define alloca _alloca
27129 +# if defined HAVE_ALLOCA_H || defined _LIBC
27130 +# include <alloca.h>
27143 +#include <stdlib.h>
27144 +#include <string.h>
27146 +#include "gettextP.h"
27148 +#if ENABLE_RELOCATABLE
27149 +# include "relocatable.h"
27151 +# define relocate(pathname) (pathname)
27154 +/* @@ end of prolog @@ */
27157 +/* Rename the non ANSI C functions. This is required by the standard
27158 + because some ANSI C functions will require linking with this object
27159 + file and the name space must not be polluted. */
27160 +# define strcasecmp __strcasecmp
27163 +# define mempcpy __mempcpy
27165 +# define HAVE_MEMPCPY 1
27166 +# define HAVE___FSETLOCKING 1
27168 +/* We need locking here since we can be called from different places. */
27169 +# include <bits/libc-lock.h>
27171 +__libc_lock_define_initialized (static, lock);
27174 +#ifndef internal_function
27175 +# define internal_function
27178 +/* Some optimizations for glibc. */
27180 +# define FEOF(fp) feof_unlocked (fp)
27181 +# define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp)
27183 +# define FEOF(fp) feof (fp)
27184 +# define FGETS(buf, n, fp) fgets (buf, n, fp)
27187 +/* For those losing systems which don't have `alloca' we have to add
27188 + some additional code emulating it. */
27189 +#ifdef HAVE_ALLOCA
27190 +# define freea(p) /* nothing */
27192 +# define alloca(n) malloc (n)
27193 +# define freea(p) free (p)
27196 +#if defined _LIBC_REENTRANT || HAVE_DECL_FGETS_UNLOCKED
27198 +# define fgets(buf, len, s) fgets_unlocked (buf, len, s)
27200 +#if defined _LIBC_REENTRANT || HAVE_DECL_FEOF_UNLOCKED
27202 +# define feof(s) feof_unlocked (s)
27208 + const char *alias;
27209 + const char *value;
27214 +# define libc_freeres_ptr(decl) decl
27217 +libc_freeres_ptr (static char *string_space);
27218 +static size_t string_space_act;
27219 +static size_t string_space_max;
27220 +libc_freeres_ptr (static struct alias_map *map);
27221 +static size_t nmap;
27222 +static size_t maxmap;
27225 +/* Prototypes for local functions. */
27226 +static size_t read_alias_file (const char *fname, int fname_len)
27227 + internal_function;
27228 +static int extend_alias_table (void);
27229 +static int alias_compare (const struct alias_map *map1,
27230 + const struct alias_map *map2);
27234 +_nl_expand_alias (const char *name)
27236 + static const char *locale_alias_path;
27237 + struct alias_map *retval;
27238 + const char *result = NULL;
27242 + __libc_lock_lock (lock);
27245 + if (locale_alias_path == NULL)
27246 + locale_alias_path = LOCALE_ALIAS_PATH;
27250 + struct alias_map item;
27252 + item.alias = name;
27255 + retval = (struct alias_map *) bsearch (&item, map, nmap,
27256 + sizeof (struct alias_map),
27257 + (int (*) (const void *,
27259 + ) alias_compare);
27263 + /* We really found an alias. Return the value. */
27264 + if (retval != NULL)
27266 + result = retval->value;
27270 + /* Perhaps we can find another alias file. */
27272 + while (added == 0 && locale_alias_path[0] != '\0')
27274 + const char *start;
27276 + while (locale_alias_path[0] == PATH_SEPARATOR)
27277 + ++locale_alias_path;
27278 + start = locale_alias_path;
27280 + while (locale_alias_path[0] != '\0'
27281 + && locale_alias_path[0] != PATH_SEPARATOR)
27282 + ++locale_alias_path;
27284 + if (start < locale_alias_path)
27285 + added = read_alias_file (start, locale_alias_path - start);
27288 + while (added != 0);
27291 + __libc_lock_unlock (lock);
27300 +read_alias_file (const char *fname, int fname_len)
27303 + char *full_fname;
27305 + static const char aliasfile[] = "/locale.alias";
27307 + full_fname = (char *) alloca (fname_len + sizeof aliasfile);
27308 +#ifdef HAVE_MEMPCPY
27309 + mempcpy (mempcpy (full_fname, fname, fname_len),
27310 + aliasfile, sizeof aliasfile);
27312 + memcpy (full_fname, fname, fname_len);
27313 + memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile);
27316 + fp = fopen (relocate (full_fname), "r");
27317 + freea (full_fname);
27321 +#ifdef HAVE___FSETLOCKING
27322 + /* No threads present. */
27323 + __fsetlocking (fp, FSETLOCKING_BYCALLER);
27327 + while (!FEOF (fp))
27329 + /* It is a reasonable approach to use a fix buffer here because
27330 + a) we are only interested in the first two fields
27331 + b) these fields must be usable as file names and so must not
27333 + We avoid a multi-kilobyte buffer here since this would use up
27334 + stack space which we might not have if the program ran out of
27341 + if (FGETS (buf, sizeof buf, fp) == NULL)
27342 + /* EOF reached. */
27346 + /* Ignore leading white space. */
27347 + while (isspace ((unsigned char) cp[0]))
27350 + /* A leading '#' signals a comment line. */
27351 + if (cp[0] != '\0' && cp[0] != '#')
27354 + while (cp[0] != '\0' && !isspace ((unsigned char) cp[0]))
27356 + /* Terminate alias name. */
27357 + if (cp[0] != '\0')
27360 + /* Now look for the beginning of the value. */
27361 + while (isspace ((unsigned char) cp[0]))
27364 + if (cp[0] != '\0')
27366 + size_t alias_len;
27367 + size_t value_len;
27370 + while (cp[0] != '\0' && !isspace ((unsigned char) cp[0]))
27372 + /* Terminate value. */
27373 + if (cp[0] == '\n')
27375 + /* This has to be done to make the following test
27376 + for the end of line possible. We are looking for
27377 + the terminating '\n' which do not overwrite here. */
27381 + else if (cp[0] != '\0')
27384 + if (nmap >= maxmap)
27385 + if (__builtin_expect (extend_alias_table (), 0))
27388 + alias_len = strlen (alias) + 1;
27389 + value_len = strlen (value) + 1;
27391 + if (string_space_act + alias_len + value_len > string_space_max)
27393 + /* Increase size of memory pool. */
27394 + size_t new_size = (string_space_max
27395 + + (alias_len + value_len > 1024
27396 + ? alias_len + value_len : 1024));
27397 + char *new_pool = (char *) realloc (string_space, new_size);
27398 + if (new_pool == NULL)
27401 + if (__builtin_expect (string_space != new_pool, 0))
27405 + for (i = 0; i < nmap; i++)
27407 + map[i].alias += new_pool - string_space;
27408 + map[i].value += new_pool - string_space;
27412 + string_space = new_pool;
27413 + string_space_max = new_size;
27416 + map[nmap].alias = memcpy (&string_space[string_space_act],
27417 + alias, alias_len);
27418 + string_space_act += alias_len;
27420 + map[nmap].value = memcpy (&string_space[string_space_act],
27421 + value, value_len);
27422 + string_space_act += value_len;
27429 + /* Possibly not the whole line fits into the buffer. Ignore
27430 + the rest of the line. */
27431 + while (strchr (buf, '\n') == NULL)
27432 + if (FGETS (buf, sizeof buf, fp) == NULL)
27433 + /* Make sure the inner loop will be left. The outer loop
27434 + will exit at the `feof' test. */
27438 + /* Should we test for ferror()? I think we have to silently ignore
27439 + errors. --drepper */
27443 + qsort (map, nmap, sizeof (struct alias_map),
27444 + (int (*) (const void *, const void *)) alias_compare);
27451 +extend_alias_table ()
27454 + struct alias_map *new_map;
27456 + new_size = maxmap == 0 ? 100 : 2 * maxmap;
27457 + new_map = (struct alias_map *) realloc (map, (new_size
27458 + * sizeof (struct alias_map)));
27459 + if (new_map == NULL)
27460 + /* Simply don't extend: we don't have any more core. */
27464 + maxmap = new_size;
27470 +alias_compare (const struct alias_map *map1, const struct alias_map *map2)
27472 +#if defined _LIBC || defined HAVE_STRCASECMP
27473 + return strcasecmp (map1->alias, map2->alias);
27475 + const unsigned char *p1 = (const unsigned char *) map1->alias;
27476 + const unsigned char *p2 = (const unsigned char *) map2->alias;
27477 + unsigned char c1, c2;
27484 + /* I know this seems to be odd but the tolower() function in
27485 + some systems libc cannot handle nonalpha characters. */
27486 + c1 = isupper (*p1) ? tolower (*p1) : *p1;
27487 + c2 = isupper (*p2) ? tolower (*p2) : *p2;
27493 + while (c1 == c2);
27498 --- lxpanel-0.5.6.orig/data/Makefile.in
27499 +++ lxpanel-0.5.6/data/Makefile.in
27500 @@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acin
27501 $(top_srcdir)/configure.ac
27502 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
27504 -mkinstalldirs = $(install_sh) -d
27505 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
27506 CONFIG_HEADER = $(top_builddir)/config.h
27507 CONFIG_CLEAN_FILES =
27508 CONFIG_CLEAN_VPATH_FILES =
27509 @@ -78,6 +78,8 @@ ACLOCAL = @ACLOCAL@
27510 ALL_LINGUAS = @ALL_LINGUAS@
27511 ALL_PLUGINS_LIST = @ALL_PLUGINS_LIST@
27513 +APPLET_CFLAGS = @APPLET_CFLAGS@
27514 +APPLET_LIBS = @APPLET_LIBS@
27516 AUTOCONF = @AUTOCONF@
27517 AUTOHEADER = @AUTOHEADER@
27518 @@ -107,6 +109,8 @@ GMOFILES = @GMOFILES@
27519 GMSGFMT = @GMSGFMT@
27521 G_CAST_CHECKS = @G_CAST_CHECKS@
27522 +INDICATORDIR = @INDICATORDIR@
27523 +INDICATORICONSDIR = @INDICATORICONSDIR@
27524 INSTALL = @INSTALL@
27525 INSTALL_DATA = @INSTALL_DATA@
27526 INSTALL_PROGRAM = @INSTALL_PROGRAM@
27527 @@ -152,8 +156,6 @@ PACKAGE_URL = @PACKAGE_URL@
27528 PACKAGE_VERSION = @PACKAGE_VERSION@
27529 PATH_SEPARATOR = @PATH_SEPARATOR@
27530 PKG_CONFIG = @PKG_CONFIG@
27531 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
27532 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
27533 PLUGINS_LIST = @PLUGINS_LIST@
27534 POFILES = @POFILES@
27536 @@ -209,6 +211,7 @@ libdir = @libdir@
27537 libexecdir = @libexecdir@
27538 localedir = @localedir@
27539 localstatedir = @localstatedir@
27540 +lt_ECHO = @lt_ECHO@
27542 mkdir_p = @mkdir_p@
27543 oldincludedir = @oldincludedir@