]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/vorbis-tools/vorbis-tools-1.0.1/m4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / vorbis-tools / vorbis-tools-1.0.1 / m4.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- /dev/null
7 +++ vorbis-tools-1.0.1/m4/gettext.m4
8 @@ -0,0 +1,587 @@
9 +# gettext.m4 serial 17 (gettext-0.11.5)
10 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
11 +dnl This file is free software, distributed under the terms of the GNU
12 +dnl General Public License.  As a special exception to the GNU General
13 +dnl Public License, this file may be distributed as part of a program
14 +dnl that contains a configuration script generated by Autoconf, under
15 +dnl the same distribution terms as the rest of that program.
16 +dnl
17 +dnl This file can can be used in projects which are not available under
18 +dnl the GNU General Public License or the GNU Library General Public
19 +dnl License but which still want to provide support for the GNU gettext
20 +dnl functionality.
21 +dnl Please note that the actual code of the GNU gettext library is covered
22 +dnl by the GNU Library General Public License, and the rest of the GNU
23 +dnl gettext package package is covered by the GNU General Public License.
24 +dnl They are *not* in the public domain.
25 +
26 +dnl Authors:
27 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
28 +dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2002.
29 +
30 +dnl Macro to add for using GNU gettext.
31 +
32 +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
33 +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
34 +dnl    default (if it is not specified or empty) is 'no-libtool'.
35 +dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
36 +dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
37 +dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
38 +dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
39 +dnl    depending on --{enable,disable}-{shared,static} and on the presence of
40 +dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
41 +dnl    $(top_builddir)/intl/libintl.a will be created.
42 +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
43 +dnl    implementations (in libc or libintl) without the ngettext() function
44 +dnl    will be ignored.  If NEEDSYMBOL is specified and is
45 +dnl    'need-formatstring-macros', then GNU gettext implementations that don't
46 +dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
47 +dnl INTLDIR is used to find the intl libraries.  If empty,
48 +dnl    the value `$(top_builddir)/intl/' is used.
49 +dnl
50 +dnl The result of the configuration is one of three cases:
51 +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
52 +dnl    and used.
53 +dnl    Catalog format: GNU --> install in $(datadir)
54 +dnl    Catalog extension: .mo after installation, .gmo in source tree
55 +dnl 2) GNU gettext has been found in the system's C library.
56 +dnl    Catalog format: GNU --> install in $(datadir)
57 +dnl    Catalog extension: .mo after installation, .gmo in source tree
58 +dnl 3) No internationalization, always use English msgid.
59 +dnl    Catalog format: none
60 +dnl    Catalog extension: none
61 +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
62 +dnl The use of .gmo is historical (it was needed to avoid overwriting the
63 +dnl GNU format catalogs when building on a platform with an X/Open gettext),
64 +dnl but we keep it in order not to force irrelevant filename changes on the
65 +dnl maintainers.
66 +dnl
67 +AC_DEFUN([AM_GNU_GETTEXT],
68 +[
69 +  dnl Argument checking.
70 +  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
71 +    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
72 +])])])])])
73 +  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
74 +    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
75 +])])])])
76 +  define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
77 +  define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
78 +
79 +  AC_REQUIRE([AM_PO_SUBDIRS])dnl
80 +  ifelse(gt_included_intl, yes, [
81 +    AC_REQUIRE([AM_INTL_SUBDIR])dnl
82 +  ])
83 +
84 +  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
85 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
86 +  AC_REQUIRE([AC_LIB_RPATH])
87 +
88 +  dnl Sometimes libintl requires libiconv, so first search for libiconv.
89 +  dnl Ideally we would do this search only after the
90 +  dnl      if test "$USE_NLS" = "yes"; then
91 +  dnl        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
92 +  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
93 +  dnl the configure script would need to contain the same shell code
94 +  dnl again, outside any 'if'. There are two solutions:
95 +  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
96 +  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
97 +  dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
98 +  dnl documented, we avoid it.
99 +  ifelse(gt_included_intl, yes, , [
100 +    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
101 +  ])
102 +
103 +  AC_MSG_CHECKING([whether NLS is requested])
104 +  dnl Default is enabled NLS
105 +  AC_ARG_ENABLE(nls,
106 +    [  --disable-nls           do not use Native Language Support],
107 +    USE_NLS=$enableval, USE_NLS=yes)
108 +  AC_MSG_RESULT($USE_NLS)
109 +  AC_SUBST(USE_NLS)
110 +
111 +  ifelse(gt_included_intl, yes, [
112 +    BUILD_INCLUDED_LIBINTL=no
113 +    USE_INCLUDED_LIBINTL=no
114 +  ])
115 +  LIBINTL=
116 +  LTLIBINTL=
117 +  POSUB=
118 +
119 +  dnl If we use NLS figure out what method
120 +  if test "$USE_NLS" = "yes"; then
121 +    gt_use_preinstalled_gnugettext=no
122 +    ifelse(gt_included_intl, yes, [
123 +      AC_MSG_CHECKING([whether included gettext is requested])
124 +      AC_ARG_WITH(included-gettext,
125 +        [  --with-included-gettext use the GNU gettext library included here],
126 +        nls_cv_force_use_gnu_gettext=$withval,
127 +        nls_cv_force_use_gnu_gettext=no)
128 +      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
129 +
130 +      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
131 +      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
132 +    ])
133 +        dnl User does not insist on using GNU NLS library.  Figure out what
134 +        dnl to use.  If GNU gettext is available we use this.  Else we have
135 +        dnl to fall back to GNU NLS library.
136 +
137 +        dnl Add a version number to the cache macros.
138 +        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
139 +        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
140 +        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
141 +
142 +        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
143 +         [AC_TRY_LINK([#include <libintl.h>
144 +]ifelse([$2], [need-formatstring-macros],
145 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
146 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
147 +#endif
148 +changequote(,)dnl
149 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
150 +changequote([,])dnl
151 +], [])[extern int _nl_msg_cat_cntr;
152 +extern int *_nl_domain_bindings;],
153 +            [bindtextdomain ("", "");
154 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
155 +            gt_cv_func_gnugettext_libc=yes,
156 +            gt_cv_func_gnugettext_libc=no)])
157 +
158 +        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
159 +          dnl Sometimes libintl requires libiconv, so first search for libiconv.
160 +          ifelse(gt_included_intl, yes, , [
161 +            AM_ICONV_LINK
162 +          ])
163 +          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
164 +          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
165 +          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
166 +          dnl even if libiconv doesn't exist.
167 +          AC_LIB_LINKFLAGS_BODY([intl])
168 +          AC_CACHE_CHECK([for GNU gettext in libintl],
169 +            gt_cv_func_gnugettext_libintl,
170 +           [gt_save_CPPFLAGS="$CPPFLAGS"
171 +            CPPFLAGS="$CPPFLAGS $INCINTL"
172 +            gt_save_LIBS="$LIBS"
173 +            LIBS="$LIBS $LIBINTL"
174 +            dnl Now see whether libintl exists and does not depend on libiconv.
175 +            AC_TRY_LINK([#include <libintl.h>
176 +]ifelse([$2], [need-formatstring-macros],
177 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
178 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
179 +#endif
180 +changequote(,)dnl
181 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
182 +changequote([,])dnl
183 +], [])[extern int _nl_msg_cat_cntr;
184 +extern
185 +#ifdef __cplusplus
186 +"C"
187 +#endif
188 +const char *_nl_expand_alias ();],
189 +              [bindtextdomain ("", "");
190 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
191 +              gt_cv_func_gnugettext_libintl=yes,
192 +              gt_cv_func_gnugettext_libintl=no)
193 +            dnl Now see whether libintl exists and depends on libiconv.
194 +            if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
195 +              LIBS="$LIBS $LIBICONV"
196 +              AC_TRY_LINK([#include <libintl.h>
197 +]ifelse([$2], [need-formatstring-macros],
198 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
199 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
200 +#endif
201 +changequote(,)dnl
202 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
203 +changequote([,])dnl
204 +], [])[extern int _nl_msg_cat_cntr;
205 +extern
206 +#ifdef __cplusplus
207 +"C"
208 +#endif
209 +const char *_nl_expand_alias ();],
210 +                [bindtextdomain ("", "");
211 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
212 +               [LIBINTL="$LIBINTL $LIBICONV"
213 +                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
214 +                gt_cv_func_gnugettext_libintl=yes
215 +               ])
216 +            fi
217 +            CPPFLAGS="$gt_save_CPPFLAGS"
218 +            LIBS="$gt_save_LIBS"])
219 +        fi
220 +
221 +        dnl If an already present or preinstalled GNU gettext() is found,
222 +        dnl use it.  But if this macro is used in GNU gettext, and GNU
223 +        dnl gettext is already preinstalled in libintl, we update this
224 +        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
225 +        if test "$gt_cv_func_gnugettext_libc" = "yes" \
226 +           || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
227 +                && test "$PACKAGE" != gettext; }; then
228 +          gt_use_preinstalled_gnugettext=yes
229 +        else
230 +          dnl Reset the values set by searching for libintl.
231 +          LIBINTL=
232 +          LTLIBINTL=
233 +          INCINTL=
234 +        fi
235 +
236 +    ifelse(gt_included_intl, yes, [
237 +        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
238 +          dnl GNU gettext is not found in the C library.
239 +          dnl Fall back on included GNU gettext library.
240 +          nls_cv_use_gnu_gettext=yes
241 +        fi
242 +      fi
243 +
244 +      if test "$nls_cv_use_gnu_gettext" = "yes"; then
245 +        dnl Mark actions used to generate GNU NLS library.
246 +        INTLOBJS="\$(GETTOBJS)"
247 +        BUILD_INCLUDED_LIBINTL=yes
248 +        USE_INCLUDED_LIBINTL=yes
249 +        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
250 +        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
251 +        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
252 +      fi
253 +
254 +      if test "$gt_use_preinstalled_gnugettext" = "yes" \
255 +         || test "$nls_cv_use_gnu_gettext" = "yes"; then
256 +        dnl Mark actions to use GNU gettext tools.
257 +        CATOBJEXT=.gmo
258 +      fi
259 +    ])
260 +
261 +    if test "$gt_use_preinstalled_gnugettext" = "yes" \
262 +       || test "$nls_cv_use_gnu_gettext" = "yes"; then
263 +      AC_DEFINE(ENABLE_NLS, 1,
264 +        [Define to 1 if translation of program messages to the user's native language
265 +   is requested.])
266 +    else
267 +      USE_NLS=no
268 +    fi
269 +  fi
270 +
271 +  if test "$USE_NLS" = "yes"; then
272 +
273 +    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
274 +      if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
275 +        AC_MSG_CHECKING([how to link with libintl])
276 +        AC_MSG_RESULT([$LIBINTL])
277 +        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
278 +      fi
279 +
280 +      dnl For backward compatibility. Some packages may be using this.
281 +      AC_DEFINE(HAVE_GETTEXT, 1,
282 +       [Define if the GNU gettext() function is already present or preinstalled.])
283 +      AC_DEFINE(HAVE_DCGETTEXT, 1,
284 +       [Define if the GNU dcgettext() function is already present or preinstalled.])
285 +    fi
286 +
287 +    dnl We need to process the po/ directory.
288 +    POSUB=po
289 +  fi
290 +
291 +  ifelse(gt_included_intl, yes, [
292 +    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
293 +    dnl to 'yes' because some of the testsuite requires it.
294 +    if test "$PACKAGE" = gettext; then
295 +      BUILD_INCLUDED_LIBINTL=yes
296 +    fi
297 +
298 +    dnl Make all variables we use known to autoconf.
299 +    AC_SUBST(BUILD_INCLUDED_LIBINTL)
300 +    AC_SUBST(USE_INCLUDED_LIBINTL)
301 +    AC_SUBST(CATOBJEXT)
302 +    AC_SUBST(INTLOBJS)
303 +
304 +    dnl For backward compatibility. Some configure.ins may be using this.
305 +    nls_cv_header_intl=
306 +    nls_cv_header_libgt=
307 +
308 +    dnl For backward compatibility. Some Makefiles may be using this.
309 +    DATADIRNAME=share
310 +    AC_SUBST(DATADIRNAME)
311 +
312 +    dnl For backward compatibility. Some Makefiles may be using this.
313 +    INSTOBJEXT=.mo
314 +    AC_SUBST(INSTOBJEXT)
315 +
316 +    dnl For backward compatibility. Some Makefiles may be using this.
317 +    GENCAT=gencat
318 +    AC_SUBST(GENCAT)
319 +
320 +    dnl Enable libtool support if the surrounding package wishes it.
321 +    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
322 +    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
323 +  ])
324 +
325 +  dnl For backward compatibility. Some Makefiles may be using this.
326 +  INTLLIBS="$LIBINTL"
327 +  AC_SUBST(INTLLIBS)
328 +
329 +  dnl Make all documented variables known to autoconf.
330 +  AC_SUBST(LIBINTL)
331 +  AC_SUBST(LTLIBINTL)
332 +  AC_SUBST(POSUB)
333 +])
334 +
335 +
336 +dnl Checks for all prerequisites of the po subdirectory,
337 +dnl except for USE_NLS.
338 +AC_DEFUN([AM_PO_SUBDIRS],
339 +[
340 +  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
341 +  AC_REQUIRE([AC_PROG_INSTALL])dnl
342 +  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
343 +
344 +  dnl Perform the following tests also if --disable-nls has been given,
345 +  dnl because they are needed for "make dist" to work.
346 +
347 +  dnl Search for GNU msgfmt in the PATH.
348 +  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
349 +  dnl The second test excludes FreeBSD msgfmt.
350 +  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
351 +    [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
352 +     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
353 +    :)
354 +  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
355 +
356 +  dnl Search for GNU xgettext 0.11 or newer in the PATH.
357 +  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
358 +  dnl The second test excludes FreeBSD xgettext.
359 +  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
360 +    [$ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
361 +     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
362 +    :)
363 +  dnl Remove leftover from FreeBSD xgettext call.
364 +  rm -f messages.po
365 +
366 +  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
367 +  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
368 +    [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
369 +
370 +  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
371 +  dnl Test whether we really found GNU msgfmt.
372 +  if test "$GMSGFMT" != ":"; then
373 +    dnl If it is no GNU msgfmt we define it as : so that the
374 +    dnl Makefiles still can work.
375 +    if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
376 +       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
377 +      : ;
378 +    else
379 +      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
380 +      AC_MSG_RESULT(
381 +        [found $GMSGFMT program is not GNU msgfmt; ignore it])
382 +      GMSGFMT=":"
383 +    fi
384 +  fi
385 +
386 +  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
387 +  dnl Test whether we really found GNU xgettext.
388 +  if test "$XGETTEXT" != ":"; then
389 +    dnl If it is no GNU xgettext we define it as : so that the
390 +    dnl Makefiles still can work.
391 +    if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
392 +       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
393 +      : ;
394 +    else
395 +      AC_MSG_RESULT(
396 +        [found xgettext program is not GNU xgettext; ignore it])
397 +      XGETTEXT=":"
398 +    fi
399 +    dnl Remove leftover from FreeBSD xgettext call.
400 +    rm -f messages.po
401 +  fi
402 +
403 +  AC_OUTPUT_COMMANDS([
404 +    for ac_file in $CONFIG_FILES; do
405 +      # Support "outfile[:infile[:infile...]]"
406 +      case "$ac_file" in
407 +        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
408 +      esac
409 +      # PO directories have a Makefile.in generated from Makefile.in.in.
410 +      case "$ac_file" in */Makefile.in)
411 +        # Adjust a relative srcdir.
412 +        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
413 +        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
414 +        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
415 +        # In autoconf-2.13 it is called $ac_given_srcdir.
416 +        # In autoconf-2.50 it is called $srcdir.
417 +        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
418 +        case "$ac_given_srcdir" in
419 +          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
420 +          /*) top_srcdir="$ac_given_srcdir" ;;
421 +          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
422 +        esac
423 +        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
424 +          rm -f "$ac_dir/POTFILES"
425 +          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
426 +          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[  ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
427 +          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
428 +          # on $ac_dir but don't depend on user-specified configuration
429 +          # parameters.
430 +          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
431 +            # The LINGUAS file contains the set of available languages.
432 +            if test -n "$ALL_LINGUAS"; then
433 +              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
434 +            fi
435 +            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
436 +            # Hide the ALL_LINGUAS assigment from automake.
437 +            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
438 +          fi
439 +          case "$ac_given_srcdir" in
440 +            .) srcdirpre= ;;
441 +            *) srcdirpre='$(srcdir)/' ;;
442 +          esac
443 +          POFILES=
444 +          GMOFILES=
445 +          UPDATEPOFILES=
446 +          DUMMYPOFILES=
447 +          for lang in $ALL_LINGUAS; do
448 +            POFILES="$POFILES $srcdirpre$lang.po"
449 +            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
450 +            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
451 +            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
452 +          done
453 +          # CATALOGS depends on both $ac_dir and the user's LINGUAS
454 +          # environment variable.
455 +          INST_LINGUAS=
456 +          if test -n "$ALL_LINGUAS"; then
457 +            for presentlang in $ALL_LINGUAS; do
458 +              useit=no
459 +              if test "%UNSET%" != "$LINGUAS"; then
460 +                desiredlanguages="$LINGUAS"
461 +              else
462 +                desiredlanguages="$ALL_LINGUAS"
463 +              fi
464 +              for desiredlang in $desiredlanguages; do
465 +                # Use the presentlang catalog if desiredlang is
466 +                #   a. equal to presentlang, or
467 +                #   b. a variant of presentlang (because in this case,
468 +                #      presentlang can be used as a fallback for messages
469 +                #      which are not translated in the desiredlang catalog).
470 +                case "$desiredlang" in
471 +                  "$presentlang"*) useit=yes;;
472 +                esac
473 +              done
474 +              if test $useit = yes; then
475 +                INST_LINGUAS="$INST_LINGUAS $presentlang"
476 +              fi
477 +            done
478 +          fi
479 +          CATALOGS=
480 +          if test -n "$INST_LINGUAS"; then
481 +            for lang in $INST_LINGUAS; do
482 +              CATALOGS="$CATALOGS $lang.gmo"
483 +            done
484 +          fi
485 +          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
486 +          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
487 +          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
488 +            if test -f "$f"; then
489 +              case "$f" in
490 +                *.orig | *.bak | *~) ;;
491 +                *) cat "$f" >> "$ac_dir/Makefile" ;;
492 +              esac
493 +            fi
494 +          done
495 +        fi
496 +        ;;
497 +      esac
498 +    done],
499 +   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
500 +    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
501 +    # from automake.
502 +    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
503 +    # Capture the value of LINGUAS because we need it to compute CATALOGS.
504 +    LINGUAS="${LINGUAS-%UNSET%}"
505 +   ])
506 +])
507 +
508 +
509 +dnl Checks for all prerequisites of the intl subdirectory,
510 +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
511 +dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
512 +AC_DEFUN([AM_INTL_SUBDIR],
513 +[
514 +  AC_REQUIRE([AC_PROG_INSTALL])dnl
515 +  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
516 +  AC_REQUIRE([AC_PROG_CC])dnl
517 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
518 +  AC_REQUIRE([AC_PROG_RANLIB])dnl
519 +  AC_REQUIRE([AC_ISC_POSIX])dnl
520 +  AC_REQUIRE([AC_HEADER_STDC])dnl
521 +  AC_REQUIRE([AC_C_CONST])dnl
522 +  AC_REQUIRE([AC_C_INLINE])dnl
523 +  AC_REQUIRE([AC_TYPE_OFF_T])dnl
524 +  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
525 +  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
526 +  AC_REQUIRE([AC_FUNC_MMAP])dnl
527 +  AC_REQUIRE([jm_GLIBC21])dnl
528 +  AC_REQUIRE([gt_INTDIV0])dnl
529 +  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
530 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
531 +  AC_REQUIRE([gt_INTTYPES_PRI])dnl
532 +
533 +  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
534 +stdlib.h string.h unistd.h sys/param.h])
535 +  AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
536 +geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
537 +strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next])
538 +
539 +  AM_ICONV
540 +  AM_LANGINFO_CODESET
541 +  if test $ac_cv_header_locale_h = yes; then
542 +    AM_LC_MESSAGES
543 +  fi
544 +
545 +  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
546 +  dnl because plural.y uses bison specific features. It requires at least
547 +  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
548 +  dnl compile.
549 +  dnl bison is only needed for the maintainer (who touches plural.y). But in
550 +  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
551 +  dnl the rule in general Makefile. Now, some people carelessly touch the
552 +  dnl files or have a broken "make" program, hence the plural.c rule will
553 +  dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
554 +  dnl present or too old.
555 +  AC_CHECK_PROGS([INTLBISON], [bison])
556 +  if test -z "$INTLBISON"; then
557 +    ac_verc_fail=yes
558 +  else
559 +    dnl Found it, now check the version.
560 +    AC_MSG_CHECKING([version of bison])
561 +changequote(<<,>>)dnl
562 +    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
563 +    case $ac_prog_version in
564 +      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
565 +      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
566 +changequote([,])dnl
567 +         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
568 +      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
569 +    esac
570 +    AC_MSG_RESULT([$ac_prog_version])
571 +  fi
572 +  if test $ac_verc_fail = yes; then
573 +    INTLBISON=:
574 +  fi
575 +])
576 +
577 +
578 +AC_DEFUN([AM_MKINSTALLDIRS],
579 +[
580 +  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
581 +  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
582 +  dnl Try to locate is.
583 +  MKINSTALLDIRS=
584 +  if test -n "$ac_aux_dir"; then
585 +    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
586 +  fi
587 +  if test -z "$MKINSTALLDIRS"; then
588 +    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
589 +  fi
590 +  AC_SUBST(MKINSTALLDIRS)
591 +])
592 +
593 +
594 +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
595 +AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
596 --- /dev/null
597 +++ vorbis-tools-1.0.1/m4/lcmessage.m4
598 @@ -0,0 +1,32 @@
599 +# lcmessage.m4 serial 3 (gettext-0.11.3)
600 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
601 +dnl This file is free software, distributed under the terms of the GNU
602 +dnl General Public License.  As a special exception to the GNU General
603 +dnl Public License, this file may be distributed as part of a program
604 +dnl that contains a configuration script generated by Autoconf, under
605 +dnl the same distribution terms as the rest of that program.
606 +dnl
607 +dnl This file can can be used in projects which are not available under
608 +dnl the GNU General Public License or the GNU Library General Public
609 +dnl License but which still want to provide support for the GNU gettext
610 +dnl functionality.
611 +dnl Please note that the actual code of the GNU gettext library is covered
612 +dnl by the GNU Library General Public License, and the rest of the GNU
613 +dnl gettext package package is covered by the GNU General Public License.
614 +dnl They are *not* in the public domain.
615 +
616 +dnl Authors:
617 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
618 +
619 +# Check whether LC_MESSAGES is available in <locale.h>.
620 +
621 +AC_DEFUN([AM_LC_MESSAGES],
622 +[
623 +  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
624 +    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
625 +       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
626 +  if test $am_cv_val_LC_MESSAGES = yes; then
627 +    AC_DEFINE(HAVE_LC_MESSAGES, 1,
628 +      [Define if your <locale.h> file defines LC_MESSAGES.])
629 +  fi
630 +])
631 --- /dev/null
632 +++ vorbis-tools-1.0.1/m4/progtest.m4
633 @@ -0,0 +1,59 @@
634 +# progtest.m4 serial 2 (gettext-0.10.40)
635 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
636 +dnl This file is free software, distributed under the terms of the GNU
637 +dnl General Public License.  As a special exception to the GNU General
638 +dnl Public License, this file may be distributed as part of a program
639 +dnl that contains a configuration script generated by Autoconf, under
640 +dnl the same distribution terms as the rest of that program.
641 +dnl
642 +dnl This file can can be used in projects which are not available under
643 +dnl the GNU General Public License or the GNU Library General Public
644 +dnl License but which still want to provide support for the GNU gettext
645 +dnl functionality.
646 +dnl Please note that the actual code of the GNU gettext library is covered
647 +dnl by the GNU Library General Public License, and the rest of the GNU
648 +dnl gettext package package is covered by the GNU General Public License.
649 +dnl They are *not* in the public domain.
650 +
651 +dnl Authors:
652 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
653 +
654 +# Search path for a program which passes the given test.
655 +
656 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
657 +dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
658 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
659 +[# Extract the first word of "$2", so it can be a program name with args.
660 +set dummy $2; ac_word=[$]2
661 +AC_MSG_CHECKING([for $ac_word])
662 +AC_CACHE_VAL(ac_cv_path_$1,
663 +[case "[$]$1" in
664 +  /*)
665 +  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
666 +  ;;
667 +  *)
668 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
669 +  for ac_dir in ifelse([$5], , $PATH, [$5]); do
670 +    test -z "$ac_dir" && ac_dir=.
671 +    if test -f $ac_dir/$ac_word; then
672 +      if [$3]; then
673 +       ac_cv_path_$1="$ac_dir/$ac_word"
674 +       break
675 +      fi
676 +    fi
677 +  done
678 +  IFS="$ac_save_ifs"
679 +dnl If no 4th arg is given, leave the cache variable unset,
680 +dnl so AC_PATH_PROGS will keep looking.
681 +ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
682 +])dnl
683 +  ;;
684 +esac])dnl
685 +$1="$ac_cv_path_$1"
686 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
687 +  AC_MSG_RESULT([$]$1)
688 +else
689 +  AC_MSG_RESULT(no)
690 +fi
691 +AC_SUBST($1)dnl
692 +])