aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/acinclude.m47
-rw-r--r--sim/common/config.in3
-rwxr-xr-xsim/common/configure12
4 files changed, 27 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 54a5613..75afcc1 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-16 Joel Brobecker <brobecker@adacore.com>
+
+ * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
+ * config.in, configure: Regenerate.
+
2012-05-24 Pedro Alves <palves@redhat.com>
* sim-signal.h (sim_signal_to_target): Rename to ...
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4
index ef42775..fe0a5b7 100644
--- a/sim/common/acinclude.m4
+++ b/sim/common/acinclude.m4
@@ -47,6 +47,13 @@ AR=${AR-ar}
AC_SUBST(AR)
AC_PROG_RANLIB
+# 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
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package. ])
+AC_SUBST(PACKAGE)
+
# Dependency checking.
ZW_CREATE_DEPDIR
ZW_PROG_COMPILER_DEPENDENCIES([CC])
diff --git a/sim/common/config.in b/sim/common/config.in
index 040079c..db15bcc 100644
--- a/sim/common/config.in
+++ b/sim/common/config.in
@@ -139,6 +139,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/common/configure b/sim/common/configure
index a9d8925..d6ad959 100755
--- a/sim/common/configure
+++ b/sim/common/configure
@@ -620,6 +620,7 @@ MAKE
CCDEPMODE
DEPDIR
am__leading_dot
+PACKAGE
RANLIB
AR
HDEFINES
@@ -3854,6 +3855,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"