Define PACKAGE macro in all sims' config.h.
[deliverable/binutils-gdb.git] / sim / common / acinclude.m4
index ef4277503f1867c777ff8b0110d1a98949e6bce9..fe0a5b728746f2e175a5e3d00f9d3c14ba17a58d 100644 (file)
@@ -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])
This page took 0.026127 seconds and 4 git commands to generate.