X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=ae75a3be66f9ec8309f46a6cdb7ed483e83356ad;hb=28d4495eeefb8d7d169f34af6497d84089b77be8;hp=b86f371be22edcb8ff0eb3dd1653aba12978d979;hpb=ab4523c0ed25e40cbcb2df69e39b4bed46bae62d;p=userspace-rcu.git diff --git a/configure.ac b/configure.ac index b86f371..ae75a3b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.59) -AC_INIT([userspace-rcu],[0.9.1],[mathieu dot desnoyers at efficios dot com], [], [http://liburcu.org/]) +AC_INIT([userspace-rcu],[0.9.2],[mathieu dot desnoyers at efficios dot com], [], [http://liburcu.org/]) # Following the numbering scheme proposed by libtool for the library version # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html @@ -25,6 +25,7 @@ AH_TEMPLATE([CONFIG_RCU_HAVE_FUTEX], [Defined when on a system with futex suppor AH_TEMPLATE([CONFIG_RCU_COMPAT_ARCH], [Compatibility mode for i386 which lacks cmpxchg instruction.]) AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.]) AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.]) +AH_TEMPLATE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [clock_gettime() is detected.]) # Allow overriding storage used for TLS variables. AC_ARG_ENABLE([compiler-tls], @@ -79,7 +80,6 @@ AC_FUNC_MMAP AC_FUNC_FORK AC_CHECK_FUNCS([ \ atexit \ - clock_gettime \ getcpuid \ gettid \ gettimeofday \ @@ -122,7 +122,7 @@ AS_CASE([$host_cpu], [alpha*], [ARCHTYPE="alpha"], [ia64], [ARCHTYPE="ia64"], [arm*], [ARCHTYPE="arm"], - [aarch64], [ARCHTYPE="aarch64"], + [aarch64*], [ARCHTYPE="aarch64"], [mips*], [ARCHTYPE="mips"], [tile*], [ARCHTYPE="tile"], [hppa*], [ARCHTYPE="hppa"], @@ -134,6 +134,11 @@ AS_CASE([$host],[*-*-linux-androideabi], [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) @@ -215,6 +220,11 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ compat_futex_test=1 ]) +# Search for clock_gettime +AC_SEARCH_LIBS([clock_gettime], [rt], [ + AC_DEFINE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [1]) +], []) + # Check for pthread AC_CHECK_LIB([pthread], [pthread_create], [AM_CONDITIONAL(LIBC_INCLUDES_PTHREAD, false)],