Cleanup: Android: Do not redefine gettid
[urcu.git] / configure.ac
index 8a1ff14a345a56ad216256b3494e56d2c55b30e6..38e39e1115a0c71983d4f57c529ae8eec1325583 100644 (file)
@@ -56,7 +56,7 @@ AC_TYPE_SIZE_T
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_FUNC_MMAP
-AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf])
+AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf gettid])
 
 # Find arch type
 AS_CASE([$host_cpu],
@@ -82,6 +82,11 @@ AS_CASE([$host_cpu],
        [ARCHTYPE="unknown"]
 )
 
+AS_CASE([$host],[*-*-linux-androideabi],
+       [AM_CONDITIONAL(TARGET_IS_ANDROID, true)],
+       [AM_CONDITIONAL(TARGET_IS_ANDROID, false)]
+)
+
 AC_SUBST(ARCHTYPE)
 AC_SUBST(SUBARCHTYPE)
 
This page took 0.023339 seconds and 4 git commands to generate.