[packages] dbus-glib: remove missing macros patch
[openwrt/svn-archive/archive.git] / libs / popt / patches / 001-missing-macros.patch
1 --- /dev/null
2 +++ b/acinclude.m4
3 @@ -0,0 +1,598 @@
4 +# lib-ld.m4 serial 1 (gettext-0.11)
5 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
6 +dnl This file is free software, distributed under the terms of the GNU
7 +dnl General Public License. As a special exception to the GNU General
8 +dnl Public License, this file may be distributed as part of a program
9 +dnl that contains a configuration script generated by Autoconf, under
10 +dnl the same distribution terms as the rest of that program.
11 +
12 +dnl Subroutines of libtool.m4,
13 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
14 +dnl with libtool.m4.
15 +
16 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
17 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
18 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
19 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
20 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21 + acl_cv_prog_gnu_ld=yes
22 +else
23 + acl_cv_prog_gnu_ld=no
24 +fi])
25 +with_gnu_ld=$acl_cv_prog_gnu_ld
26 +])
27 +
28 +dnl From libtool-1.4. Sets the variable LD.
29 +AC_DEFUN([AC_LIB_PROG_LD],
30 +[AC_ARG_WITH(gnu-ld,
31 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
32 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
33 +AC_REQUIRE([AC_PROG_CC])dnl
34 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
35 +ac_prog=ld
36 +if test "$GCC" = yes; then
37 + # Check if gcc -print-prog-name=ld gives a path.
38 + AC_MSG_CHECKING([for ld used by GCC])
39 + case $host in
40 + *-*-mingw*)
41 + # gcc leaves a trailing carriage return which upsets mingw
42 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
43 + *)
44 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
45 + esac
46 + case $ac_prog in
47 + # Accept absolute paths.
48 + [[\\/]* | [A-Za-z]:[\\/]*)]
49 + [re_direlt='/[^/][^/]*/\.\./']
50 + # Canonicalize the path of ld
51 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
52 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
53 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
54 + done
55 + test -z "$LD" && LD="$ac_prog"
56 + ;;
57 + "")
58 + # If it fails, then pretend we aren't using GCC.
59 + ac_prog=ld
60 + ;;
61 + *)
62 + # If it is relative, then search for the first ld in PATH.
63 + with_gnu_ld=unknown
64 + ;;
65 + esac
66 +elif test "$with_gnu_ld" = yes; then
67 + AC_MSG_CHECKING([for GNU ld])
68 +else
69 + AC_MSG_CHECKING([for non-GNU ld])
70 +fi
71 +AC_CACHE_VAL(acl_cv_path_LD,
72 +[if test -z "$LD"; then
73 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
74 + for ac_dir in $PATH; do
75 + test -z "$ac_dir" && ac_dir=.
76 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
77 + acl_cv_path_LD="$ac_dir/$ac_prog"
78 + # Check to see if the program is GNU ld. I'd rather use --version,
79 + # but apparently some GNU ld's only accept -v.
80 + # Break only if it was the GNU/non-GNU ld that we prefer.
81 + if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
82 + test "$with_gnu_ld" != no && break
83 + else
84 + test "$with_gnu_ld" != yes && break
85 + fi
86 + fi
87 + done
88 + IFS="$ac_save_ifs"
89 +else
90 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
91 +fi])
92 +LD="$acl_cv_path_LD"
93 +if test -n "$LD"; then
94 + AC_MSG_RESULT($LD)
95 +else
96 + AC_MSG_RESULT(no)
97 +fi
98 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
99 +AC_LIB_PROG_LD_GNU
100 +])
101 +
102 +# iconv.m4 serial AM4 (gettext-0.11.3)
103 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
104 +dnl This file is free software, distributed under the terms of the GNU
105 +dnl General Public License. As a special exception to the GNU General
106 +dnl Public License, this file may be distributed as part of a program
107 +dnl that contains a configuration script generated by Autoconf, under
108 +dnl the same distribution terms as the rest of that program.
109 +
110 +dnl From Bruno Haible.
111 +
112 +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
113 +[
114 + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
115 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
116 + AC_REQUIRE([AC_LIB_RPATH])
117 +
118 + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
119 + dnl accordingly.
120 + AC_LIB_LINKFLAGS_BODY([iconv])
121 +])
122 +
123 +AC_DEFUN([AM_ICONV_LINK],
124 +[
125 + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
126 + dnl those with the standalone portable GNU libiconv installed).
127 +
128 + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
129 + dnl accordingly.
130 + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
131 +
132 + dnl Add $INCICONV to CPPFLAGS before performing the following checks,
133 + dnl because if the user has installed libiconv and not disabled its use
134 + dnl via --without-libiconv-prefix, he wants to use it. The first
135 + dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
136 + am_save_CPPFLAGS="$CPPFLAGS"
137 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
138 +
139 + AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
140 + am_cv_func_iconv="no, consider installing GNU libiconv"
141 + am_cv_lib_iconv=no
142 + AC_TRY_LINK([#include <stdlib.h>
143 +#include <iconv.h>],
144 + [iconv_t cd = iconv_open("","");
145 + iconv(cd,NULL,NULL,NULL,NULL);
146 + iconv_close(cd);],
147 + am_cv_func_iconv=yes)
148 + if test "$am_cv_func_iconv" != yes; then
149 + am_save_LIBS="$LIBS"
150 + LIBS="$LIBS $LIBICONV"
151 + AC_TRY_LINK([#include <stdlib.h>
152 +#include <iconv.h>],
153 + [iconv_t cd = iconv_open("","");
154 + iconv(cd,NULL,NULL,NULL,NULL);
155 + iconv_close(cd);],
156 + am_cv_lib_iconv=yes
157 + am_cv_func_iconv=yes)
158 + LIBS="$am_save_LIBS"
159 + fi
160 + ])
161 + if test "$am_cv_func_iconv" = yes; then
162 + AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
163 + fi
164 + if test "$am_cv_lib_iconv" = yes; then
165 + AC_MSG_CHECKING([how to link with libiconv])
166 + AC_MSG_RESULT([$LIBICONV])
167 + else
168 + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
169 + dnl either.
170 + CPPFLAGS="$am_save_CPPFLAGS"
171 + LIBICONV=
172 + LTLIBICONV=
173 + fi
174 + AC_SUBST(LIBICONV)
175 + AC_SUBST(LTLIBICONV)
176 +])
177 +
178 +AC_DEFUN([AM_ICONV],
179 +[
180 + AM_ICONV_LINK
181 + if test "$am_cv_func_iconv" = yes; then
182 + AC_MSG_CHECKING([for iconv declaration])
183 + AC_CACHE_VAL(am_cv_proto_iconv, [
184 + AC_TRY_COMPILE([
185 +#include <stdlib.h>
186 +#include <iconv.h>
187 +extern
188 +#ifdef __cplusplus
189 +"C"
190 +#endif
191 +#if defined(__STDC__) || defined(__cplusplus)
192 +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
193 +#else
194 +size_t iconv();
195 +#endif
196 +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
197 + 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);"])
198 + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
199 + AC_MSG_RESULT([$]{ac_t:-
200 + }[$]am_cv_proto_iconv)
201 + AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
202 + [Define as const if the declaration of iconv() needs const.])
203 + fi
204 +])
205 +
206 +# progtest.m4 serial 2 (gettext-0.10.40)
207 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
208 +dnl This file is free software, distributed under the terms of the GNU
209 +dnl General Public License. As a special exception to the GNU General
210 +dnl Public License, this file may be distributed as part of a program
211 +dnl that contains a configuration script generated by Autoconf, under
212 +dnl the same distribution terms as the rest of that program.
213 +dnl
214 +dnl This file can can be used in projects which are not available under
215 +dnl the GNU General Public License or the GNU Library General Public
216 +dnl License but which still want to provide support for the GNU gettext
217 +dnl functionality.
218 +dnl Please note that the actual code of the GNU gettext library is covered
219 +dnl by the GNU Library General Public License, and the rest of the GNU
220 +dnl gettext package package is covered by the GNU General Public License.
221 +dnl They are *not* in the public domain.
222 +
223 +dnl Authors:
224 +dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
225 +
226 +# Search path for a program which passes the given test.
227 +
228 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
229 +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
230 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
231 +[# Extract the first word of "$2", so it can be a program name with args.
232 +set dummy $2; ac_word=[$]2
233 +AC_MSG_CHECKING([for $ac_word])
234 +AC_CACHE_VAL(ac_cv_path_$1,
235 +[case "[$]$1" in
236 + /*)
237 + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
238 + ;;
239 + *)
240 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
241 + for ac_dir in ifelse([$5], , $PATH, [$5]); do
242 + test -z "$ac_dir" && ac_dir=.
243 + if test -f $ac_dir/$ac_word; then
244 + if [$3]; then
245 + ac_cv_path_$1="$ac_dir/$ac_word"
246 + break
247 + fi
248 + fi
249 + done
250 + IFS="$ac_save_ifs"
251 +dnl If no 4th arg is given, leave the cache variable unset,
252 +dnl so AC_PATH_PROGS will keep looking.
253 +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
254 +])dnl
255 + ;;
256 +esac])dnl
257 +$1="$ac_cv_path_$1"
258 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
259 + AC_MSG_RESULT([$]$1)
260 +else
261 + AC_MSG_RESULT(no)
262 +fi
263 +AC_SUBST($1)dnl
264 +])
265 +
266 +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
267 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
268 +dnl This file is free software, distributed under the terms of the GNU
269 +dnl General Public License. As a special exception to the GNU General
270 +dnl Public License, this file may be distributed as part of a program
271 +dnl that contains a configuration script generated by Autoconf, under
272 +dnl the same distribution terms as the rest of that program.
273 +
274 +# Test for the GNU C Library, version 2.1 or newer.
275 +# From Bruno Haible.
276 +
277 +AC_DEFUN([jm_GLIBC21],
278 + [
279 + AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
280 + ac_cv_gnu_library_2_1,
281 + [AC_EGREP_CPP([Lucky GNU user],
282 + [
283 +#include <features.h>
284 +#ifdef __GNU_LIBRARY__
285 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
286 + Lucky GNU user
287 + #endif
288 +#endif
289 + ],
290 + ac_cv_gnu_library_2_1=yes,
291 + ac_cv_gnu_library_2_1=no)
292 + ]
293 + )
294 + AC_SUBST(GLIBC21)
295 + GLIBC21="$ac_cv_gnu_library_2_1"
296 + ]
297 +)
298 +
299 +# intdiv0.m4 serial 1 (gettext-0.11.3)
300 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
301 +dnl This file is free software, distributed under the terms of the GNU
302 +dnl General Public License. As a special exception to the GNU General
303 +dnl Public License, this file may be distributed as part of a program
304 +dnl that contains a configuration script generated by Autoconf, under
305 +dnl the same distribution terms as the rest of that program.
306 +
307 +dnl From Bruno Haible.
308 +
309 +AC_DEFUN([gt_INTDIV0],
310 +[
311 + AC_REQUIRE([AC_PROG_CC])dnl
312 + AC_REQUIRE([AC_CANONICAL_HOST])dnl
313 +
314 + AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
315 + gt_cv_int_divbyzero_sigfpe,
316 + [
317 + AC_TRY_RUN([
318 +#include <stdlib.h>
319 +#include <signal.h>
320 +
321 +static void
322 +#ifdef __cplusplus
323 +sigfpe_handler (int sig)
324 +#else
325 +sigfpe_handler (sig) int sig;
326 +#endif
327 +{
328 + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
329 + exit (sig != SIGFPE);
330 +}
331 +
332 +int x = 1;
333 +int y = 0;
334 +int z;
335 +int nan;
336 +
337 +int main ()
338 +{
339 + signal (SIGFPE, sigfpe_handler);
340 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
341 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
342 + signal (SIGTRAP, sigfpe_handler);
343 +#endif
344 +/* Linux/SPARC yields signal SIGILL. */
345 +#if defined (__sparc__) && defined (__linux__)
346 + signal (SIGILL, sigfpe_handler);
347 +#endif
348 +
349 + z = x / y;
350 + nan = y / y;
351 + exit (1);
352 +}
353 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
354 + [
355 + # Guess based on the CPU.
356 + case "$host_cpu" in
357 + alpha* | i[34567]86 | m68k | s390*)
358 + gt_cv_int_divbyzero_sigfpe="guessing yes";;
359 + *)
360 + gt_cv_int_divbyzero_sigfpe="guessing no";;
361 + esac
362 + ])
363 + ])
364 + case "$gt_cv_int_divbyzero_sigfpe" in
365 + *yes) value=1;;
366 + *) value=0;;
367 + esac
368 + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
369 + [Define if integer division by zero raises signal SIGFPE.])
370 +])
371 +
372 +# uintmax_t.m4 serial 6 (gettext-0.11)
373 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
374 +dnl This file is free software, distributed under the terms of the GNU
375 +dnl General Public License. As a special exception to the GNU General
376 +dnl Public License, this file may be distributed as part of a program
377 +dnl that contains a configuration script generated by Autoconf, under
378 +dnl the same distribution terms as the rest of that program.
379 +
380 +dnl From Paul Eggert.
381 +
382 +AC_PREREQ(2.13)
383 +
384 +# Define uintmax_t to `unsigned long' or `unsigned long long'
385 +# if <inttypes.h> does not exist.
386 +
387 +AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
388 +[
389 + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
390 + AC_REQUIRE([jm_AC_HEADER_STDINT_H])
391 + if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
392 + AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
393 + test $ac_cv_type_unsigned_long_long = yes \
394 + && ac_type='unsigned long long' \
395 + || ac_type='unsigned long'
396 + AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
397 + [Define to unsigned long or unsigned long long
398 + if <inttypes.h> and <stdint.h> don't define.])
399 + fi
400 +])
401 +
402 +# inttypes_h.m4 serial 4 (gettext-0.11.4)
403 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
404 +dnl This file is free software, distributed under the terms of the GNU
405 +dnl General Public License. As a special exception to the GNU General
406 +dnl Public License, this file may be distributed as part of a program
407 +dnl that contains a configuration script generated by Autoconf, under
408 +dnl the same distribution terms as the rest of that program.
409 +
410 +dnl From Paul Eggert.
411 +
412 +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
413 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
414 +
415 +AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
416 +[
417 + AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
418 + [AC_TRY_COMPILE(
419 + [#include <sys/types.h>
420 +#include <inttypes.h>],
421 + [uintmax_t i = (uintmax_t) -1;],
422 + jm_ac_cv_header_inttypes_h=yes,
423 + jm_ac_cv_header_inttypes_h=no)])
424 + if test $jm_ac_cv_header_inttypes_h = yes; then
425 + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
426 +[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
427 + and declares uintmax_t. ])
428 + fi
429 +])
430 +
431 +# stdint_h.m4 serial 2 (gettext-0.11.4)
432 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
433 +dnl This file is free software, distributed under the terms of the GNU
434 +dnl General Public License. As a special exception to the GNU General
435 +dnl Public License, this file may be distributed as part of a program
436 +dnl that contains a configuration script generated by Autoconf, under
437 +dnl the same distribution terms as the rest of that program.
438 +
439 +dnl From Paul Eggert.
440 +
441 +# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
442 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
443 +
444 +AC_DEFUN([jm_AC_HEADER_STDINT_H],
445 +[
446 + AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
447 + [AC_TRY_COMPILE(
448 + [#include <sys/types.h>
449 +#include <stdint.h>],
450 + [uintmax_t i = (uintmax_t) -1;],
451 + jm_ac_cv_header_stdint_h=yes,
452 + jm_ac_cv_header_stdint_h=no)])
453 + if test $jm_ac_cv_header_stdint_h = yes; then
454 + AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
455 +[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
456 + and declares uintmax_t. ])
457 + fi
458 +])
459 +
460 +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
461 +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
462 +dnl This file is free software, distributed under the terms of the GNU
463 +dnl General Public License. As a special exception to the GNU General
464 +dnl Public License, this file may be distributed as part of a program
465 +dnl that contains a configuration script generated by Autoconf, under
466 +dnl the same distribution terms as the rest of that program.
467 +
468 +dnl From Paul Eggert.
469 +
470 +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
471 +[
472 + AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
473 + [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
474 + [unsigned long long ullmax = (unsigned long long) -1;
475 + return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
476 + ac_cv_type_unsigned_long_long=yes,
477 + ac_cv_type_unsigned_long_long=no)])
478 + if test $ac_cv_type_unsigned_long_long = yes; then
479 + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
480 + [Define if you have the unsigned long long type.])
481 + fi
482 +])
483 +
484 +# inttypes.m4 serial 1 (gettext-0.11.4)
485 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
486 +dnl This file is free software, distributed under the terms of the GNU
487 +dnl General Public License. As a special exception to the GNU General
488 +dnl Public License, this file may be distributed as part of a program
489 +dnl that contains a configuration script generated by Autoconf, under
490 +dnl the same distribution terms as the rest of that program.
491 +
492 +dnl From Paul Eggert.
493 +
494 +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
495 +# <sys/types.h>.
496 +
497 +AC_DEFUN([gt_HEADER_INTTYPES_H],
498 +[
499 + AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
500 + [
501 + AC_TRY_COMPILE(
502 + [#include <sys/types.h>
503 +#include <inttypes.h>],
504 + [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
505 + ])
506 + if test $gt_cv_header_inttypes_h = yes; then
507 + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
508 + [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
509 + fi
510 +])
511 +
512 +# inttypes-pri.m4 serial 1 (gettext-0.11.4)
513 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
514 +dnl This file is free software, distributed under the terms of the GNU
515 +dnl General Public License. As a special exception to the GNU General
516 +dnl Public License, this file may be distributed as part of a program
517 +dnl that contains a configuration script generated by Autoconf, under
518 +dnl the same distribution terms as the rest of that program.
519 +
520 +dnl From Bruno Haible.
521 +
522 +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
523 +# macros to non-string values. This is the case on AIX 4.3.3.
524 +
525 +AC_DEFUN([gt_INTTYPES_PRI],
526 +[
527 + AC_REQUIRE([gt_HEADER_INTTYPES_H])
528 + if test $gt_cv_header_inttypes_h = yes; then
529 + AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
530 + gt_cv_inttypes_pri_broken,
531 + [
532 + AC_TRY_COMPILE([#include <inttypes.h>
533 +#ifdef PRId32
534 +char *p = PRId32;
535 +#endif
536 +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
537 + ])
538 + fi
539 + if test "$gt_cv_inttypes_pri_broken" = yes; then
540 + AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
541 + [Define if <inttypes.h> exists and defines unusable PRI* macros.])
542 + fi
543 +])
544 +
545 +# codeset.m4 serial AM1 (gettext-0.10.40)
546 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
547 +dnl This file is free software, distributed under the terms of the GNU
548 +dnl General Public License. As a special exception to the GNU General
549 +dnl Public License, this file may be distributed as part of a program
550 +dnl that contains a configuration script generated by Autoconf, under
551 +dnl the same distribution terms as the rest of that program.
552 +
553 +dnl From Bruno Haible.
554 +
555 +AC_DEFUN([AM_LANGINFO_CODESET],
556 +[
557 + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
558 + [AC_TRY_LINK([#include <langinfo.h>],
559 + [char* cs = nl_langinfo(CODESET);],
560 + am_cv_langinfo_codeset=yes,
561 + am_cv_langinfo_codeset=no)
562 + ])
563 + if test $am_cv_langinfo_codeset = yes; then
564 + AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
565 + [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
566 + fi
567 +])
568 +
569 +# lcmessage.m4 serial 3 (gettext-0.11.3)
570 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
571 +dnl This file is free software, distributed under the terms of the GNU
572 +dnl General Public License. As a special exception to the GNU General
573 +dnl Public License, this file may be distributed as part of a program
574 +dnl that contains a configuration script generated by Autoconf, under
575 +dnl the same distribution terms as the rest of that program.
576 +dnl
577 +dnl This file can can be used in projects which are not available under
578 +dnl the GNU General Public License or the GNU Library General Public
579 +dnl License but which still want to provide support for the GNU gettext
580 +dnl functionality.
581 +dnl Please note that the actual code of the GNU gettext library is covered
582 +dnl by the GNU Library General Public License, and the rest of the GNU
583 +dnl gettext package package is covered by the GNU General Public License.
584 +dnl They are *not* in the public domain.
585 +
586 +dnl Authors:
587 +dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
588 +
589 +# Check whether LC_MESSAGES is available in <locale.h>.
590 +
591 +AC_DEFUN([AM_LC_MESSAGES],
592 +[
593 + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
594 + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
595 + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
596 + if test $am_cv_val_LC_MESSAGES = yes; then
597 + AC_DEFINE(HAVE_LC_MESSAGES, 1,
598 + [Define if your <locale.h> file defines LC_MESSAGES.])
599 + fi
600 +])
601 +
602 --- /dev/null
603 +++ b/config.rpath
604 @@ -0,0 +1 @@
605 +# stub