diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-06-15 17:20:10 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-06-15 17:20:10 +0000 |
commit | 5f3ef9d03542dc296b9f34b1d01711028c042f55 (patch) | |
tree | fb373035e84dcfb0ec698bffebe1a80aeb79a347 /sim/bfin | |
parent | 663b969e6822015e34d1ab00084501a600341ab2 (diff) | |
download | binutils-5f3ef9d03542dc296b9f34b1d01711028c042f55.tar.gz binutils-5f3ef9d03542dc296b9f34b1d01711028c042f55.tar.bz2 binutils-5f3ef9d03542dc296b9f34b1d01711028c042f55.zip |
Define PACKAGE macro in all sims' config.h.
Some of the common includes in include/gdb such as callback.h
include bfd.h. But there was a recent change in bfd-in.h to
require that config.h be included before bfd.h can be included:
/* PR 14072: Ensure that config.h is included first. */
#if !defined PACKAGE && !defined PACKAGE_VERSION
#error config.h must be included before this header
#endif
PACKAGE_VERSION is always defined by default by the AC_INIT autoconf
macro, but PACKAGE isn't. This patch updates the SIM_AC_COMMON macro
to define it, and then regenerates all configure scripts and config.in
files.
sim/common/changeLog:
* acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
* config.in, configure: Regenerate.
sim/ChangeLog:
* configure: Regenerate.
sim/arm/ChangeLog:
* config.in, configure: Regenerate.
sim/avr/ChangeLog:
* config.in, configure: Regenerate.
sim/bfin/ChangeLog:
* config.in, configure: Regenerate.
sim/cr16/ChangeLog:
* config.in, configure: Regenerate.
sim/cris/ChangeLog:
* config.in, configure: Regenerate.
sim/d10v/ChangeLog:
* config.in, configure: Regenerate.
sim/erc32/ChangeLog:
* config.in, configure: Regenerate.
sim/frv/ChangeLog:
* config.in, configure: Regenerate.
sim/h8300/ChangeLog:
* config.in, configure: Regenerate.
sim/iq2000/ChangeLog:
* config.in, configure: Regenerate.
sim/lm32/ChangeLog:
* config.in, configure: Regenerate.
sim/m32c/ChangeLog:
* config.in, configure: Regenerate.
sim/m32r/ChangeLog:
* config.in, configure: Regenerate.
sim/m68hc11/ChangeLog:
* config.in, configure: Regenerate.
sim/mcore/ChangeLog:
* config.in, configure: Regenerate.
sim/microblaze/ChangeLog:
* config.in, configure: Regenerate.
sim/mips/ChangeLog:
* config.in, configure: Regenerate.
sim/mn10300/ChangeLog:
* config.in, configure: Regenerate.
sim/moxie/ChangeLog:
* config.in, configure: Regenerate.
sim/ppc/ChangeLog:
* configure: Regenerate.
sim/rl78/ChangeLog:
* config.in, configure: Regenerate.
sim/rx/ChangeLog:
* config.in, configure: Regenerate.
sim/sh/ChangeLog:
* config.in, configure: Regenerate.
sim/sh64/ChangeLog:
* config.in, configure: Regenerate.
sim/v850/ChangeLog:
* config.in, configure: Regenerate.
sim/testsuite/ChangeLog:
* configure: Regenerate.
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/ChangeLog | 4 | ||||
-rw-r--r-- | sim/bfin/config.in | 3 | ||||
-rwxr-xr-x | sim/bfin/configure | 12 |
3 files changed, 19 insertions, 0 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index d27f888dda3..5d09b5a6056 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,7 @@ +2012-06-15 Joel Brobecker <brobecker@adacore.com> + + * config.in, configure: Regenerate. + 2012-04-09 Mike Frysinger <vapier@gentoo.org> * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_pint. diff --git a/sim/bfin/config.in b/sim/bfin/config.in index 80a9adb12d7..04d1e5dabf1 100644 --- a/sim/bfin/config.in +++ b/sim/bfin/config.in @@ -130,6 +130,9 @@ /* Define to 1 if you have the `__setfpucw' function. */ #undef HAVE___SETFPUCW +/* Name of this package. */ +#undef PACKAGE + /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT diff --git a/sim/bfin/configure b/sim/bfin/configure index 286cda89539..c36fa89ca22 100755 --- a/sim/bfin/configure +++ b/sim/bfin/configure @@ -625,6 +625,7 @@ MAKE CCDEPMODE DEPDIR am__leading_dot +PACKAGE RANLIB AR HDEFINES @@ -4090,6 +4091,17 @@ else fi +# Some of the common include files depend on bfd.h, and bfd.h checks +# that config.h is included first by testing that the PACKAGE macro +# is defined. +PACKAGE=sim + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + + # Dependency checking. ac_config_commands="$ac_config_commands depdir" |