> Sorry, I was meaning to announce this but was waiting for the non-x86
> stuff
> to be resolved. I haven't heard back from Palo Malosek on that so I guess
> I'll just have to look at the autoconf stuff myself (ugh).
I see, I see:) sorry but I'm busy with other things...
Follows the MIT lic patch to test rdtsc in configure, I did not test it so I
did not pushed it into the main repository.
malo
diff --git a/configure.in b/configure.in
index d9da679..9327aab 100644
--- a/configure.in
+++ b/configure.in
@@ -156,6 +156,21 @@ if test "x$sparc" = "xyes"; then
CPPFLAGS="$CPPFLAGS -mcpu=v9"
fi
+# Check if we have rdtsc
+AC_MSG_CHECKING([wheter rdtsc is is supported])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [],
+ [[
+ __asm__ volatile ("rdtsc");
+ ]])],
+ [rdtsc=yes],
+ [rdtsc=no])
+
+AC_MSG_RESULT([$rdtsc])
+
+# Needed by OpenPGM
+if test "x$rdtsc" = "xyes" -a "x$pgm2_ext" = "x$yes"; then
+ CFLAGS="${CFLAGS} -DCONFIG_HAVE_TSC "
+fi
+
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(errno.h arpa/inet.h netinet/tcp.h netinet/in.h stddef.h \
diff --git a/perf/c/Makefile.am b/perf/c/Makefile.am
index 9ab50a5..d08e116 100644
--- a/perf/c/Makefile.am
+++ b/perf/c/Makefile.am
@@ -48,7 +48,6 @@ pgmexamples_diff_flags = \
-DCONFIG_HAVE_NANOSLEEP \
-DCONFIG_HAVE_USLEEP \
-DCONFIG_HAVE_RTC \
- -DCONFIG_HAVE_TSC \
-DCONFIG_HAVE_IFR_NETMASK \
-DCONFIG_HAVE_GETIFADDRS \
-DCONFIG_HAVE_GETHOSTBYNAME2 \
diff --git a/src/Makefile.am b/src/Makefile.am
index 0ff7bbf..b2a04ef 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -199,7 +199,6 @@ libpgm_diff_flags = \
-DCONFIG_HAVE_NANOSLEEP \
-DCONFIG_HAVE_USLEEP \
-DCONFIG_HAVE_RTC \
- -DCONFIG_HAVE_TSC \
-DCONFIG_HAVE_IFR_NETMASK \
-DCONFIG_HAVE_GETIFADDRS \
-DCONFIG_HAVE_GETHOSTBYNAME2 \
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev