4.104.114.84.95
Line | |
---|
1 | # RTEMS_CANONICAL_SPLIT(THING) |
---|
2 | # -------------------------- |
---|
3 | # Generate the variables THING, THING_{alias cpu vendor os}. |
---|
4 | m4_define([RTEMS_CANONICAL_SPLIT], |
---|
5 | [case $ac_cv_$1 in |
---|
6 | *-*-*) ;; |
---|
7 | *) AC_MSG_ERROR([invalid value of canonical $1]);; |
---|
8 | esac |
---|
9 | ac_save_IFS=$IFS; IFS='-' |
---|
10 | set x $ac_cv_$1 |
---|
11 | shift |
---|
12 | $1_cpu=$[1] |
---|
13 | $1_vendor=$[2] |
---|
14 | shift; shift |
---|
15 | [# Remember, the first character of IFS is used to create $]*, |
---|
16 | # except with old shells: |
---|
17 | $1_os=$[*] |
---|
18 | IFS=$ac_save_IFS |
---|
19 | case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac |
---|
20 | ])# RTEMS_CANONICAL_SPLIT |
---|
Note: See
TracBrowser
for help on using the repository browser.