diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-07-31 10:46:03 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-07-31 10:47:27 +0300 |
commit | 1d3ca559966d522c3e5f98d137e02d295cb5751a (patch) | |
tree | 3344d20e1cd8730c28780669a5cbccf650310c08 /configure.in | |
parent | 892fffaea2af837b09699974c0f9eab05a48a04b (diff) |
More NDK r8b fixes
Change-Id: Ib91d60bc66860ad44541b28fbe89aa01d89cdee2
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 48009d08b6f6..170e2eea75d7 100644 --- a/configure.in +++ b/configure.in @@ -142,10 +142,8 @@ if test -n "$with_android_ndk"; then # that is done, please use no newer NDK than r8. if test $host_cpu = arm; then - android_gcc_prefix=arm-linux-androideabi android_cpu=arm else - android_gcc_prefix=i686-android-linux # host_cpu is something like "i386" or "i686" I guess, NDK uses # "x86" in some contexts android_cpu=x86 @@ -167,6 +165,16 @@ if test -n "$with_android_ndk"; then ;; esac + if test $host_cpu = arm; then + android_gcc_prefix=arm-linux-androideabi + elif test -f $ANDROID_ABI_PREBUILT_BIN/i686-android-linux-gcc; then + android_gcc_prefix=i686-android-linux + elif test -f $ANDROID_ABI_PREBUILT_BIN/i686-linux-android-gcc; then + android_gcc_prefix=i686-linux-android + else + AC_MSG_ERROR([Can't figure out the toolchain prefix]) + fi + test -z "$SYSBASE" && export SYSBASE=$ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu test -z "$AR" && AR=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-ar test -z "$NM" && NM=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-nm |