1 Upstream-Status: Pending
4 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
7 Index: bison-2.4.2/m4/lcmessage.m4
8 ===================================================================
10 +++ bison-2.4.2/m4/lcmessage.m4
12 +# lcmessage.m4 serial 3 (gettext-0.11.3)
13 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
14 +dnl This file is free software, distributed under the terms of the GNU
15 +dnl General Public License. As a special exception to the GNU General
16 +dnl Public License, this file may be distributed as part of a program
17 +dnl that contains a configuration script generated by Autoconf, under
18 +dnl the same distribution terms as the rest of that program.
20 +dnl This file can can be used in projects which are not available under
21 +dnl the GNU General Public License or the GNU Library General Public
22 +dnl License but which still want to provide support for the GNU gettext
24 +dnl Please note that the actual code of the GNU gettext library is covered
25 +dnl by the GNU Library General Public License, and the rest of the GNU
26 +dnl gettext package package is covered by the GNU General Public License.
27 +dnl They are *not* in the public domain.
30 +dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
32 +# Check whether LC_MESSAGES is available in <locale.h>.
34 +AC_DEFUN([AM_LC_MESSAGES],
36 + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
37 + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
38 + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
39 + if test $am_cv_val_LC_MESSAGES = yes; then
40 + AC_DEFINE(HAVE_LC_MESSAGES, 1,
41 + [Define if your <locale.h> file defines LC_MESSAGES.])
44 Index: bison-2.4.2/m4/uintmax_t.m4
45 ===================================================================
47 +++ bison-2.4.2/m4/uintmax_t.m4
49 +# uintmax_t.m4 serial 6 (gettext-0.11)
50 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
51 +dnl This file is free software, distributed under the terms of the GNU
52 +dnl General Public License. As a special exception to the GNU General
53 +dnl Public License, this file may be distributed as part of a program
54 +dnl that contains a configuration script generated by Autoconf, under
55 +dnl the same distribution terms as the rest of that program.
57 +dnl From Paul Eggert.
61 +# Define uintmax_t to `unsigned long' or `unsigned long long'
62 +# if <inttypes.h> does not exist.
64 +AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
66 + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
67 + AC_REQUIRE([jm_AC_HEADER_STDINT_H])
68 + if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
69 + AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
70 + test $ac_cv_type_unsigned_long_long = yes \
71 + && ac_type='unsigned long long' \
72 + || ac_type='unsigned long'
73 + AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
74 + [Define to unsigned long or unsigned long long
75 + if <inttypes.h> and <stdint.h> don't define.])
78 Index: bison-2.4.2/m4/ulonglong.m4
79 ===================================================================
81 +++ bison-2.4.2/m4/ulonglong.m4
83 +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
84 +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
85 +dnl This file is free software, distributed under the terms of the GNU
86 +dnl General Public License. As a special exception to the GNU General
87 +dnl Public License, this file may be distributed as part of a program
88 +dnl that contains a configuration script generated by Autoconf, under
89 +dnl the same distribution terms as the rest of that program.
91 +dnl From Paul Eggert.
93 +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
95 + AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
96 + [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
97 + [unsigned long long ullmax = (unsigned long long) -1;
98 + return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
99 + ac_cv_type_unsigned_long_long=yes,
100 + ac_cv_type_unsigned_long_long=no)])
101 + if test $ac_cv_type_unsigned_long_long = yes; then
102 + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
103 + [Define if you have the unsigned long long type.])
106 Index: bison-2.4.2/m4/intdiv0.m4
107 ===================================================================
109 +++ bison-2.4.2/m4/intdiv0.m4
111 +# intdiv0.m4 serial 1 (gettext-0.11.3)
112 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
113 +dnl This file is free software, distributed under the terms of the GNU
114 +dnl General Public License. As a special exception to the GNU General
115 +dnl Public License, this file may be distributed as part of a program
116 +dnl that contains a configuration script generated by Autoconf, under
117 +dnl the same distribution terms as the rest of that program.
119 +dnl From Bruno Haible.
121 +AC_DEFUN([gt_INTDIV0],
123 + AC_REQUIRE([AC_PROG_CC])dnl
124 + AC_REQUIRE([AC_CANONICAL_HOST])dnl
126 + AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
127 + gt_cv_int_divbyzero_sigfpe,
135 +sigfpe_handler (int sig)
137 +sigfpe_handler (sig) int sig;
140 + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
141 + exit (sig != SIGFPE);
151 + signal (SIGFPE, sigfpe_handler);
152 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
153 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
154 + signal (SIGTRAP, sigfpe_handler);
156 +/* Linux/SPARC yields signal SIGILL. */
157 +#if defined (__sparc__) && defined (__linux__)
158 + signal (SIGILL, sigfpe_handler);
165 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
167 + # Guess based on the CPU.
168 + case "$host_cpu" in
169 + alpha* | i[34567]86 | m68k | s390*)
170 + gt_cv_int_divbyzero_sigfpe="guessing yes";;
172 + gt_cv_int_divbyzero_sigfpe="guessing no";;
176 + case "$gt_cv_int_divbyzero_sigfpe" in
180 + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
181 + [Define if integer division by zero raises signal SIGFPE.])
183 Index: bison-2.4.2/m4/glib.m4
184 ===================================================================
186 +++ bison-2.4.2/m4/glib.m4
188 +# Configure paths for GLIB
189 +# Owen Taylor 97-11-3
191 +dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
192 +dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
193 +dnl gthread is specified in MODULES, pass to glib-config
195 +AC_DEFUN(AM_PATH_GLIB,
197 +dnl Get the cflags and libraries from the glib-config script
199 +AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)],
200 + glib_config_prefix="$withval", glib_config_prefix="")
201 +AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)],
202 + glib_config_exec_prefix="$withval", glib_config_exec_prefix="")
203 +AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program],
204 + , enable_glibtest=yes)
206 + if test x$glib_config_exec_prefix != x ; then
207 + glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
208 + if test x${GLIB_CONFIG+set} != xset ; then
209 + GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
212 + if test x$glib_config_prefix != x ; then
213 + glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
214 + if test x${GLIB_CONFIG+set} != xset ; then
215 + GLIB_CONFIG=$glib_config_prefix/bin/glib-config
223 + glib_config_args="$glib_config_args gmodule"
226 + glib_config_args="$glib_config_args gthread"
231 + AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
232 + min_glib_version=ifelse([$1], ,0.99.7,$1)
233 + AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
235 + if test "$GLIB_CONFIG" = "no" ; then
238 + GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
239 + GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
240 + glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
241 + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
242 + glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
243 + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
244 + glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
245 + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
246 + if test "x$enable_glibtest" = "xyes" ; then
247 + ac_save_CFLAGS="$CFLAGS"
248 + ac_save_LIBS="$LIBS"
249 + CFLAGS="$CFLAGS $GLIB_CFLAGS"
250 + LIBS="$GLIB_LIBS $LIBS"
252 +dnl Now check if the installed GLIB is sufficiently new. (Also sanity
253 +dnl checks the results of glib-config to some extent
255 + rm -f conf.glibtest
264 + int major, minor, micro;
267 + system ("touch conf.glibtest");
269 + /* HP/UX 9 (%@#!) writes to sscanf strings */
270 + tmp_version = g_strdup("$min_glib_version");
271 + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
272 + printf("%s, bad version string\n", "$min_glib_version");
276 + if ((glib_major_version != $glib_config_major_version) ||
277 + (glib_minor_version != $glib_config_minor_version) ||
278 + (glib_micro_version != $glib_config_micro_version))
280 + printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
281 + $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
282 + glib_major_version, glib_minor_version, glib_micro_version);
283 + printf ("*** was found! If glib-config was correct, then it is best\n");
284 + printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
285 + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
286 + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
287 + printf("*** required on your system.\n");
288 + printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
289 + printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
290 + printf("*** before re-running configure\n");
292 + else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
293 + (glib_minor_version != GLIB_MINOR_VERSION) ||
294 + (glib_micro_version != GLIB_MICRO_VERSION))
296 + printf("*** GLIB header files (version %d.%d.%d) do not match\n",
297 + GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
298 + printf("*** library (version %d.%d.%d)\n",
299 + glib_major_version, glib_minor_version, glib_micro_version);
303 + if ((glib_major_version > major) ||
304 + ((glib_major_version == major) && (glib_minor_version > minor)) ||
305 + ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
311 + printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
312 + glib_major_version, glib_minor_version, glib_micro_version);
313 + printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
314 + major, minor, micro);
315 + printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
317 + printf("*** If you have already installed a sufficiently new version, this error\n");
318 + printf("*** probably means that the wrong copy of the glib-config shell script is\n");
319 + printf("*** being found. The easiest way to fix this is to remove the old version\n");
320 + printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
321 + printf("*** correct copy of glib-config. (In this case, you will have to\n");
322 + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
323 + printf("*** so that the correct libraries are found at run-time))\n");
328 +],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
329 + CFLAGS="$ac_save_CFLAGS"
330 + LIBS="$ac_save_LIBS"
333 + if test "x$no_glib" = x ; then
335 + ifelse([$2], , :, [$2])
338 + if test "$GLIB_CONFIG" = "no" ; then
339 + echo "*** The glib-config script installed by GLIB could not be found"
340 + echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
341 + echo "*** your path, or set the GLIB_CONFIG environment variable to the"
342 + echo "*** full path to glib-config."
344 + if test -f conf.glibtest ; then
347 + echo "*** Could not run GLIB test program, checking why..."
348 + CFLAGS="$CFLAGS $GLIB_CFLAGS"
349 + LIBS="$LIBS $GLIB_LIBS"
353 +], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
354 + [ echo "*** The test program compiled, but did not run. This usually means"
355 + echo "*** that the run-time linker is not finding GLIB or finding the wrong"
356 + echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
357 + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
358 + echo "*** to the installed location Also, make sure you have run ldconfig if that"
359 + echo "*** is required on your system"
361 + echo "*** If you have an old version installed, it is best to remove it, although"
362 + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
364 + echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
365 + echo "*** came with the system with the command"
367 + echo "*** rpm --erase --nodeps gtk gtk-devel" ],
368 + [ echo "*** The test program failed to compile or link. See the file config.log for the"
369 + echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
370 + echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
371 + echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
372 + CFLAGS="$ac_save_CFLAGS"
373 + LIBS="$ac_save_LIBS"
378 + ifelse([$3], , :, [$3])
380 + AC_SUBST(GLIB_CFLAGS)
381 + AC_SUBST(GLIB_LIBS)
382 + rm -f conf.glibtest
384 Index: bison-2.4.2/m4/isc-posix.m4
385 ===================================================================
387 +++ bison-2.4.2/m4/isc-posix.m4
389 +# isc-posix.m4 serial 2 (gettext-0.11.2)
390 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
391 +dnl This file is free software, distributed under the terms of the GNU
392 +dnl General Public License. As a special exception to the GNU General
393 +dnl Public License, this file may be distributed as part of a program
394 +dnl that contains a configuration script generated by Autoconf, under
395 +dnl the same distribution terms as the rest of that program.
397 +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
399 +# This test replaces the one in autoconf.
400 +# Currently this macro should have the same name as the autoconf macro
401 +# because gettext's gettext.m4 (distributed in the automake package)
402 +# still uses it. Otherwise, the use in gettext.m4 makes autoheader
403 +# give these diagnostics:
404 +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
405 +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
407 +undefine([AC_ISC_POSIX])
409 +AC_DEFUN([AC_ISC_POSIX],
411 + dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
412 + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])