Index: configure.ac
===================================================================
--- configure.ac	(revision 36343)
+++ configure.ac	(working copy)
@@ -1669,11 +1669,12 @@
 fi
 AC_CHECK_LIB(pthread, pthread_join, pthread_ok=yes, pthread_ok=no)
 ismingw=no
-isqnx=no
+checkinlibc=no
 case "$target_os" in
   mingw*)	ismingw=yes;;
-  nto*)		isqnx=yes;;
-  qnx*)		isqnx=yes;;
+  nto*)		checkinlibc=yes;;
+  qnx*)		checkinlibc=yes;;
+  *android*)   checkinlibc=yes;;
 esac
 if test $pthread_ok = yes ; then
   LIBS="$LIBS -lpthread"
@@ -1684,7 +1685,8 @@
       LIBS="$LIBS -lpthreadGC2"
     fi
   fi
-  if test $isqnx = yes ; then
+  # Android and QNX have pthread in libc instead of libpthread
+  if test $checkinlibc = yes ; then
     AC_CHECK_LIB(c, pthread_join, pthread_ok=yes, pthread_ok=no)
     if test $pthread_ok = yes ; then
        LIBS="$LIBS -lc"
