diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-07-05 08:36:52 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-07-05 08:36:52 +0000 |
commit | 3ab5794d317bf7408777a186a4dd59c1987fd08d (patch) | |
tree | 2b9cda94e480097551c82ebce4fe9751587b8079 /contrib | |
parent | Remove RPM_OS, rtems/ (diff) | |
download | rtems-3ab5794d317bf7408777a186a4dd59c1987fd08d.tar.bz2 |
New.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/acinclude.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/crossrpms/acinclude.m4 b/contrib/crossrpms/acinclude.m4 new file mode 100644 index 0000000000..28ad8d504a --- /dev/null +++ b/contrib/crossrpms/acinclude.m4 @@ -0,0 +1,20 @@ +# RTEMS_CANONICAL_SPLIT(THING) +# -------------------------- +# Generate the variables THING, THING_{alias cpu vendor os}. +m4_define([RTEMS_CANONICAL_SPLIT], +[case $ac_cv_$1 in +*-*-*) ;; +*) AC_MSG_ERROR([invalid value of canonical $1]);; +esac +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_$1 +shift +$1_cpu=$[1] +$1_vendor=$[2] +shift; shift +[# Remember, the first character of IFS is used to create $]*, +# except with old shells: +$1_os=$[*] +IFS=$ac_save_IFS +case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac +])# RTEMS_CANONICAL_SPLIT |