summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/bison
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/bison')
-rw-r--r--meta/recipes-devtools/bison/bison/bison-2.3_m4.patch591
-rw-r--r--meta/recipes-devtools/bison/bison/dont-depend-on-help2man.patch32
-rw-r--r--meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch19
-rw-r--r--meta/recipes-devtools/bison/bison/m4.patch414
-rw-r--r--meta/recipes-devtools/bison/bison_2.3.bb39
-rw-r--r--meta/recipes-devtools/bison/bison_2.7.1.bb38
6 files changed, 1133 insertions, 0 deletions
diff --git a/meta/recipes-devtools/bison/bison/bison-2.3_m4.patch b/meta/recipes-devtools/bison/bison/bison-2.3_m4.patch
new file mode 100644
index 0000000000..348ce1d2bb
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/bison-2.3_m4.patch
@@ -0,0 +1,591 @@
1Upstream-Status: Pending
2
3#
4# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
5#
6
7--- /dev/null
8+++ bison-1.875/m4/inttypes-pri.m4
9@@ -0,0 +1,32 @@
10+# inttypes-pri.m4 serial 1 (gettext-0.11.4)
11+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
12+dnl This file is free software, distributed under the terms of the GNU
13+dnl General Public License. As a special exception to the GNU General
14+dnl Public License, this file may be distributed as part of a program
15+dnl that contains a configuration script generated by Autoconf, under
16+dnl the same distribution terms as the rest of that program.
17+
18+dnl From Bruno Haible.
19+
20+# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
21+# macros to non-string values. This is the case on AIX 4.3.3.
22+
23+AC_DEFUN([gt_INTTYPES_PRI],
24+[
25+ AC_REQUIRE([gt_HEADER_INTTYPES_H])
26+ if test $gt_cv_header_inttypes_h = yes; then
27+ AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
28+ gt_cv_inttypes_pri_broken,
29+ [
30+ AC_TRY_COMPILE([#include <inttypes.h>
31+#ifdef PRId32
32+char *p = PRId32;
33+#endif
34+], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
35+ ])
36+ fi
37+ if test "$gt_cv_inttypes_pri_broken" = yes; then
38+ AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
39+ [Define if <inttypes.h> exists and defines unusable PRI* macros.])
40+ fi
41+])
42--- /dev/null
43+++ bison-1.875/m4/lcmessage.m4
44@@ -0,0 +1,32 @@
45+# lcmessage.m4 serial 3 (gettext-0.11.3)
46+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
47+dnl This file is free software, distributed under the terms of the GNU
48+dnl General Public License. As a special exception to the GNU General
49+dnl Public License, this file may be distributed as part of a program
50+dnl that contains a configuration script generated by Autoconf, under
51+dnl the same distribution terms as the rest of that program.
52+dnl
53+dnl This file can can be used in projects which are not available under
54+dnl the GNU General Public License or the GNU Library General Public
55+dnl License but which still want to provide support for the GNU gettext
56+dnl functionality.
57+dnl Please note that the actual code of the GNU gettext library is covered
58+dnl by the GNU Library General Public License, and the rest of the GNU
59+dnl gettext package package is covered by the GNU General Public License.
60+dnl They are *not* in the public domain.
61+
62+dnl Authors:
63+dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
64+
65+# Check whether LC_MESSAGES is available in <locale.h>.
66+
67+AC_DEFUN([AM_LC_MESSAGES],
68+[
69+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
70+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
71+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
72+ if test $am_cv_val_LC_MESSAGES = yes; then
73+ AC_DEFINE(HAVE_LC_MESSAGES, 1,
74+ [Define if your <locale.h> file defines LC_MESSAGES.])
75+ fi
76+])
77--- /dev/null
78+++ bison-1.875/m4/uintmax_t.m4
79@@ -0,0 +1,29 @@
80+# uintmax_t.m4 serial 6 (gettext-0.11)
81+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
82+dnl This file is free software, distributed under the terms of the GNU
83+dnl General Public License. As a special exception to the GNU General
84+dnl Public License, this file may be distributed as part of a program
85+dnl that contains a configuration script generated by Autoconf, under
86+dnl the same distribution terms as the rest of that program.
87+
88+dnl From Paul Eggert.
89+
90+AC_PREREQ(2.13)
91+
92+# Define uintmax_t to `unsigned long' or `unsigned long long'
93+# if <inttypes.h> does not exist.
94+
95+AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
96+[
97+ AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
98+ AC_REQUIRE([jm_AC_HEADER_STDINT_H])
99+ if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
100+ AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
101+ test $ac_cv_type_unsigned_long_long = yes \
102+ && ac_type='unsigned long long' \
103+ || ac_type='unsigned long'
104+ AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
105+ [Define to unsigned long or unsigned long long
106+ if <inttypes.h> and <stdint.h> don't define.])
107+ fi
108+])
109--- /dev/null
110+++ bison-1.875/m4/glibc21.m4
111@@ -0,0 +1,32 @@
112+# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
113+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
114+dnl This file is free software, distributed under the terms of the GNU
115+dnl General Public License. As a special exception to the GNU General
116+dnl Public License, this file may be distributed as part of a program
117+dnl that contains a configuration script generated by Autoconf, under
118+dnl the same distribution terms as the rest of that program.
119+
120+# Test for the GNU C Library, version 2.1 or newer.
121+# From Bruno Haible.
122+
123+AC_DEFUN([jm_GLIBC21],
124+ [
125+ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
126+ ac_cv_gnu_library_2_1,
127+ [AC_EGREP_CPP([Lucky GNU user],
128+ [
129+#include <features.h>
130+#ifdef __GNU_LIBRARY__
131+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
132+ Lucky GNU user
133+ #endif
134+#endif
135+ ],
136+ ac_cv_gnu_library_2_1=yes,
137+ ac_cv_gnu_library_2_1=no)
138+ ]
139+ )
140+ AC_SUBST(GLIBC21)
141+ GLIBC21="$ac_cv_gnu_library_2_1"
142+ ]
143+)
144--- /dev/null
145+++ bison-1.875/m4/stdint_h.m4
146@@ -0,0 +1,28 @@
147+# stdint_h.m4 serial 2 (gettext-0.11.4)
148+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
149+dnl This file is free software, distributed under the terms of the GNU
150+dnl General Public License. As a special exception to the GNU General
151+dnl Public License, this file may be distributed as part of a program
152+dnl that contains a configuration script generated by Autoconf, under
153+dnl the same distribution terms as the rest of that program.
154+
155+dnl From Paul Eggert.
156+
157+# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
158+# doesn't clash with <sys/types.h>, and declares uintmax_t.
159+
160+AC_DEFUN([jm_AC_HEADER_STDINT_H],
161+[
162+ AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
163+ [AC_TRY_COMPILE(
164+ [#include <sys/types.h>
165+#include <stdint.h>],
166+ [uintmax_t i = (uintmax_t) -1;],
167+ jm_ac_cv_header_stdint_h=yes,
168+ jm_ac_cv_header_stdint_h=no)])
169+ if test $jm_ac_cv_header_stdint_h = yes; then
170+ AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
171+[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
172+ and declares uintmax_t. ])
173+ fi
174+])
175--- /dev/null
176+++ bison-1.875/m4/inttypes_h.m4
177@@ -0,0 +1,28 @@
178+# inttypes_h.m4 serial 4 (gettext-0.11.4)
179+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
180+dnl This file is free software, distributed under the terms of the GNU
181+dnl General Public License. As a special exception to the GNU General
182+dnl Public License, this file may be distributed as part of a program
183+dnl that contains a configuration script generated by Autoconf, under
184+dnl the same distribution terms as the rest of that program.
185+
186+dnl From Paul Eggert.
187+
188+# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
189+# doesn't clash with <sys/types.h>, and declares uintmax_t.
190+
191+AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
192+[
193+ AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
194+ [AC_TRY_COMPILE(
195+ [#include <sys/types.h>
196+#include <inttypes.h>],
197+ [uintmax_t i = (uintmax_t) -1;],
198+ jm_ac_cv_header_inttypes_h=yes,
199+ jm_ac_cv_header_inttypes_h=no)])
200+ if test $jm_ac_cv_header_inttypes_h = yes; then
201+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
202+[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
203+ and declares uintmax_t. ])
204+ fi
205+])
206--- /dev/null
207+++ bison-1.875/m4/ulonglong.m4
208@@ -0,0 +1,23 @@
209+# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
210+dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
211+dnl This file is free software, distributed under the terms of the GNU
212+dnl General Public License. As a special exception to the GNU General
213+dnl Public License, this file may be distributed as part of a program
214+dnl that contains a configuration script generated by Autoconf, under
215+dnl the same distribution terms as the rest of that program.
216+
217+dnl From Paul Eggert.
218+
219+AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
220+[
221+ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
222+ [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
223+ [unsigned long long ullmax = (unsigned long long) -1;
224+ return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
225+ ac_cv_type_unsigned_long_long=yes,
226+ ac_cv_type_unsigned_long_long=no)])
227+ if test $ac_cv_type_unsigned_long_long = yes; then
228+ AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
229+ [Define if you have the unsigned long long type.])
230+ fi
231+])
232--- /dev/null
233+++ bison-1.875/m4/codeset.m4
234@@ -0,0 +1,23 @@
235+# codeset.m4 serial AM1 (gettext-0.10.40)
236+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
237+dnl This file is free software, distributed under the terms of the GNU
238+dnl General Public License. As a special exception to the GNU General
239+dnl Public License, this file may be distributed as part of a program
240+dnl that contains a configuration script generated by Autoconf, under
241+dnl the same distribution terms as the rest of that program.
242+
243+dnl From Bruno Haible.
244+
245+AC_DEFUN([AM_LANGINFO_CODESET],
246+[
247+ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
248+ [AC_TRY_LINK([#include <langinfo.h>],
249+ [char* cs = nl_langinfo(CODESET);],
250+ am_cv_langinfo_codeset=yes,
251+ am_cv_langinfo_codeset=no)
252+ ])
253+ if test $am_cv_langinfo_codeset = yes; then
254+ AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
255+ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
256+ fi
257+])
258--- /dev/null
259+++ bison-1.875/m4/intdiv0.m4
260@@ -0,0 +1,72 @@
261+# intdiv0.m4 serial 1 (gettext-0.11.3)
262+dnl Copyright (C) 2002 Free Software Foundation, Inc.
263+dnl This file is free software, distributed under the terms of the GNU
264+dnl General Public License. As a special exception to the GNU General
265+dnl Public License, this file may be distributed as part of a program
266+dnl that contains a configuration script generated by Autoconf, under
267+dnl the same distribution terms as the rest of that program.
268+
269+dnl From Bruno Haible.
270+
271+AC_DEFUN([gt_INTDIV0],
272+[
273+ AC_REQUIRE([AC_PROG_CC])dnl
274+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
275+
276+ AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
277+ gt_cv_int_divbyzero_sigfpe,
278+ [
279+ AC_TRY_RUN([
280+#include <stdlib.h>
281+#include <signal.h>
282+
283+static void
284+#ifdef __cplusplus
285+sigfpe_handler (int sig)
286+#else
287+sigfpe_handler (sig) int sig;
288+#endif
289+{
290+ /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
291+ exit (sig != SIGFPE);
292+}
293+
294+int x = 1;
295+int y = 0;
296+int z;
297+int nan;
298+
299+int main ()
300+{
301+ signal (SIGFPE, sigfpe_handler);
302+/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
303+#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
304+ signal (SIGTRAP, sigfpe_handler);
305+#endif
306+/* Linux/SPARC yields signal SIGILL. */
307+#if defined (__sparc__) && defined (__linux__)
308+ signal (SIGILL, sigfpe_handler);
309+#endif
310+
311+ z = x / y;
312+ nan = y / y;
313+ exit (1);
314+}
315+], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
316+ [
317+ # Guess based on the CPU.
318+ case "$host_cpu" in
319+ alpha* | i[34567]86 | m68k | s390*)
320+ gt_cv_int_divbyzero_sigfpe="guessing yes";;
321+ *)
322+ gt_cv_int_divbyzero_sigfpe="guessing no";;
323+ esac
324+ ])
325+ ])
326+ case "$gt_cv_int_divbyzero_sigfpe" in
327+ *yes) value=1;;
328+ *) value=0;;
329+ esac
330+ AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
331+ [Define if integer division by zero raises signal SIGFPE.])
332+])
333--- /dev/null
334+++ bison-1.875/m4/glib.m4
335@@ -0,0 +1,196 @@
336+# Configure paths for GLIB
337+# Owen Taylor 97-11-3
338+
339+dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
340+dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
341+dnl gthread is specified in MODULES, pass to glib-config
342+dnl
343+AC_DEFUN(AM_PATH_GLIB,
344+[dnl
345+dnl Get the cflags and libraries from the glib-config script
346+dnl
347+AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)],
348+ glib_config_prefix="$withval", glib_config_prefix="")
349+AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)],
350+ glib_config_exec_prefix="$withval", glib_config_exec_prefix="")
351+AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program],
352+ , enable_glibtest=yes)
353+
354+ if test x$glib_config_exec_prefix != x ; then
355+ glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
356+ if test x${GLIB_CONFIG+set} != xset ; then
357+ GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
358+ fi
359+ fi
360+ if test x$glib_config_prefix != x ; then
361+ glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
362+ if test x${GLIB_CONFIG+set} != xset ; then
363+ GLIB_CONFIG=$glib_config_prefix/bin/glib-config
364+ fi
365+ fi
366+
367+ for module in . $4
368+ do
369+ case "$module" in
370+ gmodule)
371+ glib_config_args="$glib_config_args gmodule"
372+ ;;
373+ gthread)
374+ glib_config_args="$glib_config_args gthread"
375+ ;;
376+ esac
377+ done
378+
379+ AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
380+ min_glib_version=ifelse([$1], ,0.99.7,$1)
381+ AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
382+ no_glib=""
383+ if test "$GLIB_CONFIG" = "no" ; then
384+ no_glib=yes
385+ else
386+ GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
387+ GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
388+ glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
389+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
390+ glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
391+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
392+ glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
393+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
394+ if test "x$enable_glibtest" = "xyes" ; then
395+ ac_save_CFLAGS="$CFLAGS"
396+ ac_save_LIBS="$LIBS"
397+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
398+ LIBS="$GLIB_LIBS $LIBS"
399+dnl
400+dnl Now check if the installed GLIB is sufficiently new. (Also sanity
401+dnl checks the results of glib-config to some extent
402+dnl
403+ rm -f conf.glibtest
404+ AC_TRY_RUN([
405+#include <glib.h>
406+#include <stdio.h>
407+#include <stdlib.h>
408+
409+int
410+main ()
411+{
412+ int major, minor, micro;
413+ char *tmp_version;
414+
415+ system ("touch conf.glibtest");
416+
417+ /* HP/UX 9 (%@#!) writes to sscanf strings */
418+ tmp_version = g_strdup("$min_glib_version");
419+ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
420+ printf("%s, bad version string\n", "$min_glib_version");
421+ exit(1);
422+ }
423+
424+ if ((glib_major_version != $glib_config_major_version) ||
425+ (glib_minor_version != $glib_config_minor_version) ||
426+ (glib_micro_version != $glib_config_micro_version))
427+ {
428+ printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
429+ $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
430+ glib_major_version, glib_minor_version, glib_micro_version);
431+ printf ("*** was found! If glib-config was correct, then it is best\n");
432+ printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
433+ printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
434+ printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
435+ printf("*** required on your system.\n");
436+ printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
437+ printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
438+ printf("*** before re-running configure\n");
439+ }
440+ else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
441+ (glib_minor_version != GLIB_MINOR_VERSION) ||
442+ (glib_micro_version != GLIB_MICRO_VERSION))
443+ {
444+ printf("*** GLIB header files (version %d.%d.%d) do not match\n",
445+ GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
446+ printf("*** library (version %d.%d.%d)\n",
447+ glib_major_version, glib_minor_version, glib_micro_version);
448+ }
449+ else
450+ {
451+ if ((glib_major_version > major) ||
452+ ((glib_major_version == major) && (glib_minor_version > minor)) ||
453+ ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
454+ {
455+ return 0;
456+ }
457+ else
458+ {
459+ printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
460+ glib_major_version, glib_minor_version, glib_micro_version);
461+ printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
462+ major, minor, micro);
463+ printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
464+ printf("***\n");
465+ printf("*** If you have already installed a sufficiently new version, this error\n");
466+ printf("*** probably means that the wrong copy of the glib-config shell script is\n");
467+ printf("*** being found. The easiest way to fix this is to remove the old version\n");
468+ printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
469+ printf("*** correct copy of glib-config. (In this case, you will have to\n");
470+ printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
471+ printf("*** so that the correct libraries are found at run-time))\n");
472+ }
473+ }
474+ return 1;
475+}
476+],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
477+ CFLAGS="$ac_save_CFLAGS"
478+ LIBS="$ac_save_LIBS"
479+ fi
480+ fi
481+ if test "x$no_glib" = x ; then
482+ AC_MSG_RESULT(yes)
483+ ifelse([$2], , :, [$2])
484+ else
485+ AC_MSG_RESULT(no)
486+ if test "$GLIB_CONFIG" = "no" ; then
487+ echo "*** The glib-config script installed by GLIB could not be found"
488+ echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
489+ echo "*** your path, or set the GLIB_CONFIG environment variable to the"
490+ echo "*** full path to glib-config."
491+ else
492+ if test -f conf.glibtest ; then
493+ :
494+ else
495+ echo "*** Could not run GLIB test program, checking why..."
496+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
497+ LIBS="$LIBS $GLIB_LIBS"
498+ AC_TRY_LINK([
499+#include <glib.h>
500+#include <stdio.h>
501+], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
502+ [ echo "*** The test program compiled, but did not run. This usually means"
503+ echo "*** that the run-time linker is not finding GLIB or finding the wrong"
504+ echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
505+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
506+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
507+ echo "*** is required on your system"
508+ echo "***"
509+ echo "*** If you have an old version installed, it is best to remove it, although"
510+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
511+ echo "***"
512+ echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
513+ echo "*** came with the system with the command"
514+ echo "***"
515+ echo "*** rpm --erase --nodeps gtk gtk-devel" ],
516+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
517+ echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
518+ echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
519+ echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
520+ CFLAGS="$ac_save_CFLAGS"
521+ LIBS="$ac_save_LIBS"
522+ fi
523+ fi
524+ GLIB_CFLAGS=""
525+ GLIB_LIBS=""
526+ ifelse([$3], , :, [$3])
527+ fi
528+ AC_SUBST(GLIB_CFLAGS)
529+ AC_SUBST(GLIB_LIBS)
530+ rm -f conf.glibtest
531+])
532--- /dev/null
533+++ bison-1.875/m4/inttypes.m4
534@@ -0,0 +1,27 @@
535+# inttypes.m4 serial 1 (gettext-0.11.4)
536+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
537+dnl This file is free software, distributed under the terms of the GNU
538+dnl General Public License. As a special exception to the GNU General
539+dnl Public License, this file may be distributed as part of a program
540+dnl that contains a configuration script generated by Autoconf, under
541+dnl the same distribution terms as the rest of that program.
542+
543+dnl From Paul Eggert.
544+
545+# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
546+# <sys/types.h>.
547+
548+AC_DEFUN([gt_HEADER_INTTYPES_H],
549+[
550+ AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
551+ [
552+ AC_TRY_COMPILE(
553+ [#include <sys/types.h>
554+#include <inttypes.h>],
555+ [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
556+ ])
557+ if test $gt_cv_header_inttypes_h = yes; then
558+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
559+ [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
560+ fi
561+])
562--- /dev/null
563+++ bison-1.875/m4/isc-posix.m4
564@@ -0,0 +1,26 @@
565+# isc-posix.m4 serial 2 (gettext-0.11.2)
566+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
567+dnl This file is free software, distributed under the terms of the GNU
568+dnl General Public License. As a special exception to the GNU General
569+dnl Public License, this file may be distributed as part of a program
570+dnl that contains a configuration script generated by Autoconf, under
571+dnl the same distribution terms as the rest of that program.
572+
573+# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
574+
575+# This test replaces the one in autoconf.
576+# Currently this macro should have the same name as the autoconf macro
577+# because gettext's gettext.m4 (distributed in the automake package)
578+# still uses it. Otherwise, the use in gettext.m4 makes autoheader
579+# give these diagnostics:
580+# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
581+# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
582+
583+undefine([AC_ISC_POSIX])
584+
585+AC_DEFUN([AC_ISC_POSIX],
586+ [
587+ dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
588+ AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
589+ ]
590+)
591
diff --git a/meta/recipes-devtools/bison/bison/dont-depend-on-help2man.patch b/meta/recipes-devtools/bison/bison/dont-depend-on-help2man.patch
new file mode 100644
index 0000000000..21b44bf79c
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/dont-depend-on-help2man.patch
@@ -0,0 +1,32 @@
1Upstream-Status: Inappropriate
2
3Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
4diff -Nurd bison-2.7/doc/Makefile.am bison-2.7/doc/Makefile.am
5--- bison-2.7/doc/Makefile.am 2012-12-09 17:51:03.000000000 +0200
6+++ bison-2.7/doc/Makefile.am 2013-01-02 06:49:50.804894071 +0200
7@@ -52,15 +52,11 @@
8 ## Man Pages. ##
9 ## ----------- ##
10
11-dist_man_MANS = $(srcdir)/bison.1
12-
13-EXTRA_DIST += $(dist_man_MANS:.1=.x) common.x
14-MAINTAINERCLEANFILES += $(dist_man_MANS)
15+EXTRA_DIST += bison.x common.x
16
17 # Depend on configure to get version number changes.
18 common_dep = $(top_srcdir)/configure $(srcdir)/common.x
19 srcsrcdir = $(top_srcdir)/bin
20-$(srcdir)/bison.1: $(common_dep) $(top_srcdir)/src/getargs.c
21
22 # Differences to ignore when comparing the man page (the date).
23 remove_time_stamp = \
24@@ -94,8 +90,6 @@
25 fi
26 $(AM_V_at)rm -f $@*.t
27
28-nodist_man_MANS = yacc.1
29-
30 ## ------------------------------ ##
31 ## Graphviz examples generation. ##
32 ## ------------------------------ ##
diff --git a/meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch b/meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch
new file mode 100644
index 0000000000..8b683793eb
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/fix_cross_manpage_building.patch
@@ -0,0 +1,19 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3help2man is looking at the generated binary for help output. This does not work for cross compilations. So taking out the local PREPATH (../src) directory from path so that help2 man can find the native version of the bison in the native sysroot directory.
4
5Date: 2010/06/28
6Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
7
8diff --git a/doc/Makefile.am b/doc/Makefile.am
9index c7f2755..af9453a 100644
10--- a/doc/Makefile.am
11+++ b/doc/Makefile.am
12@@ -80,7 +80,6 @@ PREPATH = $(top_builddir)/src
13 echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \
14 (cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
15 done
16- $(AM_V_at)PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH"; \
17 export PATH; \
18 $(HELP2MAN) \
19 --include=$*.x \
diff --git a/meta/recipes-devtools/bison/bison/m4.patch b/meta/recipes-devtools/bison/bison/m4.patch
new file mode 100644
index 0000000000..d139da5e79
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/m4.patch
@@ -0,0 +1,414 @@
1Upstream-Status: Pending
2
3#
4# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
5#
6
7Index: bison-2.4.2/m4/lcmessage.m4
8===================================================================
9--- /dev/null
10+++ bison-2.4.2/m4/lcmessage.m4
11@@ -0,0 +1,32 @@
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.
19+dnl
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
23+dnl functionality.
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.
28+
29+dnl Authors:
30+dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
31+
32+# Check whether LC_MESSAGES is available in <locale.h>.
33+
34+AC_DEFUN([AM_LC_MESSAGES],
35+[
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.])
42+ fi
43+])
44Index: bison-2.4.2/m4/uintmax_t.m4
45===================================================================
46--- /dev/null
47+++ bison-2.4.2/m4/uintmax_t.m4
48@@ -0,0 +1,29 @@
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.
56+
57+dnl From Paul Eggert.
58+
59+AC_PREREQ(2.13)
60+
61+# Define uintmax_t to `unsigned long' or `unsigned long long'
62+# if <inttypes.h> does not exist.
63+
64+AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
65+[
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.])
76+ fi
77+])
78Index: bison-2.4.2/m4/ulonglong.m4
79===================================================================
80--- /dev/null
81+++ bison-2.4.2/m4/ulonglong.m4
82@@ -0,0 +1,23 @@
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.
90+
91+dnl From Paul Eggert.
92+
93+AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
94+[
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.])
104+ fi
105+])
106Index: bison-2.4.2/m4/intdiv0.m4
107===================================================================
108--- /dev/null
109+++ bison-2.4.2/m4/intdiv0.m4
110@@ -0,0 +1,72 @@
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.
118+
119+dnl From Bruno Haible.
120+
121+AC_DEFUN([gt_INTDIV0],
122+[
123+ AC_REQUIRE([AC_PROG_CC])dnl
124+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
125+
126+ AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
127+ gt_cv_int_divbyzero_sigfpe,
128+ [
129+ AC_TRY_RUN([
130+#include <stdlib.h>
131+#include <signal.h>
132+
133+static void
134+#ifdef __cplusplus
135+sigfpe_handler (int sig)
136+#else
137+sigfpe_handler (sig) int sig;
138+#endif
139+{
140+ /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
141+ exit (sig != SIGFPE);
142+}
143+
144+int x = 1;
145+int y = 0;
146+int z;
147+int nan;
148+
149+int main ()
150+{
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);
155+#endif
156+/* Linux/SPARC yields signal SIGILL. */
157+#if defined (__sparc__) && defined (__linux__)
158+ signal (SIGILL, sigfpe_handler);
159+#endif
160+
161+ z = x / y;
162+ nan = y / y;
163+ exit (1);
164+}
165+], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
166+ [
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";;
171+ *)
172+ gt_cv_int_divbyzero_sigfpe="guessing no";;
173+ esac
174+ ])
175+ ])
176+ case "$gt_cv_int_divbyzero_sigfpe" in
177+ *yes) value=1;;
178+ *) value=0;;
179+ esac
180+ AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
181+ [Define if integer division by zero raises signal SIGFPE.])
182+])
183Index: bison-2.4.2/m4/glib.m4
184===================================================================
185--- /dev/null
186+++ bison-2.4.2/m4/glib.m4
187@@ -0,0 +1,196 @@
188+# Configure paths for GLIB
189+# Owen Taylor 97-11-3
190+
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
194+dnl
195+AC_DEFUN(AM_PATH_GLIB,
196+[dnl
197+dnl Get the cflags and libraries from the glib-config script
198+dnl
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)
205+
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
210+ fi
211+ fi
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
216+ fi
217+ fi
218+
219+ for module in . $4
220+ do
221+ case "$module" in
222+ gmodule)
223+ glib_config_args="$glib_config_args gmodule"
224+ ;;
225+ gthread)
226+ glib_config_args="$glib_config_args gthread"
227+ ;;
228+ esac
229+ done
230+
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)
234+ no_glib=""
235+ if test "$GLIB_CONFIG" = "no" ; then
236+ no_glib=yes
237+ else
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"
251+dnl
252+dnl Now check if the installed GLIB is sufficiently new. (Also sanity
253+dnl checks the results of glib-config to some extent
254+dnl
255+ rm -f conf.glibtest
256+ AC_TRY_RUN([
257+#include <glib.h>
258+#include <stdio.h>
259+#include <stdlib.h>
260+
261+int
262+main ()
263+{
264+ int major, minor, micro;
265+ char *tmp_version;
266+
267+ system ("touch conf.glibtest");
268+
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, &micro) != 3) {
272+ printf("%s, bad version string\n", "$min_glib_version");
273+ exit(1);
274+ }
275+
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))
279+ {
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");
291+ }
292+ else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
293+ (glib_minor_version != GLIB_MINOR_VERSION) ||
294+ (glib_micro_version != GLIB_MICRO_VERSION))
295+ {
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);
300+ }
301+ else
302+ {
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)))
306+ {
307+ return 0;
308+ }
309+ else
310+ {
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");
316+ printf("***\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");
324+ }
325+ }
326+ return 1;
327+}
328+],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
329+ CFLAGS="$ac_save_CFLAGS"
330+ LIBS="$ac_save_LIBS"
331+ fi
332+ fi
333+ if test "x$no_glib" = x ; then
334+ AC_MSG_RESULT(yes)
335+ ifelse([$2], , :, [$2])
336+ else
337+ AC_MSG_RESULT(no)
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."
343+ else
344+ if test -f conf.glibtest ; then
345+ :
346+ else
347+ echo "*** Could not run GLIB test program, checking why..."
348+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
349+ LIBS="$LIBS $GLIB_LIBS"
350+ AC_TRY_LINK([
351+#include <glib.h>
352+#include <stdio.h>
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"
360+ echo "***"
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"
363+ echo "***"
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"
366+ echo "***"
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"
374+ fi
375+ fi
376+ GLIB_CFLAGS=""
377+ GLIB_LIBS=""
378+ ifelse([$3], , :, [$3])
379+ fi
380+ AC_SUBST(GLIB_CFLAGS)
381+ AC_SUBST(GLIB_LIBS)
382+ rm -f conf.glibtest
383+])
384Index: bison-2.4.2/m4/isc-posix.m4
385===================================================================
386--- /dev/null
387+++ bison-2.4.2/m4/isc-posix.m4
388@@ -0,0 +1,26 @@
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.
396+
397+# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
398+
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
406+
407+undefine([AC_ISC_POSIX])
408+
409+AC_DEFUN([AC_ISC_POSIX],
410+ [
411+ dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
412+ AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
413+ ]
414+)
diff --git a/meta/recipes-devtools/bison/bison_2.3.bb b/meta/recipes-devtools/bison/bison_2.3.bb
new file mode 100644
index 0000000000..a135451162
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison_2.3.bb
@@ -0,0 +1,39 @@
1SUMMARY = "GNU Project parser generator (yacc replacement)"
2DESCRIPTION = "Bison is a general-purpose parser generator that converts an annotated context-free grammar into \
3an LALR(1) or GLR parser for that grammar. Bison is upward compatible with Yacc: all properly-written Yacc \
4grammars ought to work with Bison with no change. Anyone familiar with Yacc should be able to use Bison with \
5little trouble."
6HOMEPAGE = "http://www.gnu.org/software/bison/"
7LICENSE = "GPLv2"
8LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
9SECTION = "devel"
10DEPENDS = "bison-native flex-native"
11
12PR = "r1"
13
14BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
15 file://bison-2.3_m4.patch"
16
17SRC_URI = "${BASE_SRC_URI}"
18
19SRC_URI[md5sum] = "22327efdd5080e2b1acb6e560a04b43a"
20SRC_URI[sha256sum] = "52f78aa4761a74ceb7fdf770f3554dd84308c3b93c4255e3a5c17558ecda293e"
21
22DEPENDS_class-native = "gettext-native"
23SRC_URI_class-native = "${BASE_SRC_URI}"
24
25inherit autotools gettext
26acpaths = "-I ${S}/m4"
27
28do_configure_prepend () {
29 rm -f ${S}/m4/*gl.m4
30 cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/runtime-po/
31}
32
33do_install_append_class-native() {
34 create_wrapper ${D}/${bindir}/bison \
35 M4=${STAGING_BINDIR_NATIVE}/m4 \
36 BISON_PKGDATADIR=${STAGING_DATADIR_NATIVE}/bison
37}
38#bison-native encodes the staging M4 path
39BBCLASSEXTEND = "native"
diff --git a/meta/recipes-devtools/bison/bison_2.7.1.bb b/meta/recipes-devtools/bison/bison_2.7.1.bb
new file mode 100644
index 0000000000..1df750a255
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison_2.7.1.bb
@@ -0,0 +1,38 @@
1SUMMARY = "GNU Project parser generator (yacc replacement)"
2DESCRIPTION = "Bison is a general-purpose parser generator that converts an annotated context-free grammar into \
3an LALR(1) or GLR parser for that grammar. Bison is upward compatible with Yacc: all properly-written Yacc \
4grammars ought to work with Bison with no change. Anyone familiar with Yacc should be able to use Bison with \
5little trouble."
6HOMEPAGE = "http://www.gnu.org/software/bison/"
7LICENSE = "GPLv3"
8LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
9SECTION = "devel"
10DEPENDS = "bison-native flex-native"
11
12BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \
13 file://m4.patch \
14 file://dont-depend-on-help2man.patch \
15 "
16
17# No point in hardcoding path to m4, just use PATH
18EXTRA_OECONF += "M4=m4"
19
20SRC_URI = "${BASE_SRC_URI} \
21 file://fix_cross_manpage_building.patch \
22 "
23
24SRC_URI[md5sum] = "7be02eb973eccf388f1ae750fc09eed0"
25SRC_URI[sha256sum] = "b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb"
26
27LDFLAGS_prepend_libc-uclibc = " -lrt "
28DEPENDS_class-native = "gettext-minimal-native"
29SRC_URI_class-native = "${BASE_SRC_URI}"
30
31inherit autotools gettext
32acpaths = "-I ${S}/m4"
33
34do_install_append_class-native() {
35 create_wrapper ${D}/${bindir}/bison \
36 BISON_PKGDATADIR=${STAGING_DATADIR_NATIVE}/bison
37}
38BBCLASSEXTEND = "native nativesdk"