]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/configure
Define PACKAGE macro in all sims' config.h.
[thirdparty/binutils-gdb.git] / sim / common / configure
index a9d8925139f24aaa97c3b23c2dedd1d644a8df83..d6ad959b3b8324f6a79f3bc2e0e8d5705a541cb9 100755 (executable)
@@ -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"