summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/crossrpms/configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/crossrpms/configure.ac b/contrib/crossrpms/configure.ac
index 65b6684435..34386875e6 100644
--- a/contrib/crossrpms/configure.ac
+++ b/contrib/crossrpms/configure.ac
@@ -8,6 +8,8 @@ AC_CONFIG_SRCDIR([binutils/binutils.add])
AC_CONFIG_AUX_DIR(.)
AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
AM_INIT_AUTOMAKE([no-define foreign 1.9])
@@ -40,7 +42,6 @@ AC_ARG_ENABLE([rpmprefix],
])
AC_SUBST(rpmprefix)
-
AS_IF([test "${host}" != "${build}"],[
AC_MSG_CHECKING(for RPM OS)
case "$host" in
@@ -57,6 +58,15 @@ AC_MSG_RESULT($RPM_OS)
])
AC_SUBST(RPM_OS)
+case "${target_os}" in
+ rtems|[rtems]RTEMS_API[])
+ TARGET_SUBDIRS=rtems
+ ;;
+ *)
+ AC_MSG_ERROR([Unsupported target ${target}])
+esac
+AC_SUBST([TARGET_SUBDIRS])
+
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([cygwin/Makefile])