summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAJ Lewis <aj.lewis@quantum.com>2012-02-16 10:02:15 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:02:15 +0900
commitada1db899a7a611ee074dc0c3ee9f293131b06ee (patch)
treee63760e2e003e5d515289d61179cffb652ff55b1 /configure.in
parent1c763b5eeabe0ac3a4464fcf04c1be24df30876c (diff)
Patch from Mikko Koppanen for #LIBZMQ-301
Add the '-Ae' flag and check for gethrtime() on HPUX Check if CLOCK_MONOTONIC defined before using it - if not, use gethrtime() if it's available, otherwise fall back to the old behavior. Signed-off-by: AJ Lewis <aj.lewis@quantum.com>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 382329f..72dec47 100644
--- a/configure.in
+++ b/configure.in
@@ -167,6 +167,8 @@ case "${host_os}" in
# Define on HP-UX to enable all library features
CPPFLAGS="-D_POSIX_C_SOURCE=200112L $CPPFLAGS"
AC_DEFINE(XS_HAVE_HPUX, 1, [Have HPUX OS])
+ LIBXS_CHECK_LANG_FLAG_PREPEND([-Ae])
+ AC_CHECK_FUNCS(gethrtime)
;;
*mingw32*)
AC_DEFINE(XS_HAVE_WINDOWS, 1, [Have Windows OS])