diff options
author | Po Lu <luangruo@yahoo.com> | 2023-03-15 16:17:32 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-03-15 16:17:32 +0800 |
commit | af7f0b6f9b3bab0d672953dfe9df9dc667287434 (patch) | |
tree | a0706b0aeed50e902760faf05a845d596797836d /m4 | |
parent | 4e05371fd1da6dd0aa5187b8037948094762a749 (diff) | |
download | emacs-af7f0b6f9b3bab0d672953dfe9df9dc667287434.tar.gz |
Update Android port
* cross/Makefile.in (lib/gnulib.mk): Edit out
build-aux stuff.
* m4/ndk-build.m4: Also look for cross ranlib.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ndk-build.m4 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/m4/ndk-build.m4 b/m4/ndk-build.m4 index d5f16248dcd..077781ec38c 100644 --- a/m4/ndk-build.m4 +++ b/m4/ndk-build.m4 @@ -228,10 +228,12 @@ ndk_subst_cc_onto_cxx () { done } -# Look for a suitable ar in the same directory as the C compiler. +# Look for a suitable ar and ranlib in the same directory as the C +# compiler. ndk_cc_firstword=`AS_ECHO(["$CC"]) | cut -d' ' -f1` ndk_where_cc=`which $ndk_cc_firstword` ndk_ar_search_path=$PATH +ndk_ranlib_search_path=$RANLIB # First, try to find $host_alias-ar in PATH. AC_PATH_PROGS([AR], [$host_alias-ar], [], [$ndk_ar_search_path]) @@ -242,6 +244,16 @@ AS_IF([test -z "$AR"],[ ndk_ar_search_path="`AS_DIRNAME([$ndk_where_cc])`:$ndk_ar_search_path" AC_PATH_PROGS([AR], [$host_alias-ar llvm-ar], [], [$ndk_ar_search_path])]) +# First, try to find $host_alias-ranlib in PATH. +AC_PATH_PROGS([RANLIB], [$host_alias-ranlib], [], [$ndk_ranlib_search_path]) + +AS_IF([test -z "$RANLIB"],[ + # Next, try finding either that or llvm-ranlib in the directory + # holding CC. + ndk_ranlib_search_path="`AS_DIRNAME([$ndk_where_cc])`:$ndk_ranlib_search_path" + AC_PATH_PROGS([RANLIB], [$host_alias-ranlib llvm-ranlib], [], + [$ndk_ranlib_search_path])]) + NDK_BUILD_NASM= # Next, try to find nasm on x86. This doesn't ship with the NDK. |