AC_FUNC_FORK
AC_CHECK_FUNCS([ \
atexit \
- clock_gettime \
getcpuid \
gettid \
gettimeofday \
[alpha*], [ARCHTYPE="alpha"],
[ia64], [ARCHTYPE="ia64"],
[arm*], [ARCHTYPE="arm"],
- [aarch64], [ARCHTYPE="aarch64"],
+ [aarch64*], [ARCHTYPE="aarch64"],
[mips*], [ARCHTYPE="mips"],
[nios2*], [ARCHTYPE="nios2"],
[tile*], [ARCHTYPE="tile"],
[AM_CONDITIONAL(TARGET_IS_ANDROID, false)]
)
+AS_CASE([$host],[*-cygwin*],
+ [AM_CONDITIONAL(USE_CYGWIN, true)],
+ [AM_CONDITIONAL(USE_CYGWIN, false)]
+)
+
AC_SUBST(ARCHTYPE)
AC_SUBST(SUBARCHTYPE)
compat_futex_test=1
])
+# Search for clock_gettime
+AC_SEARCH_LIBS([clock_gettime], [rt], [],
+ [AC_MSG_ERROR([Cannot find clock_gettime function.])]
+)
+
# Check for pthread
AC_CHECK_LIB([pthread], [pthread_create],
[AM_CONDITIONAL(LIBC_INCLUDES_PTHREAD, false)],