aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/gas/configure.in b/gas/configure.in
index 093014b..da397ad 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -368,7 +368,7 @@ changequote([,])dnl
case ${cpu_type} in
m32r)
- case ${extra_objects} in
+ case "x${extra_objects}" in
*cgen.o*) ;;
*) extra_objects="$extra_objects cgen.o"
AC_DEFINE(USING_CGEN)
@@ -465,6 +465,17 @@ case "${obj_format}" in
"") AC_MSG_ERROR(GAS does not know what format to use for target ${target}) ;;
esac
+# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
+cgen_cpu_prefix=""
+case "x${extra_objects}" in
+ *cgen.o*)
+ case ${target_cpu} in
+ *) cgen_cpu_prefix=${target_cpu} ;;
+ esac
+ ;;
+esac
+AC_SUBST(cgen_cpu_prefix)
+
dnl
dnl Make sure the desired support files exist.
dnl