summaryrefslogtreecommitdiffstats
path: root/aclocal/canonical-host.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/canonical-host.m4')
-rw-r--r--aclocal/canonical-host.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/aclocal/canonical-host.m4 b/aclocal/canonical-host.m4
new file mode 100644
index 0000000000..38f52a61b8
--- /dev/null
+++ b/aclocal/canonical-host.m4
@@ -0,0 +1,29 @@
+dnl $Id$
+
+AC_DEFUN(RTEMS_CANONICAL_HOST,
+[dnl
+AC_REQUIRE([AC_CANONICAL_HOST])
+RTEMS_HOST=$host_os
+changequote(,)dnl
+case "${target}" in
+ # hpux unix port should go here
+ i[3456]86-go32-rtems*)
+ rtems_bsp="go32 go32_p5"
+ skip_startfiles="yes"
+ ;;
+ i[3456]86-pc-linux*) # unix "simulator" port
+ RTEMS_HOST=Linux
+ ;;
+ i[3456]86-*freebsd2*) # unix "simulator" port
+ RTEMS_HOST=FreeBSD
+ ;;
+ sparc-sun-solaris*) # unix "simulator" port
+ RTEMS_HOST=Solaris
+ ;;
+ *)
+ ;;
+esac
+changequote([,])dnl
+AC_SUBST(RTEMS_HOST)
+])dnl
+