b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/configure.ac |
| 2 | +++ b/configure.ac |
| 3 | @@ -74,6 +74,21 @@ AM_SILENT_RULES |
| 4 | AC_CANONICAL_HOST |
| 5 | AB_INIT |
| 6 | |
| 7 | +case "${host}" in |
| 8 | + x86_64-openwrt-linux-gnu|i?86-openwrt-linux-gnu) |
| 9 | + host=$(echo $host | sed 's/openwrt/pc/g') |
| 10 | + ;; |
| 11 | + arm-openwrt-linux-gnu|armeb-openwrt-linux-gnu) |
| 12 | + host=arm-unknown-linux-gnueabi |
| 13 | + ;; |
| 14 | + mips64-openwrt-linux-gnu) |
| 15 | + host=mips64el-unknown-linux-gnuabi64 |
| 16 | + ;; |
| 17 | + *) |
| 18 | + host=$(echo $host | sed 's/openwrt/unknown/g') |
| 19 | + ;; |
| 20 | +esac |
| 21 | + |
| 22 | # Checks for programs. |
| 23 | AC_PROG_CC |
| 24 | AM_PROG_CC_C_O |